typing¶
- class janim.typing.SupportsAnim(*args, **kwargs)¶
基类:
Protocol可传入
AnimGroup的对象,需要具有__anim__方法因为可传入
AnimGroup的对象分为两种:由于
Animation对象本身就实现了__anim__方法返回自己, 所以用SupportsAnim作为它们的统称,并会被AnimGroup._get_animation_objects统一转化
- class janim.typing.SupportsTracking(*args, **kwargs)¶
基类:
Protocol定义了可直接被
Cmpt_Data所跟踪的对象类型对于没有实现这些方法的对象,使用
register_funcs()另行定义类型的这三个方法- copy() Self¶
- not_changed(other: Self) bool¶
- interpolate(other: Self, alpha: float) Self¶
- janim.typing.t_(*x: str) Any¶
提供给 janim-toolbox VS Code 插件,用于标注其中包含的字符串需要 Typst 高亮