xkd_rectangle

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

version

of glyph for collaboration

versionNonce

of glyph for collaboration