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: