Paragraph Element p

p(id, x, y, ax, ay, size, ml, mw, bl, c) {
   Text
}
  • id (optional): element ID
  • x(optional, default is 0): x coordinate of text
  • y(optional, default is 0): y coordinate of text
  • ax (optional, default is 0): horizontal alignment of text, floating point number between [0, 1]. When it is 0, it will be left aligned according to the x coordinate; When it is 1 it will be right aligned; When it is '0.5', text is centered.
  • ay (optional, default is 0): vertical alignment of text, the description is the same as above
  • size(optional, default 1): the size of the text.
  • ml(optional, default false): whether the text will be rendered in multiple lines, only valid if mw is set.
  • mw(optional): maximum text width. In single-line mode, text beyond the range will be omitted; In multi-line mode, it will be automatically wrapped.
  • bl(optional, default is true): whether to align according to the baseline when aligning vertically.
  • c(optional, default is “white”`): text color
  • Text (required): text content

The position of p is not defined by a full rectangle, but you can still get the rectangular area of p by using its id attribute.