xkd_draw

xkd_draw(
  x = 0,
  y = 0,
  width = 100,
  height = 100,
  angle = 0L,
  strokeColor = "#000000",
  backgroundColor = "#868e96",
  fillStyle = c("solid", "hachure", "cross-hatch"),
  strokeWidth = 1L,
  strokeStyle = c("solid", "dashed", "dotted"),
  roughness = 0L,
  opacity = 100L,
  groupIds = list(),
  strokeSharpness = c("round", "sharp"),
  isDeleted = FALSE,
  boundElementIds = NA,
  points = list(list(0L, 0L), list(100, 0L)),
  lastCommittedPoint = NA,
  startBinding = NA,
  endBinding = NA,
  startArrowhead = NA,
  endArrowhead = NA,
  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

points

of glyph

lastCommittedPoint

of glyph

startBinding

of glyph

endBinding

of glyph

startArrowhead

of glyph

endArrowhead

of glyph

version

of glyph for collaboration

versionNonce

of glyph for collaboration