ObjectStyle

Defines how an Object’s visual property (color, opacity, stroke, etc.) is set. Each style can use the current value, a custom constant, or be bound to a variable.

Schema

Name Type Description Default
name
"color""opacity""stroke_color""stroke_width""stroke_opacity""hover_color""hover_opacity""hover_stroke_color""hover_stroke_width""hover_stroke_opacity""blend_mode""radius""pin"
The property of the Object that this style controls. color
type
"current-value""variable""custom"
How the value is resolved: keep the current value, bind to a variable, or use a custom constant. variable
custom_value any The explicit value to apply if type = "custom".
variable_id string The ID of the variable to use if type = "variable".