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 { ICEPolyLine } from '../ice-render/index.mjs';
8
+ import { ICEPolyLine } from 'ice-render';
9
9
  /**
10
10
  * @class StateTransition 状态机的一次转移
11
11
  *
@@ -16,7 +16,7 @@ import { ICEPolyLine } from '../ice-render/index.mjs';
16
16
  * 判型与序列化都靠它(应用层不要用 constructor.name,打包会 mangle)。
17
17
  */
18
18
  export default class StateTransition extends ICEPolyLine {
19
- static readonly typeId = "StateTransition";
19
+ static readonly typeId = "ice-entity-designer:StateTransition";
20
20
  constructor(props?: any);
21
21
  protected static arrangeParam(props?: any): any;
22
22
  /**
@@ -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 StateTransition 状态机的一次转移
11
11
  *
@@ -16,7 +16,7 @@ import { ICEPolyLine } from '../ice-render/index';
16
16
  * 判型与序列化都靠它(应用层不要用 constructor.name,打包会 mangle)。
17
17
  */
18
18
  export default class StateTransition extends ICEPolyLine {
19
- static readonly typeId = "StateTransition";
19
+ static readonly typeId = "ice-entity-designer:StateTransition";
20
20
  constructor(props?: any);
21
21
  protected static arrangeParam(props?: any): any;
22
22
  /**
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
  import FlowDesigner from '../flow/FlowDesigner.mjs';
9
- export declare type StatechartIssue = {
9
+ export type StatechartIssue = {
10
10
  level: 'error' | 'warning';
11
11
  message: string;
12
12
  id?: string;
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
  import FlowDesigner from '../flow/FlowDesigner';
9
- export declare type StatechartIssue = {
9
+ export type StatechartIssue = {
10
10
  level: 'error' | 'warning';
11
11
  message: string;
12
12
  id?: string;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- export declare type StatechartTextImportResult = {
8
+ export type StatechartTextImportResult = {
9
9
  states: number;
10
10
  transitions: 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 StatechartTextImportResult = {
8
+ export type StatechartTextImportResult = {
9
9
  states: number;
10
10
  transitions: number;
11
11
  /** 解析不了 / 不支持的输入行(不阻断整体导入) */
@@ -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 UmlClassKind = 'class' | 'interface' | 'enum';
8
+ import { ICEGroup, ICEPolyLine, ICERect, ICEText } from 'ice-render';
9
+ export type UmlClassKind = 'class' | 'interface' | 'enum';
10
10
  /**
11
11
  * @class UmlClass UML 类图的类框(三段式:类名 / 属性 / 方法)
12
12
  *
@@ -21,7 +21,7 @@ export declare type UmlClassKind = 'class' | 'interface' | 'enum';
21
21
  */
22
22
  export default class UmlClass extends ICEGroup {
23
23
  /** 稳定类型标识(判型/序列化都用它,不要用 constructor.name:打包会被 mangle) */
24
- static readonly typeId = "UmlClass";
24
+ static readonly typeId = "ice-entity-designer:UmlClass";
25
25
  protected stereotypeComponent: ICEText | null;
26
26
  protected nameComponent: ICEText | null;
27
27
  protected headerBackgroundComponent: ICERect | null;
@@ -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 UmlClassKind = 'class' | 'interface' | 'enum';
8
+ import { ICEGroup, ICEPolyLine, ICERect, ICEText } from 'ice-render';
9
+ export type UmlClassKind = 'class' | 'interface' | 'enum';
10
10
  /**
11
11
  * @class UmlClass UML 类图的类框(三段式:类名 / 属性 / 方法)
12
12
  *
@@ -21,7 +21,7 @@ export declare type UmlClassKind = 'class' | 'interface' | 'enum';
21
21
  */
22
22
  export default class UmlClass extends ICEGroup {
23
23
  /** 稳定类型标识(判型/序列化都用它,不要用 constructor.name:打包会被 mangle) */
24
- static readonly typeId = "UmlClass";
24
+ static readonly typeId = "ice-entity-designer:UmlClass";
25
25
  protected stereotypeComponent: ICEText | null;
26
26
  protected nameComponent: ICEText | null;
27
27
  protected headerBackgroundComponent: ICERect | null;
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import FlowDesigner from '../flow/FlowDesigner.mjs';
9
9
  import type { UmlRelationKind } from './UmlRelation.mjs';
10
- export declare type UmlIssue = {
10
+ export type UmlIssue = {
11
11
  level: 'error' | 'warning';
12
12
  message: string;
13
13
  id?: string;
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import FlowDesigner from '../flow/FlowDesigner';
9
9
  import type { UmlRelationKind } from './UmlRelation';
10
- export declare type UmlIssue = {
10
+ export type UmlIssue = {
11
11
  level: 'error' | 'warning';
12
12
  message: string;
13
13
  id?: string;
@@ -5,13 +5,13 @@
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
  /** UML 类图里的六种关系(记法见下方 STYLE_BY_KIND) */
10
10
  export declare const UML_RELATION_KINDS: readonly ["inheritance", "realization", "association", "aggregation", "composition", "dependency"];
11
- export declare type UmlRelationKind = (typeof UML_RELATION_KINDS)[number];
11
+ export type UmlRelationKind = (typeof UML_RELATION_KINDS)[number];
12
12
  /** 端点标记种类 */
13
- export declare type UmlMarker = 'none' | 'triangle' | 'diamond' | 'open';
14
- declare type UmlRelationStyle = {
13
+ export type UmlMarker = 'none' | 'triangle' | 'diamond' | 'open';
14
+ type UmlRelationStyle = {
15
15
  marker: UmlMarker;
16
16
  /** 标记画在哪一端:整体(owner)一侧 / 目标(被继承、被依赖)一侧 */
17
17
  markerEnd: 'start' | 'end';
@@ -50,7 +50,7 @@ export declare const UML_RELATION_COLOR: Record<UmlRelationKind, string>;
50
50
  * - 包围盒、命中检测也跟着正确。
51
51
  */
52
52
  export default class UmlRelation extends ICEPolyLine {
53
- static readonly typeId = "UmlRelation";
53
+ static readonly typeId = "ice-entity-designer:UmlRelation";
54
54
  constructor(props?: any);
55
55
  protected static arrangeParam(props: any): any;
56
56
  setState(patch: any): void;
@@ -5,13 +5,13 @@
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
  /** UML 类图里的六种关系(记法见下方 STYLE_BY_KIND) */
10
10
  export declare const UML_RELATION_KINDS: readonly ["inheritance", "realization", "association", "aggregation", "composition", "dependency"];
11
- export declare type UmlRelationKind = (typeof UML_RELATION_KINDS)[number];
11
+ export type UmlRelationKind = (typeof UML_RELATION_KINDS)[number];
12
12
  /** 端点标记种类 */
13
- export declare type UmlMarker = 'none' | 'triangle' | 'diamond' | 'open';
14
- declare type UmlRelationStyle = {
13
+ export type UmlMarker = 'none' | 'triangle' | 'diamond' | 'open';
14
+ type UmlRelationStyle = {
15
15
  marker: UmlMarker;
16
16
  /** 标记画在哪一端:整体(owner)一侧 / 目标(被继承、被依赖)一侧 */
17
17
  markerEnd: 'start' | 'end';
@@ -50,7 +50,7 @@ export declare const UML_RELATION_COLOR: Record<UmlRelationKind, string>;
50
50
  * - 包围盒、命中检测也跟着正确。
51
51
  */
52
52
  export default class UmlRelation extends ICEPolyLine {
53
- static readonly typeId = "UmlRelation";
53
+ static readonly typeId = "ice-entity-designer:UmlRelation";
54
54
  constructor(props?: any);
55
55
  protected static arrangeParam(props: any): any;
56
56
  setState(patch: any): void;
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
  import type { UmlRelationKind } from './UmlRelation.mjs';
9
- export declare type UmlTextImportResult = {
9
+ export type UmlTextImportResult = {
10
10
  classes: number;
11
11
  relations: number;
12
12
  /** 解析不了 / 不支持的输入行(不阻断整体导入) */
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
  import type { UmlRelationKind } from './UmlRelation';
9
- export declare type UmlTextImportResult = {
9
+ export type UmlTextImportResult = {
10
10
  classes: number;
11
11
  relations: number;
12
12
  /** 解析不了 / 不支持的输入行(不阻断整体导入) */
@@ -2,3 +2,7 @@
2
2
  export declare function isEntity(component: any): boolean;
3
3
  /** 是否为关系(连线)组件(含其子类) */
4
4
  export declare function isRelation(component: any): boolean;
5
+ /** 领域快照里的 typeId 是否代表 Entity。 */
6
+ export declare function isEntityTypeId(typeId: unknown): boolean;
7
+ /** 领域快照里的 typeId 是否代表 Relation。 */
8
+ export declare function isRelationTypeId(typeId: unknown): boolean;
@@ -2,3 +2,7 @@
2
2
  export declare function isEntity(component: any): boolean;
3
3
  /** 是否为关系(连线)组件(含其子类) */
4
4
  export declare function isRelation(component: any): boolean;
5
+ /** 领域快照里的 typeId 是否代表 Entity。 */
6
+ export declare function isEntityTypeId(typeId: unknown): boolean;
7
+ /** 领域快照里的 typeId 是否代表 Relation。 */
8
+ export declare function isRelationTypeId(typeId: unknown): boolean;
@@ -12,8 +12,8 @@
12
12
  * 应用层因为要输出**扁平的领域文档**(AI/DSL/工具链消费),才需要这份显式契约,
13
13
  * 但实现方式与引擎保持同构:类型分派走 typeId、可选值缺省即合法、未知类型跳过。
14
14
  */
15
- export declare type CodecFieldType = 'string' | 'number' | 'boolean' | 'object' | 'array' | 'any';
16
- export declare type CodecField = {
15
+ export type CodecFieldType = 'string' | 'number' | 'boolean' | 'object' | 'array' | 'any';
16
+ export type CodecField = {
17
17
  key: string;
18
18
  /** 出现时校验的类型;缺省表示 any(透传) */
19
19
  type?: CodecFieldType;
@@ -12,8 +12,8 @@
12
12
  * 应用层因为要输出**扁平的领域文档**(AI/DSL/工具链消费),才需要这份显式契约,
13
13
  * 但实现方式与引擎保持同构:类型分派走 typeId、可选值缺省即合法、未知类型跳过。
14
14
  */
15
- export declare type CodecFieldType = 'string' | 'number' | 'boolean' | 'object' | 'array' | 'any';
16
- export declare type CodecField = {
15
+ export type CodecFieldType = 'string' | 'number' | 'boolean' | 'object' | 'array' | 'any';
16
+ export type CodecField = {
17
17
  key: string;
18
18
  /** 出现时校验的类型;缺省表示 any(透传) */
19
19
  type?: CodecFieldType;
@@ -1,5 +1,5 @@
1
1
  export declare const PROJECT_SCHEMA_VERSION = 1;
2
- export declare type ProjectSnapshotValidationResult = {
2
+ export type ProjectSnapshotValidationResult = {
3
3
  valid: boolean;
4
4
  errors: string[];
5
5
  };
@@ -1,5 +1,5 @@
1
1
  export declare const PROJECT_SCHEMA_VERSION = 1;
2
- export declare type ProjectSnapshotValidationResult = {
2
+ export type ProjectSnapshotValidationResult = {
3
3
  valid: boolean;
4
4
  errors: string[];
5
5
  };
@@ -1,4 +1,4 @@
1
- export declare type SchemaIssue = {
1
+ export type SchemaIssue = {
2
2
  level: 'error' | 'warning';
3
3
  message: string;
4
4
  componentId?: string;
@@ -1,4 +1,4 @@
1
- export declare type SchemaIssue = {
1
+ export type SchemaIssue = {
2
2
  level: 'error' | 'warning';
3
3
  message: string;
4
4
  componentId?: string;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * ice-entity-designer 的类型注册命名空间。
3
+ *
4
+ * typeId 统一为 `ice-entity-designer:Type`(引擎侧只认 `namespace:Type` 一种形式,
5
+ * 不做「旧的无 namespace 类名」兼容 —— 家族仍在发布初期,改名比养一套别名简单)。
6
+ */
7
+ export declare const IED_NAMESPACE = "ice-entity-designer";
8
+ export declare function iedTypeId(type: string): string;
9
+ export declare function registerIEDType(ice: any, Clazz: {
10
+ typeId: string;
11
+ }): void;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * ice-entity-designer 的类型注册命名空间。
3
+ *
4
+ * typeId 统一为 `ice-entity-designer:Type`(引擎侧只认 `namespace:Type` 一种形式,
5
+ * 不做「旧的无 namespace 类名」兼容 —— 家族仍在发布初期,改名比养一套别名简单)。
6
+ */
7
+ export declare const IED_NAMESPACE = "ice-entity-designer";
8
+ export declare function iedTypeId(type: string): string;
9
+ export declare function registerIEDType(ice: any, Clazz: {
10
+ typeId: string;
11
+ }): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "大漠穷秋",
3
3
  "name": "ice-entity-designer",
4
- "version": "0.0.40",
4
+ "version": "0.2.0",
5
5
  "description": "An entity designer based on ice-render.",
6
6
  "repository": {
7
7
  "type": "git",
@@ -43,7 +43,7 @@
43
43
  "start": "rollup -c -w --environment NODE_ENV:development",
44
44
  "build": "npm run clean && npm run build:types && npm run build:js",
45
45
  "build:js": "rollup -c --environment NODE_ENV:production",
46
- "build:types": "tsc --emitDeclarationOnly && node scripts/vendor-engine-types.cjs && node scripts/emit-dmts.cjs",
46
+ "build:types": "tsc --emitDeclarationOnly && node scripts/emit-dmts.cjs",
47
47
  "clean": "rimraf dist",
48
48
  "prepare": "husky install",
49
49
  "test": "jest --runInBand",
@@ -59,6 +59,7 @@
59
59
  "types:watch": "npm run types:check -- --watch"
60
60
  },
61
61
  "peerDependencies": {
62
+ "ice-render": "^2.0.0",
62
63
  "react": "^18 || ^19",
63
64
  "react-dom": "^18 || ^19"
64
65
  },
@@ -72,23 +73,27 @@
72
73
  },
73
74
  "devDependencies": {
74
75
  "@arethetypeswrong/cli": "0.18.5",
75
- "@babel/core": "7.17.8",
76
- "@babel/preset-env": "7.16.11",
77
- "@babel/preset-typescript": "7.9.0",
76
+ "@babel/core": "7.28.5",
77
+ "@babel/preset-env": "7.28.5",
78
+ "@babel/preset-typescript": "7.28.5",
78
79
  "@commitlint/cli": "8.3.5",
79
80
  "@commitlint/config-conventional": "8.3.4",
80
81
  "@playwright/test": "1.63.0",
81
- "@rollup/plugin-commonjs": "21.0.2",
82
- "@rollup/plugin-json": "4.1.0",
83
- "@rollup/plugin-node-resolve": "13.1.3",
84
- "@rollup/plugin-strip": "^2.1.0",
85
- "@types/jest": "25.2.1",
82
+ "@rollup/plugin-babel": "6.1.0",
83
+ "@rollup/plugin-commonjs": "28.0.1",
84
+ "@rollup/plugin-json": "6.1.0",
85
+ "@rollup/plugin-node-resolve": "15.3.1",
86
+ "@rollup/plugin-strip": "3.0.4",
87
+ "@rollup/plugin-terser": "0.4.4",
88
+ "@types/jest": "29.5.14",
86
89
  "@types/lodash": "4.14.180",
90
+ "@types/node": "18.19.130",
87
91
  "@types/react": "^18.2.0",
88
92
  "@types/react-dom": "^18.2.0",
89
93
  "@typescript-eslint/eslint-plugin": "5.62.0",
90
94
  "@typescript-eslint/parser": "5.62.0",
91
95
  "antd": "5.26.5",
96
+ "babel-jest": "29.7.0",
92
97
  "eslint": "8.57.1",
93
98
  "eslint-config-prettier": "8.10.0",
94
99
  "eslint-plugin-jest": "27.9.0",
@@ -96,20 +101,19 @@
96
101
  "eslint-plugin-react-hooks": "4.6.0",
97
102
  "http-server": "14.1.1",
98
103
  "husky": "8.0.3",
99
- "ice-render": "file:../ice-render",
100
- "jest": "25.4.0",
104
+ "ice-render": "^2.0.0",
105
+ "jest": "29.7.0",
106
+ "jest-environment-jsdom": "29.7.0",
101
107
  "lint-staged": "15.5.2",
102
108
  "lodash": "4.17.21",
103
109
  "prettier": "2.8.8",
104
110
  "publint": "0.3.24",
105
111
  "react": "^18.2.0",
106
112
  "react-dom": "^18.2.0",
107
- "rimraf": "3.0.2",
108
- "rollup": "2.70.1",
109
- "rollup-plugin-babel": "4.4.0",
110
- "rollup-plugin-license": "2.3.0",
111
- "rollup-plugin-terser": "5.3.0",
112
- "typescript": "4.6.2"
113
+ "rimraf": "5.0.10",
114
+ "rollup": "3.29.5",
115
+ "rollup-plugin-license": "3.6.0",
116
+ "typescript": "5.9.3"
113
117
  },
114
118
  "commitlint": {
115
119
  "extends": [
@@ -138,8 +142,8 @@
138
142
  ]
139
143
  },
140
144
  "engines": {
141
- "npm": ">=6.4.1",
142
- "node": ">=10.13.0"
145
+ "npm": ">=9",
146
+ "node": ">=18"
143
147
  },
144
148
  "license": "MIT"
145
149
  }