FillShape
Fills for shapes are paint operations that add colored pixels to a path or to the area defined by a path. A fill can consist of a solid color, or it can use a gradient of colors. Each fill has its own blending mode, which determines how it interacts with other paint operations in the same group.
Hierarchy
FillShape
Constructors
constructor
newFillShape(parent: any): FillShape
Properties
blendMode
blendMode: BlendMode = BlendMode.NORMAL
Optional classNames
classNames: undefined | string
color
color: Property = new Property(this, PropertyType.COLOR)
Optional direction
direction: undefined | number
fillRule
Optional id
id: undefined | string
isHidden
isHidden: boolean = false
Optional itemIndex
itemIndex: undefined | number
Optional matchName
matchName: undefined | string
Optional name
name: undefined | string
opacity
opacity: Property = new Property(this, PropertyType.OPACITY)
parent
parent: any
Optional shapeIndex
shapeIndex: undefined | number
Readonly type
type: FILL = ShapeType.FILL
Mapped field: ty
Mapped field value: fl
Methods
fromJSON
fromJSON(json: Record<string, any>): FillShape
toJSON
toJSON(): Record<string, any>
Returns Record<string, any>
JSON object
Last updated