manimgeo.components.multiple.args module

class manimgeo.components.multiple.args.MultipleArgs(**data)[源代码]

基类:ArgsModelBase

construct_type: Literal['Multiple']
geometry_objects: List[BaseGeometry]
model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'frozen': False}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class manimgeo.components.multiple.args.FilteredMultipleArgs(**data)[源代码]

基类:MultipleArgs

通过指定过滤器过滤,从而在保持依赖的同时构建新 MultipleComponents

construct_type: Literal['FilteredMultiple']
filter_func: Callable[[List[BaseGeometry]], List[bool]]
geometry_objects: List[BaseGeometry]
model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'frozen': False}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class manimgeo.components.multiple.args.FilteredMultipleMonoArgs(**data)[源代码]

基类:ArgsModelBase

通过指定过滤器过滤,从而在保持依赖的同时构建新 MultipleComponents

不考虑多个对象的相对关系的前提下,该构造方式相较而言更快一些

construct_type: Literal['FilteredMultipleMono']
filter_func: Callable[[BaseGeometry], bool]
geometry_objects: List[BaseGeometry]
model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'frozen': False}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class manimgeo.components.multiple.args.UnionArgs(**data)[源代码]

基类:ArgsModelBase

并集

construct_type: Literal['Union']
multiples: Sequence[MultipleComponents]
model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'frozen': False}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class manimgeo.components.multiple.args.IntersectionArgs(**data)[源代码]

基类:ArgsModelBase

交集

construct_type: Literal['Intersection']
multiples: Sequence[MultipleComponents]
model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'frozen': False}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].