sesaparcours
    Preparing search index...

    Fake class which should be extended to avoid inheriting static properties

    Hierarchy (View Summary)

    Index

    Constructors

    • Class for a bubble dragger. It moves things on the bubble canvas around the workspace when they are being dragged by a mouse or touch. These can be block comments, mutators, warnings, or workspace comments.

      Parameters

      • bubble: IBubble

        The item on the bubble canvas to drag.

      • workspace: WorkspaceSvg

        The workspace to drag on.

      Returns BubbleDragger__Class

    Methods

    • Sever all links from this object.

      Returns void

    • Execute a step of bubble 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 bubble drag and put the bubble 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

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

      Returns void