TextLayer.createStroke
Creates or updates the single stroke on this text layer.
TextLayer.createStroke() method
Creates or updates the single stroke on this text layer.
Signature:
createStroke(opts: TextStrokeOptions): TextStroke;Parameters
Parameter | Type | Description |
|---|---|---|
opts | Stroke options. Text strokes are solid only. |
Returns:
The text layer's stroke.
Remarks
Text layers support only one stroke. Calling this when a stroke is already present updates the existing stroke instead of appending a second one.
Last updated: October 8, 2026 at 10:45 AMEdit this page