CircleBrush
Defined in: src/brushes/CircleBrush.ts:12
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CircleBrush(
canvas
):CircleBrush
Defined in: src/brushes/CircleBrush.ts:21
Parameters
Section titled “Parameters”canvas
Section titled “canvas”Returns
Section titled “Returns”CircleBrush
Overrides
Section titled “Overrides”Properties
Section titled “Properties”canvas
Section titled “canvas”canvas:
Canvas
Defined in: src/brushes/BaseBrush.ts:66
add type
Inherited from
Section titled “Inherited from”color:
string
='rgb(0, 0, 0)'
Defined in: src/brushes/BaseBrush.ts:15
Color of a brush
Inherited from
Section titled “Inherited from”limitedToCanvasSize
Section titled “limitedToCanvasSize”limitedToCanvasSize:
boolean
=false
Defined in: src/brushes/BaseBrush.ts:61
When true
, the free drawing is limited to the whiteboard size. Default to false.
Default
Section titled “Default”false
Inherited from
Section titled “Inherited from”points
Section titled “points”points:
CircleBrushPoint
[]
Defined in: src/brushes/CircleBrush.ts:19
shadow
Section titled “shadow”shadow:
null
|Shadow
=null
Defined in: src/brushes/BaseBrush.ts:29
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
Inherited from
Section titled “Inherited from”strokeDashArray
Section titled “strokeDashArray”strokeDashArray:
null
|number
[] =null
Defined in: src/brushes/BaseBrush.ts:53
Stroke Dash Array.
Inherited from
Section titled “Inherited from”strokeLineCap
Section titled “strokeLineCap”strokeLineCap:
CanvasLineCap
='round'
Defined in: src/brushes/BaseBrush.ts:35
Line endings style of a brush (one of “butt”, “round”, “square”)
Inherited from
Section titled “Inherited from”strokeLineJoin
Section titled “strokeLineJoin”strokeLineJoin:
CanvasLineJoin
='round'
Defined in: src/brushes/BaseBrush.ts:41
Corner style of a brush (one of “bevel”, “round”, “miter”)
Inherited from
Section titled “Inherited from”strokeMiterLimit
Section titled “strokeMiterLimit”strokeMiterLimit:
number
=10
Defined in: src/brushes/BaseBrush.ts:47
Maximum miter length (used for strokeLineJoin = “miter”) of a brush’s
Inherited from
Section titled “Inherited from”width:
number
=10
Defined in: src/brushes/CircleBrush.ts:17
Width of a brush
Overrides
Section titled “Overrides”Methods
Section titled “Methods”addPoint()
Section titled “addPoint()”addPoint(
pointer
):CircleBrushPoint
Defined in: src/brushes/CircleBrush.ts:127
Parameters
Section titled “Parameters”pointer
Section titled “pointer”Returns
Section titled “Returns”Just added pointer point
dot(
ctx
,point
):void
Defined in: src/brushes/CircleBrush.ts:38
Parameters
Section titled “Parameters”CanvasRenderingContext2D
Returns
Section titled “Returns”void
drawDot()
Section titled “drawDot()”drawDot(
pointer
):void
Defined in: src/brushes/CircleBrush.ts:30
Invoked inside on mouse down and mouse move
Parameters
Section titled “Parameters”pointer
Section titled “pointer”Returns
Section titled “Returns”void
onMouseDown()
Section titled “onMouseDown()”onMouseDown(
pointer
):void
Defined in: src/brushes/CircleBrush.ts:49
Invoked on mouse down
Parameters
Section titled “Parameters”pointer
Section titled “pointer”Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”onMouseMove()
Section titled “onMouseMove()”onMouseMove(
pointer
):void
Defined in: src/brushes/CircleBrush.ts:74
Invoked on mouse move
Parameters
Section titled “Parameters”pointer
Section titled “pointer”Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”onMouseUp()
Section titled “onMouseUp()”onMouseUp():
void
Defined in: src/brushes/CircleBrush.ts:90
Invoked on mouse up
Returns
Section titled “Returns”void