@nywqs/scada-engine 1.1.30 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +359 -193
  3. package/dist/index.d.ts +3 -0
  4. package/dist/scada-engine.css +1 -1
  5. package/dist/scada-engine.es.js +42794 -21383
  6. package/dist/scada-engine.umd.js +3751 -156
  7. package/dist/src/components/canvas/composables/index.d.ts +12 -0
  8. package/dist/src/components/canvas/composables/useAutoSave.d.ts +9 -0
  9. package/dist/src/components/canvas/composables/useCanvasScale.d.ts +12 -0
  10. package/dist/src/components/canvas/composables/useDataSource.d.ts +87 -0
  11. package/dist/src/components/canvas/composables/useFileOperations.d.ts +37 -0
  12. package/dist/src/components/canvas/composables/useGraphEvents.d.ts +22 -0
  13. package/dist/src/components/canvas/composables/useNodeOperations.d.ts +35 -0
  14. package/dist/src/components/canvas/config/graphConfig.d.ts +64 -0
  15. package/dist/src/components/canvas/config/pluginConfig.d.ts +5 -0
  16. package/dist/src/components/canvas/config/scadaEdgeShape.d.ts +14 -0
  17. package/dist/src/components/canvas/config/scadaEdgeView.d.ts +4 -0
  18. package/dist/src/components/canvas/types/canvas.d.ts +41 -0
  19. package/dist/src/components/configurators/BindingCard.d.ts +24 -0
  20. package/dist/src/components/configurators/ComponentPointSelector.d.ts +16 -0
  21. package/dist/src/components/{EventCard.d.ts → configurators/EventCard.d.ts} +13 -26
  22. package/dist/src/components/configurators/MappingConfigurator.d.ts +15 -0
  23. package/dist/src/components/dialogs/AttributeConfigDialog.d.ts +28 -0
  24. package/dist/src/components/dialogs/CustomCodeDialog.d.ts +20 -0
  25. package/dist/src/components/dialogs/DataSourceDialog.d.ts +16 -0
  26. package/dist/src/components/dialogs/ScadaModal.d.ts +37 -0
  27. package/dist/src/components/{WorkflowSelectorDialog.d.ts → dialogs/WorkflowSelectorDialog.d.ts} +3 -3
  28. package/dist/src/components/layout/Footer.d.ts +16 -0
  29. package/dist/src/components/layout/Header.d.ts +56 -0
  30. package/dist/src/components/panels/CanvasConfigPanel.d.ts +4 -0
  31. package/dist/src/components/panels/ComponentLibrary.d.ts +6 -0
  32. package/dist/src/components/panels/ContextMenu.d.ts +26 -0
  33. package/dist/src/components/panels/PropertyPanel.d.ts +22 -0
  34. package/dist/src/components/property-tabs/BasicPropertiesTab.d.ts +37 -0
  35. package/dist/src/components/property-tabs/DataPropertiesTab.d.ts +14 -0
  36. package/dist/src/components/property-tabs/EdgePropertiesTab.d.ts +16 -0
  37. package/dist/src/constants/animation.d.ts +5 -0
  38. package/dist/src/constants/index.d.ts +3 -0
  39. package/dist/src/constants/layout.d.ts +16 -0
  40. package/dist/src/constants/theme.d.ts +17 -0
  41. package/dist/src/index.d.ts +16 -15
  42. package/dist/src/main.d.ts +0 -1
  43. package/dist/src/scada-components/basic/circle.d.ts +0 -1
  44. package/dist/src/scada-components/basic/rect.d.ts +0 -1
  45. package/dist/src/scada-components/basic/text.d.ts +0 -1
  46. package/dist/src/scada-components/canvas/config.d.ts +0 -1
  47. package/dist/src/scada-components/canvas/manager.d.ts +0 -1
  48. package/dist/src/scada-components/iot/echarts-gauge/EChartsGauge.d.ts +7 -0
  49. package/dist/src/scada-components/iot/{echarts-gauge.d.ts → echarts-gauge/index.d.ts} +1 -2
  50. package/dist/src/scada-components/iot/echarts-line/EChartsLine.d.ts +7 -0
  51. package/dist/src/scada-components/iot/{echarts-line.d.ts → echarts-line/index.d.ts} +1 -2
  52. package/dist/src/scada-components/iot/index.d.ts +0 -5
  53. package/dist/src/scada-components/registry.d.ts +1 -2
  54. package/dist/src/scada-components/svg/core/index.d.ts +7 -0
  55. package/dist/src/scada-components/svg/core/loader.d.ts +71 -0
  56. package/dist/src/scada-components/svg/core/parser.d.ts +40 -0
  57. package/dist/src/scada-components/svg/core/types.d.ts +297 -0
  58. package/dist/src/scada-components/svg/helpers/demo.d.ts +20 -0
  59. package/dist/src/scada-components/svg/helpers/index.d.ts +5 -0
  60. package/dist/src/scada-components/svg/helpers/utils.d.ts +24 -0
  61. package/dist/src/scada-components/svg/index.d.ts +9 -0
  62. package/dist/src/scada-components/svg/rendering/SVGRenderer.d.ts +14 -0
  63. package/dist/src/scada-components/svg/rendering/animationTemplates.d.ts +81 -0
  64. package/dist/src/scada-components/svg/rendering/index.d.ts +6 -0
  65. package/dist/src/scada-components/types.d.ts +0 -1
  66. package/dist/src/types/context-menu.d.ts +13 -0
  67. package/dist/src/types/model3d.d.ts +106 -0
  68. package/dist/src/types/zone.d.ts +54 -0
  69. package/dist/src/utils/animation/index.d.ts +6 -0
  70. package/dist/src/utils/{canvasConfigWatcher.d.ts → canvas/config-watcher.d.ts} +19 -9
  71. package/dist/src/utils/{canvasDataHandler.d.ts → canvas/data-handler.d.ts} +0 -29
  72. package/dist/src/utils/{edgeOperations.d.ts → canvas/edge-operations.d.ts} +6 -3
  73. package/dist/src/utils/{graphOperations.d.ts → canvas/graph-operations.d.ts} +0 -1
  74. package/dist/src/utils/canvas/index.d.ts +10 -0
  75. package/dist/src/utils/{canvasLayerManager.d.ts → canvas/layer-manager.d.ts} +0 -1
  76. package/dist/src/utils/{nodeOperations.d.ts → canvas/node-operations.d.ts} +0 -1
  77. package/dist/src/utils/core/index.d.ts +8 -0
  78. package/dist/src/utils/{dataBindingService.d.ts → data/binding-service.d.ts} +1 -2
  79. package/dist/src/utils/data/index.d.ts +6 -0
  80. package/dist/src/utils/{contextMenuManager.d.ts → events/context-menu.d.ts} +1 -2
  81. package/dist/src/utils/{eventManager.d.ts → events/event-manager.d.ts} +1 -2
  82. package/dist/src/utils/events/index.d.ts +7 -0
  83. package/dist/src/utils/index.d.ts +30 -19
  84. package/dist/src/utils/integrations/draco-loader.d.ts +2 -0
  85. package/dist/src/utils/integrations/index.d.ts +6 -0
  86. package/dist/src/utils/performance/index.d.ts +6 -0
  87. package/dist/src/utils/{viewportCulling.d.ts → performance/viewport-culling.d.ts} +0 -1
  88. package/dist/src/views/Preview.d.ts +4 -0
  89. package/dist/src/views/workflow/WorkflowDialog.d.ts +10 -30
  90. package/dist/src/views/workflow/components/AddNodeMenu.d.ts +5 -14
  91. package/dist/src/views/workflow/components/ElementSelector.d.ts +5 -27
  92. package/dist/src/views/workflow/components/PropertyPanel.d.ts +8 -15
  93. package/dist/src/views/workflow/components/node-configs/ClearTimerConfig.d.ts +4 -14
  94. package/dist/src/views/workflow/components/node-configs/ConditionConfig.d.ts +4 -14
  95. package/dist/src/views/workflow/components/node-configs/CustomCodeConfig.d.ts +4 -14
  96. package/dist/src/views/workflow/components/node-configs/GetPropertyConfig.d.ts +4 -14
  97. package/dist/src/views/workflow/components/node-configs/HttpRequestConfig.d.ts +4 -14
  98. package/dist/src/views/workflow/components/node-configs/SetPropertyConfig.d.ts +4 -14
  99. package/dist/src/views/workflow/components/node-configs/TimerConfig.d.ts +4 -14
  100. package/dist/src/views/workflow/config/nodeConfigRegistry.d.ts +0 -1
  101. package/dist/src/views/workflow/services/canvasElementService.d.ts +0 -1
  102. package/package.json +86 -82
  103. package/dist/src/components/AttributeConfigDialog.d.ts +0 -39
  104. package/dist/src/components/BasicPropertiesTab.d.ts +0 -51
  105. package/dist/src/components/BindingCard.d.ts +0 -39
  106. package/dist/src/components/CanvasArea.d.ts +0 -4
  107. package/dist/src/components/ComponentLibrary.d.ts +0 -34
  108. package/dist/src/components/ComponentPointSelector.d.ts +0 -29
  109. package/dist/src/components/ContextMenu.d.ts +0 -63
  110. package/dist/src/components/CustomCodeDialog.d.ts +0 -30
  111. package/dist/src/components/DataPropertiesTab.d.ts +0 -24
  112. package/dist/src/components/DataSourceDialog.d.ts +0 -26
  113. package/dist/src/components/EdgePropertiesTab.d.ts +0 -22
  114. package/dist/src/components/Footer.d.ts +0 -41
  115. package/dist/src/components/Header.d.ts +0 -73
  116. package/dist/src/components/MappingConfigurator.d.ts +0 -27
  117. package/dist/src/components/PropertyPanel.d.ts +0 -45
  118. package/dist/src/scada-components/iot/AlarmLight3D.d.ts +0 -14
  119. package/dist/src/scada-components/iot/Conveyor3D.d.ts +0 -14
  120. package/dist/src/scada-components/iot/Cylinder3D.d.ts +0 -14
  121. package/dist/src/scada-components/iot/EChartsGauge.d.ts +0 -14
  122. package/dist/src/scada-components/iot/EChartsLine.d.ts +0 -14
  123. package/dist/src/scada-components/iot/Filter3D.d.ts +0 -14
  124. package/dist/src/scada-components/iot/HeatExchanger3D.d.ts +0 -14
  125. package/dist/src/scada-components/iot/Light3D.d.ts +0 -14
  126. package/dist/src/scada-components/iot/Motor3D.d.ts +0 -14
  127. package/dist/src/scada-components/iot/Pipe3D.d.ts +0 -14
  128. package/dist/src/scada-components/iot/Pump3D.d.ts +0 -14
  129. package/dist/src/scada-components/iot/Switch3D.d.ts +0 -14
  130. package/dist/src/scada-components/iot/Tank3D.d.ts +0 -14
  131. package/dist/src/scada-components/iot/Tee3D.d.ts +0 -14
  132. package/dist/src/scada-components/iot/TemperatureSensor3D.d.ts +0 -14
  133. package/dist/src/scada-components/iot/Valve3D.d.ts +0 -14
  134. package/dist/src/scada-components/iot/industrial-3d-extended.d.ts +0 -18
  135. package/dist/src/scada-components/iot/industrial-3d-fluid.d.ts +0 -18
  136. package/dist/src/scada-components/iot/industrial-3d.d.ts +0 -18
  137. package/dist/src/scada-components/iot/light.d.ts +0 -6
  138. package/dist/src/scada-components/iot/switch.d.ts +0 -6
  139. package/dist/src/views/workflow/WorkflowEditor.d.ts +0 -38
  140. package/dist/src/views/workflow/components/WorkflowToolbar.d.ts +0 -24
  141. /package/dist/src/{components/CanvasConfigPanel.d.ts → App.d.ts} +0 -0
  142. /package/dist/src/scada-components/iot/{echarts-gauge-presets.d.ts → echarts-gauge/presets.d.ts} +0 -0
  143. /package/dist/src/scada-components/iot/{echarts-line-presets.d.ts → echarts-line/presets.d.ts} +0 -0
  144. /package/dist/src/utils/{animationEngine.d.ts → animation/animation-engine.d.ts} +0 -0
  145. /package/dist/src/utils/{animationScheduler.d.ts → animation/animation-scheduler.d.ts} +0 -0
  146. /package/dist/src/utils/{commonUtils.d.ts → core/common.d.ts} +0 -0
  147. /package/dist/src/utils/{fileUtils.d.ts → core/file.d.ts} +0 -0
  148. /package/dist/src/utils/{messageUtils.d.ts → core/message.d.ts} +0 -0
  149. /package/dist/src/utils/{storageUtils.d.ts → core/storage.d.ts} +0 -0
  150. /package/dist/src/utils/{nodePropertyUtils.d.ts → data/node-property.d.ts} +0 -0
  151. /package/dist/src/utils/{eventUtils.d.ts → events/event-utils.d.ts} +0 -0
  152. /package/dist/src/utils/{authCrypto.d.ts → integrations/auth-crypto.d.ts} +0 -0
  153. /package/dist/src/utils/{workerManager.d.ts → performance/worker-manager.d.ts} +0 -0
@@ -1,18 +1,32 @@
1
1
  import { Graph } from '@antv/x6';
2
- import { Ref } from 'vue';
3
-
4
2
  /**
5
3
  * 画布配置监听器类
6
4
  */
7
5
  export declare class CanvasConfigWatcher {
8
6
  private graph;
9
- private containerRef;
10
7
  private calculateFitScale;
11
- private updateContainerSizeFn;
8
+ private isUpdating;
9
+ private lastSize;
10
+ private isUserZooming;
11
+ private sizeObserver;
12
+ private lastSyncedSize;
13
+ private syncDebounceTimer;
12
14
  /**
13
15
  * 初始化配置监听器
14
16
  */
15
- initialize(graph: Graph, containerRef: Ref<any>, calculateFitScale: () => number, updateContainerSizeFn?: () => void): void;
17
+ initialize(graph: Graph, calculateFitScale: () => number): void;
18
+ /**
19
+ * 启动 SVG 尺寸监听器,确保 SVG 属性正确
20
+ */
21
+ private startSizeObserver;
22
+ /**
23
+ * 检查并同步 SVG 尺寸
24
+ */
25
+ private checkAndSyncSVGSize;
26
+ /**
27
+ * 设置用户缩放状态
28
+ */
29
+ setUserZooming(value: boolean): void;
16
30
  /**
17
31
  * 应用配置变化到 Graph
18
32
  */
@@ -21,10 +35,6 @@ export declare class CanvasConfigWatcher {
21
35
  * 更新背景
22
36
  */
23
37
  private updateBackground;
24
- /**
25
- * 更新尺寸和缩放
26
- */
27
- private updateSizeAndScale;
28
38
  /**
29
39
  * 更新网格
30
40
  */
@@ -1,5 +1,4 @@
1
1
  import { Graph } from '@antv/x6';
2
-
3
2
  /**
4
3
  * 画布数据接口
5
4
  */
@@ -34,37 +33,9 @@ export declare class CanvasDataHandler {
34
33
  * 清理单元格数据(修复损坏的数据)
35
34
  */
36
35
  private cleanCellsData;
37
- /**
38
- * 导出完整的画布数据(包含配置、节点、边、数据源等)
39
- */
40
- exportData(): CanvasData | null;
41
- /**
42
- * 收集所有被引用的流程
43
- */
44
- private collectReferencedWorkflows;
45
- /**
46
- * 导入画布数据
47
- */
48
- importData(importData: CanvasData, onEdgeAnimationRestore?: (edge: any) => void): boolean;
49
- /**
50
- * 导入数据源配置
51
- */
52
- private importDataSources;
53
- /**
54
- * 导入流程数据
55
- */
56
- private importWorkflows;
57
- /**
58
- * 导出为 JSON 文件
59
- */
60
- exportToFile(filename?: string): string | null;
61
36
  /**
62
37
  * 清除画布数据缓存
63
38
  */
64
39
  clearCache(): void;
65
- /**
66
- * 获取画布完整数据(不包含workflows)
67
- */
68
- getCanvasData(): CanvasData | null;
69
40
  }
70
41
  export declare const canvasDataHandler: CanvasDataHandler;
@@ -1,5 +1,4 @@
1
1
  import { Graph, Edge } from '@antv/x6';
2
-
3
2
  /**
4
3
  * 边动画配置
5
4
  */
@@ -21,9 +20,13 @@ export declare class EdgeOperations {
21
20
  */
22
21
  applyEdgeAnimation(edge: Edge, animation: EdgeAnimationConfig): void;
23
22
  /**
24
- * 更新边属性
23
+ * 更新边属性。若因管道样式需要将边迁移为 scada-edge,会返回新边供调用方更新选中状态。
25
24
  */
26
- updateEdge(edge: Edge, updates: any): void;
25
+ updateEdge(edge: Edge, updates: any): Edge | void;
26
+ /**
27
+ * 将普通 edge 替换为 scada-edge(保留 source、target、vertices、line 等),用于支持管道样式
28
+ */
29
+ private replaceEdgeWithScadaEdge;
27
30
  /**
28
31
  * 删除边
29
32
  */
@@ -1,5 +1,4 @@
1
1
  import { Graph } from '@antv/x6';
2
-
3
2
  /**
4
3
  * 画布操作工具类
5
4
  */
@@ -0,0 +1,10 @@
1
+ /**
2
+ * 画布操作模块
3
+ * 包含画布、节点、边的操作,以及数据处理、分层管理、配置监听等功能
4
+ */
5
+ export * from './graph-operations';
6
+ export * from './node-operations';
7
+ export * from './edge-operations';
8
+ export * from './data-handler';
9
+ export * from './layer-manager';
10
+ export * from './config-watcher';
@@ -1,5 +1,4 @@
1
1
  import { Graph } from '@antv/x6';
2
-
3
2
  export declare enum CanvasLayer {
4
3
  BACKGROUND = "background",
5
4
  STATIC = "static",
@@ -1,5 +1,4 @@
1
1
  import { Graph, Node } from '@antv/x6';
2
-
3
2
  /**
4
3
  * 节点操作工具类
5
4
  */
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 核心工具模块
3
+ * 包含通用工具、存储、消息提示、文件操作等基础功能
4
+ */
5
+ export * from './common';
6
+ export * from './storage';
7
+ export * from './message';
8
+ export * from './file';
@@ -1,6 +1,5 @@
1
1
  import { Graph } from '@antv/x6';
2
- import { BindingConfig } from '../types/binding';
3
-
2
+ import { BindingConfig } from '../../types/binding';
4
3
  /**
5
4
  * 数据绑定服务类
6
5
  */
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 数据处理模块
3
+ * 包含数据绑定服务和节点属性工具
4
+ */
5
+ export * from './binding-service';
6
+ export * from './node-property';
@@ -1,5 +1,4 @@
1
- import { MenuItem } from '../components/ContextMenu';
2
-
1
+ import { MenuItem } from '../../types/context-menu';
3
2
  /**
4
3
  * 右键菜单管理器类
5
4
  */
@@ -1,7 +1,6 @@
1
1
  import { Graph } from '@antv/x6';
2
2
  import { Ref } from 'vue';
3
- import { MenuItem } from '../components/ContextMenu';
4
-
3
+ import { MenuItem } from '../../types/context-menu';
5
4
  /**
6
5
  * 事件管理器配置
7
6
  */
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 事件系统模块
3
+ * 包含事件管理器、事件工具函数、右键菜单管理等功能
4
+ */
5
+ export * from './event-manager';
6
+ export * from './event-utils';
7
+ export * from './context-menu';
@@ -1,22 +1,33 @@
1
1
  /**
2
2
  * 工具函数统一导出
3
- * 便于其他模块使用
3
+ *
4
+ * 文件组织结构:
5
+ * - core/ 核心工具(通用、存储、消息、文件)
6
+ * - canvas/ 画布相关(图形操作、节点、边、分层等)
7
+ * - events/ 事件系统(事件管理、右键菜单)
8
+ * - animation/ 动画系统(引擎、调度器)
9
+ * - data/ 数据处理(绑定、节点属性)
10
+ * - performance/ 性能优化(视口裁剪、Worker)
11
+ * - integrations/ 第三方集成(Draco、加密)
4
12
  */
5
- export * from './nodePropertyUtils';
6
- export * from './eventUtils';
7
- export * from './storageUtils';
8
- export * from './fileUtils';
9
- export * from './commonUtils';
10
- export * from './messageUtils';
11
- export * from './graphOperations';
12
- export * from './nodeOperations';
13
- export * from './edgeOperations';
14
- export * from './canvasDataHandler';
15
- export * from './dataBindingService';
16
- export * from './eventManager';
17
- export * from './contextMenuManager';
18
- export * from './canvasConfigWatcher';
19
- export * from './animationScheduler';
20
- export * from './viewportCulling';
21
- export * from './workerManager';
22
- export * from './canvasLayerManager';
13
+ export * from './core/common';
14
+ export * from './core/storage';
15
+ export * from './core/message';
16
+ export * from './core/file';
17
+ export * from './canvas/graph-operations';
18
+ export * from './canvas/node-operations';
19
+ export * from './canvas/edge-operations';
20
+ export * from './canvas/data-handler';
21
+ export * from './canvas/layer-manager';
22
+ export * from './canvas/config-watcher';
23
+ export * from './events/event-manager';
24
+ export * from './events/event-utils';
25
+ export * from './events/context-menu';
26
+ export * from './animation/animation-engine';
27
+ export * from './animation/animation-scheduler';
28
+ export * from './data/binding-service';
29
+ export * from './data/node-property';
30
+ export * from './performance/viewport-culling';
31
+ export * from './performance/worker-manager';
32
+ export * from './integrations/draco-loader';
33
+ export * from './integrations/auth-crypto';
@@ -0,0 +1,2 @@
1
+ import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader.js';
2
+ export declare function getDracoLoader(): DRACOLoader;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 第三方集成模块
3
+ * 包含 Draco 加载器和加密工具
4
+ */
5
+ export * from './draco-loader';
6
+ export * from './auth-crypto';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 性能优化模块
3
+ * 包含视口裁剪和 Worker 管理器
4
+ */
5
+ export * from './viewport-culling';
6
+ export * from './worker-manager';
@@ -1,5 +1,4 @@
1
1
  import { Graph } from '@antv/x6';
2
-
3
2
  interface ViewportConfig {
4
3
  enabled: boolean;
5
4
  padding: number;
@@ -0,0 +1,4 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
2
+ canvasContainer: HTMLDivElement;
3
+ }, any>;
4
+ export default _default;
@@ -1,37 +1,17 @@
1
- import { Graph } from '@antv/x6';
2
-
1
+ import { Graph as X6Graph } from '@antv/x6';
3
2
  interface Props {
4
3
  visible: boolean;
5
- scadaGraph?: Graph | null;
4
+ scadaGraph?: X6Graph | null;
6
5
  }
7
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
8
- scadaGraph: null;
9
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
- "update:visible": (value: boolean) => void;
11
- close: () => void;
12
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
13
- scadaGraph: null;
14
- }>>> & Readonly<{
6
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
+ close: () => any;
8
+ "update:visible": (value: boolean) => any;
9
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
15
10
  onClose?: (() => any) | undefined;
16
11
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
17
12
  }>, {
18
- scadaGraph: Graph | null;
19
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
13
+ scadaGraph: X6Graph | null;
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
15
+ containerRef: HTMLDivElement;
16
+ }, any>;
20
17
  export default _default;
21
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
- type __VLS_TypePropsToRuntimeProps<T> = {
23
- [K in keyof T]-?: {} extends Pick<T, K> ? {
24
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
25
- } : {
26
- type: import('vue').PropType<T[K]>;
27
- required: true;
28
- };
29
- };
30
- type __VLS_WithDefaults<P, D> = {
31
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
32
- default: D[K];
33
- }> : P[K];
34
- };
35
- type __VLS_Prettify<T> = {
36
- [K in keyof T]: T[K];
37
- } & {};
@@ -13,20 +13,11 @@ interface Props {
13
13
  };
14
14
  nodeTypes: NodeType[];
15
15
  }
16
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
- close: () => void;
18
- select: (nodeType: NodeType) => void;
19
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
16
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
17
+ select: (nodeType: NodeType) => any;
18
+ close: () => any;
19
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
20
20
  onSelect?: ((nodeType: NodeType) => any) | undefined;
21
21
  onClose?: (() => any) | undefined;
22
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
22
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
23
23
  export default _default;
24
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
- type __VLS_TypePropsToRuntimeProps<T> = {
26
- [K in keyof T]-?: {} extends Pick<T, K> ? {
27
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
28
- } : {
29
- type: import('vue').PropType<T[K]>;
30
- required: true;
31
- };
32
- };
@@ -1,37 +1,15 @@
1
1
  import { ElementInfo } from '../types/element';
2
-
3
2
  interface Props {
4
3
  visible: boolean;
5
4
  elements?: ElementInfo[];
6
5
  }
7
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
8
- elements: () => never[];
9
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
- close: () => void;
11
- select: (element: ElementInfo) => void;
12
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
13
- elements: () => never[];
14
- }>>> & Readonly<{
6
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
+ select: (element: ElementInfo) => any;
8
+ close: () => any;
9
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
15
10
  onSelect?: ((element: ElementInfo) => any) | undefined;
16
11
  onClose?: (() => any) | undefined;
17
12
  }>, {
18
13
  elements: ElementInfo[];
19
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
15
  export default _default;
21
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
- type __VLS_TypePropsToRuntimeProps<T> = {
23
- [K in keyof T]-?: {} extends Pick<T, K> ? {
24
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
25
- } : {
26
- type: import('vue').PropType<T[K]>;
27
- required: true;
28
- };
29
- };
30
- type __VLS_WithDefaults<P, D> = {
31
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
32
- default: D[K];
33
- }> : P[K];
34
- };
35
- type __VLS_Prettify<T> = {
36
- [K in keyof T]: T[K];
37
- } & {};
@@ -1,5 +1,4 @@
1
1
  import { NodeConfig } from '../types/node';
2
-
3
2
  interface SelectedCell {
4
3
  label: string;
5
4
  nodeType: string;
@@ -7,21 +6,15 @@ interface SelectedCell {
7
6
  }
8
7
  interface Props {
9
8
  selectedCell: SelectedCell | null;
9
+ selectedEdge?: any;
10
10
  }
11
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
- "update:label": (value: string) => void;
13
- "update:config": (value: Partial<NodeConfig>) => void;
14
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
11
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
12
+ "delete-edge": () => any;
13
+ "update:label": (value: string) => any;
14
+ "update:config": (value: Partial<NodeConfig>) => any;
15
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
16
+ "onDelete-edge"?: (() => any) | undefined;
15
17
  "onUpdate:label"?: ((value: string) => any) | undefined;
16
18
  "onUpdate:config"?: ((value: Partial<NodeConfig>) => any) | undefined;
17
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
19
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
18
20
  export default _default;
19
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
20
- type __VLS_TypePropsToRuntimeProps<T> = {
21
- [K in keyof T]-?: {} extends Pick<T, K> ? {
22
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
23
- } : {
24
- type: import('vue').PropType<T[K]>;
25
- required: true;
26
- };
27
- };
@@ -1,20 +1,10 @@
1
1
  import { ClearTimerNodeConfig } from '../../types/node';
2
-
3
2
  interface Props {
4
3
  modelValue: Partial<ClearTimerNodeConfig>;
5
4
  }
6
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
- "update:modelValue": (value: Partial<ClearTimerNodeConfig>) => void;
8
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
5
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
+ "update:modelValue": (value: Partial<ClearTimerNodeConfig>) => any;
7
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
9
8
  "onUpdate:modelValue"?: ((value: Partial<ClearTimerNodeConfig>) => any) | undefined;
10
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
9
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
11
10
  export default _default;
12
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
- type __VLS_TypePropsToRuntimeProps<T> = {
14
- [K in keyof T]-?: {} extends Pick<T, K> ? {
15
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
- } : {
17
- type: import('vue').PropType<T[K]>;
18
- required: true;
19
- };
20
- };
@@ -1,20 +1,10 @@
1
1
  import { ConditionNodeConfig } from '../../types/node';
2
-
3
2
  interface Props {
4
3
  modelValue: Partial<ConditionNodeConfig>;
5
4
  }
6
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
- "update:modelValue": (value: Partial<ConditionNodeConfig>) => void;
8
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
5
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
+ "update:modelValue": (value: Partial<ConditionNodeConfig>) => any;
7
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
9
8
  "onUpdate:modelValue"?: ((value: Partial<ConditionNodeConfig>) => any) | undefined;
10
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
9
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
11
10
  export default _default;
12
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
- type __VLS_TypePropsToRuntimeProps<T> = {
14
- [K in keyof T]-?: {} extends Pick<T, K> ? {
15
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
- } : {
17
- type: import('vue').PropType<T[K]>;
18
- required: true;
19
- };
20
- };
@@ -1,20 +1,10 @@
1
1
  import { CustomCodeNodeConfig } from '../../types/node';
2
-
3
2
  interface Props {
4
3
  modelValue: Partial<CustomCodeNodeConfig>;
5
4
  }
6
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
- "update:modelValue": (value: Partial<CustomCodeNodeConfig>) => void;
8
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
5
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
+ "update:modelValue": (value: Partial<CustomCodeNodeConfig>) => any;
7
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
9
8
  "onUpdate:modelValue"?: ((value: Partial<CustomCodeNodeConfig>) => any) | undefined;
10
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
9
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
11
10
  export default _default;
12
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
- type __VLS_TypePropsToRuntimeProps<T> = {
14
- [K in keyof T]-?: {} extends Pick<T, K> ? {
15
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
- } : {
17
- type: import('vue').PropType<T[K]>;
18
- required: true;
19
- };
20
- };
@@ -1,20 +1,10 @@
1
1
  import { GetPropertyNodeConfig } from '../../types/node';
2
-
3
2
  interface Props {
4
3
  modelValue: Partial<GetPropertyNodeConfig>;
5
4
  }
6
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
- "update:modelValue": (value: Partial<GetPropertyNodeConfig>) => void;
8
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
5
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
+ "update:modelValue": (value: Partial<GetPropertyNodeConfig>) => any;
7
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
9
8
  "onUpdate:modelValue"?: ((value: Partial<GetPropertyNodeConfig>) => any) | undefined;
10
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
9
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
10
  export default _default;
12
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
- type __VLS_TypePropsToRuntimeProps<T> = {
14
- [K in keyof T]-?: {} extends Pick<T, K> ? {
15
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
- } : {
17
- type: import('vue').PropType<T[K]>;
18
- required: true;
19
- };
20
- };
@@ -1,20 +1,10 @@
1
1
  import { HttpRequestNodeConfig } from '../../types/node';
2
-
3
2
  interface Props {
4
3
  modelValue: Partial<HttpRequestNodeConfig>;
5
4
  }
6
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
- "update:modelValue": (value: Partial<HttpRequestNodeConfig>) => void;
8
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
5
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
+ "update:modelValue": (value: Partial<HttpRequestNodeConfig>) => any;
7
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
9
8
  "onUpdate:modelValue"?: ((value: Partial<HttpRequestNodeConfig>) => any) | undefined;
10
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
9
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
11
10
  export default _default;
12
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
- type __VLS_TypePropsToRuntimeProps<T> = {
14
- [K in keyof T]-?: {} extends Pick<T, K> ? {
15
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
- } : {
17
- type: import('vue').PropType<T[K]>;
18
- required: true;
19
- };
20
- };
@@ -1,20 +1,10 @@
1
1
  import { SetPropertyNodeConfig } from '../../types/node';
2
-
3
2
  interface Props {
4
3
  modelValue: Partial<SetPropertyNodeConfig>;
5
4
  }
6
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
- "update:modelValue": (value: Partial<SetPropertyNodeConfig>) => void;
8
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
5
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
+ "update:modelValue": (value: Partial<SetPropertyNodeConfig>) => any;
7
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
9
8
  "onUpdate:modelValue"?: ((value: Partial<SetPropertyNodeConfig>) => any) | undefined;
10
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
9
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
10
  export default _default;
12
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
- type __VLS_TypePropsToRuntimeProps<T> = {
14
- [K in keyof T]-?: {} extends Pick<T, K> ? {
15
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
- } : {
17
- type: import('vue').PropType<T[K]>;
18
- required: true;
19
- };
20
- };
@@ -1,20 +1,10 @@
1
1
  import { TimerNodeConfig } from '../../types/node';
2
-
3
2
  interface Props {
4
3
  modelValue: Partial<TimerNodeConfig>;
5
4
  }
6
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
- "update:modelValue": (value: Partial<TimerNodeConfig>) => void;
8
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
5
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
+ "update:modelValue": (value: Partial<TimerNodeConfig>) => any;
7
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
9
8
  "onUpdate:modelValue"?: ((value: Partial<TimerNodeConfig>) => any) | undefined;
10
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
9
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
11
10
  export default _default;
12
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
- type __VLS_TypePropsToRuntimeProps<T> = {
14
- [K in keyof T]-?: {} extends Pick<T, K> ? {
15
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
- } : {
17
- type: import('vue').PropType<T[K]>;
18
- required: true;
19
- };
20
- };
@@ -1,5 +1,4 @@
1
1
  import { Component } from 'vue';
2
-
3
2
  export declare const nodeConfigRegistry: Record<string, Component>;
4
3
  export declare function getNodeConfigComponent(nodeType: string): Component | null;
5
4
  export declare function hasNodeConfigComponent(nodeType: string): boolean;