sesaparcours
    Preparing search index...
    interface IBlockDragger {
        drag(e: Event, currentDragDeltaXY: Blockly.utils.Coordinate): void;
        endDrag(e: Event, currentDragDeltaXY: Blockly.utils.Coordinate): void;
        getInsertionMarkers(): Blockly.BlockSvg[];
        startDrag(
            currentDragDeltaXY: Blockly.utils.Coordinate,
            healStack: boolean,
        ): void;
    }

    Implemented by

    Index

    Methods

    • Execute a step of block dragging, based on the given event. Update the display accordingly.

      Parameters

      • e: Event

        The most recent move event.

      • currentDragDeltaXY: Blockly.utils.Coordinate

        How far the pointer has moved from the position at the start of the drag, in pixel units.

      Returns void

    • Finish a block drag and put the block back on the workspace.

      Parameters

      • e: Event

        The mouseup/touchend event.

      • currentDragDeltaXY: Blockly.utils.Coordinate

        How far the pointer has moved from the position at the start of the drag, in pixel units.

      Returns void

    • Get a list of the insertion markers that currently exist. Drags have 0, 1, or 2 insertion markers.

      Returns Blockly.BlockSvg[]

      A possibly empty list of insertion marker blocks.

    • Start dragging a block. This includes moving it to the drag surface.

      Parameters

      • currentDragDeltaXY: Blockly.utils.Coordinate

        How far the pointer has moved from the position at mouse down, in pixel units.

      • healStack: boolean

        Whether or not to heal the stack after disconnecting.

      Returns void