import * as i0 from '@angular/core'; import { NgZone, EventEmitter, ElementRef, SimpleChanges } from '@angular/core'; import * as go from 'gojs'; declare class DiagramComponent { zone: NgZone; /** * Diagram initialization function. Returns a go.Diagram. * Do not initialize model data in this function. */ initDiagram: () => go.Diagram; /** Node data for diagram */ nodeDataArray: Array; /** Link data for diagram. Optional. */ linkDataArray: Array; /** Model data for diagram. Optional. */ modelData: go.ObjectData; /** Diagram div class name. Use this name to style your diagram in CSS. */ divClassName: string; /** Model changed listener function for diagram */ modelChangedListener: ((e: go.ChangedEvent) => void) | null; /** Whether or not to skip merging app data with GoJS model data (set to true if update is coming from GoJS, false if coming from app-level, usually) */ skipsDiagramUpdate: boolean; /** Event emitter -- fires when diagram model changes. Capture this emitted event in parent component */ modelChange: EventEmitter; /** The DIV element holding the Diagram */ diagramDiv: ElementRef; /** The Diagram itself */ diagram: go.Diagram; /** An internal flag used to tell ngOnChanges to treat the next sync operation as a Diagram initialization */ private wasCleared; constructor(zone: NgZone); /** * Initializes diagram / model after view init */ ngAfterViewInit(): void; /** * If a change has occurred on an @Input property, merge the app-level changes with GoJS */ ngOnChanges(): void; /** * Clears the diagram of all nodes, links, and model data. * Also clears the UndoManager history and clipboard. * The next state update will be treated as diagram initialization. */ clear(): void; /** * Set this.diagram.div to null, removing all event listeners */ ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class PaletteComponent { zone: NgZone; /** * Palette initialization function. Returns a go.Palette. * Do not initialize model data in this function. */ initPalette: () => go.Palette; /** Node data for palette */ nodeDataArray: Array; /** Link data for palette. Optional. */ linkDataArray: Array; /** Model data for palette. Optional. */ modelData: go.ObjectData; /** Palette div class name. Use this name to style your palette in CSS */ divClassName: string; /** Event emitter -- fires when palette model changes. Capture this emitted event in parent component */ modelChange: EventEmitter; /** The DIV element holding the Palette */ paletteDiv: ElementRef; /** The Palette itself */ palette: go.Palette | null; constructor(zone: NgZone); /** * Initialize Palette after view init */ ngAfterViewInit(): void; /** * If a change has occured on an @Input property, merge the app-level changes with GoJS */ ngOnChanges(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class OverviewComponent { zone: NgZone; /** The function used to initialize and return the Overview */ initOverview: () => go.Overview; /** The div class name that holds the Overview. Use this name to style your Overview in CSS. */ divClassName: string; /** The Diagram to observe with the Overview */ observedDiagram: go.Diagram; overviewDiv: ElementRef; /** The Overview itself */ overview: go.Overview | null; constructor(zone: NgZone); /** * Initialize the overview */ ngAfterViewInit(): void; /** * Only update when the observed diagram changes * @param changes */ ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class DataSyncService { /** * Sync a node data array with a set of changes * @param changes The set of changes to the GoJS model * @param nodeData The node data array to merge these changes with * @param model Required if you have defined your model.nodeKeyProperty to be something other than 'key' * @returns A node data array, merged with the changes */ static syncNodeData(changes: go.IncrementalData, nodeData: Array, model?: go.Model): go.ObjectData[]; /** * Sync a link data array with a set of changes * @param changes The set of changes to the GoJS model * @param linkData The link data array to merge these changes with * @param model Required if you have defined your model.linkKeyProperty to be something other than 'key' * @returns A link data array, merged with the changes */ static syncLinkData(changes: go.IncrementalData, linkData: Array, model?: go.GraphLinksModel): go.ObjectData[]; /** * Sync modelData with a set of changes * @param changes The set of changes to the GoJS model * @param modelData The modelData to merge these changes with * @returns A modelData object, merged with the changes */ static syncModelData(changes: go.IncrementalData, modelData: go.ObjectData): go.ObjectData; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export { DataSyncService, DiagramComponent, OverviewComponent, PaletteComponent };