Set Layer Style
photopea_set_layer_styleAdds drop shadow, outer glow, or stroke effects to a Photopea layer by name or index. Replaces existing effects, keeps them editable, and conforms to the layer's shape for text and logos.
Instructions
Set a layer's effects: drop shadow, outer glow and/or stroke. Replaces the layer's existing effects; pass none to clear them. Effects stay editable and follow the layer's shape, which suits text and logos.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stroke | No | ||
| target | No | Layer name (string) or index (number) | |
| outerGlow | No | ||
| dropShadow | No |