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.
- package/README.md +16 -9
- 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 +4 -4
- package/dist/types/bpmn/BpmnSimulator.d.ts +4 -4
- package/dist/types/bpmn/bpmn_shapes.d.mts +9 -9
- package/dist/types/bpmn/bpmn_shapes.d.ts +9 -9
- 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 +3 -3
- package/dist/types/er-component/Entity.d.ts +3 -3
- package/dist/types/er-component/Relation.d.mts +2 -2
- package/dist/types/er-component/Relation.d.ts +2 -2
- 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 +4 -4
- package/dist/types/flow/FlowNode.d.ts +4 -4
- package/dist/types/flow/flow_shapes.d.mts +3 -3
- package/dist/types/flow/flow_shapes.d.ts +3 -3
- package/dist/types/gantt/GanttDependency.d.mts +2 -2
- package/dist/types/gantt/GanttDependency.d.ts +2 -2
- 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 +3 -3
- package/dist/types/gantt/GanttRuler.d.ts +3 -3
- package/dist/types/gantt/GanttTask.d.mts +2 -2
- package/dist/types/gantt/GanttTask.d.ts +2 -2
- 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 +3 -3
- package/dist/types/power/PowerDesigner.d.ts +3 -3
- package/dist/types/power/power_shapes.d.mts +5 -5
- package/dist/types/power/power_shapes.d.ts +5 -5
- 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 +2 -2
- package/dist/types/secondary/SecondaryDesigner.d.ts +2 -2
- package/dist/types/secondary/secondary_shapes.d.mts +4 -4
- package/dist/types/secondary/secondary_shapes.d.ts +4 -4
- package/dist/types/statechart/StateNode.d.mts +3 -3
- package/dist/types/statechart/StateNode.d.ts +3 -3
- package/dist/types/statechart/StateTransition.d.mts +2 -2
- package/dist/types/statechart/StateTransition.d.ts +2 -2
- 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 +3 -3
- package/dist/types/uml/UmlClass.d.ts +3 -3
- 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 +5 -5
- package/dist/types/uml/UmlRelation.d.ts +5 -5
- package/dist/types/uml/uml_text.d.mts +1 -1
- package/dist/types/uml/uml_text.d.ts +1 -1
- package/dist/types/utils/component_type_util.d.mts +4 -0
- package/dist/types/utils/component_type_util.d.ts +4 -0
- 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/dist/types/utils/type-registry.d.mts +11 -0
- package/dist/types/utils/type-registry.d.ts +11 -0
- 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 -84
- package/dist/types/ice-render/renderer/ObjectCache.d.ts +0 -84
- 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
|
*
|
|
@@ -13,10 +13,10 @@ import { ICECircle } from '../ice-render/index.mjs';
|
|
|
13
13
|
* 快照与 BPMN XML 导出,一旦 `stop()` 就干净退场。
|
|
14
14
|
*/
|
|
15
15
|
export declare class SimTokenDot extends ICECircle {
|
|
16
|
-
static readonly typeId = "SimToken";
|
|
16
|
+
static readonly typeId = "ice-entity-designer: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
|
*
|
|
@@ -13,10 +13,10 @@ import { ICECircle } from '../ice-render/index';
|
|
|
13
13
|
* 快照与 BPMN XML 导出,一旦 `stop()` 就干净退场。
|
|
14
14
|
*/
|
|
15
15
|
export declare class SimTokenDot extends ICECircle {
|
|
16
|
-
static readonly typeId = "SimToken";
|
|
16
|
+
static readonly typeId = "ice-entity-designer: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 { ICEPath } from '
|
|
8
|
+
import { ICEPath } from 'ice-render';
|
|
9
9
|
/**
|
|
10
10
|
* 事件(圆):开始 / 中间 / 结束 + 触发类型图标。
|
|
11
11
|
*
|
|
@@ -13,27 +13,27 @@ import { ICEPath } from '../ice-render/index.mjs';
|
|
|
13
13
|
* state.trigger: 'none' | 'message' | 'timer' | 'error' | 'terminate'
|
|
14
14
|
*/
|
|
15
15
|
export declare class BpmnEventShape extends ICEPath {
|
|
16
|
-
static readonly typeId = "BpmnEventShape";
|
|
16
|
+
static readonly typeId = "ice-entity-designer:BpmnEventShape";
|
|
17
17
|
protected createPathObject(): any;
|
|
18
18
|
}
|
|
19
19
|
/** 网关(菱形 + 内部符号):排他 × / 并行 + / 包容 ○ / 事件网关(五边形) */
|
|
20
20
|
export declare class BpmnGatewayShape extends ICEPath {
|
|
21
|
-
static readonly typeId = "BpmnGatewayShape";
|
|
21
|
+
static readonly typeId = "ice-entity-designer:BpmnGatewayShape";
|
|
22
22
|
protected createPathObject(): any;
|
|
23
23
|
}
|
|
24
24
|
/** 任务类型角标(左上角小图标,尺寸固定 12×12,由节点定位) */
|
|
25
25
|
export declare class BpmnTaskIcon extends ICEPath {
|
|
26
|
-
static readonly typeId = "BpmnTaskIcon";
|
|
26
|
+
static readonly typeId = "ice-entity-designer:BpmnTaskIcon";
|
|
27
27
|
protected createPathObject(): any;
|
|
28
28
|
}
|
|
29
29
|
/** 子流程折叠标记(底部居中的「+」小方块) */
|
|
30
30
|
export declare class BpmnSubprocessMarker extends ICEPath {
|
|
31
|
-
static readonly typeId = "BpmnSubprocessMarker";
|
|
31
|
+
static readonly typeId = "ice-entity-designer:BpmnSubprocessMarker";
|
|
32
32
|
protected createPathObject(): any;
|
|
33
33
|
}
|
|
34
34
|
/** 数据对象:右上角折角矩形 */
|
|
35
35
|
export declare class BpmnDataObjectShape extends ICEPath {
|
|
36
|
-
static readonly typeId = "BpmnDataObjectShape";
|
|
36
|
+
static readonly typeId = "ice-entity-designer:BpmnDataObjectShape";
|
|
37
37
|
protected createPathObject(): any;
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
@@ -43,7 +43,7 @@ export declare class BpmnDataObjectShape extends ICEPath {
|
|
|
43
43
|
* BPMN 2.0 的文本注释是闭合矩形,左侧竖线只是括号装饰,四条边都要有。
|
|
44
44
|
*/
|
|
45
45
|
export declare class BpmnAnnotationShape extends ICEPath {
|
|
46
|
-
static readonly typeId = "BpmnAnnotationShape";
|
|
46
|
+
static readonly typeId = "ice-entity-designer:BpmnAnnotationShape";
|
|
47
47
|
protected createPathObject(): any;
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
@@ -51,11 +51,11 @@ export declare class BpmnAnnotationShape extends ICEPath {
|
|
|
51
51
|
* `band` = 'left'(横向泳道,默认)| 'top'(池标题带)
|
|
52
52
|
*/
|
|
53
53
|
export declare class BpmnLaneShape extends ICEPath {
|
|
54
|
-
static readonly typeId = "BpmnLaneShape";
|
|
54
|
+
static readonly typeId = "ice-entity-designer:BpmnLaneShape";
|
|
55
55
|
protected createPathObject(): any;
|
|
56
56
|
}
|
|
57
57
|
/** 顺序流上的条件/默认标记(小菱形 / 斜杠),尺寸固定 14×14 */
|
|
58
58
|
export declare class BpmnFlowMarker extends ICEPath {
|
|
59
|
-
static readonly typeId = "BpmnFlowMarker";
|
|
59
|
+
static readonly typeId = "ice-entity-designer:BpmnFlowMarker";
|
|
60
60
|
protected createPathObject(): any;
|
|
61
61
|
}
|
|
@@ -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
|
* 事件(圆):开始 / 中间 / 结束 + 触发类型图标。
|
|
11
11
|
*
|
|
@@ -13,27 +13,27 @@ import { ICEPath } from '../ice-render/index';
|
|
|
13
13
|
* state.trigger: 'none' | 'message' | 'timer' | 'error' | 'terminate'
|
|
14
14
|
*/
|
|
15
15
|
export declare class BpmnEventShape extends ICEPath {
|
|
16
|
-
static readonly typeId = "BpmnEventShape";
|
|
16
|
+
static readonly typeId = "ice-entity-designer:BpmnEventShape";
|
|
17
17
|
protected createPathObject(): any;
|
|
18
18
|
}
|
|
19
19
|
/** 网关(菱形 + 内部符号):排他 × / 并行 + / 包容 ○ / 事件网关(五边形) */
|
|
20
20
|
export declare class BpmnGatewayShape extends ICEPath {
|
|
21
|
-
static readonly typeId = "BpmnGatewayShape";
|
|
21
|
+
static readonly typeId = "ice-entity-designer:BpmnGatewayShape";
|
|
22
22
|
protected createPathObject(): any;
|
|
23
23
|
}
|
|
24
24
|
/** 任务类型角标(左上角小图标,尺寸固定 12×12,由节点定位) */
|
|
25
25
|
export declare class BpmnTaskIcon extends ICEPath {
|
|
26
|
-
static readonly typeId = "BpmnTaskIcon";
|
|
26
|
+
static readonly typeId = "ice-entity-designer:BpmnTaskIcon";
|
|
27
27
|
protected createPathObject(): any;
|
|
28
28
|
}
|
|
29
29
|
/** 子流程折叠标记(底部居中的「+」小方块) */
|
|
30
30
|
export declare class BpmnSubprocessMarker extends ICEPath {
|
|
31
|
-
static readonly typeId = "BpmnSubprocessMarker";
|
|
31
|
+
static readonly typeId = "ice-entity-designer:BpmnSubprocessMarker";
|
|
32
32
|
protected createPathObject(): any;
|
|
33
33
|
}
|
|
34
34
|
/** 数据对象:右上角折角矩形 */
|
|
35
35
|
export declare class BpmnDataObjectShape extends ICEPath {
|
|
36
|
-
static readonly typeId = "BpmnDataObjectShape";
|
|
36
|
+
static readonly typeId = "ice-entity-designer:BpmnDataObjectShape";
|
|
37
37
|
protected createPathObject(): any;
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
@@ -43,7 +43,7 @@ export declare class BpmnDataObjectShape extends ICEPath {
|
|
|
43
43
|
* BPMN 2.0 的文本注释是闭合矩形,左侧竖线只是括号装饰,四条边都要有。
|
|
44
44
|
*/
|
|
45
45
|
export declare class BpmnAnnotationShape extends ICEPath {
|
|
46
|
-
static readonly typeId = "BpmnAnnotationShape";
|
|
46
|
+
static readonly typeId = "ice-entity-designer:BpmnAnnotationShape";
|
|
47
47
|
protected createPathObject(): any;
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
@@ -51,11 +51,11 @@ export declare class BpmnAnnotationShape extends ICEPath {
|
|
|
51
51
|
* `band` = 'left'(横向泳道,默认)| 'top'(池标题带)
|
|
52
52
|
*/
|
|
53
53
|
export declare class BpmnLaneShape extends ICEPath {
|
|
54
|
-
static readonly typeId = "BpmnLaneShape";
|
|
54
|
+
static readonly typeId = "ice-entity-designer:BpmnLaneShape";
|
|
55
55
|
protected createPathObject(): any;
|
|
56
56
|
}
|
|
57
57
|
/** 顺序流上的条件/默认标记(小菱形 / 斜杠),尺寸固定 14×14 */
|
|
58
58
|
export declare class BpmnFlowMarker extends ICEPath {
|
|
59
|
-
static readonly typeId = "BpmnFlowMarker";
|
|
59
|
+
static readonly typeId = "ice-entity-designer:BpmnFlowMarker";
|
|
60
60
|
protected createPathObject(): any;
|
|
61
61
|
}
|
|
@@ -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;
|
|
@@ -36,7 +36,7 @@ export default class Entity extends ICEGroup {
|
|
|
36
36
|
* (实测 webpack 生产构建下 Entity → `Dr`),基于类名的判断会静默失效。
|
|
37
37
|
* 属性名默认不会被压缩,子类也会继承这个值。
|
|
38
38
|
*/
|
|
39
|
-
static readonly typeId = "Entity";
|
|
39
|
+
static readonly typeId = "ice-entity-designer:Entity";
|
|
40
40
|
/**
|
|
41
41
|
* 表头背景 / 标题 / 分隔线 / 字段文本都是由 entityName、fields、各 style 派生的内部子组件,
|
|
42
42
|
* 构造函数会按 state 重建 → 不参与引擎序列化(避免往返重复挂载)。
|
|
@@ -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;
|
|
@@ -36,7 +36,7 @@ export default class Entity extends ICEGroup {
|
|
|
36
36
|
* (实测 webpack 生产构建下 Entity → `Dr`),基于类名的判断会静默失效。
|
|
37
37
|
* 属性名默认不会被压缩,子类也会继承这个值。
|
|
38
38
|
*/
|
|
39
|
-
static readonly typeId = "Entity";
|
|
39
|
+
static readonly typeId = "ice-entity-designer:Entity";
|
|
40
40
|
/**
|
|
41
41
|
* 表头背景 / 标题 / 分隔线 / 字段文本都是由 entityName、fields、各 style 派生的内部子组件,
|
|
42
42
|
* 构造函数会按 state 重建 → 不参与引擎序列化(避免往返重复挂载)。
|
|
@@ -5,7 +5,7 @@
|
|
|
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
10
|
* @class Relation
|
|
11
11
|
*
|
|
@@ -20,7 +20,7 @@ export default class Relation extends ICEVisioLink {
|
|
|
20
20
|
* 稳定的类型标识。判型与序列化都用它,**不要用 `constructor.name`** ——
|
|
21
21
|
* 下游打包会 mangle 类名(实测 webpack 生产构建下 Relation → `Br`),基于类名的判断会静默失效。
|
|
22
22
|
*/
|
|
23
|
-
static readonly typeId = "Relation";
|
|
23
|
+
static readonly typeId = "ice-entity-designer:Relation";
|
|
24
24
|
/** 连线没有子组件;声明派生以保证引擎序列化只持久化自身 state */
|
|
25
25
|
hasDerivedChildren(): boolean;
|
|
26
26
|
constructor(props?: any);
|
|
@@ -5,7 +5,7 @@
|
|
|
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
10
|
* @class Relation
|
|
11
11
|
*
|
|
@@ -20,7 +20,7 @@ export default class Relation extends ICEVisioLink {
|
|
|
20
20
|
* 稳定的类型标识。判型与序列化都用它,**不要用 `constructor.name`** ——
|
|
21
21
|
* 下游打包会 mangle 类名(实测 webpack 生产构建下 Relation → `Br`),基于类名的判断会静默失效。
|
|
22
22
|
*/
|
|
23
|
-
static readonly typeId = "Relation";
|
|
23
|
+
static readonly typeId = "ice-entity-designer:Relation";
|
|
24
24
|
/** 连线没有子组件;声明派生以保证引擎序列化只持久化自身 state */
|
|
25
25
|
hasDerivedChildren(): boolean;
|
|
26
26
|
constructor(props?: any);
|
|
@@ -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;
|
|
@@ -56,7 +56,7 @@ export declare const FLOW_NODE_KINDS: Record<FlowNodeKind, FlowNodePreset>;
|
|
|
56
56
|
*/
|
|
57
57
|
export default class FlowNode extends ICEGroup {
|
|
58
58
|
/** 稳定的类型标识(下游打包会 mangle 类名,判型不要用 constructor.name) */
|
|
59
|
-
static readonly typeId = "FlowNode";
|
|
59
|
+
static readonly typeId = "ice-entity-designer:FlowNode";
|
|
60
60
|
protected shapeComponent: any;
|
|
61
61
|
protected labelComponent: any;
|
|
62
62
|
/** BPMN 装饰件(任务角标 / 子流程标记),随形状一起重建 */
|
|
@@ -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;
|
|
@@ -56,7 +56,7 @@ export declare const FLOW_NODE_KINDS: Record<FlowNodeKind, FlowNodePreset>;
|
|
|
56
56
|
*/
|
|
57
57
|
export default class FlowNode extends ICEGroup {
|
|
58
58
|
/** 稳定的类型标识(下游打包会 mangle 类名,判型不要用 constructor.name) */
|
|
59
|
-
static readonly typeId = "FlowNode";
|
|
59
|
+
static readonly typeId = "ice-entity-designer:FlowNode";
|
|
60
60
|
protected shapeComponent: any;
|
|
61
61
|
protected labelComponent: any;
|
|
62
62
|
/** BPMN 装饰件(任务角标 / 子流程标记),随形状一起重建 */
|
|
@@ -5,14 +5,14 @@
|
|
|
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
|
-
static readonly typeId = "FlowDiamond";
|
|
11
|
+
static readonly typeId = "ice-entity-designer:FlowDiamond";
|
|
12
12
|
protected createPathObject(): any;
|
|
13
13
|
}
|
|
14
14
|
/** 输入 / 输出节点:平行四边形 */
|
|
15
15
|
export declare class FlowParallelogram extends ICEPath {
|
|
16
|
-
static readonly typeId = "FlowParallelogram";
|
|
16
|
+
static readonly typeId = "ice-entity-designer:FlowParallelogram";
|
|
17
17
|
protected createPathObject(): any;
|
|
18
18
|
}
|
|
@@ -5,14 +5,14 @@
|
|
|
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
|
-
static readonly typeId = "FlowDiamond";
|
|
11
|
+
static readonly typeId = "ice-entity-designer:FlowDiamond";
|
|
12
12
|
protected createPathObject(): any;
|
|
13
13
|
}
|
|
14
14
|
/** 输入 / 输出节点:平行四边形 */
|
|
15
15
|
export declare class FlowParallelogram extends ICEPath {
|
|
16
|
-
static readonly typeId = "FlowParallelogram";
|
|
16
|
+
static readonly typeId = "ice-entity-designer:FlowParallelogram";
|
|
17
17
|
protected createPathObject(): any;
|
|
18
18
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
|
-
import { ICEPolyLine } from '
|
|
8
|
+
import { ICEPolyLine } from 'ice-render';
|
|
9
9
|
/**
|
|
10
10
|
* @class GanttDependency 甘特任务之间的依赖(完成 → 开始)
|
|
11
11
|
*
|
|
@@ -13,6 +13,6 @@ import { ICEPolyLine } from '../ice-render/index.mjs';
|
|
|
13
13
|
* 依赖只表达约束,不改变条的位置(自动排程是后续能力,不属于本包 v1)。
|
|
14
14
|
*/
|
|
15
15
|
export default class GanttDependency extends ICEPolyLine {
|
|
16
|
-
static readonly typeId = "GanttDependency";
|
|
16
|
+
static readonly typeId = "ice-entity-designer:GanttDependency";
|
|
17
17
|
constructor(props?: any);
|
|
18
18
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
|
-
import { ICEPolyLine } from '
|
|
8
|
+
import { ICEPolyLine } from 'ice-render';
|
|
9
9
|
/**
|
|
10
10
|
* @class GanttDependency 甘特任务之间的依赖(完成 → 开始)
|
|
11
11
|
*
|
|
@@ -13,6 +13,6 @@ import { ICEPolyLine } from '../ice-render/index';
|
|
|
13
13
|
* 依赖只表达约束,不改变条的位置(自动排程是后续能力,不属于本包 v1)。
|
|
14
14
|
*/
|
|
15
15
|
export default class GanttDependency extends ICEPolyLine {
|
|
16
|
-
static readonly typeId = "GanttDependency";
|
|
16
|
+
static readonly typeId = "ice-entity-designer:GanttDependency";
|
|
17
17
|
constructor(props?: any);
|
|
18
18
|
}
|
|
@@ -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;
|
|
@@ -31,7 +31,7 @@ export declare type GanttRulerOptions = {
|
|
|
31
31
|
* 避免长排期把画布画满文字(这也是甘特工具通行做法)。
|
|
32
32
|
*/
|
|
33
33
|
export default class GanttRuler extends ICEGroup {
|
|
34
|
-
static readonly typeId = "GanttRuler";
|
|
34
|
+
static readonly typeId = "ice-entity-designer:GanttRuler";
|
|
35
35
|
constructor();
|
|
36
36
|
hasDerivedChildren(): boolean;
|
|
37
37
|
/** 按当前任务模型重建框架 */
|
|
@@ -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;
|
|
@@ -31,7 +31,7 @@ export declare type GanttRulerOptions = {
|
|
|
31
31
|
* 避免长排期把画布画满文字(这也是甘特工具通行做法)。
|
|
32
32
|
*/
|
|
33
33
|
export default class GanttRuler extends ICEGroup {
|
|
34
|
-
static readonly typeId = "GanttRuler";
|
|
34
|
+
static readonly typeId = "ice-entity-designer:GanttRuler";
|
|
35
35
|
constructor();
|
|
36
36
|
hasDerivedChildren(): boolean;
|
|
37
37
|
/** 按当前任务模型重建框架 */
|