Get variable modes
style.getVariableModes(options?)
Retrieve all variable modes applied to a style across all variable collections. Returns a map of collection IDs to their applied mode IDs.
Syntax
Parameters
- options?: BreakpointAndPseudo - The breakpoint and pseudo state for the style.
Returns
A Promise that resolves to a VariableModeStylePropertyMap
object containing variable modes applied to the style, keyed by variable collection ID.
VariableModeStylePropertyMap