import { Canvas } from '../../interfaces/canvas'; import { Property } from '../property/property'; import { ValueSet } from '../property/value'; import { DiagramConnectionSet } from './diagram-connection'; import { DiagramDecoratorSet } from './diagram-decorator'; import { DiagramFieldSet } from './diagram-field'; import { DiagramNodeSet } from './diagram-node'; import { DiagramObjectSet } from './diagram-object'; import { DiagramPortSet } from './diagram-port'; import { DiagramSectionSet } from './diagram-section'; /** * Stores the data of a diagram. * Represents the state of the diagram. * @public */ export declare class DiagramModel { /** * The canvas where this model's data is being rendered. * @private */ readonly canvas?: Canvas; /** * Nodes of this model. * @public * @see DiagramNode */ readonly nodes: DiagramNodeSet; /** * Sections of this model. * @public * @see DiagramSection */ readonly sections: DiagramSectionSet; /** * Ports of this model. * @public * @see DiagramPort */ readonly ports: DiagramPortSet; /** * Connections of this model. * @public * @see DiagramConnection */ readonly connections: DiagramConnectionSet; /** * Fields of this model. * @public * @see DiagramField */ readonly fields: DiagramFieldSet; /** * Objects of this model. * @public * @see DiagramObject */ readonly objects: DiagramObjectSet; /** * Decorators of this model. * @public * @see DiagramDecorator */ readonly decorators: DiagramDecoratorSet; /** * Identifier of this diagram. Set by the consumer of the diagram. * @public */ id: string | undefined; /** * Name of this diagram. Set by the consumer of the diagram. * @public */ name: string; /** * Description of this diagram. Set by the consumer of the diagram. * @public */ description?: string; /** * Type of this diagram. Set by the consumer of the diagram. * @public */ type: string; /** * Date of creation of this diagram. Set at the creation of the diagram. * @public */ createdAt: Date; /** * Date of last changes of this diagram. Set by the consumer of the diagram. * @public */ updatedAt: Date; /** * Additional properties of this diagram. * @public */ valueSet: ValueSet; /** * The last-seen logical clock value, used to generate CollabTimestamps. * @public */ logicalClock: number; constructor(canvas: Canvas | undefined, id: string | undefined, name: string, description: string | undefined, type: string, properties?: Property[]); /** * Deletes everything in this diagram. * @public */ clear(): void; }