gpu-curtains
    Preparing search index...

    Interface DOMElementParams

    Parameters used to create a DOMElement

    interface DOMElementParams {
        element?: string | Element;
        priority?: number;
        onSizeChanged?: (boundingRect: DOMElementBoundingRect) => void;
        onPositionChanged?: (boundingRect: DOMElementBoundingRect) => void;
    }
    Index

    Properties

    element?: string | Element

    HTMLElement or string representing an HTMLElement selector of the element the resize observer should track

    priority?: number

    Order in which the resizeManager callback is executed

    onSizeChanged?: (boundingRect: DOMElementBoundingRect) => void

    Callback to tun when the element size changed

    onPositionChanged?: (boundingRect: DOMElementBoundingRect) => void

    Callback to tun when the element position changed