Use a zfont to add text to an illustration
zfont_text(rdog = NULL, id = NULL, zfont, text, fontSize, textAlign = "left", textBaseline = "bottom", color = "#333", stroke = 1, fill = TRUE, closed = TRUE, visible = TRUE, backface = TRUE, front = c(z = 1), addTo = NULL, translate = c(x = 0, y = 0, z = 0), rotate = c(x = 0, y = 0, z = 0), scale = c(x = 1, y = 1, z = 1))
rdog | rdog object to add the text to. Can be a character if called from a code block in shiny |
---|---|
id | id of the shape. If NULL, a random id will be assigned |
zfont | id of the zfont to be used |
fontSize | font size of the text. Measured in pixels |
textAlign | Horizontal text alignment, equivalent to the CSS text-align property. This can be either 'left', 'center' or 'right' |
textBaseline | Vertical text alignment, equivalent to the HTML5 canvas' textBaseline property. This can be either 'top', 'middle' or 'bottom' |
color | Color of the shape. A color string. |
stroke | Width of the shape line. 0 will make it invisible |
fill | Logical. Fill the inner shape area |
closed | Logical. Should the first point and the last be connected |
visible | Logical. Is the shape visible. |
backface | Logical. Should backface be visible or a color string to set a different color |
front | Determine where the front of the shape is to decide rendering backface color. A vector with named x, y, z elements. |
addTo | Id of the parent object. If an rdog object is piped and addTo is set to NULL, the default parent will be the illustration itself. |
translate | Position relative to the origin. Origin point is defined based
on |
rotate | Set rotation. Unit is radians. Use with |
scale | Scale dimensons. Can be an unnamed integer or a vector with named x, y ,z elements |