Search
setAttributes
Set the attributes of a color style. Attributes are merged with existing values, so only the provided attributes are updated.
await colorStyle.setAttributes({ dark: "rgba(10, 10, 10, 0.2)" })
Parameters
update:Partial<ColorStyleAttributes>– The attributes to update.
Returns
Promise<ColorStyle | null>– The updated color style, ornullif the style was not found.