sesaparcours
    Preparing search index...

    Fake class which should be extended to avoid inheriting static properties

    Hierarchy (View Summary)

    Index

    Constructors

    • Class for a viewport change event.

      Parameters

      • Optionalopt_top: number

        Top-edge of the visible portion of the workspace, relative to the workspace origin. Undefined for a blank event.

      • Optionalopt_left: number

        Left-edge of the visible portion of the workspace, relative to the workspace origin. Undefined for a blank event.

      • Optionalopt_scale: number

        The scale of the workspace. Undefined for a blank event.

      • Optionalopt_workspaceId: string

        The workspace identifier for this event. Undefined for a blank event.

      • Optionalopt_oldScale: number

        The old scale of the workspace. Undefined for a blank event.

      Returns ViewportChange

    Properties

    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).

    isUiEvent: boolean

    Whether or not the event is a UI event.

    oldScale: any

    The old scale of the workspace.

    recordUndo: boolean

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

    scale: any

    The scale of the workspace.

    type: string

    Type of this event.

    viewLeft: any

    Left-edge of the visible portion of the workspace, relative to the workspace origin.

    viewTop: any

    Top-edge of the visible portion of the workspace, relative to the workspace origin.

    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.