GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • @maxgraph/core

This view

  • Original page
  • New address

GeezerVison is showing maxgraph.github.io — SelectionChange | @maxgraph/core

  • SelectionChange

Class SelectionChange

Action to add and remove cells to/from the selection of a GraphSelectionModel.

Implements

  • UndoableChange
  • Defined in view/undoable-change/SelectionChange.ts:29
Index

Constructors

constructor

Properties

added graph removed

Methods

execute

Constructors

constructor

  • new SelectionChange(
        graph: AbstractGraph,
        added?: Cell[],
        removed?: Cell[],
    ): SelectionChange

    Parameters

    • graph: AbstractGraph
    • added: Cell[] = []
    • removed: Cell[] = []

    Returns SelectionChange

    • Defined in view/undoable-change/SelectionChange.ts:30

Properties

added

added: Cell[]
  • Defined in view/undoable-change/SelectionChange.ts:38

graph

graph: AbstractGraph
  • Defined in view/undoable-change/SelectionChange.ts:36

removed

removed: Cell[]
  • Defined in view/undoable-change/SelectionChange.ts:40

Methods

execute

  • execute(): void

    Applies the change to the selection model: calls GraphSelectionModel.cellRemoved for each cell in removed, then GraphSelectionModel.cellAdded for each cell in added. Swaps added and removed so a subsequent call undoes the change, then fires InternalEvent.CHANGE on the selection model.

    WARN: because of the swap, the added and removed properties of the fired event refer to the post-swap arrays: the event's added contains the cells just removed from the selection, and vice-versa. This naming is preserved for historical reasons.

    Returns void

    Implementation of UndoableChange.execute

    • Defined in view/undoable-change/SelectionChange.ts:52

Settings

Member Visibility
  • Protected
  • Inherited
Theme

On This Page

Constructors
constructor
Properties
addedgraphremoved
Methods
execute
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.