sesaparcours
    Preparing search index...
    interface IDeleteArea {
        getClientRect(): Blockly.utils.Rect;
        onDragEnter(dragElement: IDraggable): void;
        onDragExit(dragElement: IDraggable): void;
        onDragOver(dragElement: IDraggable): void;
        onDrop(dragElement: IDraggable): void;
        shouldPreventMove(dragElement: IDraggable): boolean;
        wouldDelete(element: IDraggable, couldConnect: boolean): boolean;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Methods

    • Returns the bounding rectangle of the drag target area in pixel units relative to viewport.

      Returns Blockly.utils.Rect

      The component's bounding box. Null if drag target area should be ignored.

    • Handles when a cursor with a block or bubble enters this drag target.

      Parameters

      • dragElement: IDraggable

        The block or bubble currently being dragged.

      Returns void

    • Handles when a cursor with a block or bubble exits this drag target.

      Parameters

      • dragElement: IDraggable

        The block or bubble currently being dragged.

      Returns void

    • Handles when a cursor with a block or bubble is dragged over this drag target.

      Parameters

      • dragElement: IDraggable

        The block or bubble currently being dragged.

      Returns void

    • Handles when a block or bubble is dropped on this component. Should not handle delete here.

      Parameters

      • dragElement: IDraggable

        The block or bubble currently being dragged.

      Returns void

    • Returns whether the provided block or bubble should not be moved after being dropped on this component. If true, the element will return to where it was when the drag started.

      Parameters

      • dragElement: IDraggable

        The block or bubble currently being dragged.

      Returns boolean

      Whether the block or bubble provided should be returned to drag start.

    • Returns whether the provided block or bubble would be deleted if dropped on this area. This method should check if the element is deletable and is always called before onDragEnter/onDragOver/onDragExit.

      Parameters

      • element: IDraggable

        The block or bubble currently being dragged.

      • couldConnect: boolean

        Whether the element could could connect to another.

      Returns boolean

      Whether the element provided would be deleted if dropped on this area.