sesaparcours
    Preparing search index...

    Fake class which should be extended to avoid inheriting static properties

    Hierarchy (View Summary)

    Index

    Constructors

    • Abstract class for a component with custom behaviour when a block or bubble is dragged over or dropped on top of it.

      Returns DragTarget

    Methods

    • Returns the bounding rectangle of the drag target area in pixel units relative to the Blockly injection div.

      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.