Private _hasPrivate _pointsadd 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
Private Optional oldShadow 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
The 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 _setPrivate _setConverts points to SVG path
Array of points
SVG path commands
Creates a Path object to add on canvas
Path data
Path to add on canvas
Invoked on mouse down
Invoked on mouse move
Invoked on mouse up
Static drawGenerated using TypeDoc
See
demo