On this page

SVGMobject

from noon import SVGMobject

Source-derived class. Host availability is not inferred from this listing. See reference scope.

Bases: _compat.VGroup. Declared members follow; inherited and dynamically attached members are not expanded.

Static SVG imported as one retained semantic family.

Direct filesystem paths, :meth:`from_string`, inherited ``svg_default`` paint
and ordinary constructor paint overrides are supported in this partial slice.
Browser URL/blob loading, non-default path-string tuning, cache-policy
compatibility and construction after live execution starts remain explicit gaps.

SVGMobject.__init__

SVGMobject.__init__(self, file_name: object | None=None, *, should_center: bool=True, height: float | None=2, width: float | None=None, color: object | None=None, opacity: float | None=None, fill_color: object | None=None, fill_opacity: float | None=None, stroke_color: object | None=None, stroke_opacity: float | None=None, stroke_width: float | None=None, svg_default: dict | None=None, path_string_config: dict | None=None, use_svg_cache: bool=True, _svg_string: str | None=None, **kwargs: Any) -> None
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
file_namepositional or keywordobject | NoneNone
should_centerkeyword-onlyboolTrue
heightkeyword-onlyfloat | None2
widthkeyword-onlyfloat | NoneNone
colorkeyword-onlyobject | NoneNone
opacitykeyword-onlyfloat | NoneNone
fill_colorkeyword-onlyobject | NoneNone
fill_opacitykeyword-onlyfloat | NoneNone
stroke_colorkeyword-onlyobject | NoneNone
stroke_opacitykeyword-onlyfloat | NoneNone
stroke_widthkeyword-onlyfloat | NoneNone
svg_defaultkeyword-onlydict | NoneNone
path_string_configkeyword-onlydict | NoneNone
use_svg_cachekeyword-onlyboolTrue
_svg_stringkeyword-onlystr | NoneNone
kwargs**kwargsAnyNo default

Return annotation: None

No docstring declared here. Consult the source and host reference.

Source declaration

SVGMobject.from_string

SVGMobject.from_string(cls, source: str, **kwargs: Any) -> 'SVGMobject'

Decorators: classmethod

ParameterKindAnnotationDefault
clspositional or keywordNot annotatedNo default
sourcepositional or keywordstrNo default
kwargs**kwargsAnyNo default

Return annotation: 'SVGMobject'

Import SVG text without introducing a frontend geometry model.

Source declaration