@js-draw/material-icons
Advanced tools
Changelog
1.4.1
minDimension
argument not resizing the background when toSVG
was called on an empty, auto-resizing image.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.Changelog
1.1.0
ctrl+s
(or meta+s
) to the save action, if added with AbstractToolbar.addSaveButton
.--foreground-color-2
to match --background-color-2
).Changelog
1.0.2
.npmignore
allowing some unnecessary files.Changelog
1.0.0
Special thanks to:
Breaking changes (see the migration guide)
--secondary-foreground-color
and --secondary-background-color
are no longer used for selected items. Use --selection-foreground-color
and --selection-background-color
instead.Pen
constructor now accepts parameters in a different format — the PenStyle
should contain the pen factory.Pointer
s and StrokeDataPoint
s use performance.now
instead of Date.now
..imageEditorContainer
is now required to override the width
and height
of an editor. Use .js-draw.imageEditorContainer
or body .imageEditorContainer
.Other changes
<g>
element parents when writing SVGs.ctrl+Tab
that defocus the editor before a keyup event is sent for ctrl
.