TextGraphic#

TextGraphic#

Constructor#

TextGraphic(text[, font_size, face_color, ...])

Create a text Graphic

Properties#

TextGraphic.axes

TextGraphic.block_events

Used to block events for a graphic and prevent recursion.

TextGraphic.deleted

used to emit an event after the graphic is deleted

TextGraphic.event_handlers

Registered event handlers.

TextGraphic.face_color

text face color

TextGraphic.font_size

"text font size

TextGraphic.name

Graphic name

TextGraphic.offset

[x, y, z]

TextGraphic.outline_color

text outline color

TextGraphic.outline_thickness

text outline thickness

TextGraphic.right_click_menu

TextGraphic.rotation

Orientation of the graphic as a quaternion

TextGraphic.supported_events

events supported by this graphic

TextGraphic.text

the text displayed

TextGraphic.visible

Whether the graphic is visible

TextGraphic.world_object

Associated pygfx WorldObject.

Methods#

TextGraphic.add_axes()

Add axes onto this Graphic

TextGraphic.add_event_handler(*args)

Register an event handler.

TextGraphic.clear_event_handlers()

clear all event handlers added to this graphic

TextGraphic.remove_event_handler(callback, ...)

remove a registered event handler

TextGraphic.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.

TextGraphic.share_property(feature)

TextGraphic.unshare_property(feature)