CircleTextState

State class for text elements

Constructor

CircleTextState(
    pos: Optional[Point2D] = None,
    scale: Optional[float] = None,
    opacity: Optional[float] = None,
    rotation: float = 0,
    skew_x: Optional[float] = None,
    skew_y: Optional[float] = None,
    clip_state: Optional[State] = None,
    mask_state: Optional[State] = None,
    clip_states: Optional[List[State]] = None,
    mask_states: Optional[List[State]] = None,
    filter: Optional[Filter] = None,
    NON_INTERPOLATABLE_FIELDS: frozenset[str] = frozenset({'DEFAULT_EASING', 'NON_INTERPOLATABLE_FIELDS'}),
    fill_color: Optional[Color] = Color.NONE,
    fill_opacity: float = 1,
    fill_gradient: Optional[Gradient] = None,
    fill_pattern: Optional[Pattern] = None,
    stroke_color: Optional[Color] = Color.NONE,
    stroke_opacity: float = 1,
    stroke_width: float = 1,
    stroke_gradient: Optional[Gradient] = None,
    stroke_pattern: Optional[Pattern] = None,
    font_size: float = 16,
    letter_spacing: float = 0,
    text: Union[str, List[str]] = '',
    font_family: str = 'Arial',
    text_align: str = 'middle',
    font_weight: str = 'normal',
    text_anchor: str = 'middle',
    dominant_baseline: str = 'central',
    radius: float = 100,
    angles: Optional[List[float]] = None,
    text_facing_inward: bool = True
) -> None

Methods

get_renderer_class

get_renderer_class()

Get the renderer class for this state.

Returns

The renderer class for this state, or None if not registered

get_vertex_renderer_class

get_vertex_renderer_class()

Get the vertex renderer class for morphing transitions.

is_angle

is_angle(field: field)

need_morph

need_morph(state)

with_x

with_x(x: float) -> State

with_y

with_y(y: float) -> State

Properties

x
y