add type
Color of a brush
Discard points that are less than decimate pixel distant from each other
0.4
Draws a straight line between last recorded point to current pointer
Used for shift functionality
false
When true, the free drawing is limited to the whiteboard size. Default to false.
false
Shadow object representing shadow of this shape. Backwards incompatibility note: This property replaces "shadowColor" (String), "shadowOffsetX" (Number), "shadowOffsetY" (Number) and "shadowBlur" (Number) since v1.2.12
Optional sourceThe event modifier key that makes the brush draw a straight line.
If null or 'none' or any other string that is not a modifier key the feature is disabled.
Stroke Dash Array.
Line endings style of a brush (one of "butt", "round", "square")
Corner style of a brush (one of "bevel", "round", "miter")
Maximum miter length (used for strokeLineJoin = "miter") of a brush's
Width of a brush, has to be a Number, no string literals
Private _addPrivate
Point to be added to points array
Private _isPrivate
Check is pointer is outside canvas boundaries
Private _preparePrivate
Actual mouse position related to the canvas.
Private _renderPrivate _resetPrivate _resetPrivate _savePrivate _setConverts points to SVG path
Array of points
SVG path commands
Creates path
Invoked on mouse down
Invoked on mouse move
Invoked on mouse up
Static drawGenerated using TypeDoc
See
demo