import { Canvas } from '../../interfaces/canvas'; import { Point } from '../../util/canvas-util'; import { DiagramElement, DiagramElementSet } from '../model/diagram-element'; import { DiagramModel } from '../model/diagram-model'; import { ValueSet } from '../property/value'; /** * Text to display by default as the title of the property editor when editing the properties of a diagram's value set. * @private * @see PropertyEditorComponent * @see ValueSet */ export declare const DIAGRAM_PROPERTIES_DEFAULT_TEXT = "Diagram properties"; /** * Stores the functionality regarding the user highlight of a diagram canvas. * @public * @see DiagramCanvas */ export declare class DiagramUserSelection extends DiagramElementSet { #private; /** * Constructs a user selection object. * @public * @param canvas A canvas. */ constructor(canvas: Canvas, diagramPropertiesText: string | undefined); add(element: DiagramElement): void; remove(id: string): void; /** * If the given element is not in the user selection, add it to the user selection. * Otherwise, remove it from the user selection. * @public * @param element A diagram element. */ toggle(element: DiagramElement): void; clear(): void; /** * Moves the seelction by the given change in coordinates. * @public * @param delta A change in coordinates. */ move(delta: Point): void; /** * Removes everything in the user selection from the model. * @public */ removeFromModel(): void; /** * Copies everything in the user selection to the clipboard. * @public */ copyToClipboard(): void; /** * Copies everything in the user selection to the clipboard and then removes it from the model. * @public */ cutToClipboard(): void; /** * Pastes everything in the clipboard to the model. * @public */ pasteFromClipboard(coords?: Point): void; /** * Opens the value set of a diagram model or a diagram element in the property editor. * @public * @param selection A diagram model or a diagram element with a value set. * @param makeUpdateValuesAction Whether the method should create an UpdateValuesAction. * @see PropertyEditor * @see UpdateValuesAction */ openInPropertyEditor(selection?: { valueSet: ValueSet; } & (DiagramElement | DiagramModel), makeUpdateValuesAction?: boolean): void; }