Members
width :Number
Width of a brush
Type:
- Number
- Default Value:
- 10
- Source:
Methods
addPoint(pointer) → {fabric.Point}
Parameters:
Name | Type | Description |
---|---|---|
pointer |
Object |
- Source:
Returns:
Just added pointer point
- Type
- fabric.Point
drawDot(pointer)
Invoked inside on mouse down and mouse move
Parameters:
Name | Type | Description |
---|---|---|
pointer |
Object |
- Source:
initialize(canvas) → {fabric.CircleBrush}
Constructor
Parameters:
Name | Type | Description |
---|---|---|
canvas |
fabric.Canvas |
- Source:
Returns:
Instance of a circle brush
- Type
- fabric.CircleBrush
onMouseDown()
Invoked on mouse down
- Source:
onMouseMove(pointer)
Invoked on mouse move
Parameters:
Name | Type | Description |
---|---|---|
pointer |
Object |
- Source:
onMouseUp()
Invoked on mouse up
- Source: