Paragraph element p
js
p(id, x, y, ax, ay, size, ml, mw, bl, c) {
Text
}id(optional): element IDx(optional, default 0): text xy(optional, default 0): text yax(optional, default 0): horizontal alignment in [0,1]; 0 = left at x, 1 = right, 0.5 = centeray(optional, default 0): vertical alignment, same ideasize(optional, default 1): text sizeml(optional, default false): multi-line; only meaningful ifmwis setmw(optional): max width; in single-line mode text is clipped; in multi-line it wrapsbl(optional, default true): use baseline for vertical alignmentc(optional, default"white"): text colorText(required): content
pposition is not defined by a full Rect, but you can still use the element’sidto get its Rect.