The element's measurement, passed to a TransformElementLayout callback.
Carries the element's current x, y, and angle together with the freshly
measured width and height, plus the underlying model and cell id.
The element's measurement, passed to a TransformElementLayout callback.
Carries the element's current x, y, and angle together with the freshly
measured width and height, plus the underlying model and cell id.
Readonlyangle: numberReadonlyheight: numberReadonlyid: IDId of the cell being measured.
Readonlymodel: ElementThe JointJS dia.Element instance being measured.
Readonlywidth: numberReadonlyx: numberReadonlyy: number
Adjusts a measured element layout before it is written to the graph. Receives the element's current geometry plus its newly measured size, and returns the
width/height(and optionallyx/y) to apply — use it to clamp sizes, snap to a grid, or reposition while auto-sizing. Pass it via thetransformoption of useMeasureElement.