typing¶
- class janim.typing.SupportsAnim(*args, **kwargs)¶
Bases:
ProtocolObjects that can be passed to
AnimGroupmust implement__anim__Because objects passed to
AnimGroupfall into two types:Since
Animationimplements__anim__returning itself,SupportsAnimis used as a collective name and is normalized byAnimGroup._get_animation_objects
- class janim.typing.SupportsTracking(*args, **kwargs)¶
Bases:
ProtocolDefines object types that can be directly tracked by
Cmpt_DataFor objects that do not implement these methods, use
register_funcs()to define the three methods for that type- copy() Self¶
- not_changed(other: Self) bool¶
- interpolate(other: Self, alpha: float) Self¶
- janim.typing.t_(*x: str) Any¶
Provided for the janim-toolbox VS Code extension to mark strings that need Typst highlighting