Protected
isProtected
istrue if the given penStyle
is known to match a rounded tip type of pen.
Unused by js-draw.
Protected
makeAn object with both the definition of a checkerboard pattern and the syntax to
reference that pattern. The defs provided by this function should be wrapped within a
<defs></defs>
element.
Note: This function's return value includes both patternDefElement
(which returns
an Element) and a (deprecated) patternDef
string. Avoid using the patternDef
result.
Optional
eraserSize: numberOptional
mode: EraserModeUnused.
Protected
makeSVG path data (e.g. m10,10l30,30z
)
A valid CSS color (e.g. var(--icon-color)
or #f0f
). This can be none
.
Optional
color: Color4a redo icon.
Renamed to makeResizeImageToSelectionIcon
Provides icons that can be used in the toolbar and other locations.
To customize the icons used by the editor, extend this class and override methods.
Example