Class: BaseBrush

fabric.BaseBrush

new BaseBrush()

BaseBrush class
Source:
See:

Members

color :String

Color of a brush
Type:
  • String
Default Value:
  • rgb(0, 0, 0)
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:
Source:

strokeDashArray :Array

Stroke Dash Array.
Type:
  • Array
Source:

strokeLineCap :String

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

strokeLineJoin :String

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

strokeMiterLimit :Number

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

width :Number

Width of a brush
Type:
  • Number
Default Value:
  • 1
Source:

Methods

setShadow(optionsopt) → {fabric.Object}

Sets shadow of an object
Parameters:
Name Type Attributes Description
options Object | String <optional>
Options object or string (e.g. "2px 2px 10px rgba(0,0,0,0.2)")
Source:
Returns:
thisArg
Type
fabric.Object