ice-entity-designer 0.0.39 → 0.1.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 (223) hide show
  1. package/README.md +69 -14
  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 +3 -3
  8. package/dist/types/bpmn/BpmnSimulator.d.ts +3 -3
  9. package/dist/types/bpmn/bpmn_shapes.d.mts +1 -1
  10. package/dist/types/bpmn/bpmn_shapes.d.ts +1 -1
  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 +2 -2
  18. package/dist/types/er-component/Entity.d.ts +2 -2
  19. package/dist/types/er-component/Relation.d.mts +1 -1
  20. package/dist/types/er-component/Relation.d.ts +1 -1
  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 +3 -3
  26. package/dist/types/flow/FlowNode.d.ts +3 -3
  27. package/dist/types/flow/flow_shapes.d.mts +1 -1
  28. package/dist/types/flow/flow_shapes.d.ts +1 -1
  29. package/dist/types/gantt/GanttDependency.d.mts +1 -1
  30. package/dist/types/gantt/GanttDependency.d.ts +1 -1
  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 +2 -2
  34. package/dist/types/gantt/GanttRuler.d.ts +2 -2
  35. package/dist/types/gantt/GanttTask.d.mts +1 -1
  36. package/dist/types/gantt/GanttTask.d.ts +1 -1
  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 +2 -2
  42. package/dist/types/power/PowerDesigner.d.ts +2 -2
  43. package/dist/types/power/power_shapes.d.mts +4 -4
  44. package/dist/types/power/power_shapes.d.ts +4 -4
  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 +1 -1
  56. package/dist/types/secondary/SecondaryDesigner.d.ts +1 -1
  57. package/dist/types/secondary/secondary_shapes.d.mts +2 -2
  58. package/dist/types/secondary/secondary_shapes.d.ts +2 -2
  59. package/dist/types/statechart/StateNode.d.mts +2 -2
  60. package/dist/types/statechart/StateNode.d.ts +2 -2
  61. package/dist/types/statechart/StateTransition.d.mts +1 -1
  62. package/dist/types/statechart/StateTransition.d.ts +1 -1
  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 +2 -2
  68. package/dist/types/uml/UmlClass.d.ts +2 -2
  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 +4 -4
  72. package/dist/types/uml/UmlRelation.d.ts +4 -4
  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/project_codec.d.mts +2 -2
  76. package/dist/types/utils/project_codec.d.ts +2 -2
  77. package/dist/types/utils/project_schema.d.mts +1 -1
  78. package/dist/types/utils/project_schema.d.ts +1 -1
  79. package/dist/types/utils/schema_validator.d.mts +1 -1
  80. package/dist/types/utils/schema_validator.d.ts +1 -1
  81. package/package.json +24 -20
  82. package/dist/types/gl-matrix.d.mts +0 -3273
  83. package/dist/types/gl-matrix.d.ts +0 -3273
  84. package/dist/types/ice-render/FrameManager.d.mts +0 -26
  85. package/dist/types/ice-render/FrameManager.d.ts +0 -26
  86. package/dist/types/ice-render/ICE.d.mts +0 -424
  87. package/dist/types/ice-render/ICE.d.ts +0 -424
  88. package/dist/types/ice-render/a11y/accessibility.d.mts +0 -46
  89. package/dist/types/ice-render/a11y/accessibility.d.ts +0 -46
  90. package/dist/types/ice-render/animation/AnimationManager.d.mts +0 -96
  91. package/dist/types/ice-render/animation/AnimationManager.d.ts +0 -96
  92. package/dist/types/ice-render/animation/Easing.d.mts +0 -33
  93. package/dist/types/ice-render/animation/Easing.d.ts +0 -33
  94. package/dist/types/ice-render/consts/BIG_ZINDEX_NUMBER.d.mts +0 -14
  95. package/dist/types/ice-render/consts/BIG_ZINDEX_NUMBER.d.ts +0 -14
  96. package/dist/types/ice-render/consts/COMPONENT_TYPE_MAPPING.d.mts +0 -45
  97. package/dist/types/ice-render/consts/COMPONENT_TYPE_MAPPING.d.ts +0 -45
  98. package/dist/types/ice-render/consts/DOM_EVENT_MAPPING_CONSTS.d.mts +0 -37
  99. package/dist/types/ice-render/consts/DOM_EVENT_MAPPING_CONSTS.d.ts +0 -37
  100. package/dist/types/ice-render/consts/ICE_EVENT_NAME_CONSTS.d.mts +0 -27
  101. package/dist/types/ice-render/consts/ICE_EVENT_NAME_CONSTS.d.ts +0 -27
  102. package/dist/types/ice-render/control-panel/AlignmentGuideManager.d.mts +0 -92
  103. package/dist/types/ice-render/control-panel/AlignmentGuideManager.d.ts +0 -92
  104. package/dist/types/ice-render/control-panel/ICEControlPanel.d.mts +0 -37
  105. package/dist/types/ice-render/control-panel/ICEControlPanel.d.ts +0 -37
  106. package/dist/types/ice-render/control-panel/ICEControlPanelManager.d.mts +0 -25
  107. package/dist/types/ice-render/control-panel/ICEControlPanelManager.d.ts +0 -25
  108. package/dist/types/ice-render/control-panel/link-controls/LineControlPanel.d.mts +0 -39
  109. package/dist/types/ice-render/control-panel/link-controls/LineControlPanel.d.ts +0 -39
  110. package/dist/types/ice-render/control-panel/transform-controls/ResizeControl.d.mts +0 -38
  111. package/dist/types/ice-render/control-panel/transform-controls/ResizeControl.d.ts +0 -38
  112. package/dist/types/ice-render/control-panel/transform-controls/RotateControl.d.mts +0 -12
  113. package/dist/types/ice-render/control-panel/transform-controls/RotateControl.d.ts +0 -12
  114. package/dist/types/ice-render/control-panel/transform-controls/TransformControlPanel.d.mts +0 -83
  115. package/dist/types/ice-render/control-panel/transform-controls/TransformControlPanel.d.ts +0 -83
  116. package/dist/types/ice-render/control-panel/transform-controls/constraints.d.mts +0 -24
  117. package/dist/types/ice-render/control-panel/transform-controls/constraints.d.ts +0 -24
  118. package/dist/types/ice-render/cross-platform/Path2DRecorder.d.mts +0 -76
  119. package/dist/types/ice-render/cross-platform/Path2DRecorder.d.ts +0 -76
  120. package/dist/types/ice-render/cross-platform/PolyfillPath2D.d.mts +0 -21
  121. package/dist/types/ice-render/cross-platform/PolyfillPath2D.d.ts +0 -21
  122. package/dist/types/ice-render/cross-platform/root.d.mts +0 -7
  123. package/dist/types/ice-render/cross-platform/root.d.ts +0 -7
  124. package/dist/types/ice-render/event/DOMEventDispatcher.d.mts +0 -75
  125. package/dist/types/ice-render/event/DOMEventDispatcher.d.ts +0 -75
  126. package/dist/types/ice-render/event/DOMEventInterceptor.d.mts +0 -36
  127. package/dist/types/ice-render/event/DOMEventInterceptor.d.ts +0 -36
  128. package/dist/types/ice-render/event/EventBus.d.mts +0 -27
  129. package/dist/types/ice-render/event/EventBus.d.ts +0 -27
  130. package/dist/types/ice-render/event/ICEEvent.d.mts +0 -46
  131. package/dist/types/ice-render/event/ICEEvent.d.ts +0 -46
  132. package/dist/types/ice-render/event/ICEEventTarget.d.mts +0 -106
  133. package/dist/types/ice-render/event/ICEEventTarget.d.ts +0 -106
  134. package/dist/types/ice-render/event/input-normalize.d.mts +0 -75
  135. package/dist/types/ice-render/event/input-normalize.d.ts +0 -75
  136. package/dist/types/ice-render/export/SvgExporter.d.mts +0 -54
  137. package/dist/types/ice-render/export/SvgExporter.d.ts +0 -54
  138. package/dist/types/ice-render/geometry/GeoLine.d.mts +0 -24
  139. package/dist/types/ice-render/geometry/GeoLine.d.ts +0 -24
  140. package/dist/types/ice-render/geometry/GeoPoint.d.mts +0 -53
  141. package/dist/types/ice-render/geometry/GeoPoint.d.ts +0 -53
  142. package/dist/types/ice-render/geometry/GeoUtil.d.mts +0 -73
  143. package/dist/types/ice-render/geometry/GeoUtil.d.ts +0 -73
  144. package/dist/types/ice-render/geometry/ICEBoundingBox.d.mts +0 -81
  145. package/dist/types/ice-render/geometry/ICEBoundingBox.d.ts +0 -81
  146. package/dist/types/ice-render/graphic/ICEComponent.d.mts +0 -535
  147. package/dist/types/ice-render/graphic/ICEComponent.d.ts +0 -535
  148. package/dist/types/ice-render/graphic/ICEDotPath.d.mts +0 -99
  149. package/dist/types/ice-render/graphic/ICEDotPath.d.ts +0 -99
  150. package/dist/types/ice-render/graphic/ICEImage.d.mts +0 -17
  151. package/dist/types/ice-render/graphic/ICEImage.d.ts +0 -17
  152. package/dist/types/ice-render/graphic/ICEPath.d.mts +0 -46
  153. package/dist/types/ice-render/graphic/ICEPath.d.ts +0 -46
  154. package/dist/types/ice-render/graphic/container/ICEGroup.d.mts +0 -111
  155. package/dist/types/ice-render/graphic/container/ICEGroup.d.ts +0 -111
  156. package/dist/types/ice-render/graphic/link/ICEBezier.d.mts +0 -23
  157. package/dist/types/ice-render/graphic/link/ICEBezier.d.ts +0 -23
  158. package/dist/types/ice-render/graphic/link/ICELinkHook.d.mts +0 -52
  159. package/dist/types/ice-render/graphic/link/ICELinkHook.d.ts +0 -52
  160. package/dist/types/ice-render/graphic/link/ICELinkSlot.d.mts +0 -54
  161. package/dist/types/ice-render/graphic/link/ICELinkSlot.d.ts +0 -54
  162. package/dist/types/ice-render/graphic/link/ICELinkSlotManager.d.mts +0 -28
  163. package/dist/types/ice-render/graphic/link/ICELinkSlotManager.d.ts +0 -28
  164. package/dist/types/ice-render/graphic/link/ICEPolyLine.d.mts +0 -316
  165. package/dist/types/ice-render/graphic/link/ICEPolyLine.d.ts +0 -316
  166. package/dist/types/ice-render/graphic/link/ICEVisioLink.d.mts +0 -163
  167. package/dist/types/ice-render/graphic/link/ICEVisioLink.d.ts +0 -163
  168. package/dist/types/ice-render/graphic/shape/ICECircle.d.mts +0 -19
  169. package/dist/types/ice-render/graphic/shape/ICECircle.d.ts +0 -19
  170. package/dist/types/ice-render/graphic/shape/ICEEllipse.d.mts +0 -29
  171. package/dist/types/ice-render/graphic/shape/ICEEllipse.d.ts +0 -29
  172. package/dist/types/ice-render/graphic/shape/ICEIsogon.d.mts +0 -52
  173. package/dist/types/ice-render/graphic/shape/ICEIsogon.d.ts +0 -52
  174. package/dist/types/ice-render/graphic/shape/ICERect.d.mts +0 -10
  175. package/dist/types/ice-render/graphic/shape/ICERect.d.ts +0 -10
  176. package/dist/types/ice-render/graphic/shape/ICERose.d.mts +0 -41
  177. package/dist/types/ice-render/graphic/shape/ICERose.d.ts +0 -41
  178. package/dist/types/ice-render/graphic/shape/ICEStar.d.mts +0 -45
  179. package/dist/types/ice-render/graphic/shape/ICEStar.d.ts +0 -45
  180. package/dist/types/ice-render/graphic/text/ICEText.d.mts +0 -158
  181. package/dist/types/ice-render/graphic/text/ICEText.d.ts +0 -158
  182. package/dist/types/ice-render/index.d.mts +0 -59
  183. package/dist/types/ice-render/index.d.ts +0 -59
  184. package/dist/types/ice-render/layout/ICEBorderLayout.d.mts +0 -34
  185. package/dist/types/ice-render/layout/ICEBorderLayout.d.ts +0 -34
  186. package/dist/types/ice-render/layout/ICEBoxLayout.d.mts +0 -30
  187. package/dist/types/ice-render/layout/ICEBoxLayout.d.ts +0 -30
  188. package/dist/types/ice-render/layout/ICECardLayout.d.mts +0 -36
  189. package/dist/types/ice-render/layout/ICECardLayout.d.ts +0 -36
  190. package/dist/types/ice-render/layout/ICEFlowLayout.d.mts +0 -31
  191. package/dist/types/ice-render/layout/ICEFlowLayout.d.ts +0 -31
  192. package/dist/types/ice-render/layout/ICEGridLayout.d.mts +0 -33
  193. package/dist/types/ice-render/layout/ICEGridLayout.d.ts +0 -33
  194. package/dist/types/ice-render/layout/ICELayeredLayout.d.mts +0 -49
  195. package/dist/types/ice-render/layout/ICELayeredLayout.d.ts +0 -49
  196. package/dist/types/ice-render/layout/ICELayoutManager.d.mts +0 -33
  197. package/dist/types/ice-render/layout/ICELayoutManager.d.ts +0 -33
  198. package/dist/types/ice-render/layout/ICEOverlayLayout.d.mts +0 -25
  199. package/dist/types/ice-render/layout/ICEOverlayLayout.d.ts +0 -25
  200. package/dist/types/ice-render/persistence/Deserializer.d.mts +0 -43
  201. package/dist/types/ice-render/persistence/Deserializer.d.ts +0 -43
  202. package/dist/types/ice-render/persistence/Serializer.d.mts +0 -35
  203. package/dist/types/ice-render/persistence/Serializer.d.ts +0 -35
  204. package/dist/types/ice-render/plugin/PluginHost.d.mts +0 -86
  205. package/dist/types/ice-render/plugin/PluginHost.d.ts +0 -86
  206. package/dist/types/ice-render/renderer/CanvasRenderer.d.mts +0 -150
  207. package/dist/types/ice-render/renderer/CanvasRenderer.d.ts +0 -150
  208. package/dist/types/ice-render/renderer/ObjectCache.d.mts +0 -79
  209. package/dist/types/ice-render/renderer/ObjectCache.d.ts +0 -79
  210. package/dist/types/ice-render/renderer/dirty-rect-util.d.mts +0 -86
  211. package/dist/types/ice-render/renderer/dirty-rect-util.d.ts +0 -86
  212. package/dist/types/ice-render/theme/ICETheme.d.mts +0 -382
  213. package/dist/types/ice-render/theme/ICETheme.d.ts +0 -382
  214. package/dist/types/ice-render/util/ImageCache.d.mts +0 -19
  215. package/dist/types/ice-render/util/ImageCache.d.ts +0 -19
  216. package/dist/types/ice-render/util/data-util.d.mts +0 -43
  217. package/dist/types/ice-render/util/data-util.d.ts +0 -43
  218. package/dist/types/ice-render/util/gl-matrix-skew.d.mts +0 -14
  219. package/dist/types/ice-render/util/gl-matrix-skew.d.ts +0 -14
  220. package/dist/types/ice-render/util/lang.d.mts +0 -28
  221. package/dist/types/ice-render/util/lang.d.ts +0 -28
  222. package/dist/types/ice-render/util/uuid.d.mts +0 -1
  223. 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 { ICECircle } from '../ice-render/index.mjs';
8
+ import { ICECircle } from 'ice-render';
9
9
  /**
10
10
  * 仿真令牌的点:一个普通的引擎圆,只是给了稳定的 `typeId`。
11
11
  *
@@ -16,7 +16,7 @@ export declare class SimTokenDot extends ICECircle {
16
16
  static readonly typeId = "SimToken";
17
17
  constructor(props?: any);
18
18
  }
19
- export declare type SimToken = {
19
+ export type SimToken = {
20
20
  id: string;
21
21
  /** 当前所在节点 */
22
22
  nodeId: string;
@@ -30,7 +30,7 @@ export declare type SimToken = {
30
30
  dwellRemaining: number;
31
31
  component: any;
32
32
  };
33
- export declare type BpmnSimulatorOptions = {
33
+ export type BpmnSimulatorOptions = {
34
34
  /** 任务/网关等节点上的默认停留时长(毫秒) */
35
35
  nodeDuration?: number;
36
36
  /** 走一条连线默认花多久(毫秒) */
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ICECircle } from '../ice-render/index';
8
+ import { ICECircle } from 'ice-render';
9
9
  /**
10
10
  * 仿真令牌的点:一个普通的引擎圆,只是给了稳定的 `typeId`。
11
11
  *
@@ -16,7 +16,7 @@ export declare class SimTokenDot extends ICECircle {
16
16
  static readonly typeId = "SimToken";
17
17
  constructor(props?: any);
18
18
  }
19
- export declare type SimToken = {
19
+ export type SimToken = {
20
20
  id: string;
21
21
  /** 当前所在节点 */
22
22
  nodeId: string;
@@ -30,7 +30,7 @@ export declare type SimToken = {
30
30
  dwellRemaining: number;
31
31
  component: any;
32
32
  };
33
- export declare type BpmnSimulatorOptions = {
33
+ export type BpmnSimulatorOptions = {
34
34
  /** 任务/网关等节点上的默认停留时长(毫秒) */
35
35
  nodeDuration?: number;
36
36
  /** 走一条连线默认花多久(毫秒) */
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ICEPath } from '../ice-render/index.mjs';
8
+ import { ICEPath } from 'ice-render';
9
9
  /**
10
10
  * 事件(圆):开始 / 中间 / 结束 + 触发类型图标。
11
11
  *
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ICEPath } from '../ice-render/index';
8
+ import { ICEPath } from 'ice-render';
9
9
  /**
10
10
  * 事件(圆):开始 / 中间 / 结束 + 触发类型图标。
11
11
  *
@@ -15,7 +15,7 @@
15
15
  * (真实 BPMN 里泳道是 `<laneSet>` 的显式归属;我们不做重父级,导出 XML 时按几何归类,
16
16
  * 这样拖拽体验与文档模型都简单,且不会出现「跨容器拖动导致连线错乱」。)
17
17
  */
18
- export declare type BpmnIssue = {
18
+ export type BpmnIssue = {
19
19
  level: 'error' | 'warning';
20
20
  code: string;
21
21
  message: string;
@@ -15,7 +15,7 @@
15
15
  * (真实 BPMN 里泳道是 `<laneSet>` 的显式归属;我们不做重父级,导出 XML 时按几何归类,
16
16
  * 这样拖拽体验与文档模型都简单,且不会出现「跨容器拖动导致连线错乱」。)
17
17
  */
18
- export declare type BpmnIssue = {
18
+ export type BpmnIssue = {
19
19
  level: 'error' | 'warning';
20
20
  code: string;
21
21
  message: string;
@@ -23,7 +23,7 @@
23
23
  * 与引擎 `Deserializer` 的容错语义保持一致。
24
24
  */
25
25
  import type FlowDesigner from '../flow/FlowDesigner.mjs';
26
- export declare type BpmnImportResult = {
26
+ export type BpmnImportResult = {
27
27
  nodes: number;
28
28
  edges: number;
29
29
  warnings: string[];
@@ -23,7 +23,7 @@
23
23
  * 与引擎 `Deserializer` 的容错语义保持一致。
24
24
  */
25
25
  import type FlowDesigner from '../flow/FlowDesigner';
26
- export declare type BpmnImportResult = {
26
+ export type BpmnImportResult = {
27
27
  nodes: number;
28
28
  edges: number;
29
29
  warnings: string[];
@@ -1,7 +1,7 @@
1
- import type { ICE } from '../ice-render/index.mjs';
1
+ import type { ICE } from 'ice-render';
2
2
  import { validateSchema } from '../utils/schema_validator.mjs';
3
3
  /** 载入快照时被跳过的节点明细(typeId 未注册) */
4
- export declare type ProjectLoadSkippedNode = {
4
+ export type ProjectLoadSkippedNode = {
5
5
  /** 该节点所在的数组 */
6
6
  bucket: 'entities' | 'relations';
7
7
  /** 该节点在数组中的下标 */
@@ -12,7 +12,7 @@ export declare type ProjectLoadSkippedNode = {
12
12
  id?: string;
13
13
  };
14
14
  /** loadProject() 的载入报告 */
15
- export declare type ProjectLoadReport = {
15
+ export type ProjectLoadReport = {
16
16
  /** 是否真的发生了一次项目替换(空值 / 非项目快照为 false) */
17
17
  loaded: boolean;
18
18
  /** 实际创建出的实体数量 */
@@ -1,7 +1,7 @@
1
- import type { ICE } from '../ice-render/index';
1
+ import type { ICE } from 'ice-render';
2
2
  import { validateSchema } from '../utils/schema_validator';
3
3
  /** 载入快照时被跳过的节点明细(typeId 未注册) */
4
- export declare type ProjectLoadSkippedNode = {
4
+ export type ProjectLoadSkippedNode = {
5
5
  /** 该节点所在的数组 */
6
6
  bucket: 'entities' | 'relations';
7
7
  /** 该节点在数组中的下标 */
@@ -12,7 +12,7 @@ export declare type ProjectLoadSkippedNode = {
12
12
  id?: string;
13
13
  };
14
14
  /** loadProject() 的载入报告 */
15
- export declare type ProjectLoadReport = {
15
+ export type ProjectLoadReport = {
16
16
  /** 是否真的发生了一次项目替换(空值 / 非项目快照为 false) */
17
17
  loaded: boolean;
18
18
  /** 实际创建出的实体数量 */
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ICEGroup, ICEPolyLine, ICERect, ICEText } from '../ice-render/index.mjs';
9
- export declare type EntityField = {
8
+ import { ICEGroup, ICEPolyLine, ICERect, ICEText } from 'ice-render';
9
+ export type EntityField = {
10
10
  name: string;
11
11
  type?: string;
12
12
  length?: number | string;
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ICEGroup, ICEPolyLine, ICERect, ICEText } from '../ice-render/index';
9
- export declare type EntityField = {
8
+ import { ICEGroup, ICEPolyLine, ICERect, ICEText } from 'ice-render';
9
+ export type EntityField = {
10
10
  name: string;
11
11
  type?: string;
12
12
  length?: number | string;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ICEVisioLink } from '../ice-render/index.mjs';
8
+ import { ICEVisioLink } from 'ice-render';
9
9
  /**
10
10
  * @class Relation
11
11
  *
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ICEVisioLink } from '../ice-render/index';
8
+ import { ICEVisioLink } from 'ice-render';
9
9
  /**
10
10
  * @class Relation
11
11
  *
@@ -1,4 +1,4 @@
1
- import type { ICE, SvgExportOptions } from '../ice-render/index.mjs';
1
+ import type { ICE, SvgExportOptions } from 'ice-render';
2
2
  import type { FlowNodeKind } from './FlowNode.mjs';
3
3
  import type { FlowPort } from './FlowEdge.mjs';
4
4
  /**
@@ -9,7 +9,7 @@ import type { FlowPort } from './FlowEdge.mjs';
9
9
  * 于是「组件 state 上的一切」(含应用层自定义 `data`)自动往返,新字段不需要在任何清单里登记,
10
10
  * 容错(未注册类型跳过 + unknownTypes)、版本迁移也全部沿用引擎那一套。
11
11
  */
12
- export declare type FlowSnapshot = {
12
+ export type FlowSnapshot = {
13
13
  version: 2;
14
14
  kind: 'flowchart';
15
15
  scene: {
@@ -19,7 +19,7 @@ export declare type FlowSnapshot = {
19
19
  };
20
20
  };
21
21
  /** load() 的载入报告 */
22
- export declare type FlowLoadReport = {
22
+ export type FlowLoadReport = {
23
23
  /** 是否真的发生了一次载入(空值 / 非流程图快照为 false) */
24
24
  loaded: boolean;
25
25
  nodes: number;
@@ -27,7 +27,7 @@ export declare type FlowLoadReport = {
27
27
  /** 因 typeId 不匹配被跳过的节点/连线 */
28
28
  skipped: string[];
29
29
  };
30
- export declare type FlowSnapshotValidationResult = {
30
+ export type FlowSnapshotValidationResult = {
31
31
  valid: boolean;
32
32
  errors: string[];
33
33
  };
@@ -1,4 +1,4 @@
1
- import type { ICE, SvgExportOptions } from '../ice-render/index';
1
+ import type { ICE, SvgExportOptions } from 'ice-render';
2
2
  import type { FlowNodeKind } from './FlowNode';
3
3
  import type { FlowPort } from './FlowEdge';
4
4
  /**
@@ -9,7 +9,7 @@ import type { FlowPort } from './FlowEdge';
9
9
  * 于是「组件 state 上的一切」(含应用层自定义 `data`)自动往返,新字段不需要在任何清单里登记,
10
10
  * 容错(未注册类型跳过 + unknownTypes)、版本迁移也全部沿用引擎那一套。
11
11
  */
12
- export declare type FlowSnapshot = {
12
+ export type FlowSnapshot = {
13
13
  version: 2;
14
14
  kind: 'flowchart';
15
15
  scene: {
@@ -19,7 +19,7 @@ export declare type FlowSnapshot = {
19
19
  };
20
20
  };
21
21
  /** load() 的载入报告 */
22
- export declare type FlowLoadReport = {
22
+ export type FlowLoadReport = {
23
23
  /** 是否真的发生了一次载入(空值 / 非流程图快照为 false) */
24
24
  loaded: boolean;
25
25
  nodes: number;
@@ -27,7 +27,7 @@ export declare type FlowLoadReport = {
27
27
  /** 因 typeId 不匹配被跳过的节点/连线 */
28
28
  skipped: string[];
29
29
  };
30
- export declare type FlowSnapshotValidationResult = {
30
+ export type FlowSnapshotValidationResult = {
31
31
  valid: boolean;
32
32
  errors: string[];
33
33
  };
@@ -5,9 +5,9 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ICEVisioLink } from '../ice-render/index.mjs';
8
+ import { ICEVisioLink } from 'ice-render';
9
9
  /** 连线端点所在的插槽位置(上 / 右 / 下 / 左 / 中心) */
10
- export declare type FlowPort = 'T' | 'R' | 'B' | 'L' | 'C';
10
+ export type FlowPort = 'T' | 'R' | 'B' | 'L' | 'C';
11
11
  /**
12
12
  * @class FlowEdge 流程图连线
13
13
  *
@@ -5,9 +5,9 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ICEVisioLink } from '../ice-render/index';
8
+ import { ICEVisioLink } from 'ice-render';
9
9
  /** 连线端点所在的插槽位置(上 / 右 / 下 / 左 / 中心) */
10
- export declare type FlowPort = 'T' | 'R' | 'B' | 'L' | 'C';
10
+ export type FlowPort = 'T' | 'R' | 'B' | 'L' | 'C';
11
11
  /**
12
12
  * @class FlowEdge 流程图连线
13
13
  *
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ICEGroup } from '../ice-render/index.mjs';
8
+ import { ICEGroup } from 'ice-render';
9
9
  /**
10
10
  * 节点类型词汇表。
11
11
  *
@@ -17,8 +17,8 @@ import { ICEGroup } from '../ice-render/index.mjs';
17
17
  * 与 BPMN 专属属性(eventKind / trigger / gatewayType / taskType / band)承载,
18
18
  * 因此文档、React 绑定、DSL 都不需要第二套实现。
19
19
  */
20
- export declare type FlowNodeKind = 'terminator' | 'process' | 'decision' | 'io' | 'bpmnEvent' | 'bpmnTask' | 'bpmnGateway' | 'bpmnSubprocess' | 'bpmnDataObject' | 'bpmnAnnotation' | 'bpmnPool' | 'bpmnLane';
21
- export declare type FlowNodePreset = {
20
+ export type FlowNodeKind = 'terminator' | 'process' | 'decision' | 'io' | 'bpmnEvent' | 'bpmnTask' | 'bpmnGateway' | 'bpmnSubprocess' | 'bpmnDataObject' | 'bpmnAnnotation' | 'bpmnPool' | 'bpmnLane';
21
+ export type FlowNodePreset = {
22
22
  label: string;
23
23
  width: number;
24
24
  height: number;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ICEGroup } from '../ice-render/index';
8
+ import { ICEGroup } from 'ice-render';
9
9
  /**
10
10
  * 节点类型词汇表。
11
11
  *
@@ -17,8 +17,8 @@ import { ICEGroup } from '../ice-render/index';
17
17
  * 与 BPMN 专属属性(eventKind / trigger / gatewayType / taskType / band)承载,
18
18
  * 因此文档、React 绑定、DSL 都不需要第二套实现。
19
19
  */
20
- export declare type FlowNodeKind = 'terminator' | 'process' | 'decision' | 'io' | 'bpmnEvent' | 'bpmnTask' | 'bpmnGateway' | 'bpmnSubprocess' | 'bpmnDataObject' | 'bpmnAnnotation' | 'bpmnPool' | 'bpmnLane';
21
- export declare type FlowNodePreset = {
20
+ export type FlowNodeKind = 'terminator' | 'process' | 'decision' | 'io' | 'bpmnEvent' | 'bpmnTask' | 'bpmnGateway' | 'bpmnSubprocess' | 'bpmnDataObject' | 'bpmnAnnotation' | 'bpmnPool' | 'bpmnLane';
21
+ export type FlowNodePreset = {
22
22
  label: string;
23
23
  width: number;
24
24
  height: number;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ICEPath } from '../ice-render/index.mjs';
8
+ import { ICEPath } from 'ice-render';
9
9
  /** 判定节点:菱形 */
10
10
  export declare class FlowDiamond extends ICEPath {
11
11
  static readonly typeId = "FlowDiamond";
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ICEPath } from '../ice-render/index';
8
+ import { ICEPath } from 'ice-render';
9
9
  /** 判定节点:菱形 */
10
10
  export declare class FlowDiamond extends ICEPath {
11
11
  static readonly typeId = "FlowDiamond";
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ICEPolyLine } from '../ice-render/index.mjs';
8
+ import { ICEPolyLine } from 'ice-render';
9
9
  /**
10
10
  * @class GanttDependency 甘特任务之间的依赖(完成 → 开始)
11
11
  *
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ICEPolyLine } from '../ice-render/index';
8
+ import { ICEPolyLine } from 'ice-render';
9
9
  /**
10
10
  * @class GanttDependency 甘特任务之间的依赖(完成 → 开始)
11
11
  *
@@ -7,12 +7,12 @@
7
7
  */
8
8
  import FlowDesigner from '../flow/FlowDesigner.mjs';
9
9
  import GanttRuler from './GanttRuler.mjs';
10
- export declare type GanttIssue = {
10
+ export type GanttIssue = {
11
11
  level: 'error' | 'warning';
12
12
  message: string;
13
13
  id?: string;
14
14
  };
15
- export declare type GanttTaskInput = {
15
+ export type GanttTaskInput = {
16
16
  title?: string;
17
17
  /** `YYYY-MM-DD` */
18
18
  start: string;
@@ -7,12 +7,12 @@
7
7
  */
8
8
  import FlowDesigner from '../flow/FlowDesigner';
9
9
  import GanttRuler from './GanttRuler';
10
- export declare type GanttIssue = {
10
+ export type GanttIssue = {
11
11
  level: 'error' | 'warning';
12
12
  message: string;
13
13
  id?: string;
14
14
  };
15
- export declare type GanttTaskInput = {
15
+ export type GanttTaskInput = {
16
16
  title?: string;
17
17
  /** `YYYY-MM-DD` */
18
18
  start: string;
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ICEGroup } from '../ice-render/index.mjs';
9
- export declare type GanttRulerOptions = {
8
+ import { ICEGroup } from 'ice-render';
9
+ export type GanttRulerOptions = {
10
10
  dayWidth: number;
11
11
  labelColumnWidth: number;
12
12
  headerHeight: number;
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ICEGroup } from '../ice-render/index';
9
- export declare type GanttRulerOptions = {
8
+ import { ICEGroup } from 'ice-render';
9
+ export type GanttRulerOptions = {
10
10
  dayWidth: number;
11
11
  labelColumnWidth: number;
12
12
  headerHeight: number;
@@ -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
  *
@@ -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
  *
@@ -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
  /**
@@ -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
  /**
@@ -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
  *
@@ -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
  *
@@ -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
  /** 行业里的颜色称呼 */