sesaparcours
    Preparing search index...

    Fake class which should be extended to avoid inheriting static properties

    Hierarchy (View Summary)

    Index

    Constructors

    • Class for a marker move event.

      Parameters

      • Optionalopt_block: Blockly.Block

        The affected block. Null if current node is of type workspace. Undefined for a blank event.

      • OptionalisCursor: boolean

        Whether this is a cursor event. Undefined for a blank event.

      • Optionalopt_oldNode: Blockly.ASTNode

        The old node the marker used to be on. Undefined for a blank event.

      • Optionalopt_newNode: Blockly.ASTNode

        The new node the marker is now on. Undefined for a blank event.

      Returns MarkerMove__Class

    Properties

    blockId: string

    The workspace identifier for this event.

    group: string

    The event group id for the group this event belongs to. Groups define events that should be treated as an single action from the user's perspective, and should be undone together.

    isBlank: boolean

    Whether or not the event is blank (to be populated by fromJson).

    isCursor: any

    Whether this is a cursor event.

    isUiEvent: boolean

    Whether or not the event is a UI event.

    newNode: any

    The new node the marker is now on.

    oldNode: any

    The old node the marker used to be on.

    recordUndo: boolean

    Sets whether the event should be added to the undo stack.

    type: string

    Type of this event.

    workspaceId: string

    The workspace identifier for this event.

    Methods

    • Decode the JSON event.

      Parameters

      • json: Object

        JSON representation.

      Returns void

    • Does this event record any change of state?

      Returns boolean

      True if null, false if something changed.

    • Run an event.

      Parameters

      • _forward: boolean

        True if run forward, false if run backward (undo).

      Returns void

    • Encode the event as JSON.

      Returns Object

      JSON representation.