Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • "str", the text string to display, required.
  • "x" and "y", the decimal location (x,y) of the text element, required.
  • "align", the horizontal alignment of the text element, either "left", "center" or "right". Optional, default is "left".
  • "valign", the vertical alignment of the text element, either "top", "middle" or "bottom". Optional, default is "top".
  • "localized", 0 or 1, if 1 then the "str" actually contains a key to use to fetch the value out of mxResources. Optional, default is 0, unused in draw.io.
  • "vertical", 0 or 1, if 1 the label is rendered vertically (rotated by 90 degrees). Optional, default is 0.
  • "rotation", angle in degrees (0 to 360). The angle to rotate the text by. Optional, default is 0.
  • "align-shape", 0 or 1, if 0 ignore the rotation of the shape when setting the text rotation. Optional, default is 1.
  • "placeholders", 0 or 1, if 1 placeholders of the form %name% will be replaced with their values. Optional, default is 0.

Images

<image> elements can either be external URLs, or data URIs, where supported (not in IE 7-). Attributes are:

...