Action
Defines a data-driven operation that can modify existing objects or create new ones (spots or polygons) using variables or custom values. Actions typically run when the widget loads.
Schema
| Name | Type | Description | Default |
|---|---|---|---|
| id | string | A unique identifier for the action. | — |
| type | "modify-object""create-spot""create-poly""create-spots""create-polys" | The type of action to perform. | modify-object |
| name | string | A human-readable name for the action. | Untitled Action |
| conditions | Condition [] | A list of conditions that must be met for the action to execute. | |
| condition_operator | "and""or" | Logical operator for combining multiple conditions. | and |
| object_id | string | Target object ID to modify (for "modify-object" type). | — |
| create_object_target_artboard_id | string | Target artboard where new objects should be created. | — |
| create_object_name | string | Default name for created objects. | — |
| create_spot_x_source_type | "variable""custom" | Source type for X coordinate of a new Spot. | custom |
| create_spot_x_custom_value | string | Custom X coordinate if source type is "custom". | — |
| create_spot_x_variable_id | string | Variable ID if source type is "variable". | — |
| create_spot_y_source_type | "variable""custom" | Source type for Y coordinate of a new Spot. | custom |
| create_spot_y_custom_value | string | Custom Y coordinate if source type is "custom". | — |
| create_spot_y_variable_id | string | Variable ID if source type is "variable". | — |
| create_poly_coords_variable_id | string | Variable ID that provides coordinates for a new Polygon. | — |
| style_color | ObjectStyle | Color of the object. Can be current value, custom, or variable-driven. | — |
| style_opacity | ObjectStyle | Opacity of the object. | — |
| style_stroke_color | ObjectStyle | Stroke color of the object. | — |
| style_stroke_width | ObjectStyle | Stroke width of the object. | — |
| style_stroke_opacity | ObjectStyle | Stroke opacity of the object. | — |
| style_hover_color | ObjectStyle | Hover color of the object. | — |
| style_hover_opacity | ObjectStyle | Hover opacity of the object. | — |
| style_hover_stroke_color | ObjectStyle | Hover stroke color of the object. | — |
| style_hover_stroke_width | ObjectStyle | Hover stroke width of the object. | — |
| style_hover_stroke_opacity | ObjectStyle | Hover stroke opacity of the object. | — |
| style_blend_mode | ObjectStyle | Blend mode applied to the object. | — |
| style_radius | ObjectStyle | Radius of the object (applies to spot type). | — |
| style_pin | ObjectStyle | Pin setting for the object (true = pin, false = spot). | — |