sesaparcours
    Preparing search index...

    Fake class which should be extended to avoid inheriting static properties

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Bind gesture events. Overriding the gesture definition of this function, binding the same functions for onMoveWrapper_ and onUpWrapper_ but passing opt_noCaptureIdentifier. In addition, binding a second mouse down event to detect multi-touch 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, touch start or pointer down 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.

    • Helper function returning the current touch point coordinate.

      Parameters

      • e: Event

        A touch or pointer event.

      Returns Blockly.utils.Coordinate

      The current touch point coordinate

    • 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, touch move, or pointer move event.

      Parameters

      • e: Event

        A mouse move, touch move, or pointer 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 down, touch start, or pointer down event.

      Parameters

      • e: Event

        A mouse down, touch start, or pointer down event.

      Returns void

    • Handle a touch end or pointer end event and end the gesture.

      Parameters

      • e: Event

        A touch end, or pointer end event.

      Returns void

    • Handle a touch move or pointer move event and zoom in/out if two pointers are on the screen.

      Parameters

      • e: Event

        A touch move, or pointer move event.

      Returns void

    • Handle a touch start or pointer down event and keep track of current pointers.

      Parameters

      • e: Event

        A touch start, or pointer down event.

      Returns void

    • Handle a mouse up, touch end, or pointer up event.

      Parameters

      • e: Event

        A mouse up, touch end, or pointer up 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.

    • Whether this gesture is part of a multi-touch gesture.

      Returns boolean

      Whether this gesture is part of a multi-touch gesture.

    • 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