sesaparcours
    Preparing search index...

    Fake class which should be extended to avoid inheriting static properties

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    The comment that is being moved. Will be cleared after recording the new location.

    commentId: string

    The ID of the comment this event pertains to.

    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 an event is blank.

    isUiEvent: boolean

    Whether or not the event is a UI event.

    newCoordinate_: Blockly.utils.Coordinate

    The location after the move, in workspace coordinates.

    oldCoordinate_: Blockly.utils.Coordinate

    The location before the move, in workspace coordinates.

    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

      False if something changed.

    • Record the comment's new location. Called after the move. Can only be called once.

      Returns void

    • Run a move event.

      Parameters

      • forward: boolean

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

      Returns void

    • Override the location before the move. Use this if you don't create the event until the end of the move, but you know the original location.

      Parameters

      Returns void

    • Encode the event as JSON.

      Returns Object

      JSON representation.