StateCollectionState
State containing a collection of that can morph M→N
This enables general M→N state morphing where multiple independent states can smoothly transition to a different number of states.
Constructor
StateCollectionState(
pos: Optional[Point2D] = None,
scale: Optional[float] = None,
opacity: Optional[float] = None,
rotation: Optional[float] = None,
skew_x: Optional[float] = None,
skew_y: Optional[float] = None,
clip_state: Optional[State] = None,
mask_state: Optional[State] = None,
clip_states: Optional[List[State]] = None,
mask_states: Optional[List[State]] = None,
filter: Optional[Filter] = None,
NON_INTERPOLATABLE_FIELDS: frozenset[str] = frozenset({'DEFAULT_EASING', 'NON_INTERPOLATABLE_FIELDS'}),
states: Optional[List[State]] = None
) -> None
Methods
get_renderer_class
get_renderer_class()
Get the renderer class for this state.
Returns
The renderer class for this state, or None if not registered
get_vertex_renderer_class
get_vertex_renderer_class()
Get the vertex renderer class for morphing transitions.
is_angle
is_angle(field: field)
need_morph
need_morph(state)
with_x
with_x(x: float) -> State
with_y
with_y(y: float) -> State
Properties
xy