BaseBrush

fabric. BaseBrush

new BaseBrush()

Source:
See:
BaseBrush class

Members

color :String

Source:
Default Value:
  • rgb(0, 0, 0)
Color of a brush
Type:
  • String

limitedToCanvasSize :Boolean

Source:
Default Value:
  • false
When `true`, the free drawing is limited to the whiteboard size. Default to false.
Type:
  • Boolean

shadow :fabric.Shadow

Source:
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:
Stroke Dash Array.
Type:
  • Array

strokeLineCap :String

Source:
Default Value:
  • round
Line endings style of a brush (one of "butt", "round", "square")
Type:
  • String

strokeLineJoin :String

Source:
Default Value:
  • round
Corner style of a brush (one of "bevel", "round", "miter")
Type:
  • String

strokeMiterLimit :Number

Source:
Default Value:
  • 10
Maximum miter length (used for strokeLineJoin = "miter") of a brush's
Type:
  • Number

width :Number

Source:
Default Value:
  • 1
Width of a brush, has to be a Number, no string literals
Type:
  • Number