sesaparcours
    Preparing search index...

    Fake class which should be extended to avoid inheriting static properties

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Bind gesture events.

      Parameters

      • e: Event

        A mouse down or touch start event.

      Returns void

    • Cancel an in-progress gesture. If a workspace or block drag is in progress, end the drag at the most recent location.

      Returns void

    • Sever all links from this object.

      Returns void

    • Start a gesture: update the workspace to indicate that a gesture is in progress and bind mousemove and mouseup handlers.

      Parameters

      • e: Event

        A mouse down or touch start event.

      Returns void

    • Gets the current dragger if an item is being dragged. Null if nothing is being dragged.

      Returns any

      The dragger that is currently in use or null if no drag is in progress.

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

      Returns Blockly.BlockSvg[]

      A possibly empty list of insertion marker blocks.

    • Handle a mousedown/touchstart event on a block.

      Parameters

      Returns void

    • Handle a mousedown/touchstart event on a bubble.

      Parameters

      • e: Event

        A mouse down or touch start event.

      • bubble: IBubble

        The bubble the event hit.

      Returns void

    • Handle a mousedown/touchstart event on a flyout.

      Parameters

      • e: Event

        A mouse down or touch start event.

      • flyout: IFlyout

        The flyout the event hit.

      Returns void

    • Handle a mouse move or touch move event.

      Parameters

      • e: Event

        A mouse move or touch move event.

      Returns void

    • Handle a real or faked right-click event by showing a context menu.

      Parameters

      • e: Event

        A mouse move or touch move event.

      Returns void

    • Handle a mouse up or touch end event.

      Parameters

      • e: Event

        A mouse up or touch end event.

      Returns void

    • Handle a mousedown/touchstart event on a workspace.

      Parameters

      • e: Event

        A mouse down or touch start event.

      • ws: WorkspaceSvg

        The workspace the event hit.

      Returns void

    • Whether this gesture has already been started. In theory every mouse down has a corresponding mouse up, but in reality it is possible to lose a mouse up, leaving an in-process gesture hanging.

      Returns boolean

      Whether this gesture was a click on a workspace.

    • Whether this gesture is a drag of either a workspace or block. This function is called externally to block actions that cannot be taken mid-drag (e.g. using the keyboard to delete the selected blocks).

      Returns boolean

      True if this gesture is a drag of a workspace or block.

    • Record the block that a gesture started on, and set the target block appropriately.

      Parameters

      Returns void

    • Record the bubble that a gesture started on

      Parameters

      • bubble: IBubble

        The bubble the gesture started on.

      Returns void

    • Record the field that a gesture started on.

      Parameters

      Returns void