ice-entity-designer 0.0.40 → 0.2.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 (227) hide show
  1. package/README.md +16 -9
  2. package/dist/index.cjs +1 -6
  3. package/dist/index.mjs +1 -6
  4. package/dist/index.umd.js +1 -6
  5. package/dist/react.cjs +1 -6
  6. package/dist/react.mjs +1 -6
  7. package/dist/types/bpmn/BpmnSimulator.d.mts +4 -4
  8. package/dist/types/bpmn/BpmnSimulator.d.ts +4 -4
  9. package/dist/types/bpmn/bpmn_shapes.d.mts +9 -9
  10. package/dist/types/bpmn/bpmn_shapes.d.ts +9 -9
  11. package/dist/types/bpmn/bpmn_validate.d.mts +1 -1
  12. package/dist/types/bpmn/bpmn_validate.d.ts +1 -1
  13. package/dist/types/bpmn/bpmn_xml.d.mts +1 -1
  14. package/dist/types/bpmn/bpmn_xml.d.ts +1 -1
  15. package/dist/types/designer/EntityDesigner.d.mts +3 -3
  16. package/dist/types/designer/EntityDesigner.d.ts +3 -3
  17. package/dist/types/er-component/Entity.d.mts +3 -3
  18. package/dist/types/er-component/Entity.d.ts +3 -3
  19. package/dist/types/er-component/Relation.d.mts +2 -2
  20. package/dist/types/er-component/Relation.d.ts +2 -2
  21. package/dist/types/flow/FlowDesigner.d.mts +4 -4
  22. package/dist/types/flow/FlowDesigner.d.ts +4 -4
  23. package/dist/types/flow/FlowEdge.d.mts +2 -2
  24. package/dist/types/flow/FlowEdge.d.ts +2 -2
  25. package/dist/types/flow/FlowNode.d.mts +4 -4
  26. package/dist/types/flow/FlowNode.d.ts +4 -4
  27. package/dist/types/flow/flow_shapes.d.mts +3 -3
  28. package/dist/types/flow/flow_shapes.d.ts +3 -3
  29. package/dist/types/gantt/GanttDependency.d.mts +2 -2
  30. package/dist/types/gantt/GanttDependency.d.ts +2 -2
  31. package/dist/types/gantt/GanttDesigner.d.mts +2 -2
  32. package/dist/types/gantt/GanttDesigner.d.ts +2 -2
  33. package/dist/types/gantt/GanttRuler.d.mts +3 -3
  34. package/dist/types/gantt/GanttRuler.d.ts +3 -3
  35. package/dist/types/gantt/GanttTask.d.mts +2 -2
  36. package/dist/types/gantt/GanttTask.d.ts +2 -2
  37. package/dist/types/gantt/gantt_text.d.mts +1 -1
  38. package/dist/types/gantt/gantt_text.d.ts +1 -1
  39. package/dist/types/index.d.mts +4 -13
  40. package/dist/types/index.d.ts +4 -13
  41. package/dist/types/power/PowerDesigner.d.mts +3 -3
  42. package/dist/types/power/PowerDesigner.d.ts +3 -3
  43. package/dist/types/power/power_shapes.d.mts +5 -5
  44. package/dist/types/power/power_shapes.d.ts +5 -5
  45. package/dist/types/power/power_voltage.d.mts +1 -1
  46. package/dist/types/power/power_voltage.d.ts +1 -1
  47. package/dist/types/react/context.d.mts +2 -2
  48. package/dist/types/react/context.d.ts +2 -2
  49. package/dist/types/react/index.d.mts +0 -1
  50. package/dist/types/react/index.d.ts +0 -1
  51. package/dist/types/react/session.d.mts +4 -4
  52. package/dist/types/react/session.d.ts +4 -4
  53. package/dist/types/react/types.d.mts +7 -7
  54. package/dist/types/react/types.d.ts +7 -7
  55. package/dist/types/secondary/SecondaryDesigner.d.mts +2 -2
  56. package/dist/types/secondary/SecondaryDesigner.d.ts +2 -2
  57. package/dist/types/secondary/secondary_shapes.d.mts +4 -4
  58. package/dist/types/secondary/secondary_shapes.d.ts +4 -4
  59. package/dist/types/statechart/StateNode.d.mts +3 -3
  60. package/dist/types/statechart/StateNode.d.ts +3 -3
  61. package/dist/types/statechart/StateTransition.d.mts +2 -2
  62. package/dist/types/statechart/StateTransition.d.ts +2 -2
  63. package/dist/types/statechart/StatechartDesigner.d.mts +1 -1
  64. package/dist/types/statechart/StatechartDesigner.d.ts +1 -1
  65. package/dist/types/statechart/statechart_text.d.mts +1 -1
  66. package/dist/types/statechart/statechart_text.d.ts +1 -1
  67. package/dist/types/uml/UmlClass.d.mts +3 -3
  68. package/dist/types/uml/UmlClass.d.ts +3 -3
  69. package/dist/types/uml/UmlDesigner.d.mts +1 -1
  70. package/dist/types/uml/UmlDesigner.d.ts +1 -1
  71. package/dist/types/uml/UmlRelation.d.mts +5 -5
  72. package/dist/types/uml/UmlRelation.d.ts +5 -5
  73. package/dist/types/uml/uml_text.d.mts +1 -1
  74. package/dist/types/uml/uml_text.d.ts +1 -1
  75. package/dist/types/utils/component_type_util.d.mts +4 -0
  76. package/dist/types/utils/component_type_util.d.ts +4 -0
  77. package/dist/types/utils/project_codec.d.mts +2 -2
  78. package/dist/types/utils/project_codec.d.ts +2 -2
  79. package/dist/types/utils/project_schema.d.mts +1 -1
  80. package/dist/types/utils/project_schema.d.ts +1 -1
  81. package/dist/types/utils/schema_validator.d.mts +1 -1
  82. package/dist/types/utils/schema_validator.d.ts +1 -1
  83. package/dist/types/utils/type-registry.d.mts +11 -0
  84. package/dist/types/utils/type-registry.d.ts +11 -0
  85. package/package.json +24 -20
  86. package/dist/types/gl-matrix.d.mts +0 -3273
  87. package/dist/types/gl-matrix.d.ts +0 -3273
  88. package/dist/types/ice-render/FrameManager.d.mts +0 -26
  89. package/dist/types/ice-render/FrameManager.d.ts +0 -26
  90. package/dist/types/ice-render/ICE.d.mts +0 -424
  91. package/dist/types/ice-render/ICE.d.ts +0 -424
  92. package/dist/types/ice-render/a11y/accessibility.d.mts +0 -46
  93. package/dist/types/ice-render/a11y/accessibility.d.ts +0 -46
  94. package/dist/types/ice-render/animation/AnimationManager.d.mts +0 -96
  95. package/dist/types/ice-render/animation/AnimationManager.d.ts +0 -96
  96. package/dist/types/ice-render/animation/Easing.d.mts +0 -33
  97. package/dist/types/ice-render/animation/Easing.d.ts +0 -33
  98. package/dist/types/ice-render/consts/BIG_ZINDEX_NUMBER.d.mts +0 -14
  99. package/dist/types/ice-render/consts/BIG_ZINDEX_NUMBER.d.ts +0 -14
  100. package/dist/types/ice-render/consts/COMPONENT_TYPE_MAPPING.d.mts +0 -45
  101. package/dist/types/ice-render/consts/COMPONENT_TYPE_MAPPING.d.ts +0 -45
  102. package/dist/types/ice-render/consts/DOM_EVENT_MAPPING_CONSTS.d.mts +0 -37
  103. package/dist/types/ice-render/consts/DOM_EVENT_MAPPING_CONSTS.d.ts +0 -37
  104. package/dist/types/ice-render/consts/ICE_EVENT_NAME_CONSTS.d.mts +0 -27
  105. package/dist/types/ice-render/consts/ICE_EVENT_NAME_CONSTS.d.ts +0 -27
  106. package/dist/types/ice-render/control-panel/AlignmentGuideManager.d.mts +0 -92
  107. package/dist/types/ice-render/control-panel/AlignmentGuideManager.d.ts +0 -92
  108. package/dist/types/ice-render/control-panel/ICEControlPanel.d.mts +0 -37
  109. package/dist/types/ice-render/control-panel/ICEControlPanel.d.ts +0 -37
  110. package/dist/types/ice-render/control-panel/ICEControlPanelManager.d.mts +0 -25
  111. package/dist/types/ice-render/control-panel/ICEControlPanelManager.d.ts +0 -25
  112. package/dist/types/ice-render/control-panel/link-controls/LineControlPanel.d.mts +0 -39
  113. package/dist/types/ice-render/control-panel/link-controls/LineControlPanel.d.ts +0 -39
  114. package/dist/types/ice-render/control-panel/transform-controls/ResizeControl.d.mts +0 -38
  115. package/dist/types/ice-render/control-panel/transform-controls/ResizeControl.d.ts +0 -38
  116. package/dist/types/ice-render/control-panel/transform-controls/RotateControl.d.mts +0 -12
  117. package/dist/types/ice-render/control-panel/transform-controls/RotateControl.d.ts +0 -12
  118. package/dist/types/ice-render/control-panel/transform-controls/TransformControlPanel.d.mts +0 -83
  119. package/dist/types/ice-render/control-panel/transform-controls/TransformControlPanel.d.ts +0 -83
  120. package/dist/types/ice-render/control-panel/transform-controls/constraints.d.mts +0 -24
  121. package/dist/types/ice-render/control-panel/transform-controls/constraints.d.ts +0 -24
  122. package/dist/types/ice-render/cross-platform/Path2DRecorder.d.mts +0 -76
  123. package/dist/types/ice-render/cross-platform/Path2DRecorder.d.ts +0 -76
  124. package/dist/types/ice-render/cross-platform/PolyfillPath2D.d.mts +0 -21
  125. package/dist/types/ice-render/cross-platform/PolyfillPath2D.d.ts +0 -21
  126. package/dist/types/ice-render/cross-platform/root.d.mts +0 -7
  127. package/dist/types/ice-render/cross-platform/root.d.ts +0 -7
  128. package/dist/types/ice-render/event/DOMEventDispatcher.d.mts +0 -75
  129. package/dist/types/ice-render/event/DOMEventDispatcher.d.ts +0 -75
  130. package/dist/types/ice-render/event/DOMEventInterceptor.d.mts +0 -36
  131. package/dist/types/ice-render/event/DOMEventInterceptor.d.ts +0 -36
  132. package/dist/types/ice-render/event/EventBus.d.mts +0 -27
  133. package/dist/types/ice-render/event/EventBus.d.ts +0 -27
  134. package/dist/types/ice-render/event/ICEEvent.d.mts +0 -46
  135. package/dist/types/ice-render/event/ICEEvent.d.ts +0 -46
  136. package/dist/types/ice-render/event/ICEEventTarget.d.mts +0 -106
  137. package/dist/types/ice-render/event/ICEEventTarget.d.ts +0 -106
  138. package/dist/types/ice-render/event/input-normalize.d.mts +0 -75
  139. package/dist/types/ice-render/event/input-normalize.d.ts +0 -75
  140. package/dist/types/ice-render/export/SvgExporter.d.mts +0 -54
  141. package/dist/types/ice-render/export/SvgExporter.d.ts +0 -54
  142. package/dist/types/ice-render/geometry/GeoLine.d.mts +0 -24
  143. package/dist/types/ice-render/geometry/GeoLine.d.ts +0 -24
  144. package/dist/types/ice-render/geometry/GeoPoint.d.mts +0 -53
  145. package/dist/types/ice-render/geometry/GeoPoint.d.ts +0 -53
  146. package/dist/types/ice-render/geometry/GeoUtil.d.mts +0 -73
  147. package/dist/types/ice-render/geometry/GeoUtil.d.ts +0 -73
  148. package/dist/types/ice-render/geometry/ICEBoundingBox.d.mts +0 -81
  149. package/dist/types/ice-render/geometry/ICEBoundingBox.d.ts +0 -81
  150. package/dist/types/ice-render/graphic/ICEComponent.d.mts +0 -535
  151. package/dist/types/ice-render/graphic/ICEComponent.d.ts +0 -535
  152. package/dist/types/ice-render/graphic/ICEDotPath.d.mts +0 -99
  153. package/dist/types/ice-render/graphic/ICEDotPath.d.ts +0 -99
  154. package/dist/types/ice-render/graphic/ICEImage.d.mts +0 -17
  155. package/dist/types/ice-render/graphic/ICEImage.d.ts +0 -17
  156. package/dist/types/ice-render/graphic/ICEPath.d.mts +0 -46
  157. package/dist/types/ice-render/graphic/ICEPath.d.ts +0 -46
  158. package/dist/types/ice-render/graphic/container/ICEGroup.d.mts +0 -111
  159. package/dist/types/ice-render/graphic/container/ICEGroup.d.ts +0 -111
  160. package/dist/types/ice-render/graphic/link/ICEBezier.d.mts +0 -23
  161. package/dist/types/ice-render/graphic/link/ICEBezier.d.ts +0 -23
  162. package/dist/types/ice-render/graphic/link/ICELinkHook.d.mts +0 -52
  163. package/dist/types/ice-render/graphic/link/ICELinkHook.d.ts +0 -52
  164. package/dist/types/ice-render/graphic/link/ICELinkSlot.d.mts +0 -54
  165. package/dist/types/ice-render/graphic/link/ICELinkSlot.d.ts +0 -54
  166. package/dist/types/ice-render/graphic/link/ICELinkSlotManager.d.mts +0 -28
  167. package/dist/types/ice-render/graphic/link/ICELinkSlotManager.d.ts +0 -28
  168. package/dist/types/ice-render/graphic/link/ICEPolyLine.d.mts +0 -316
  169. package/dist/types/ice-render/graphic/link/ICEPolyLine.d.ts +0 -316
  170. package/dist/types/ice-render/graphic/link/ICEVisioLink.d.mts +0 -163
  171. package/dist/types/ice-render/graphic/link/ICEVisioLink.d.ts +0 -163
  172. package/dist/types/ice-render/graphic/shape/ICECircle.d.mts +0 -19
  173. package/dist/types/ice-render/graphic/shape/ICECircle.d.ts +0 -19
  174. package/dist/types/ice-render/graphic/shape/ICEEllipse.d.mts +0 -29
  175. package/dist/types/ice-render/graphic/shape/ICEEllipse.d.ts +0 -29
  176. package/dist/types/ice-render/graphic/shape/ICEIsogon.d.mts +0 -52
  177. package/dist/types/ice-render/graphic/shape/ICEIsogon.d.ts +0 -52
  178. package/dist/types/ice-render/graphic/shape/ICERect.d.mts +0 -10
  179. package/dist/types/ice-render/graphic/shape/ICERect.d.ts +0 -10
  180. package/dist/types/ice-render/graphic/shape/ICERose.d.mts +0 -41
  181. package/dist/types/ice-render/graphic/shape/ICERose.d.ts +0 -41
  182. package/dist/types/ice-render/graphic/shape/ICEStar.d.mts +0 -45
  183. package/dist/types/ice-render/graphic/shape/ICEStar.d.ts +0 -45
  184. package/dist/types/ice-render/graphic/text/ICEText.d.mts +0 -158
  185. package/dist/types/ice-render/graphic/text/ICEText.d.ts +0 -158
  186. package/dist/types/ice-render/index.d.mts +0 -59
  187. package/dist/types/ice-render/index.d.ts +0 -59
  188. package/dist/types/ice-render/layout/ICEBorderLayout.d.mts +0 -34
  189. package/dist/types/ice-render/layout/ICEBorderLayout.d.ts +0 -34
  190. package/dist/types/ice-render/layout/ICEBoxLayout.d.mts +0 -30
  191. package/dist/types/ice-render/layout/ICEBoxLayout.d.ts +0 -30
  192. package/dist/types/ice-render/layout/ICECardLayout.d.mts +0 -36
  193. package/dist/types/ice-render/layout/ICECardLayout.d.ts +0 -36
  194. package/dist/types/ice-render/layout/ICEFlowLayout.d.mts +0 -31
  195. package/dist/types/ice-render/layout/ICEFlowLayout.d.ts +0 -31
  196. package/dist/types/ice-render/layout/ICEGridLayout.d.mts +0 -33
  197. package/dist/types/ice-render/layout/ICEGridLayout.d.ts +0 -33
  198. package/dist/types/ice-render/layout/ICELayeredLayout.d.mts +0 -49
  199. package/dist/types/ice-render/layout/ICELayeredLayout.d.ts +0 -49
  200. package/dist/types/ice-render/layout/ICELayoutManager.d.mts +0 -33
  201. package/dist/types/ice-render/layout/ICELayoutManager.d.ts +0 -33
  202. package/dist/types/ice-render/layout/ICEOverlayLayout.d.mts +0 -25
  203. package/dist/types/ice-render/layout/ICEOverlayLayout.d.ts +0 -25
  204. package/dist/types/ice-render/persistence/Deserializer.d.mts +0 -43
  205. package/dist/types/ice-render/persistence/Deserializer.d.ts +0 -43
  206. package/dist/types/ice-render/persistence/Serializer.d.mts +0 -35
  207. package/dist/types/ice-render/persistence/Serializer.d.ts +0 -35
  208. package/dist/types/ice-render/plugin/PluginHost.d.mts +0 -86
  209. package/dist/types/ice-render/plugin/PluginHost.d.ts +0 -86
  210. package/dist/types/ice-render/renderer/CanvasRenderer.d.mts +0 -150
  211. package/dist/types/ice-render/renderer/CanvasRenderer.d.ts +0 -150
  212. package/dist/types/ice-render/renderer/ObjectCache.d.mts +0 -84
  213. package/dist/types/ice-render/renderer/ObjectCache.d.ts +0 -84
  214. package/dist/types/ice-render/renderer/dirty-rect-util.d.mts +0 -86
  215. package/dist/types/ice-render/renderer/dirty-rect-util.d.ts +0 -86
  216. package/dist/types/ice-render/theme/ICETheme.d.mts +0 -382
  217. package/dist/types/ice-render/theme/ICETheme.d.ts +0 -382
  218. package/dist/types/ice-render/util/ImageCache.d.mts +0 -19
  219. package/dist/types/ice-render/util/ImageCache.d.ts +0 -19
  220. package/dist/types/ice-render/util/data-util.d.mts +0 -43
  221. package/dist/types/ice-render/util/data-util.d.ts +0 -43
  222. package/dist/types/ice-render/util/gl-matrix-skew.d.mts +0 -14
  223. package/dist/types/ice-render/util/gl-matrix-skew.d.ts +0 -14
  224. package/dist/types/ice-render/util/lang.d.mts +0 -28
  225. package/dist/types/ice-render/util/lang.d.ts +0 -28
  226. package/dist/types/ice-render/util/uuid.d.mts +0 -1
  227. package/dist/types/ice-render/util/uuid.d.ts +0 -1
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ICEGroup, ICERect, ICEText } from '../ice-render/index.mjs';
8
+ import { ICEGroup, ICERect, ICEText } from 'ice-render';
9
9
  /**
10
10
  * @class GanttTask 甘特图的一条任务(= 时间轴上的那个条)
11
11
  *
@@ -15,7 +15,7 @@ import { ICEGroup, ICERect, ICEText } from '../ice-render/index.mjs';
15
15
  * 并据此反推起始日期 —— 拖动不会产生「3 月 5 日的 13:47 开工」这种排期。
16
16
  */
17
17
  export default class GanttTask extends ICEGroup {
18
- static readonly typeId = "GanttTask";
18
+ static readonly typeId = "ice-entity-designer:GanttTask";
19
19
  protected barComponent: ICERect | null;
20
20
  protected progressComponent: ICERect | null;
21
21
  protected labelComponent: ICEText | null;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ICEGroup, ICERect, ICEText } from '../ice-render/index';
8
+ import { ICEGroup, ICERect, ICEText } from 'ice-render';
9
9
  /**
10
10
  * @class GanttTask 甘特图的一条任务(= 时间轴上的那个条)
11
11
  *
@@ -15,7 +15,7 @@ import { ICEGroup, ICERect, ICEText } from '../ice-render/index';
15
15
  * 并据此反推起始日期 —— 拖动不会产生「3 月 5 日的 13:47 开工」这种排期。
16
16
  */
17
17
  export default class GanttTask extends ICEGroup {
18
- static readonly typeId = "GanttTask";
18
+ static readonly typeId = "ice-entity-designer:GanttTask";
19
19
  protected barComponent: ICERect | null;
20
20
  protected progressComponent: ICERect | null;
21
21
  protected labelComponent: ICEText | null;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- export declare type GanttTextImportResult = {
8
+ export type GanttTextImportResult = {
9
9
  tasks: number;
10
10
  dependencies: number;
11
11
  /** 解析不了 / 不支持的输入行(不阻断整体导入) */
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- export declare type GanttTextImportResult = {
8
+ export type GanttTextImportResult = {
9
9
  tasks: number;
10
10
  dependencies: number;
11
11
  /** 解析不了 / 不支持的输入行(不阻断整体导入) */
@@ -1,4 +1,3 @@
1
- /// <reference path="./gl-matrix.d.ts" />
2
1
  /**
3
2
  * Copyright (c) 2022 大漠穷秋.
4
3
  *
@@ -61,17 +60,9 @@ export { parseDate, formatDate, addDays, diffDays, eachDay, tickLabel } from './
61
60
  export { toPlantUml, fromPlantUml, arrowOf, detectUmlDialect } from './uml/uml_text.mjs';
62
61
  export type { UmlTextImportResult } from './uml/uml_text.mjs';
63
62
  /**
64
- * 引擎内核(ice-render)在构建时已被打包进本包,这里一并导出。
63
+ * ice-render 是 peer 依赖,不再内联进本包。
65
64
  *
66
- * 调用方只需安装 ice-entity-designer 一个包即可:
67
- *
68
- * ```js
69
- * import { ICE, EntityDesigner } from 'ice-entity-designer';
70
- * const ice = new ICE().init(canvas);
71
- * const designer = new EntityDesigner(ice);
72
- * ```
73
- *
74
- * 之所以在这里再导出一次(而不是让调用方各自安装 ice-render),是为了保证
75
- * ICE 实例与 Entity / Relation 组件来自**同一份内核实例**,避免两份内核导致的类型不匹配。
65
+ * 这里继续 re-export 引擎,只是方便调用方从同一入口取到 `ICE` 与 `EntityDesigner`;
66
+ * 运行时仍然是宿主提供的那一份 ice-render 模块,不会产生第二份内核。
76
67
  */
77
- export * from './ice-render/index.mjs';
68
+ export * from 'ice-render';
@@ -1,4 +1,3 @@
1
- /// <reference path="./gl-matrix.d.ts" />
2
1
  /**
3
2
  * Copyright (c) 2022 大漠穷秋.
4
3
  *
@@ -61,17 +60,9 @@ export { parseDate, formatDate, addDays, diffDays, eachDay, tickLabel } from './
61
60
  export { toPlantUml, fromPlantUml, arrowOf, detectUmlDialect } from './uml/uml_text';
62
61
  export type { UmlTextImportResult } from './uml/uml_text';
63
62
  /**
64
- * 引擎内核(ice-render)在构建时已被打包进本包,这里一并导出。
63
+ * ice-render 是 peer 依赖,不再内联进本包。
65
64
  *
66
- * 调用方只需安装 ice-entity-designer 一个包即可:
67
- *
68
- * ```js
69
- * import { ICE, EntityDesigner } from 'ice-entity-designer';
70
- * const ice = new ICE().init(canvas);
71
- * const designer = new EntityDesigner(ice);
72
- * ```
73
- *
74
- * 之所以在这里再导出一次(而不是让调用方各自安装 ice-render),是为了保证
75
- * ICE 实例与 Entity / Relation 组件来自**同一份内核实例**,避免两份内核导致的类型不匹配。
65
+ * 这里继续 re-export 引擎,只是方便调用方从同一入口取到 `ICE` 与 `EntityDesigner`;
66
+ * 运行时仍然是宿主提供的那一份 ice-render 模块,不会产生第二份内核。
76
67
  */
77
- export * from './ice-render/index';
68
+ export * from 'ice-render';
@@ -8,7 +8,7 @@
8
8
  import FlowDesigner from '../flow/FlowDesigner.mjs';
9
9
  import FlowEdge from '../flow/FlowEdge.mjs';
10
10
  import type { PowerSymbolKind, PowerSwitchState } from './power_shapes.mjs';
11
- export declare type PowerIssue = {
11
+ export type PowerIssue = {
12
12
  level: 'error' | 'warning';
13
13
  message: string;
14
14
  id?: string;
@@ -22,7 +22,7 @@ export declare type PowerIssue = {
22
22
  export declare const POWER_BUS_ATTACH_GAP = 3;
23
23
  /** 判定「仍然挂在母线上」的纵向容差(拖离出这个范围就算断开,走校验提示) */
24
24
  export declare const POWER_BUS_ATTACH_TOLERANCE = 8;
25
- export declare type PowerTopology = {
25
+ export type PowerTopology = {
26
26
  /** 带电的设备 id(从电源点出发,只经过处于合位的开关) */
27
27
  energized: string[];
28
28
  /**
@@ -33,7 +33,7 @@ export declare type PowerTopology = {
33
33
  };
34
34
  /** 一次系统图的导线(导体)—— 复用引擎折线,颜色跟电压等级走 */
35
35
  export declare class PowerLine extends FlowEdge {
36
- static readonly typeId = "PowerLine";
36
+ static readonly typeId = "ice-entity-designer:PowerLine";
37
37
  constructor(props?: any);
38
38
  /** 电压等级 → 线色(不标等级时用中性色) */
39
39
  applyVoltageColor(table?: Record<string, string>): void;
@@ -8,7 +8,7 @@
8
8
  import FlowDesigner from '../flow/FlowDesigner';
9
9
  import FlowEdge from '../flow/FlowEdge';
10
10
  import type { PowerSymbolKind, PowerSwitchState } from './power_shapes';
11
- export declare type PowerIssue = {
11
+ export type PowerIssue = {
12
12
  level: 'error' | 'warning';
13
13
  message: string;
14
14
  id?: string;
@@ -22,7 +22,7 @@ export declare type PowerIssue = {
22
22
  export declare const POWER_BUS_ATTACH_GAP = 3;
23
23
  /** 判定「仍然挂在母线上」的纵向容差(拖离出这个范围就算断开,走校验提示) */
24
24
  export declare const POWER_BUS_ATTACH_TOLERANCE = 8;
25
- export declare type PowerTopology = {
25
+ export type PowerTopology = {
26
26
  /** 带电的设备 id(从电源点出发,只经过处于合位的开关) */
27
27
  energized: string[];
28
28
  /**
@@ -33,7 +33,7 @@ export declare type PowerTopology = {
33
33
  };
34
34
  /** 一次系统图的导线(导体)—— 复用引擎折线,颜色跟电压等级走 */
35
35
  export declare class PowerLine extends FlowEdge {
36
- static readonly typeId = "PowerLine";
36
+ static readonly typeId = "ice-entity-designer:PowerLine";
37
37
  constructor(props?: any);
38
38
  /** 电压等级 → 线色(不标等级时用中性色) */
39
39
  applyVoltageColor(table?: Record<string, string>): void;
@@ -19,10 +19,10 @@
19
19
  * **外观统一**:所有符号共用同一套描边色 / 线宽 / 文字符号字号与位置、统一端子在上下(T/B),
20
20
  * 尺寸也按同一套基准走(见 `POWER_STYLE` 与各 preset 的 width/height)。
21
21
  */
22
- import { ICEGroup } from '../ice-render/index.mjs';
22
+ import { ICEGroup } from 'ice-render';
23
23
  export declare const POWER_SYMBOL_KINDS: readonly ["busbar", "breaker", "disconnector", "loadSwitch", "earthingSwitch", "earth", "currentTransformer", "voltageTransformer", "transformer", "fuse", "arrester", "reactor", "generator", "motor", "load", "capacitor", "arcSuppressionCoil", "threeWindingTransformer", "groundingTransformer", "groundingResistor", "cable", "cableTermination", "cubicle"];
24
- export declare type PowerSymbolKind = (typeof POWER_SYMBOL_KINDS)[number];
25
- declare type PowerSymbolPreset = {
24
+ export type PowerSymbolKind = (typeof POWER_SYMBOL_KINDS)[number];
25
+ type PowerSymbolPreset = {
26
26
  /** 中文名(属性面板 / 图例用) */
27
27
  label: string;
28
28
  /** 图形符号旁的文字符号(JB/T 5872 / GB/T 7159 口径) */
@@ -57,7 +57,7 @@ export declare const POWER_STYLE: {
57
57
  };
58
58
  /** 有分 / 合状态的开关电器(其余是静止设备) */
59
59
  export declare const POWER_SWITCH_KINDS: PowerSymbolKind[];
60
- export declare type PowerSwitchState = 'open' | 'closed';
60
+ export type PowerSwitchState = 'open' | 'closed';
61
61
  /**
62
62
  * @class PowerSymbol 电力一次系统图的图元(复合组件)
63
63
  *
@@ -66,7 +66,7 @@ export declare type PowerSwitchState = 'open' | 'closed';
66
66
  * **不用位置去猜**。
67
67
  */
68
68
  export default class PowerSymbol extends ICEGroup {
69
- static readonly typeId = "PowerSymbol";
69
+ static readonly typeId = "ice-entity-designer:PowerSymbol";
70
70
  /** 派生部件:`{ role, component }` 列表(按添加顺序) */
71
71
  parts: Array<{
72
72
  role: string;
@@ -19,10 +19,10 @@
19
19
  * **外观统一**:所有符号共用同一套描边色 / 线宽 / 文字符号字号与位置、统一端子在上下(T/B),
20
20
  * 尺寸也按同一套基准走(见 `POWER_STYLE` 与各 preset 的 width/height)。
21
21
  */
22
- import { ICEGroup } from '../ice-render/index';
22
+ import { ICEGroup } from 'ice-render';
23
23
  export declare const POWER_SYMBOL_KINDS: readonly ["busbar", "breaker", "disconnector", "loadSwitch", "earthingSwitch", "earth", "currentTransformer", "voltageTransformer", "transformer", "fuse", "arrester", "reactor", "generator", "motor", "load", "capacitor", "arcSuppressionCoil", "threeWindingTransformer", "groundingTransformer", "groundingResistor", "cable", "cableTermination", "cubicle"];
24
- export declare type PowerSymbolKind = (typeof POWER_SYMBOL_KINDS)[number];
25
- declare type PowerSymbolPreset = {
24
+ export type PowerSymbolKind = (typeof POWER_SYMBOL_KINDS)[number];
25
+ type PowerSymbolPreset = {
26
26
  /** 中文名(属性面板 / 图例用) */
27
27
  label: string;
28
28
  /** 图形符号旁的文字符号(JB/T 5872 / GB/T 7159 口径) */
@@ -57,7 +57,7 @@ export declare const POWER_STYLE: {
57
57
  };
58
58
  /** 有分 / 合状态的开关电器(其余是静止设备) */
59
59
  export declare const POWER_SWITCH_KINDS: PowerSymbolKind[];
60
- export declare type PowerSwitchState = 'open' | 'closed';
60
+ export type PowerSwitchState = 'open' | 'closed';
61
61
  /**
62
62
  * @class PowerSymbol 电力一次系统图的图元(复合组件)
63
63
  *
@@ -66,7 +66,7 @@ export declare type PowerSwitchState = 'open' | 'closed';
66
66
  * **不用位置去猜**。
67
67
  */
68
68
  export default class PowerSymbol extends ICEGroup {
69
- static readonly typeId = "PowerSymbol";
69
+ static readonly typeId = "ice-entity-designer:PowerSymbol";
70
70
  /** 派生部件:`{ role, component }` 列表(按添加顺序) */
71
71
  parts: Array<{
72
72
  role: string;
@@ -14,7 +14,7 @@
14
14
  * 颜色名对应的是行业称呼,hex 是近似值 —— 需要贴合某家公司规范时,
15
15
  * 用 `PowerDesigner.setVoltageColors({ '110kV': '#xxxxxx' })` 覆盖即可。
16
16
  */
17
- export declare type PowerVoltageLevel = {
17
+ export type PowerVoltageLevel = {
18
18
  /** 等级标识:'500kV' / '220kV' / '110kV' / '35kV' / '10kV' / '6kV' */
19
19
  level: string;
20
20
  /** 行业里的颜色称呼 */
@@ -14,7 +14,7 @@
14
14
  * 颜色名对应的是行业称呼,hex 是近似值 —— 需要贴合某家公司规范时,
15
15
  * 用 `PowerDesigner.setVoltageColors({ '110kV': '#xxxxxx' })` 覆盖即可。
16
16
  */
17
- export declare type PowerVoltageLevel = {
17
+ export type PowerVoltageLevel = {
18
18
  /** 等级标识:'500kV' / '220kV' / '110kV' / '35kV' / '10kV' / '6kV' */
19
19
  level: string;
20
20
  /** 行业里的颜色称呼 */
@@ -4,7 +4,7 @@ import type { EntityDesigner, FlowDesigner } from '../index.mjs';
4
4
  * 由 <EntityDesignerCanvas>(或 <EntityDesignerProvider>)提供,供子树内的 useEntityDesigner() 读取。
5
5
  */
6
6
  export declare const EntityDesignerContext: import("react").Context<EntityDesigner>;
7
- export declare type EntityDesignerProviderProps = {
7
+ export type EntityDesignerProviderProps = {
8
8
  /** 要共享的 EntityDesigner 实例(通常来自 createDesignerSession) */
9
9
  designer: EntityDesigner | null;
10
10
  children?: any;
@@ -28,7 +28,7 @@ export declare function useEntityDesigner(): EntityDesigner | null;
28
28
  * 由 <FlowDesignerCanvas>(或 <FlowDesignerProvider>)提供,供子树内的 useFlowDesigner() 读取。
29
29
  */
30
30
  export declare const FlowDesignerContext: import("react").Context<FlowDesigner>;
31
- export declare type FlowDesignerProviderProps = {
31
+ export type FlowDesignerProviderProps = {
32
32
  /** 要共享的 FlowDesigner 实例(通常来自 createFlowSession) */
33
33
  designer: FlowDesigner | null;
34
34
  children?: any;
@@ -4,7 +4,7 @@ import type { EntityDesigner, FlowDesigner } from '../index';
4
4
  * 由 <EntityDesignerCanvas>(或 <EntityDesignerProvider>)提供,供子树内的 useEntityDesigner() 读取。
5
5
  */
6
6
  export declare const EntityDesignerContext: import("react").Context<EntityDesigner>;
7
- export declare type EntityDesignerProviderProps = {
7
+ export type EntityDesignerProviderProps = {
8
8
  /** 要共享的 EntityDesigner 实例(通常来自 createDesignerSession) */
9
9
  designer: EntityDesigner | null;
10
10
  children?: any;
@@ -28,7 +28,7 @@ export declare function useEntityDesigner(): EntityDesigner | null;
28
28
  * 由 <FlowDesignerCanvas>(或 <FlowDesignerProvider>)提供,供子树内的 useFlowDesigner() 读取。
29
29
  */
30
30
  export declare const FlowDesignerContext: import("react").Context<FlowDesigner>;
31
- export declare type FlowDesignerProviderProps = {
31
+ export type FlowDesignerProviderProps = {
32
32
  /** 要共享的 FlowDesigner 实例(通常来自 createFlowSession) */
33
33
  designer: FlowDesigner | null;
34
34
  children?: any;
@@ -1,4 +1,3 @@
1
- /// <reference path="../gl-matrix.d.ts" />
2
1
  /**
3
2
  * ice-entity-designer 的 React 绑定入口。
4
3
  *
@@ -1,4 +1,3 @@
1
- /// <reference path="../gl-matrix.d.ts" />
2
1
  /**
3
2
  * ice-entity-designer 的 React 绑定入口。
4
3
  *
@@ -1,5 +1,5 @@
1
1
  import { EntityDesigner, FlowDesigner } from '../index.mjs';
2
- export declare type DesignerSessionOptions = {
2
+ export type DesignerSessionOptions = {
3
3
  /** 渲染模式,默认 dirty-rect */
4
4
  renderMode?: 'dirty-rect' | 'full';
5
5
  /** 初始项目快照,等价于 loadProject(initialProject) */
@@ -7,7 +7,7 @@ export declare type DesignerSessionOptions = {
7
7
  /** 模型变更回调 */
8
8
  onChange?: (snapshot: string) => void;
9
9
  };
10
- export declare type DesignerSession = {
10
+ export type DesignerSession = {
11
11
  ice: any;
12
12
  designer: EntityDesigner;
13
13
  /** 销毁会话:退订 + dispose designer + destroy ICE(可重复调用) */
@@ -28,7 +28,7 @@ export declare function createDesignerSession(canvas: any, options?: DesignerSes
28
28
  * 此时 lastApplied 已经等于该值,因此这里返回 false,避免「onChange → setState → 再 loadProject」的回环。
29
29
  */
30
30
  export declare function shouldApplyControlledValue(value: string | undefined, lastApplied: string | null | undefined): boolean;
31
- export declare type FlowSessionOptions = {
31
+ export type FlowSessionOptions = {
32
32
  /** 渲染模式,默认 dirty-rect */
33
33
  renderMode?: 'dirty-rect' | 'full';
34
34
  /** 初始流程图快照,等价于 load(initialFlow) */
@@ -36,7 +36,7 @@ export declare type FlowSessionOptions = {
36
36
  /** 流程变更回调(含画布拖动节点) */
37
37
  onChange?: (snapshot: string) => void;
38
38
  };
39
- export declare type FlowSession = {
39
+ export type FlowSession = {
40
40
  ice: any;
41
41
  designer: FlowDesigner;
42
42
  /** 销毁会话:退订 + dispose designer + destroy ICE(可重复调用) */
@@ -1,5 +1,5 @@
1
1
  import { EntityDesigner, FlowDesigner } from '../index';
2
- export declare type DesignerSessionOptions = {
2
+ export type DesignerSessionOptions = {
3
3
  /** 渲染模式,默认 dirty-rect */
4
4
  renderMode?: 'dirty-rect' | 'full';
5
5
  /** 初始项目快照,等价于 loadProject(initialProject) */
@@ -7,7 +7,7 @@ export declare type DesignerSessionOptions = {
7
7
  /** 模型变更回调 */
8
8
  onChange?: (snapshot: string) => void;
9
9
  };
10
- export declare type DesignerSession = {
10
+ export type DesignerSession = {
11
11
  ice: any;
12
12
  designer: EntityDesigner;
13
13
  /** 销毁会话:退订 + dispose designer + destroy ICE(可重复调用) */
@@ -28,7 +28,7 @@ export declare function createDesignerSession(canvas: any, options?: DesignerSes
28
28
  * 此时 lastApplied 已经等于该值,因此这里返回 false,避免「onChange → setState → 再 loadProject」的回环。
29
29
  */
30
30
  export declare function shouldApplyControlledValue(value: string | undefined, lastApplied: string | null | undefined): boolean;
31
- export declare type FlowSessionOptions = {
31
+ export type FlowSessionOptions = {
32
32
  /** 渲染模式,默认 dirty-rect */
33
33
  renderMode?: 'dirty-rect' | 'full';
34
34
  /** 初始流程图快照,等价于 load(initialFlow) */
@@ -36,7 +36,7 @@ export declare type FlowSessionOptions = {
36
36
  /** 流程变更回调(含画布拖动节点) */
37
37
  onChange?: (snapshot: string) => void;
38
38
  };
39
- export declare type FlowSession = {
39
+ export type FlowSession = {
40
40
  ice: any;
41
41
  designer: FlowDesigner;
42
42
  /** 销毁会话:退订 + dispose designer + destroy ICE(可重复调用) */
@@ -2,13 +2,13 @@
2
2
  * React 绑定层的类型定义。
3
3
  */
4
4
  import type { EntityDesigner, FlowDesigner, FlowLoadReport, FlowNodeKind, ProjectLoadReport } from '../index.mjs';
5
- export declare type EntityDesignerChangePayload = {
5
+ export type EntityDesignerChangePayload = {
6
6
  /** 项目快照,等价于 designer.serializeProject() 的结果 */
7
7
  snapshot: string;
8
8
  /** 当前 TypeORM Schema(toSchemaObject 的结果) */
9
9
  schema: object;
10
10
  };
11
- export declare type EntityDesignerErrorPayload = {
11
+ export type EntityDesignerErrorPayload = {
12
12
  /** 出错阶段:挂载时载入初始快照 / 受控模式同步外部 value */
13
13
  phase: 'load-initial' | 'load-controlled';
14
14
  /** 触发失败的快照(value 或 defaultValue) */
@@ -16,7 +16,7 @@ export declare type EntityDesignerErrorPayload = {
16
16
  /** 原始错误(loadProject 对非法 / 版本不兼容的快照会抛错) */
17
17
  error: Error;
18
18
  };
19
- export declare type EntityDesignerHandle = {
19
+ export type EntityDesignerHandle = {
20
20
  /** 底层 ICE 实例(卸载后为 null) */
21
21
  ice: any;
22
22
  /** 底层 EntityDesigner 实例(卸载后为 null) */
@@ -34,7 +34,7 @@ export declare type EntityDesignerHandle = {
34
34
  validate(): any[];
35
35
  serializeProject(): string;
36
36
  };
37
- export declare type EntityDesignerCanvasProps = {
37
+ export type EntityDesignerCanvasProps = {
38
38
  /**
39
39
  * 受控模式:项目快照。变化时会同步进画布(内部变更通过 onChange 上报,带循环保护)。
40
40
  * 与 defaultValue 互斥,value 优先。
@@ -62,7 +62,7 @@ export declare type EntityDesignerCanvasProps = {
62
62
  /** 子节点渲染在上下文内部,可直接使用 useEntityDesigner() */
63
63
  children?: any;
64
64
  };
65
- export declare type FlowDesignerChangePayload = {
65
+ export type FlowDesignerChangePayload = {
66
66
  /** 流程图快照,等价于 designer.serialize() 的结果 */
67
67
  snapshot: string;
68
68
  /** 当前节点 / 连线条数,便于直接渲染统计信息 */
@@ -71,7 +71,7 @@ export declare type FlowDesignerChangePayload = {
71
71
  edges: number;
72
72
  };
73
73
  };
74
- export declare type FlowDesignerHandle = {
74
+ export type FlowDesignerHandle = {
75
75
  /** 底层 ICE 实例(卸载后为 null) */
76
76
  ice: any;
77
77
  /** 底层 FlowDesigner 实例(卸载后为 null) */
@@ -88,7 +88,7 @@ export declare type FlowDesignerHandle = {
88
88
  toSnapshot(): any;
89
89
  fitViewport(padding?: number): void;
90
90
  };
91
- export declare type FlowDesignerCanvasProps = {
91
+ export type FlowDesignerCanvasProps = {
92
92
  /**
93
93
  * 受控模式:流程图快照。变化时会同步进画布(内部变更通过 onChange 上报,带循环保护)。
94
94
  * 与 defaultValue 互斥,value 优先。
@@ -2,13 +2,13 @@
2
2
  * React 绑定层的类型定义。
3
3
  */
4
4
  import type { EntityDesigner, FlowDesigner, FlowLoadReport, FlowNodeKind, ProjectLoadReport } from '../index';
5
- export declare type EntityDesignerChangePayload = {
5
+ export type EntityDesignerChangePayload = {
6
6
  /** 项目快照,等价于 designer.serializeProject() 的结果 */
7
7
  snapshot: string;
8
8
  /** 当前 TypeORM Schema(toSchemaObject 的结果) */
9
9
  schema: object;
10
10
  };
11
- export declare type EntityDesignerErrorPayload = {
11
+ export type EntityDesignerErrorPayload = {
12
12
  /** 出错阶段:挂载时载入初始快照 / 受控模式同步外部 value */
13
13
  phase: 'load-initial' | 'load-controlled';
14
14
  /** 触发失败的快照(value 或 defaultValue) */
@@ -16,7 +16,7 @@ export declare type EntityDesignerErrorPayload = {
16
16
  /** 原始错误(loadProject 对非法 / 版本不兼容的快照会抛错) */
17
17
  error: Error;
18
18
  };
19
- export declare type EntityDesignerHandle = {
19
+ export type EntityDesignerHandle = {
20
20
  /** 底层 ICE 实例(卸载后为 null) */
21
21
  ice: any;
22
22
  /** 底层 EntityDesigner 实例(卸载后为 null) */
@@ -34,7 +34,7 @@ export declare type EntityDesignerHandle = {
34
34
  validate(): any[];
35
35
  serializeProject(): string;
36
36
  };
37
- export declare type EntityDesignerCanvasProps = {
37
+ export type EntityDesignerCanvasProps = {
38
38
  /**
39
39
  * 受控模式:项目快照。变化时会同步进画布(内部变更通过 onChange 上报,带循环保护)。
40
40
  * 与 defaultValue 互斥,value 优先。
@@ -62,7 +62,7 @@ export declare type EntityDesignerCanvasProps = {
62
62
  /** 子节点渲染在上下文内部,可直接使用 useEntityDesigner() */
63
63
  children?: any;
64
64
  };
65
- export declare type FlowDesignerChangePayload = {
65
+ export type FlowDesignerChangePayload = {
66
66
  /** 流程图快照,等价于 designer.serialize() 的结果 */
67
67
  snapshot: string;
68
68
  /** 当前节点 / 连线条数,便于直接渲染统计信息 */
@@ -71,7 +71,7 @@ export declare type FlowDesignerChangePayload = {
71
71
  edges: number;
72
72
  };
73
73
  };
74
- export declare type FlowDesignerHandle = {
74
+ export type FlowDesignerHandle = {
75
75
  /** 底层 ICE 实例(卸载后为 null) */
76
76
  ice: any;
77
77
  /** 底层 FlowDesigner 实例(卸载后为 null) */
@@ -88,7 +88,7 @@ export declare type FlowDesignerHandle = {
88
88
  toSnapshot(): any;
89
89
  fitViewport(padding?: number): void;
90
90
  };
91
- export declare type FlowDesignerCanvasProps = {
91
+ export type FlowDesignerCanvasProps = {
92
92
  /**
93
93
  * 受控模式:流程图快照。变化时会同步进画布(内部变更通过 onChange 上报,带循环保护)。
94
94
  * 与 defaultValue 互斥,value 优先。
@@ -17,14 +17,14 @@
17
17
  import FlowDesigner from '../flow/FlowDesigner.mjs';
18
18
  import FlowEdge from '../flow/FlowEdge.mjs';
19
19
  import type { SecondarySymbolKind } from './secondary_shapes.mjs';
20
- export declare type SecondaryIssue = {
20
+ export type SecondaryIssue = {
21
21
  level: 'error' | 'warning';
22
22
  message: string;
23
23
  id?: string;
24
24
  };
25
25
  /** 二次回路的导线:复用引擎折线(插槽吸附 / 正交路由 / 标签),额外带回路编号与电缆编号 */
26
26
  export declare class SecondaryWire extends FlowEdge {
27
- static readonly typeId = "SecondaryWire";
27
+ static readonly typeId = "ice-entity-designer:SecondaryWire";
28
28
  constructor(props?: any);
29
29
  }
30
30
  /**
@@ -17,14 +17,14 @@
17
17
  import FlowDesigner from '../flow/FlowDesigner';
18
18
  import FlowEdge from '../flow/FlowEdge';
19
19
  import type { SecondarySymbolKind } from './secondary_shapes';
20
- export declare type SecondaryIssue = {
20
+ export type SecondaryIssue = {
21
21
  level: 'error' | 'warning';
22
22
  message: string;
23
23
  id?: string;
24
24
  };
25
25
  /** 二次回路的导线:复用引擎折线(插槽吸附 / 正交路由 / 标签),额外带回路编号与电缆编号 */
26
26
  export declare class SecondaryWire extends FlowEdge {
27
- static readonly typeId = "SecondaryWire";
27
+ static readonly typeId = "ice-entity-designer:SecondaryWire";
28
28
  constructor(props?: any);
29
29
  }
30
30
  /**
@@ -14,9 +14,9 @@
14
14
  * 49 过流继电器、33 位置开关、63 压力…),与一次侧的 QF/QS 体系分开;
15
15
  * - 回路编号(A411/B411/C411/N411)、端子号(201…)、电缆编号(1D1…)是数据字段,画成标注。
16
16
  */
17
- import { ICEGroup } from '../ice-render/index.mjs';
17
+ import { ICEGroup } from 'ice-render';
18
18
  export declare const SECONDARY_SYMBOL_KINDS: readonly ["contactNO", "contactNC", "pushButton", "switchRemoteLocal", "linkPlate", "indicatorLamp", "relayDevice", "ctWinding", "terminal", "earth"];
19
- export declare type SecondarySymbolKind = (typeof SECONDARY_SYMBOL_KINDS)[number];
19
+ export type SecondarySymbolKind = (typeof SECONDARY_SYMBOL_KINDS)[number];
20
20
  /** 二次侧文字符号(IEEE C37.2 功能编号),与一次侧的 QF/QS 体系分开 */
21
21
  export declare const SECONDARY_SYMBOL_PRESETS: Record<SecondarySymbolKind, {
22
22
  label: string;
@@ -41,7 +41,7 @@ export declare const SECONDARY_STYLE: {
41
41
  * 每个派生部件带稳定 `role`,测试按 role 认记法。
42
42
  */
43
43
  export default class SecondarySymbol extends ICEGroup {
44
- static readonly typeId = "SecondarySymbol";
44
+ static readonly typeId = "ice-entity-designer:SecondarySymbol";
45
45
  parts: Array<{
46
46
  role: string;
47
47
  component: any;
@@ -70,6 +70,6 @@ export default class SecondarySymbol extends ICEGroup {
70
70
  * 跳过全部子节点,端子排的端子在快照往返时会整套丢掉(BPMN 池/泳道目前就踩了这个坑)。
71
71
  */
72
72
  export declare class TerminalStrip extends ICEGroup {
73
- static readonly typeId = "TerminalStrip";
73
+ static readonly typeId = "ice-entity-designer:TerminalStrip";
74
74
  constructor(props?: any);
75
75
  }
@@ -14,9 +14,9 @@
14
14
  * 49 过流继电器、33 位置开关、63 压力…),与一次侧的 QF/QS 体系分开;
15
15
  * - 回路编号(A411/B411/C411/N411)、端子号(201…)、电缆编号(1D1…)是数据字段,画成标注。
16
16
  */
17
- import { ICEGroup } from '../ice-render/index';
17
+ import { ICEGroup } from 'ice-render';
18
18
  export declare const SECONDARY_SYMBOL_KINDS: readonly ["contactNO", "contactNC", "pushButton", "switchRemoteLocal", "linkPlate", "indicatorLamp", "relayDevice", "ctWinding", "terminal", "earth"];
19
- export declare type SecondarySymbolKind = (typeof SECONDARY_SYMBOL_KINDS)[number];
19
+ export type SecondarySymbolKind = (typeof SECONDARY_SYMBOL_KINDS)[number];
20
20
  /** 二次侧文字符号(IEEE C37.2 功能编号),与一次侧的 QF/QS 体系分开 */
21
21
  export declare const SECONDARY_SYMBOL_PRESETS: Record<SecondarySymbolKind, {
22
22
  label: string;
@@ -41,7 +41,7 @@ export declare const SECONDARY_STYLE: {
41
41
  * 每个派生部件带稳定 `role`,测试按 role 认记法。
42
42
  */
43
43
  export default class SecondarySymbol extends ICEGroup {
44
- static readonly typeId = "SecondarySymbol";
44
+ static readonly typeId = "ice-entity-designer:SecondarySymbol";
45
45
  parts: Array<{
46
46
  role: string;
47
47
  component: any;
@@ -70,6 +70,6 @@ export default class SecondarySymbol extends ICEGroup {
70
70
  * 跳过全部子节点,端子排的端子在快照往返时会整套丢掉(BPMN 池/泳道目前就踩了这个坑)。
71
71
  */
72
72
  export declare class TerminalStrip extends ICEGroup {
73
- static readonly typeId = "TerminalStrip";
73
+ static readonly typeId = "ice-entity-designer:TerminalStrip";
74
74
  constructor(props?: any);
75
75
  }
@@ -5,9 +5,9 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ICEGroup, ICEText } from '../ice-render/index.mjs';
8
+ import { ICEGroup, ICEText } from 'ice-render';
9
9
  export declare const STATECHART_NODE_KINDS: readonly ["initial", "final", "state", "composite"];
10
- export declare type StatechartNodeKind = (typeof STATECHART_NODE_KINDS)[number];
10
+ export type StatechartNodeKind = (typeof STATECHART_NODE_KINDS)[number];
11
11
  /**
12
12
  * @class StateNode 状态机的节点(伪状态 / 状态 / 复合状态)
13
13
  *
@@ -19,7 +19,7 @@ export declare type StatechartNodeKind = (typeof STATECHART_NODE_KINDS)[number];
19
19
  * - `composite` 复合状态:**容器** —— 名字靠左上,框里留给子状态;拖动它子状态一起走(引擎容器能力)
20
20
  */
21
21
  export default class StateNode extends ICEGroup {
22
- static readonly typeId = "StateNode";
22
+ static readonly typeId = "ice-entity-designer:StateNode";
23
23
  protected shapeComponent: any;
24
24
  protected innerRingComponent: any;
25
25
  protected labelComponent: ICEText | null;
@@ -5,9 +5,9 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ICEGroup, ICEText } from '../ice-render/index';
8
+ import { ICEGroup, ICEText } from 'ice-render';
9
9
  export declare const STATECHART_NODE_KINDS: readonly ["initial", "final", "state", "composite"];
10
- export declare type StatechartNodeKind = (typeof STATECHART_NODE_KINDS)[number];
10
+ export type StatechartNodeKind = (typeof STATECHART_NODE_KINDS)[number];
11
11
  /**
12
12
  * @class StateNode 状态机的节点(伪状态 / 状态 / 复合状态)
13
13
  *
@@ -19,7 +19,7 @@ export declare type StatechartNodeKind = (typeof STATECHART_NODE_KINDS)[number];
19
19
  * - `composite` 复合状态:**容器** —— 名字靠左上,框里留给子状态;拖动它子状态一起走(引擎容器能力)
20
20
  */
21
21
  export default class StateNode extends ICEGroup {
22
- static readonly typeId = "StateNode";
22
+ static readonly typeId = "ice-entity-designer:StateNode";
23
23
  protected shapeComponent: any;
24
24
  protected innerRingComponent: any;
25
25
  protected labelComponent: ICEText | null;