UNPKG

@maxgraph/core

Version:

maxGraph is a fully client side JavaScript diagramming library that uses SVG and HTML for rendering.

21 lines (20 loc) 648 B
import Cell from '../cell/Cell.js'; import GraphDataModel from '../GraphDataModel.js'; import type { UndoableChange } from '../../types.js'; /** * Action to change a cell's collapsed state in a model. * * @category Change */ declare class CollapseChange implements UndoableChange { model: GraphDataModel; cell: Cell; collapsed: boolean; previous: boolean; constructor(model: GraphDataModel, cell: Cell, collapsed: boolean); /** * Changes the collapsed state of {@link cell} to {@link previous} using {@link GraphDataModel.collapsedStateForCellChanged}. */ execute(): void; } export default CollapseChange;