Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/components/drawing/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,10 @@ Object.keys(SYMBOLDEFS).forEach(function(k) {
} else {
drawing.symbolList.push(
n + 200,
String(n + 200),
k + '-dot',
n + 300,
String(n + 300),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OIC this is needed for coerce to work... then we also need strings up above (L222, 224) for the n and n + 100 variants.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call. Done in 5b7b18f.

k + '-open-dot'
);
}
Expand All @@ -250,7 +252,9 @@ var MAXSYMBOL = drawing.symbolNames.length;
var DOTPATH = 'M0,0.5L0.5,0L0,-0.5L-0.5,0Z';

drawing.symbolNumber = function(v) {
if(typeof v === 'string') {
if(isNumeric(v)) {
v = +v;
} else if(typeof v === 'string') {
var vbase = 0;
if(v.indexOf('-open') > 0) {
vbase = 100;
Expand Down