webcface.temporal_component module
- class webcface.temporal_component.TemporalComponent(view_type: int = 0, canvas2d_type: int = 0, canvas3d_type: int = 0, id: str | None = None, text: str = '', on_click: FieldBase | Callable | None = None, text_color: int | None = None, bg_color: int | None = None, on_change: Func | Callable | None = None, bind: InputRef | None = None, min: SupportsFloat | None = None, max: SupportsFloat | None = None, step: SupportsFloat | None = None, option: Sequence[SupportsFloat | bool | str] | None = None, init: SupportsFloat | bool | str | None = None, origin: Point | Sequence[SupportsFloat] | Transform | Rotation | Tuple[Point | Sequence[SupportsFloat], Rotation | SupportsFloat] | None = None, color: int | None = None, fill: int | None = None, stroke_width: SupportsFloat | None = None, text_size: SupportsFloat | None = None, geometry: Geometry | None = None, angles: Dict[str, SupportsFloat] | None = None)[source]
Bases:
object
- property id: str
- lock_tmp(data: ClientData, data_type: str, field_name: str, id: str) TemporalComponent [source]
on_clickをFuncオブジェクトにlockする
- to_canvas2d() Canvas2DComponentBase [source]
- to_canvas3d() Canvas3DComponentBase [source]
- to_view() ViewComponentBase [source]