Extends
Members
color :String
- Source:
- Inherited From:
- Default Value:
- rgb(0, 0, 0)
Color of a brush
Type:
- String
limitedToCanvasSize :Boolean
- Source:
- Inherited From:
- Default Value:
- false
When `true`, the free drawing is limited to the whiteboard size. Default to false.
Type:
- Boolean
shadow :fabric.Shadow
- Source:
- Inherited From:
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
Type:
strokeDashArray :Array
- Source:
- Inherited From:
Stroke Dash Array.
Type:
- Array
strokeLineCap :String
- Source:
- Inherited From:
- Default Value:
- round
Line endings style of a brush (one of "butt", "round", "square")
Type:
- String
strokeLineJoin :String
- Source:
- Inherited From:
- Default Value:
- round
Corner style of a brush (one of "bevel", "round", "miter")
Type:
- String
strokeMiterLimit :Number
- Source:
- Inherited From:
- Default Value:
- 10
Maximum miter length (used for strokeLineJoin = "miter") of a brush's
Type:
- Number
width :Number
- Source:
- Inherited From:
- Default Value:
- 1
Width of a brush, has to be a Number, no string literals
Type:
- Number
Methods
_setBrushStyles()
- Source:
- Overrides:
- fabric.BaseBrush#_setBrushStyles
Sets brush styles
createPath()
- Source:
Creates path
getPattern()
- Source:
Creates "pattern" instance property