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