@js-draw/math
Advanced tools
Changelog
1.8.0
Changelog
1.7.0
shift
, ctrl
, etc.) not registered as pressed if first pressed before focusing the editor.Changelog
1.6.1
Changelog
1.6.0
EditorSettings
for the about dialog.ToolController
API for adding/removing toolsiframes
.Erase
commands having no effect after serialized then deserialized.Changelog
1.4.0
Editor::toSVG
now allows specifying a minimum output dimension.Editor::toSVGAsync
.Editor::setReadOnly
). Note that this feature only attempts to prevent a user from editing the image (and doesn't protect from edits via the API).Changelog
1.3.1
Changelog
1.3.0
EditorImage.setAutoresizeEnabled
). These drawings automatically resize to fit what has been drawn when saved.Changelog
1.2.2
pathToRenderable
, pathFromRenderable
, and pathVisualEquivalent
. These functions were renamed in version 1.0.0 and the new versions were not exported.Changelog
1.2.1
adjustEditorThemeForContrast
not ensuring that the selection and the main toolbar background have sufficient contrast.Changelog
1.2.0
Color4
utility functions (fromHSV
, fromRGBVector
, contrastRatio
, and .rgb
).adjustEditorThemeForContrast
function.transform
to translation
when setting the position of the edge toolbar for compatibility with older browsers.