StrokeShape
Strokes for shapes are paint operations that add colored pixels to a path or to the area defined by a path. A stroke can consist of a solid color, or it can use a gradient of colors. Each stroke has its own blending mode, which determines how it interacts with other paint operations in the same group.
Hierarchy
StrokeShape
Constructors
constructor
newStrokeShape(parent: any): StrokeShape
Properties
blendMode
blendMode: BlendMode = BlendMode.NORMAL
Optional classNames
classNames: undefined | string
color
color: Property = new Property(this, PropertyType.COLOR)
Stroke color
Mapped field: c
Optional id
id: undefined | string
isHidden
isHidden: boolean = false
Optional itemIndex
itemIndex: undefined | number
lineCapType
Line cap
Mapped field: lc
lineJoinType
Line join
Mapped field: lj
Optional matchName
matchName: undefined | string
miterLimit
miterLimit: number
Miter limit
Mapped field: ml
Optional name
name: undefined | string
opacity
opacity: Property = new Property(this, PropertyType.OPACITY)
parent
parent: any
Optional shapeIndex
shapeIndex: undefined | number
Readonly type
type: STROKE = ShapeType.STROKE
Mapped field: ty
Mapped field value: st
width
width: Property = new Property(this, PropertyType.STROKE_WIDTH)
Stroke width
Mapped field: w
Methods
fromJSON
fromJSON(json: Record<string, any>): StrokeShape
toJSON
toJSON(): Record<string, any>
Returns Record<string, any>
JSON object
Last updated