sesaparcours
    Preparing search index...
    interface IPositionable {
        getBoundingRectangle(): Blockly.utils.Rect;
        position(metrics: UiMetrics, savedPositions: Blockly.utils.Rect[]): void;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Methods

    • Returns the bounding rectangle of the UI element in pixel units relative to the Blockly injection div.

      Returns Blockly.utils.Rect

      The UI elements’s bounding box. Null if bounding box should be ignored by other UI elements.

    • Positions the element. Called when the window is resized.

      Parameters

      • metrics: UiMetrics

        The workspace metrics.

      • savedPositions: Blockly.utils.Rect[]

        List of rectangles that are already on the workspace.

      Returns void