import { Point } from '../../util/canvas-util'; import { DiagramElement, DiagramElementSet } from './diagram-element'; import { DiagramModel } from './diagram-model'; /** * A foreign object which is inserted with arbitrary SVG code into a diagram. * Diagram objects are not serialized with other diagram elements. * @public */ export declare class DiagramObject extends DiagramElement { /** * Coordinates of this object. * @public */ coords: Point; /** * Dimension of this object along the x axis. * @public */ width: number; /** * Dimension of this object along the y axis. * @public */ height: number; priority: number; svg: string; constructor(model: DiagramModel, coords: Point, width: number, height: number, priority: number, svg: string, id: string); get removed(): boolean; updateInView(): void; raise(): void; /** * Change the coordinates of this object to the given coordinates. * @public * @param coords A point in the diagram. */ move(coords: Point): void; getPriority(): number; } export declare class DiagramObjectSet extends DiagramElementSet { #private; /** * Instance a set of objects for the given model. This method is used internally. * @private */ constructor(model: DiagramModel); /** * Instance a new object and add it to this set. * @public * @param coords The coordinates of the top left corner of the object in the diagram. * @param width The dimension of the object along the x axis. * @param height The dimension of the object along the y axis. * @param priority The priority of the object. Used when filtering by priority. * @param svg The SVG contents of the object. * @param id The id of the object. Cannot be an empty string. * @returns The instanced object. */ new(coords: Point, width: number, height: number, priority: number, svg: string, id: string): DiagramObject; remove(id: string): void; }