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
@@ -1,59 +0,0 @@
1
- /**
2
- * Copyright (c) 2022 大漠穷秋.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
- export { default as AnimationManager } from './animation/AnimationManager.mjs';
9
- export { default as ICEControlPanel } from './control-panel/ICEControlPanel.mjs';
10
- export { default as ICEControlPanelManager } from './control-panel/ICEControlPanelManager.mjs';
11
- export { default as AlignmentGuideManager } from './control-panel/AlignmentGuideManager.mjs';
12
- export { default as LineControlPanel } from './control-panel/link-controls/LineControlPanel.mjs';
13
- export { default as ResizeControl } from './control-panel/transform-controls/ResizeControl.mjs';
14
- export { default as RotateControl } from './control-panel/transform-controls/RotateControl.mjs';
15
- export { default as TransformControlPanel } from './control-panel/transform-controls/TransformControlPanel.mjs';
16
- export { default as DOMEventDispatcher } from './event/DOMEventDispatcher.mjs';
17
- export { default as DOMEventInterceptor } from './event/DOMEventInterceptor.mjs';
18
- export { default as EventBus } from './event/EventBus.mjs';
19
- export { default as ICEEventTarget } from './event/ICEEventTarget.mjs';
20
- export { default as GeoLine } from './geometry/GeoLine.mjs';
21
- export { default as GeoPoint } from './geometry/GeoPoint.mjs';
22
- export { default as GeoUtil } from './geometry/GeoUtil.mjs';
23
- export { default as ICEBoundingBox } from './geometry/ICEBoundingBox.mjs';
24
- export { default as ICEGroup } from './graphic/container/ICEGroup.mjs';
25
- export { default as ICEComponent } from './graphic/ICEComponent.mjs';
26
- export { default as ICEDotPath } from './graphic/ICEDotPath.mjs';
27
- export { default as ICEImage } from './graphic/ICEImage.mjs';
28
- export { default as ICEPath } from './graphic/ICEPath.mjs';
29
- export { default as ICEBezier } from './graphic/link/ICEBezier.mjs';
30
- export { default as ICELinkHook } from './graphic/link/ICELinkHook.mjs';
31
- export { default as ICELinkSlot } from './graphic/link/ICELinkSlot.mjs';
32
- export { default as ICEPolyLine } from './graphic/link/ICEPolyLine.mjs';
33
- export { default as ICEVisioLink } from './graphic/link/ICEVisioLink.mjs';
34
- export { default as ICECircle } from './graphic/shape/ICECircle.mjs';
35
- export { default as ICEEllipse } from './graphic/shape/ICEEllipse.mjs';
36
- export { default as ICEIsogon } from './graphic/shape/ICEIsogon.mjs';
37
- export { default as ICERect } from './graphic/shape/ICERect.mjs';
38
- export { default as ICERose } from './graphic/shape/ICERose.mjs';
39
- export { default as ICEStar } from './graphic/shape/ICEStar.mjs';
40
- export { default as ICEText } from './graphic/text/ICEText.mjs';
41
- export { default as ICELayoutManager } from './layout/ICELayoutManager.mjs';
42
- export { default as ICEFlowLayout } from './layout/ICEFlowLayout.mjs';
43
- export { default as ICEGridLayout } from './layout/ICEGridLayout.mjs';
44
- export { default as ICEBorderLayout } from './layout/ICEBorderLayout.mjs';
45
- export { default as ICEBoxLayout } from './layout/ICEBoxLayout.mjs';
46
- export { default as ICECardLayout } from './layout/ICECardLayout.mjs';
47
- export { default as ICEOverlayLayout } from './layout/ICEOverlayLayout.mjs';
48
- export { default as ICELayeredLayout } from './layout/ICELayeredLayout.mjs';
49
- export { default as ICETheme, baseTokens, DEFAULT_THEME, DARK_THEME, registerTheme, setTheme, getTheme, STYLE_PRESETS, } from './theme/ICETheme.mjs';
50
- export { default as ICE } from './ICE.mjs';
51
- export { default as CanvasRenderer } from './renderer/CanvasRenderer.mjs';
52
- export { exportSvg, exportSvgResult } from './export/SvgExporter.mjs';
53
- export type { SvgExportOptions, SvgExportResult } from './export/SvgExporter.mjs';
54
- export { default as PluginHost } from './plugin/PluginHost.mjs';
55
- export type { ICEPlugin, ICEPluginTool, ICERenderHook, ICERenderFrame } from './plugin/PluginHost.mjs';
56
- export { default as Serializer, SERIALIZATION_VERSION } from './persistence/Serializer.mjs';
57
- export { default as Deserializer, SERIALIZATION_MIGRATIONS } from './persistence/Deserializer.mjs';
58
- export { buildAccessibilityTree } from './a11y/accessibility.mjs';
59
- export type { ICEAccessibleNode, ICEAccessibleRole, ICEAccessibilityOptions } from './a11y/accessibility.mjs';
@@ -1,59 +0,0 @@
1
- /**
2
- * Copyright (c) 2022 大漠穷秋.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
- export { default as AnimationManager } from './animation/AnimationManager';
9
- export { default as ICEControlPanel } from './control-panel/ICEControlPanel';
10
- export { default as ICEControlPanelManager } from './control-panel/ICEControlPanelManager';
11
- export { default as AlignmentGuideManager } from './control-panel/AlignmentGuideManager';
12
- export { default as LineControlPanel } from './control-panel/link-controls/LineControlPanel';
13
- export { default as ResizeControl } from './control-panel/transform-controls/ResizeControl';
14
- export { default as RotateControl } from './control-panel/transform-controls/RotateControl';
15
- export { default as TransformControlPanel } from './control-panel/transform-controls/TransformControlPanel';
16
- export { default as DOMEventDispatcher } from './event/DOMEventDispatcher';
17
- export { default as DOMEventInterceptor } from './event/DOMEventInterceptor';
18
- export { default as EventBus } from './event/EventBus';
19
- export { default as ICEEventTarget } from './event/ICEEventTarget';
20
- export { default as GeoLine } from './geometry/GeoLine';
21
- export { default as GeoPoint } from './geometry/GeoPoint';
22
- export { default as GeoUtil } from './geometry/GeoUtil';
23
- export { default as ICEBoundingBox } from './geometry/ICEBoundingBox';
24
- export { default as ICEGroup } from './graphic/container/ICEGroup';
25
- export { default as ICEComponent } from './graphic/ICEComponent';
26
- export { default as ICEDotPath } from './graphic/ICEDotPath';
27
- export { default as ICEImage } from './graphic/ICEImage';
28
- export { default as ICEPath } from './graphic/ICEPath';
29
- export { default as ICEBezier } from './graphic/link/ICEBezier';
30
- export { default as ICELinkHook } from './graphic/link/ICELinkHook';
31
- export { default as ICELinkSlot } from './graphic/link/ICELinkSlot';
32
- export { default as ICEPolyLine } from './graphic/link/ICEPolyLine';
33
- export { default as ICEVisioLink } from './graphic/link/ICEVisioLink';
34
- export { default as ICECircle } from './graphic/shape/ICECircle';
35
- export { default as ICEEllipse } from './graphic/shape/ICEEllipse';
36
- export { default as ICEIsogon } from './graphic/shape/ICEIsogon';
37
- export { default as ICERect } from './graphic/shape/ICERect';
38
- export { default as ICERose } from './graphic/shape/ICERose';
39
- export { default as ICEStar } from './graphic/shape/ICEStar';
40
- export { default as ICEText } from './graphic/text/ICEText';
41
- export { default as ICELayoutManager } from './layout/ICELayoutManager';
42
- export { default as ICEFlowLayout } from './layout/ICEFlowLayout';
43
- export { default as ICEGridLayout } from './layout/ICEGridLayout';
44
- export { default as ICEBorderLayout } from './layout/ICEBorderLayout';
45
- export { default as ICEBoxLayout } from './layout/ICEBoxLayout';
46
- export { default as ICECardLayout } from './layout/ICECardLayout';
47
- export { default as ICEOverlayLayout } from './layout/ICEOverlayLayout';
48
- export { default as ICELayeredLayout } from './layout/ICELayeredLayout';
49
- export { default as ICETheme, baseTokens, DEFAULT_THEME, DARK_THEME, registerTheme, setTheme, getTheme, STYLE_PRESETS, } from './theme/ICETheme';
50
- export { default as ICE } from './ICE';
51
- export { default as CanvasRenderer } from './renderer/CanvasRenderer';
52
- export { exportSvg, exportSvgResult } from './export/SvgExporter';
53
- export type { SvgExportOptions, SvgExportResult } from './export/SvgExporter';
54
- export { default as PluginHost } from './plugin/PluginHost';
55
- export type { ICEPlugin, ICEPluginTool, ICERenderHook, ICERenderFrame } from './plugin/PluginHost';
56
- export { default as Serializer, SERIALIZATION_VERSION } from './persistence/Serializer';
57
- export { default as Deserializer, SERIALIZATION_MIGRATIONS } from './persistence/Deserializer';
58
- export { buildAccessibilityTree } from './a11y/accessibility';
59
- export type { ICEAccessibleNode, ICEAccessibleRole, ICEAccessibilityOptions } from './a11y/accessibility';
@@ -1,34 +0,0 @@
1
- /**
2
- * Copyright (c) 2022 大漠穷秋.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
- import type ICEGroup from '../graphic/container/ICEGroup.mjs';
9
- import ICELayoutManager from './ICELayoutManager.mjs';
10
- /**
11
- * @class ICEBorderLayout 五区域布局
12
- *
13
- * 对齐 Java Swing 的 BorderLayout:把容器分成五个区域——north(上)/south(下)/east(右)/west(左)/center(中)。
14
- * 子组件通过 state.layoutConstraint 指定所属区域(默认 'center'):
15
- *
16
- * ```
17
- * new ICERect({ layoutConstraint: 'north', ... }) // 顶部
18
- * ```
19
- *
20
- * 规则:north/south 占满整宽、高度取自身;east/west 占左右剩余高度;center 填充中间剩余区域。
21
- *
22
- * @author 大漠穷秋<damoqiongqiu@126.com>
23
- */
24
- declare class ICEBorderLayout extends ICELayoutManager {
25
- private gap;
26
- constructor(props?: {
27
- gap?: number;
28
- });
29
- /**
30
- * @overwrite
31
- */
32
- layoutContainer(container: ICEGroup): void;
33
- }
34
- export default ICEBorderLayout;
@@ -1,34 +0,0 @@
1
- /**
2
- * Copyright (c) 2022 大漠穷秋.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
- import type ICEGroup from '../graphic/container/ICEGroup';
9
- import ICELayoutManager from './ICELayoutManager';
10
- /**
11
- * @class ICEBorderLayout 五区域布局
12
- *
13
- * 对齐 Java Swing 的 BorderLayout:把容器分成五个区域——north(上)/south(下)/east(右)/west(左)/center(中)。
14
- * 子组件通过 state.layoutConstraint 指定所属区域(默认 'center'):
15
- *
16
- * ```
17
- * new ICERect({ layoutConstraint: 'north', ... }) // 顶部
18
- * ```
19
- *
20
- * 规则:north/south 占满整宽、高度取自身;east/west 占左右剩余高度;center 填充中间剩余区域。
21
- *
22
- * @author 大漠穷秋<damoqiongqiu@126.com>
23
- */
24
- declare class ICEBorderLayout extends ICELayoutManager {
25
- private gap;
26
- constructor(props?: {
27
- gap?: number;
28
- });
29
- /**
30
- * @overwrite
31
- */
32
- layoutContainer(container: ICEGroup): void;
33
- }
34
- export default ICEBorderLayout;
@@ -1,30 +0,0 @@
1
- /**
2
- * Copyright (c) 2022 大漠穷秋.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
- import type ICEGroup from '../graphic/container/ICEGroup.mjs';
9
- import ICELayoutManager from './ICELayoutManager.mjs';
10
- /**
11
- * @class ICEBoxLayout 箱式布局
12
- *
13
- * 对齐 Java Swing 的 BoxLayout:子组件沿单轴(横向 x / 纵向 y)依次排列,不换行。
14
- *
15
- * @author 大漠穷秋<damoqiongqiu@126.com>
16
- */
17
- declare class ICEBoxLayout extends ICELayoutManager {
18
- private axis;
19
- private gap;
20
- constructor(props?: {
21
- axis?: 'x' | 'y';
22
- gap?: number;
23
- });
24
- /**
25
- * @overwrite
26
- * 沿单轴依次排列,横向时 left 递增,纵向时 top 递增。
27
- */
28
- layoutContainer(container: ICEGroup): void;
29
- }
30
- export default ICEBoxLayout;
@@ -1,30 +0,0 @@
1
- /**
2
- * Copyright (c) 2022 大漠穷秋.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
- import type ICEGroup from '../graphic/container/ICEGroup';
9
- import ICELayoutManager from './ICELayoutManager';
10
- /**
11
- * @class ICEBoxLayout 箱式布局
12
- *
13
- * 对齐 Java Swing 的 BoxLayout:子组件沿单轴(横向 x / 纵向 y)依次排列,不换行。
14
- *
15
- * @author 大漠穷秋<damoqiongqiu@126.com>
16
- */
17
- declare class ICEBoxLayout extends ICELayoutManager {
18
- private axis;
19
- private gap;
20
- constructor(props?: {
21
- axis?: 'x' | 'y';
22
- gap?: number;
23
- });
24
- /**
25
- * @overwrite
26
- * 沿单轴依次排列,横向时 left 递增,纵向时 top 递增。
27
- */
28
- layoutContainer(container: ICEGroup): void;
29
- }
30
- export default ICEBoxLayout;
@@ -1,36 +0,0 @@
1
- /**
2
- * Copyright (c) 2022 大漠穷秋.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
- import type ICEGroup from '../graphic/container/ICEGroup.mjs';
9
- import ICELayoutManager from './ICELayoutManager.mjs';
10
- /**
11
- * @class ICECardLayout 卡片布局
12
- *
13
- * 对齐 Java Swing 的 CardLayout:一次只显示一个子组件(卡片),其余隐藏。
14
- * 通过 show(index) / next() / previous() 切换当前显示的卡片。
15
- *
16
- * @author 大漠穷秋<damoqiongqiu@126.com>
17
- */
18
- declare class ICECardLayout extends ICELayoutManager {
19
- private currentIndex;
20
- private container;
21
- constructor(props?: {
22
- currentIndex?: number;
23
- });
24
- /**
25
- * @overwrite
26
- * 只显示当前卡片(display=true),其余隐藏(display=false),当前卡片对齐到左上角。
27
- */
28
- layoutContainer(container: ICEGroup): void;
29
- /**
30
- * 切换到指定卡片。
31
- */
32
- show(index: number): void;
33
- next(): void;
34
- previous(): void;
35
- }
36
- export default ICECardLayout;
@@ -1,36 +0,0 @@
1
- /**
2
- * Copyright (c) 2022 大漠穷秋.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
- import type ICEGroup from '../graphic/container/ICEGroup';
9
- import ICELayoutManager from './ICELayoutManager';
10
- /**
11
- * @class ICECardLayout 卡片布局
12
- *
13
- * 对齐 Java Swing 的 CardLayout:一次只显示一个子组件(卡片),其余隐藏。
14
- * 通过 show(index) / next() / previous() 切换当前显示的卡片。
15
- *
16
- * @author 大漠穷秋<damoqiongqiu@126.com>
17
- */
18
- declare class ICECardLayout extends ICELayoutManager {
19
- private currentIndex;
20
- private container;
21
- constructor(props?: {
22
- currentIndex?: number;
23
- });
24
- /**
25
- * @overwrite
26
- * 只显示当前卡片(display=true),其余隐藏(display=false),当前卡片对齐到左上角。
27
- */
28
- layoutContainer(container: ICEGroup): void;
29
- /**
30
- * 切换到指定卡片。
31
- */
32
- show(index: number): void;
33
- next(): void;
34
- previous(): void;
35
- }
36
- export default ICECardLayout;
@@ -1,31 +0,0 @@
1
- /**
2
- * Copyright (c) 2022 大漠穷秋.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
- import type ICEGroup from '../graphic/container/ICEGroup.mjs';
9
- import ICELayoutManager from './ICELayoutManager.mjs';
10
- /**
11
- * @class ICEFlowLayout 流式布局
12
- *
13
- * 对齐 Java Swing 的 FlowLayout:子组件从左到右依次排列,一行放不下(超出容器宽度)则换行。
14
- * 支持 left / center / right 三种对齐,以及 gap 间距。
15
- *
16
- * @author 大漠穷秋<damoqiongqiu@126.com>
17
- */
18
- declare class ICEFlowLayout extends ICELayoutManager {
19
- private gap;
20
- private align;
21
- constructor(props?: {
22
- gap?: number;
23
- align?: 'left' | 'center' | 'right';
24
- });
25
- /**
26
- * @overwrite
27
- * 从左到右排列子组件,超出容器宽度则换行。
28
- */
29
- layoutContainer(container: ICEGroup): void;
30
- }
31
- export default ICEFlowLayout;
@@ -1,31 +0,0 @@
1
- /**
2
- * Copyright (c) 2022 大漠穷秋.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
- import type ICEGroup from '../graphic/container/ICEGroup';
9
- import ICELayoutManager from './ICELayoutManager';
10
- /**
11
- * @class ICEFlowLayout 流式布局
12
- *
13
- * 对齐 Java Swing 的 FlowLayout:子组件从左到右依次排列,一行放不下(超出容器宽度)则换行。
14
- * 支持 left / center / right 三种对齐,以及 gap 间距。
15
- *
16
- * @author 大漠穷秋<damoqiongqiu@126.com>
17
- */
18
- declare class ICEFlowLayout extends ICELayoutManager {
19
- private gap;
20
- private align;
21
- constructor(props?: {
22
- gap?: number;
23
- align?: 'left' | 'center' | 'right';
24
- });
25
- /**
26
- * @overwrite
27
- * 从左到右排列子组件,超出容器宽度则换行。
28
- */
29
- layoutContainer(container: ICEGroup): void;
30
- }
31
- export default ICEFlowLayout;
@@ -1,33 +0,0 @@
1
- /**
2
- * Copyright (c) 2022 大漠穷秋.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
- import type ICEGroup from '../graphic/container/ICEGroup.mjs';
9
- import ICELayoutManager from './ICELayoutManager.mjs';
10
- /**
11
- * @class ICEGridLayout 网格布局
12
- *
13
- * 对齐 Java Swing 的 GridLayout:把容器分成 cols 列,子组件按「行优先」依次填入网格。
14
- * 每行高度取该行最高子组件,行间 gapY 间距,列间 gapX 间距。
15
- *
16
- * @author 大漠穷秋<damoqiongqiu@126.com>
17
- */
18
- declare class ICEGridLayout extends ICELayoutManager {
19
- private cols;
20
- private gapX;
21
- private gapY;
22
- constructor(props?: {
23
- cols?: number;
24
- gapX?: number;
25
- gapY?: number;
26
- });
27
- /**
28
- * @overwrite
29
- * 按「行优先」把子组件填入 cols 列网格。
30
- */
31
- layoutContainer(container: ICEGroup): void;
32
- }
33
- export default ICEGridLayout;
@@ -1,33 +0,0 @@
1
- /**
2
- * Copyright (c) 2022 大漠穷秋.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
- import type ICEGroup from '../graphic/container/ICEGroup';
9
- import ICELayoutManager from './ICELayoutManager';
10
- /**
11
- * @class ICEGridLayout 网格布局
12
- *
13
- * 对齐 Java Swing 的 GridLayout:把容器分成 cols 列,子组件按「行优先」依次填入网格。
14
- * 每行高度取该行最高子组件,行间 gapY 间距,列间 gapX 间距。
15
- *
16
- * @author 大漠穷秋<damoqiongqiu@126.com>
17
- */
18
- declare class ICEGridLayout extends ICELayoutManager {
19
- private cols;
20
- private gapX;
21
- private gapY;
22
- constructor(props?: {
23
- cols?: number;
24
- gapX?: number;
25
- gapY?: number;
26
- });
27
- /**
28
- * @overwrite
29
- * 按「行优先」把子组件填入 cols 列网格。
30
- */
31
- layoutContainer(container: ICEGroup): void;
32
- }
33
- export default ICEGridLayout;
@@ -1,49 +0,0 @@
1
- /**
2
- * Copyright (c) 2022 大漠穷秋.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
- import type ICEGroup from '../graphic/container/ICEGroup.mjs';
9
- import ICELayoutManager from './ICELayoutManager.mjs';
10
- /**
11
- * @class ICELayeredLayout 分层图布局(dagre 式)
12
- *
13
- * 用于「图」场景(节点 + 边,如流程图/ER 图),借鉴 dagre 的分层布局思想:
14
- * 1. 拓扑分层(最长路径法):有向边总是从低层指向高层,源在左、汇在右;
15
- * 2. 层内排序(重心法):迭代调整每层节点顺序,减少边交叉;
16
- * 3. 算坐标:层号 → left,层内序号 → top(LR 方向)。
17
- *
18
- * 与 Swing 的「容器布局」(Flow/Grid/Border)不同,本类面向「图」,作为策略框架里的一个特殊实现。
19
- *
20
- * @author 大漠穷秋<damoqiongqiu@126.com>
21
- */
22
- declare class ICELayeredLayout extends ICELayoutManager {
23
- private gapX;
24
- private gapY;
25
- constructor(props?: {
26
- gapX?: number;
27
- gapY?: number;
28
- });
29
- /**
30
- * @overwrite
31
- * 读容器里的节点(非连线组件)+ 边(ICEPolyLine 的 links),分层布局后 setState 落位。
32
- */
33
- layoutContainer(container: ICEGroup): void;
34
- /**
35
- * 拓扑分层(最长路径法):rank = 所有前驱的最大 rank + 1;无前驱为 0。
36
- * 用 visiting 集合处理有向环。
37
- */
38
- private assignRanks;
39
- /**
40
- * 层内排序(重心法):迭代把每层节点按「下一层邻居的平均 order」排序,减少边交叉。
41
- */
42
- private assignOrders;
43
- /**
44
- * 算坐标(LR 方向):rank 递增 → left 递增;层内按 order 垂直排列。
45
- * 节点落位后,把每条边(连线)的端点对齐到源/目标节点的插槽(全局坐标)。
46
- */
47
- private assignCoords;
48
- }
49
- export default ICELayeredLayout;
@@ -1,49 +0,0 @@
1
- /**
2
- * Copyright (c) 2022 大漠穷秋.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
- import type ICEGroup from '../graphic/container/ICEGroup';
9
- import ICELayoutManager from './ICELayoutManager';
10
- /**
11
- * @class ICELayeredLayout 分层图布局(dagre 式)
12
- *
13
- * 用于「图」场景(节点 + 边,如流程图/ER 图),借鉴 dagre 的分层布局思想:
14
- * 1. 拓扑分层(最长路径法):有向边总是从低层指向高层,源在左、汇在右;
15
- * 2. 层内排序(重心法):迭代调整每层节点顺序,减少边交叉;
16
- * 3. 算坐标:层号 → left,层内序号 → top(LR 方向)。
17
- *
18
- * 与 Swing 的「容器布局」(Flow/Grid/Border)不同,本类面向「图」,作为策略框架里的一个特殊实现。
19
- *
20
- * @author 大漠穷秋<damoqiongqiu@126.com>
21
- */
22
- declare class ICELayeredLayout extends ICELayoutManager {
23
- private gapX;
24
- private gapY;
25
- constructor(props?: {
26
- gapX?: number;
27
- gapY?: number;
28
- });
29
- /**
30
- * @overwrite
31
- * 读容器里的节点(非连线组件)+ 边(ICEPolyLine 的 links),分层布局后 setState 落位。
32
- */
33
- layoutContainer(container: ICEGroup): void;
34
- /**
35
- * 拓扑分层(最长路径法):rank = 所有前驱的最大 rank + 1;无前驱为 0。
36
- * 用 visiting 集合处理有向环。
37
- */
38
- private assignRanks;
39
- /**
40
- * 层内排序(重心法):迭代把每层节点按「下一层邻居的平均 order」排序,减少边交叉。
41
- */
42
- private assignOrders;
43
- /**
44
- * 算坐标(LR 方向):rank 递增 → left 递增;层内按 order 垂直排列。
45
- * 节点落位后,把每条边(连线)的端点对齐到源/目标节点的插槽(全局坐标)。
46
- */
47
- private assignCoords;
48
- }
49
- export default ICELayeredLayout;
@@ -1,33 +0,0 @@
1
- /**
2
- * Copyright (c) 2022 大漠穷秋.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
- import type ICEGroup from '../graphic/container/ICEGroup.mjs';
9
- /**
10
- * @class ICELayoutManager 布局管理器(抽象基类)
11
- *
12
- * 借鉴 Java Swing 的 LayoutManager 设计思想——**策略模式**:
13
- * - 组件(ICEComponent)只负责「画自己」,不碰布局;
14
- * - 容器(ICEGroup)只负责「持有子组件」,通过 setLayout() 持有布局策略;
15
- * - 布局管理器(本类及其子类)只负责「摆位置」。
16
- *
17
- * 核心只有一个方法 layoutContainer(container):给定容器,计算并设置所有子组件的位置/尺寸。
18
- *
19
- * @author 大漠穷秋<damoqiongqiu@126.com>
20
- */
21
- declare abstract class ICELayoutManager {
22
- /**
23
- * 布局容器:计算并设置所有子组件的位置/尺寸。
24
- * @param container 目标容器(ICEGroup)
25
- */
26
- abstract layoutContainer(container: ICEGroup): void;
27
- /**
28
- * 计算容器内内容的「首选尺寸」(可选,默认 [0,0])。
29
- * 子类可按需覆盖。
30
- */
31
- getPreferredSize(container: ICEGroup): [number, number];
32
- }
33
- export default ICELayoutManager;
@@ -1,33 +0,0 @@
1
- /**
2
- * Copyright (c) 2022 大漠穷秋.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
- import type ICEGroup from '../graphic/container/ICEGroup';
9
- /**
10
- * @class ICELayoutManager 布局管理器(抽象基类)
11
- *
12
- * 借鉴 Java Swing 的 LayoutManager 设计思想——**策略模式**:
13
- * - 组件(ICEComponent)只负责「画自己」,不碰布局;
14
- * - 容器(ICEGroup)只负责「持有子组件」,通过 setLayout() 持有布局策略;
15
- * - 布局管理器(本类及其子类)只负责「摆位置」。
16
- *
17
- * 核心只有一个方法 layoutContainer(container):给定容器,计算并设置所有子组件的位置/尺寸。
18
- *
19
- * @author 大漠穷秋<damoqiongqiu@126.com>
20
- */
21
- declare abstract class ICELayoutManager {
22
- /**
23
- * 布局容器:计算并设置所有子组件的位置/尺寸。
24
- * @param container 目标容器(ICEGroup)
25
- */
26
- abstract layoutContainer(container: ICEGroup): void;
27
- /**
28
- * 计算容器内内容的「首选尺寸」(可选,默认 [0,0])。
29
- * 子类可按需覆盖。
30
- */
31
- getPreferredSize(container: ICEGroup): [number, number];
32
- }
33
- export default ICELayoutManager;
@@ -1,25 +0,0 @@
1
- /**
2
- * Copyright (c) 2022 大漠穷秋.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
- import type ICEGroup from '../graphic/container/ICEGroup.mjs';
9
- import ICELayoutManager from './ICELayoutManager.mjs';
10
- /**
11
- * @class ICEOverlayLayout 叠加布局
12
- *
13
- * 对齐 Java Swing 的 OverlayLayout:所有子组件叠放在同一位置(左上角)。
14
- * 可用于做图层叠加效果。
15
- *
16
- * @author 大漠穷秋<damoqiongqiu@126.com>
17
- */
18
- declare class ICEOverlayLayout extends ICELayoutManager {
19
- /**
20
- * @overwrite
21
- * 所有子组件叠放到容器左上角。
22
- */
23
- layoutContainer(container: ICEGroup): void;
24
- }
25
- export default ICEOverlayLayout;