xkd_text: xkd_text

View source: R/elements.R

xkd_textR Documentation

xkd_text

Description

xkd_text

Usage

xkd_text(
  x = 0,
  y = 0,
  width = 100,
  height = 100,
  angle = 0,
  strokeColor = "#000000",
  backgroundColor = "#868e96",
  fillStyle = "solid",
  strokeWidth = 2L,
  strokeStyle = "solid",
  roughness = 0L,
  opacity = 100L,
  groupIds = list(),
  strokeSharpness = c("sharp", "round"),
  isDeleted = FALSE,
  boundElementIds = NA,
  text = "text",
  fontSize = 36L,
  fontFamily = 1L,
  textAlign = "left",
  verticalAlign = "top",
  baseline = 32L,
  version = 1,
  versionNonce = 12345
)

Arguments

x

x position of glyph in px

y

y position of glyph in px

width

glyph width in px

height

glyph height in px

angle

in radians

strokeColor

HTML colour code

backgroundColor

HTML colour code

fillStyle

"solid" or "hachure" or "cross-hatch"

strokeWidth

1 or 2 or 4

strokeStyle

"solid" or "dashed" or "dotted"

roughness

degree of wiggliness, 0 or 1 or 2

opacity

0 to 100

groupIds

list of strings indicating groupings

strokeSharpness

"sharp" or "round"

isDeleted

tag for collaboration

boundElementIds

list of IDs used for connectors

text

text string

fontSize

in pts

fontFamily

1, 2, 3 (FG_Virgil,Cascadia,?)

textAlign

"left", "center", "right"

verticalAlign

"bottom", "center", "top"

baseline

offset in pts?

version

of glyph for collaboration

versionNonce

of glyph for collaboration


baptiste/minixcali documentation built on April 4, 2024, 2:10 a.m.