update_text
Update a text layer on a screenshot in the open editor.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Layer center, in percent of the card width from the card center. 50 is the right edge. | |
| y | No | Layer center, in percent of the card height from the card center. 50 is the bottom edge. | |
| align | No | ||
| color | No | CSS color, such as #ffffff | |
| textId | Yes | ||
| content | No | ||
| fontSize | No | Font size in CSS pixels on the 500px-tall editor canvas. | |
| rotation | No | ||
| fontFamily | No | Font for the whole layer, such as Nunito: a built-in editor font or one added with add_project_font. | |
| fontWeight | No | ||
| lineHeight | No | Multiplier of the font size | |
| borderColor | No | ||
| borderRadius | No | ||
| screenshotId | Yes | ||
| textShadowBlur | No | ||
| backgroundColor | No | ||
| textShadowColor | No | ||
| textShadowEnabled | No | ||
| textShadowOffsetX | No | ||
| textShadowOffsetY | No |