import { NgModule , ValueProvider } from '@angular/core' ; import { CommonModule } from '@angular/common' ; import { LayerDirective , LayersDirective } from './layers.directive' ; import { CustomCursorDirective , CustomCursorsDirective } from './customcursor.directive' ; import { ConnectorFixedUserHandleDirective , ConnectorFixedUserHandlesDirective } from './connector-fixeduserhandle.directive' ; import { ConnectorAnnotationDirective , ConnectorAnnotationsDirective } from './connector-annotation.directive' ; import { ConnectorDirective , ConnectorsDirective } from './connectors.directive' ; import { NodeFixedUserHandleDirective , NodeFixedUserHandlesDirective } from './node-fixeduserhandle.directive' ; import { NodeAnnotationDirective , NodeAnnotationsDirective } from './node-annotation.directive' ; import { PortDirective , PortsDirective } from './ports.directive' ; import { NodeDirective , NodesDirective } from './nodes.directive' ; import { DiagramComponent } from './diagram.component' ; import { DiagramModule } from './diagram.module' ; import { HierarchicalTree , MindMap , RadialTree , ComplexHierarchicalTree , DataBinding , Snapping , PrintAndExport , BpmnDiagrams , SymmetricLayout , ConnectorBridging , UndoRedo , LayoutAnimation , DiagramContextMenu , LineRouting , ConnectorEditing , BlazorTooltip , LineDistribution } from '@syncfusion/ej2-diagrams' ; export const HierarchicalTreeService = { provide : 'DiagramsHierarchicalTree' , useValue : HierarchicalTree } ; export const MindMapService = { provide : 'DiagramsMindMap' , useValue : MindMap } ; export const RadialTreeService = { provide : 'DiagramsRadialTree' , useValue : RadialTree } ; export const ComplexHierarchicalTreeService = { provide : 'DiagramsComplexHierarchicalTree' , useValue : ComplexHierarchicalTree } ; export const DataBindingService = { provide : 'DiagramsDataBinding' , useValue : DataBinding } ; export const SnappingService = { provide : 'DiagramsSnapping' , useValue : Snapping } ; export const PrintAndExportService = { provide : 'DiagramsPrintAndExport' , useValue : PrintAndExport } ; export const BpmnDiagramsService = { provide : 'DiagramsBpmnDiagrams' , useValue : BpmnDiagrams } ; export const SymmetricLayoutService = { provide : 'DiagramsSymmetricLayout' , useValue : SymmetricLayout } ; export const ConnectorBridgingService = { provide : 'DiagramsConnectorBridging' , useValue : ConnectorBridging } ; export const UndoRedoService = { provide : 'DiagramsUndoRedo' , useValue : UndoRedo } ; export const LayoutAnimationService = { provide : 'DiagramsLayoutAnimation' , useValue : LayoutAnimation } ; export const DiagramContextMenuService = { provide : 'DiagramsDiagramContextMenu' , useValue : DiagramContextMenu } ; export const LineRoutingService = { provide : 'DiagramsLineRouting' , useValue : LineRouting } ; export const ConnectorEditingService = { provide : 'DiagramsConnectorEditing' , useValue : ConnectorEditing } ; export const BlazorTooltipService = { provide : 'DiagramsBlazorTooltip' , useValue : BlazorTooltip } ; export const LineDistributionService = { provide : 'DiagramsLineDistribution' , useValue : LineDistribution } ; /**
 * NgModule definition for the Diagram component with providers.
 */ @ NgModule ( { imports : [ CommonModule , DiagramModule ] , exports : [ DiagramModule ] , providers : [ HierarchicalTreeService , MindMapService , RadialTreeService , ComplexHierarchicalTreeService , DataBindingService , SnappingService , PrintAndExportService , BpmnDiagramsService , SymmetricLayoutService , ConnectorBridgingService , UndoRedoService , LayoutAnimationService , DiagramContextMenuService , LineRoutingService , ConnectorEditingService , BlazorTooltipService , LineDistributionService ] } ) export class DiagramAllModule { }