sesaparcours
    Preparing search index...
    • Returns a position Rect based on a starting position that is bumped so that it doesn't intersect with any of the provided savedPositions. This method does not check that the bumped position is still within bounds.

      Parameters

      • startRect: Blockly.utils.Rect

        The starting position to use.

      • margin: number

        The margin to use between elements when bumping.

      • bumpDirection: bumpDirection

        The direction to bump if there is a collision with an existing UI element.

      • savedPositions: Blockly.utils.Rect[]

        List of rectangles that represent the positions of UI elements already placed.

      Returns Blockly.utils.Rect

      The suggested position rectangle.