bundle.website.builtin.components.graphic

Graphics component foundations (base, 2D, 3D).

Submodules

Classes

GraphicBaseComponent

Base graphics component with shared typed params.

GraphicComponentParams

Shared parameters for graphics component instances.

GraphicThreeDComponent

Base class for Three.js/WebGL style 3D graphics components.

GraphicThreeDComponentParams

Shared parameters for 3D graphics components.

GraphicTwoDComponent

Base class for canvas/SVG style 2D graphics components.

GraphicTwoDComponentParams

Shared parameters for 2D graphics components.

Package Contents

class bundle.website.builtin.components.graphic.GraphicBaseComponent(/, **data: Any)

Bases: bundle.website.core.component.Component

Base graphics component with shared typed params.

params: GraphicComponentParams = None
class bundle.website.builtin.components.graphic.GraphicComponentParams(/, **data: Any)

Bases: bundle.core.data.Data

Shared parameters for graphics component instances.

graph_id: str = 'graphics'
render_mode: str = 'base'
class bundle.website.builtin.components.graphic.GraphicThreeDComponent(/, **data: Any)

Bases: bundle.website.builtin.components.graphic.base.GraphicBaseComponent

Base class for Three.js/WebGL style 3D graphics components.

params: GraphicThreeDComponentParams = None
class bundle.website.builtin.components.graphic.GraphicThreeDComponentParams(/, **data: Any)

Bases: bundle.website.builtin.components.graphic.base.GraphicComponentParams

Shared parameters for 3D graphics components.

render_mode: str = '3d'
camera_mode: str = 'orbit'
field_of_view: float = 40.0
near: float = 0.1
far: float = 100.0
class bundle.website.builtin.components.graphic.GraphicTwoDComponent(/, **data: Any)

Bases: bundle.website.builtin.components.graphic.base.GraphicBaseComponent

Base class for canvas/SVG style 2D graphics components.

params: GraphicTwoDComponentParams = None
class bundle.website.builtin.components.graphic.GraphicTwoDComponentParams(/, **data: Any)

Bases: bundle.website.builtin.components.graphic.base.GraphicComponentParams

Shared parameters for 2D graphics components.

render_mode: str = '2d'
width: int | None = None
height: int | None = None
device_pixel_ratio_cap: float = 2.0