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.
- package/README.md +69 -14
- package/dist/index.cjs +1 -6
- package/dist/index.mjs +1 -6
- package/dist/index.umd.js +1 -6
- package/dist/react.cjs +1 -6
- package/dist/react.mjs +1 -6
- package/dist/types/bpmn/BpmnSimulator.d.mts +3 -3
- package/dist/types/bpmn/BpmnSimulator.d.ts +3 -3
- package/dist/types/bpmn/bpmn_shapes.d.mts +1 -1
- package/dist/types/bpmn/bpmn_shapes.d.ts +1 -1
- package/dist/types/bpmn/bpmn_validate.d.mts +1 -1
- package/dist/types/bpmn/bpmn_validate.d.ts +1 -1
- package/dist/types/bpmn/bpmn_xml.d.mts +1 -1
- package/dist/types/bpmn/bpmn_xml.d.ts +1 -1
- package/dist/types/designer/EntityDesigner.d.mts +3 -3
- package/dist/types/designer/EntityDesigner.d.ts +3 -3
- package/dist/types/er-component/Entity.d.mts +2 -2
- package/dist/types/er-component/Entity.d.ts +2 -2
- package/dist/types/er-component/Relation.d.mts +1 -1
- package/dist/types/er-component/Relation.d.ts +1 -1
- package/dist/types/flow/FlowDesigner.d.mts +4 -4
- package/dist/types/flow/FlowDesigner.d.ts +4 -4
- package/dist/types/flow/FlowEdge.d.mts +2 -2
- package/dist/types/flow/FlowEdge.d.ts +2 -2
- package/dist/types/flow/FlowNode.d.mts +3 -3
- package/dist/types/flow/FlowNode.d.ts +3 -3
- package/dist/types/flow/flow_shapes.d.mts +1 -1
- package/dist/types/flow/flow_shapes.d.ts +1 -1
- package/dist/types/gantt/GanttDependency.d.mts +1 -1
- package/dist/types/gantt/GanttDependency.d.ts +1 -1
- package/dist/types/gantt/GanttDesigner.d.mts +2 -2
- package/dist/types/gantt/GanttDesigner.d.ts +2 -2
- package/dist/types/gantt/GanttRuler.d.mts +2 -2
- package/dist/types/gantt/GanttRuler.d.ts +2 -2
- package/dist/types/gantt/GanttTask.d.mts +1 -1
- package/dist/types/gantt/GanttTask.d.ts +1 -1
- package/dist/types/gantt/gantt_text.d.mts +1 -1
- package/dist/types/gantt/gantt_text.d.ts +1 -1
- package/dist/types/index.d.mts +4 -13
- package/dist/types/index.d.ts +4 -13
- package/dist/types/power/PowerDesigner.d.mts +2 -2
- package/dist/types/power/PowerDesigner.d.ts +2 -2
- package/dist/types/power/power_shapes.d.mts +4 -4
- package/dist/types/power/power_shapes.d.ts +4 -4
- package/dist/types/power/power_voltage.d.mts +1 -1
- package/dist/types/power/power_voltage.d.ts +1 -1
- package/dist/types/react/context.d.mts +2 -2
- package/dist/types/react/context.d.ts +2 -2
- package/dist/types/react/index.d.mts +0 -1
- package/dist/types/react/index.d.ts +0 -1
- package/dist/types/react/session.d.mts +4 -4
- package/dist/types/react/session.d.ts +4 -4
- package/dist/types/react/types.d.mts +7 -7
- package/dist/types/react/types.d.ts +7 -7
- package/dist/types/secondary/SecondaryDesigner.d.mts +1 -1
- package/dist/types/secondary/SecondaryDesigner.d.ts +1 -1
- package/dist/types/secondary/secondary_shapes.d.mts +2 -2
- package/dist/types/secondary/secondary_shapes.d.ts +2 -2
- package/dist/types/statechart/StateNode.d.mts +2 -2
- package/dist/types/statechart/StateNode.d.ts +2 -2
- package/dist/types/statechart/StateTransition.d.mts +1 -1
- package/dist/types/statechart/StateTransition.d.ts +1 -1
- package/dist/types/statechart/StatechartDesigner.d.mts +1 -1
- package/dist/types/statechart/StatechartDesigner.d.ts +1 -1
- package/dist/types/statechart/statechart_text.d.mts +1 -1
- package/dist/types/statechart/statechart_text.d.ts +1 -1
- package/dist/types/uml/UmlClass.d.mts +2 -2
- package/dist/types/uml/UmlClass.d.ts +2 -2
- package/dist/types/uml/UmlDesigner.d.mts +1 -1
- package/dist/types/uml/UmlDesigner.d.ts +1 -1
- package/dist/types/uml/UmlRelation.d.mts +4 -4
- package/dist/types/uml/UmlRelation.d.ts +4 -4
- package/dist/types/uml/uml_text.d.mts +1 -1
- package/dist/types/uml/uml_text.d.ts +1 -1
- package/dist/types/utils/project_codec.d.mts +2 -2
- package/dist/types/utils/project_codec.d.ts +2 -2
- package/dist/types/utils/project_schema.d.mts +1 -1
- package/dist/types/utils/project_schema.d.ts +1 -1
- package/dist/types/utils/schema_validator.d.mts +1 -1
- package/dist/types/utils/schema_validator.d.ts +1 -1
- package/package.json +24 -20
- package/dist/types/gl-matrix.d.mts +0 -3273
- package/dist/types/gl-matrix.d.ts +0 -3273
- package/dist/types/ice-render/FrameManager.d.mts +0 -26
- package/dist/types/ice-render/FrameManager.d.ts +0 -26
- package/dist/types/ice-render/ICE.d.mts +0 -424
- package/dist/types/ice-render/ICE.d.ts +0 -424
- package/dist/types/ice-render/a11y/accessibility.d.mts +0 -46
- package/dist/types/ice-render/a11y/accessibility.d.ts +0 -46
- package/dist/types/ice-render/animation/AnimationManager.d.mts +0 -96
- package/dist/types/ice-render/animation/AnimationManager.d.ts +0 -96
- package/dist/types/ice-render/animation/Easing.d.mts +0 -33
- package/dist/types/ice-render/animation/Easing.d.ts +0 -33
- package/dist/types/ice-render/consts/BIG_ZINDEX_NUMBER.d.mts +0 -14
- package/dist/types/ice-render/consts/BIG_ZINDEX_NUMBER.d.ts +0 -14
- package/dist/types/ice-render/consts/COMPONENT_TYPE_MAPPING.d.mts +0 -45
- package/dist/types/ice-render/consts/COMPONENT_TYPE_MAPPING.d.ts +0 -45
- package/dist/types/ice-render/consts/DOM_EVENT_MAPPING_CONSTS.d.mts +0 -37
- package/dist/types/ice-render/consts/DOM_EVENT_MAPPING_CONSTS.d.ts +0 -37
- package/dist/types/ice-render/consts/ICE_EVENT_NAME_CONSTS.d.mts +0 -27
- package/dist/types/ice-render/consts/ICE_EVENT_NAME_CONSTS.d.ts +0 -27
- package/dist/types/ice-render/control-panel/AlignmentGuideManager.d.mts +0 -92
- package/dist/types/ice-render/control-panel/AlignmentGuideManager.d.ts +0 -92
- package/dist/types/ice-render/control-panel/ICEControlPanel.d.mts +0 -37
- package/dist/types/ice-render/control-panel/ICEControlPanel.d.ts +0 -37
- package/dist/types/ice-render/control-panel/ICEControlPanelManager.d.mts +0 -25
- package/dist/types/ice-render/control-panel/ICEControlPanelManager.d.ts +0 -25
- package/dist/types/ice-render/control-panel/link-controls/LineControlPanel.d.mts +0 -39
- package/dist/types/ice-render/control-panel/link-controls/LineControlPanel.d.ts +0 -39
- package/dist/types/ice-render/control-panel/transform-controls/ResizeControl.d.mts +0 -38
- package/dist/types/ice-render/control-panel/transform-controls/ResizeControl.d.ts +0 -38
- package/dist/types/ice-render/control-panel/transform-controls/RotateControl.d.mts +0 -12
- package/dist/types/ice-render/control-panel/transform-controls/RotateControl.d.ts +0 -12
- package/dist/types/ice-render/control-panel/transform-controls/TransformControlPanel.d.mts +0 -83
- package/dist/types/ice-render/control-panel/transform-controls/TransformControlPanel.d.ts +0 -83
- package/dist/types/ice-render/control-panel/transform-controls/constraints.d.mts +0 -24
- package/dist/types/ice-render/control-panel/transform-controls/constraints.d.ts +0 -24
- package/dist/types/ice-render/cross-platform/Path2DRecorder.d.mts +0 -76
- package/dist/types/ice-render/cross-platform/Path2DRecorder.d.ts +0 -76
- package/dist/types/ice-render/cross-platform/PolyfillPath2D.d.mts +0 -21
- package/dist/types/ice-render/cross-platform/PolyfillPath2D.d.ts +0 -21
- package/dist/types/ice-render/cross-platform/root.d.mts +0 -7
- package/dist/types/ice-render/cross-platform/root.d.ts +0 -7
- package/dist/types/ice-render/event/DOMEventDispatcher.d.mts +0 -75
- package/dist/types/ice-render/event/DOMEventDispatcher.d.ts +0 -75
- package/dist/types/ice-render/event/DOMEventInterceptor.d.mts +0 -36
- package/dist/types/ice-render/event/DOMEventInterceptor.d.ts +0 -36
- package/dist/types/ice-render/event/EventBus.d.mts +0 -27
- package/dist/types/ice-render/event/EventBus.d.ts +0 -27
- package/dist/types/ice-render/event/ICEEvent.d.mts +0 -46
- package/dist/types/ice-render/event/ICEEvent.d.ts +0 -46
- package/dist/types/ice-render/event/ICEEventTarget.d.mts +0 -106
- package/dist/types/ice-render/event/ICEEventTarget.d.ts +0 -106
- package/dist/types/ice-render/event/input-normalize.d.mts +0 -75
- package/dist/types/ice-render/event/input-normalize.d.ts +0 -75
- package/dist/types/ice-render/export/SvgExporter.d.mts +0 -54
- package/dist/types/ice-render/export/SvgExporter.d.ts +0 -54
- package/dist/types/ice-render/geometry/GeoLine.d.mts +0 -24
- package/dist/types/ice-render/geometry/GeoLine.d.ts +0 -24
- package/dist/types/ice-render/geometry/GeoPoint.d.mts +0 -53
- package/dist/types/ice-render/geometry/GeoPoint.d.ts +0 -53
- package/dist/types/ice-render/geometry/GeoUtil.d.mts +0 -73
- package/dist/types/ice-render/geometry/GeoUtil.d.ts +0 -73
- package/dist/types/ice-render/geometry/ICEBoundingBox.d.mts +0 -81
- package/dist/types/ice-render/geometry/ICEBoundingBox.d.ts +0 -81
- package/dist/types/ice-render/graphic/ICEComponent.d.mts +0 -535
- package/dist/types/ice-render/graphic/ICEComponent.d.ts +0 -535
- package/dist/types/ice-render/graphic/ICEDotPath.d.mts +0 -99
- package/dist/types/ice-render/graphic/ICEDotPath.d.ts +0 -99
- package/dist/types/ice-render/graphic/ICEImage.d.mts +0 -17
- package/dist/types/ice-render/graphic/ICEImage.d.ts +0 -17
- package/dist/types/ice-render/graphic/ICEPath.d.mts +0 -46
- package/dist/types/ice-render/graphic/ICEPath.d.ts +0 -46
- package/dist/types/ice-render/graphic/container/ICEGroup.d.mts +0 -111
- package/dist/types/ice-render/graphic/container/ICEGroup.d.ts +0 -111
- package/dist/types/ice-render/graphic/link/ICEBezier.d.mts +0 -23
- package/dist/types/ice-render/graphic/link/ICEBezier.d.ts +0 -23
- package/dist/types/ice-render/graphic/link/ICELinkHook.d.mts +0 -52
- package/dist/types/ice-render/graphic/link/ICELinkHook.d.ts +0 -52
- package/dist/types/ice-render/graphic/link/ICELinkSlot.d.mts +0 -54
- package/dist/types/ice-render/graphic/link/ICELinkSlot.d.ts +0 -54
- package/dist/types/ice-render/graphic/link/ICELinkSlotManager.d.mts +0 -28
- package/dist/types/ice-render/graphic/link/ICELinkSlotManager.d.ts +0 -28
- package/dist/types/ice-render/graphic/link/ICEPolyLine.d.mts +0 -316
- package/dist/types/ice-render/graphic/link/ICEPolyLine.d.ts +0 -316
- package/dist/types/ice-render/graphic/link/ICEVisioLink.d.mts +0 -163
- package/dist/types/ice-render/graphic/link/ICEVisioLink.d.ts +0 -163
- package/dist/types/ice-render/graphic/shape/ICECircle.d.mts +0 -19
- package/dist/types/ice-render/graphic/shape/ICECircle.d.ts +0 -19
- package/dist/types/ice-render/graphic/shape/ICEEllipse.d.mts +0 -29
- package/dist/types/ice-render/graphic/shape/ICEEllipse.d.ts +0 -29
- package/dist/types/ice-render/graphic/shape/ICEIsogon.d.mts +0 -52
- package/dist/types/ice-render/graphic/shape/ICEIsogon.d.ts +0 -52
- package/dist/types/ice-render/graphic/shape/ICERect.d.mts +0 -10
- package/dist/types/ice-render/graphic/shape/ICERect.d.ts +0 -10
- package/dist/types/ice-render/graphic/shape/ICERose.d.mts +0 -41
- package/dist/types/ice-render/graphic/shape/ICERose.d.ts +0 -41
- package/dist/types/ice-render/graphic/shape/ICEStar.d.mts +0 -45
- package/dist/types/ice-render/graphic/shape/ICEStar.d.ts +0 -45
- package/dist/types/ice-render/graphic/text/ICEText.d.mts +0 -158
- package/dist/types/ice-render/graphic/text/ICEText.d.ts +0 -158
- package/dist/types/ice-render/index.d.mts +0 -59
- package/dist/types/ice-render/index.d.ts +0 -59
- package/dist/types/ice-render/layout/ICEBorderLayout.d.mts +0 -34
- package/dist/types/ice-render/layout/ICEBorderLayout.d.ts +0 -34
- package/dist/types/ice-render/layout/ICEBoxLayout.d.mts +0 -30
- package/dist/types/ice-render/layout/ICEBoxLayout.d.ts +0 -30
- package/dist/types/ice-render/layout/ICECardLayout.d.mts +0 -36
- package/dist/types/ice-render/layout/ICECardLayout.d.ts +0 -36
- package/dist/types/ice-render/layout/ICEFlowLayout.d.mts +0 -31
- package/dist/types/ice-render/layout/ICEFlowLayout.d.ts +0 -31
- package/dist/types/ice-render/layout/ICEGridLayout.d.mts +0 -33
- package/dist/types/ice-render/layout/ICEGridLayout.d.ts +0 -33
- package/dist/types/ice-render/layout/ICELayeredLayout.d.mts +0 -49
- package/dist/types/ice-render/layout/ICELayeredLayout.d.ts +0 -49
- package/dist/types/ice-render/layout/ICELayoutManager.d.mts +0 -33
- package/dist/types/ice-render/layout/ICELayoutManager.d.ts +0 -33
- package/dist/types/ice-render/layout/ICEOverlayLayout.d.mts +0 -25
- package/dist/types/ice-render/layout/ICEOverlayLayout.d.ts +0 -25
- package/dist/types/ice-render/persistence/Deserializer.d.mts +0 -43
- package/dist/types/ice-render/persistence/Deserializer.d.ts +0 -43
- package/dist/types/ice-render/persistence/Serializer.d.mts +0 -35
- package/dist/types/ice-render/persistence/Serializer.d.ts +0 -35
- package/dist/types/ice-render/plugin/PluginHost.d.mts +0 -86
- package/dist/types/ice-render/plugin/PluginHost.d.ts +0 -86
- package/dist/types/ice-render/renderer/CanvasRenderer.d.mts +0 -150
- package/dist/types/ice-render/renderer/CanvasRenderer.d.ts +0 -150
- package/dist/types/ice-render/renderer/ObjectCache.d.mts +0 -79
- package/dist/types/ice-render/renderer/ObjectCache.d.ts +0 -79
- package/dist/types/ice-render/renderer/dirty-rect-util.d.mts +0 -86
- package/dist/types/ice-render/renderer/dirty-rect-util.d.ts +0 -86
- package/dist/types/ice-render/theme/ICETheme.d.mts +0 -382
- package/dist/types/ice-render/theme/ICETheme.d.ts +0 -382
- package/dist/types/ice-render/util/ImageCache.d.mts +0 -19
- package/dist/types/ice-render/util/ImageCache.d.ts +0 -19
- package/dist/types/ice-render/util/data-util.d.mts +0 -43
- package/dist/types/ice-render/util/data-util.d.ts +0 -43
- package/dist/types/ice-render/util/gl-matrix-skew.d.mts +0 -14
- package/dist/types/ice-render/util/gl-matrix-skew.d.ts +0 -14
- package/dist/types/ice-render/util/lang.d.mts +0 -28
- package/dist/types/ice-render/util/lang.d.ts +0 -28
- package/dist/types/ice-render/util/uuid.d.mts +0 -1
- 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 '
|
|
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
|
|
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
|
|
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 '
|
|
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
|
|
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
|
|
33
|
+
export type BpmnSimulatorOptions = {
|
|
34
34
|
/** 任务/网关等节点上的默认停留时长(毫秒) */
|
|
35
35
|
nodeDuration?: number;
|
|
36
36
|
/** 走一条连线默认花多久(毫秒) */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ICE } from '
|
|
1
|
+
import type { ICE } from 'ice-render';
|
|
2
2
|
import { validateSchema } from '../utils/schema_validator.mjs';
|
|
3
3
|
/** 载入快照时被跳过的节点明细(typeId 未注册) */
|
|
4
|
-
export
|
|
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
|
|
15
|
+
export type ProjectLoadReport = {
|
|
16
16
|
/** 是否真的发生了一次项目替换(空值 / 非项目快照为 false) */
|
|
17
17
|
loaded: boolean;
|
|
18
18
|
/** 实际创建出的实体数量 */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ICE } from '
|
|
1
|
+
import type { ICE } from 'ice-render';
|
|
2
2
|
import { validateSchema } from '../utils/schema_validator';
|
|
3
3
|
/** 载入快照时被跳过的节点明细(typeId 未注册) */
|
|
4
|
-
export
|
|
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
|
|
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 '
|
|
9
|
-
export
|
|
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 '
|
|
9
|
-
export
|
|
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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ICE, SvgExportOptions } from '
|
|
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
|
|
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
|
|
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
|
|
30
|
+
export type FlowSnapshotValidationResult = {
|
|
31
31
|
valid: boolean;
|
|
32
32
|
errors: string[];
|
|
33
33
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ICE, SvgExportOptions } from '
|
|
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
|
|
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
|
|
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
|
|
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 '
|
|
8
|
+
import { ICEVisioLink } from 'ice-render';
|
|
9
9
|
/** 连线端点所在的插槽位置(上 / 右 / 下 / 左 / 中心) */
|
|
10
|
-
export
|
|
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 '
|
|
8
|
+
import { ICEVisioLink } from 'ice-render';
|
|
9
9
|
/** 连线端点所在的插槽位置(上 / 右 / 下 / 左 / 中心) */
|
|
10
|
-
export
|
|
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 '
|
|
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
|
|
21
|
-
export
|
|
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 '
|
|
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
|
|
21
|
-
export
|
|
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 '
|
|
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 '
|
|
8
|
+
import { ICEPath } from 'ice-render';
|
|
9
9
|
/** 判定节点:菱形 */
|
|
10
10
|
export declare class FlowDiamond extends ICEPath {
|
|
11
11
|
static readonly typeId = "FlowDiamond";
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import FlowDesigner from '../flow/FlowDesigner.mjs';
|
|
9
9
|
import GanttRuler from './GanttRuler.mjs';
|
|
10
|
-
export
|
|
10
|
+
export type GanttIssue = {
|
|
11
11
|
level: 'error' | 'warning';
|
|
12
12
|
message: string;
|
|
13
13
|
id?: string;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
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
|
|
10
|
+
export type GanttIssue = {
|
|
11
11
|
level: 'error' | 'warning';
|
|
12
12
|
message: string;
|
|
13
13
|
id?: string;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
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 '
|
|
9
|
-
export
|
|
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 '
|
|
9
|
-
export
|
|
8
|
+
import { ICEGroup } from 'ice-render';
|
|
9
|
+
export type GanttRulerOptions = {
|
|
10
10
|
dayWidth: number;
|
|
11
11
|
labelColumnWidth: number;
|
|
12
12
|
headerHeight: number;
|
package/dist/types/index.d.mts
CHANGED
|
@@ -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
|
-
*
|
|
63
|
+
* ice-render 是 peer 依赖,不再内联进本包。
|
|
65
64
|
*
|
|
66
|
-
*
|
|
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 '
|
|
68
|
+
export * from 'ice-render';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
63
|
+
* ice-render 是 peer 依赖,不再内联进本包。
|
|
65
64
|
*
|
|
66
|
-
*
|
|
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 '
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 '
|
|
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
|
|
25
|
-
|
|
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
|
|
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 '
|
|
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
|
|
25
|
-
|
|
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
|
|
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
|
|
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
|
|
17
|
+
export type PowerVoltageLevel = {
|
|
18
18
|
/** 等级标识:'500kV' / '220kV' / '110kV' / '35kV' / '10kV' / '6kV' */
|
|
19
19
|
level: string;
|
|
20
20
|
/** 行业里的颜色称呼 */
|