TextLayer.createStroke
Creates or replaces the stroke on this text layer.
TextLayer.createStroke() method
Creates or replaces the stroke on this text layer.
Signature:
createStroke(opts: TextStrokeOptions): TextStroke;Parameters
Parameter | Type | Description |
|---|---|---|
opts | Options describing the stroke color and width. |
Returns: TextStroke
The created (or replaced) stroke.
Example
textLayer.createStroke({
fill: { type: "SOLID", color: { r: 0, g: 0, b: 0 } },
width: 2,
});Last updated: August 5, 2026 at 11:47 AMEdit this page