Assuming /editor/index.html is base: Whitespace Cleanup!
Should contain no code changes, just tabs to (2) spaces and no line-ending whitespace
Change viewport option separators from semicolons to commas
Fix whitespace tabs and line endings in units.js and method-draw.js
Ruh roh! Nasty typo. units, not unit. This one's for upstream!
Fix whitespace and tabs for svgcanvas.js
Externalize zoomChanged callback for outside control through main object
Short circuit return early if bad event on jq draginput.
This probably doesn't belong as commit here, but hey, I'm just clearing errors as I find em.
Sanity check selectedIndex on stroke and seg_type callback.
I have no idea why it's -1 here sometimes. This is either a misunderstanding of how this is meant to work, or should be done in more places than just these.
Try not to do math directly with getAttribute output (as it's usually text)
Yes, I know there's probably a *million* more examples of this "problem" elsewhere. Gotta start somewhere.
Add somewhat generalized global callback for "open", rather, setSVGString
This is probably the wrong way to do this, but hey, it gets the job done.
Trigger new openCallback on doc clear.
I realize now that this should be handled by extension triggers. Ah well.. another TODO.
Don't assume we've found our object
Ensure selection is cleared before setting SVG string.
This may be wrong or useless.
Add safe handling of select all with no elements
Sidestream sorta-cherry pick from @lmartinho's improvement branch
Hopefully fixes #87
Add quick fix to "px" sized stroke widths messing up GUI to "NaN"
One for the upstream branch, though it's going to need some work.
Occasionally clicking the background resulted in this failing
Converting to jQuery attr seems a good idea anyways. For upstream!
Switch setSvgString to return error instead of false
Adjust setSvgString implementations to accept error return