Class: PatternBrush

fabric.PatternBrush

new PatternBrush()

PatternBrush class
Source:

Extends

Members

color :String

Color of a brush
Type:
  • String
Inherited From:
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:
Inherited From:
Source:

strokeDashArray :Array

Stroke Dash Array.
Type:
  • Array
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
Type:
  • Number
Inherited From:
Default Value:
  • 1
Source:

Methods

_setBrushStyles()

Sets brush styles
Overrides:
  • fabric.BaseBrush#_setBrushStyles
Source:

createPath()

Creates path
Source:

getPattern()

Creates "pattern" instance property
Source:

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)")
Inherited From:
Source:
Returns:
thisArg
Type
fabric.Object