@joint/react
    Preparing search index...

    Interface MeasureElementOptions

    Options for useMeasureElement, controlling how the measured DOM size is turned into the graph element's size.

    interface MeasureElementOptions {
        transform?: TransformElementLayout;
    }
    Index

    Properties

    Properties

    Adjusts the measured size before it is written to the graph element, e.g. to add padding or reserve space for a header. Receives the measured dimensions plus the element's current layout (TransformElementLayoutParams) and returns the width/height (and optionally x/y) to apply.

    When omitted, the measured width/height are applied to the element unchanged.

    const transform = ({ width, height }) => ({
    width: width + 20, // 10px padding on each side
    height: height + 20,
    });
    useMeasureElement(nodeRef, { transform });