R6 Class - Text Decoration Geometry
Super class
AbstractGeom -> TextDecorGeom
Public fields
textLabel string rendered in the canvas
font_sizeWorld-space height of the sprite in mm
colorCSS color string for the text (e.g.
"#ffffff")font_weightCSS font-weight integer (e.g. 400 = normal, 700 = bold)
decor_idStable ID used to identify this decoration in the viewer. Defaults to the geometry
name.typeGeometry type string used by the JavaScript engine.
clickableLogical; whether the geometry responds to mouse clicks in the viewer.
Methods
TextDecorGeom$new()
Create a new text decoration geometry.
Usage
TextDecorGeom$new(
text = "",
position = c(0, 0, 0),
name = NULL,
decor_id = NULL,
font_size = 5,
color = "#ffffff",
font_weight = 400,
layer = 1,
...
)Arguments
textCharacter string to display.
positionNumeric vector of length 3:
c(x, y, z)in world space.nameUnique geometry name. If
NULLa random ID is generated automatically.decor_idStable decoration ID visible to the Shiny proxy. Defaults to
name.font_sizeWorld-space height of the sprite in mm. Default
5.colorCSS color string. Default
"#ffffff".font_weightCSS font-weight integer. Default
400.layerCamera layer(s), 0-13 (0 = main camera only, 1 = all cameras). Default
1....Additional arguments forwarded to
AbstractGeom.