ice-entity-designer 0.0.28 → 0.0.30
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 +29 -24
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/index.umd.js +2 -2
- package/dist/react.cjs +2 -2
- package/dist/react.mjs +2 -2
- package/dist/types/flow/FlowDesigner.d.mts +14 -0
- package/dist/types/flow/FlowDesigner.d.ts +14 -0
- package/dist/types/gantt/GanttDesigner.d.mts +9 -0
- package/dist/types/gantt/GanttDesigner.d.ts +9 -0
- package/dist/types/uml/UmlRelation.d.mts +7 -0
- package/dist/types/uml/UmlRelation.d.ts +7 -0
- package/package.json +1 -1
|
@@ -123,6 +123,20 @@ export default class FlowDesigner {
|
|
|
123
123
|
private __applyEngineScene;
|
|
124
124
|
/** v1(历史格式)兼容读取:由 nodes / edges 数组重建(迁移路径,不参与写出) */
|
|
125
125
|
private __clearAndBuild;
|
|
126
|
+
/**
|
|
127
|
+
* 「适应视图」要框住的内容。
|
|
128
|
+
*
|
|
129
|
+
* 默认就是业务图元;带**派生装饰**的域包(甘特的图表框架:左列任务名 + 表头 + 行线)
|
|
130
|
+
* 要把它一起算进来,否则只框任务条会把左列和表头切在视口外。
|
|
131
|
+
*/
|
|
132
|
+
protected contentComponents(): any[];
|
|
133
|
+
/**
|
|
134
|
+
* 适应视图时的对齐方式。
|
|
135
|
+
*
|
|
136
|
+
* 流程图/类图这类「图」居中最好看;甘特这种「表」是从上往下读的,居中会在上方留一大片空白,
|
|
137
|
+
* 所以甘特把它改成 `start`(贴顶留白)。
|
|
138
|
+
*/
|
|
139
|
+
protected fitViewportAlign: 'center' | 'start';
|
|
126
140
|
/** 把整个流程缩放到画布可视区内 */
|
|
127
141
|
fitViewport(padding?: number): void;
|
|
128
142
|
canUndo(): boolean;
|
|
@@ -123,6 +123,20 @@ export default class FlowDesigner {
|
|
|
123
123
|
private __applyEngineScene;
|
|
124
124
|
/** v1(历史格式)兼容读取:由 nodes / edges 数组重建(迁移路径,不参与写出) */
|
|
125
125
|
private __clearAndBuild;
|
|
126
|
+
/**
|
|
127
|
+
* 「适应视图」要框住的内容。
|
|
128
|
+
*
|
|
129
|
+
* 默认就是业务图元;带**派生装饰**的域包(甘特的图表框架:左列任务名 + 表头 + 行线)
|
|
130
|
+
* 要把它一起算进来,否则只框任务条会把左列和表头切在视口外。
|
|
131
|
+
*/
|
|
132
|
+
protected contentComponents(): any[];
|
|
133
|
+
/**
|
|
134
|
+
* 适应视图时的对齐方式。
|
|
135
|
+
*
|
|
136
|
+
* 流程图/类图这类「图」居中最好看;甘特这种「表」是从上往下读的,居中会在上方留一大片空白,
|
|
137
|
+
* 所以甘特把它改成 `start`(贴顶留白)。
|
|
138
|
+
*/
|
|
139
|
+
protected fitViewportAlign: 'center' | 'start';
|
|
126
140
|
/** 把整个流程缩放到画布可视区内 */
|
|
127
141
|
fitViewport(padding?: number): void;
|
|
128
142
|
canUndo(): boolean;
|
|
@@ -96,4 +96,13 @@ export default class GanttDesigner extends FlowDesigner {
|
|
|
96
96
|
*/
|
|
97
97
|
validateGantt(): GanttIssue[];
|
|
98
98
|
private __anchor;
|
|
99
|
+
/**
|
|
100
|
+
* 适应视图:把图表框架(左列任务名 + 表头 + 行线)也算成内容。
|
|
101
|
+
*
|
|
102
|
+
* 框架不在 `nodes` 里(它是派生装饰),只按任务条框会把左列和表头切到视口外 ——
|
|
103
|
+
* 用户看到的就是「任务名只剩半个字」。
|
|
104
|
+
*/
|
|
105
|
+
protected contentComponents(): any[];
|
|
106
|
+
/** 甘特是排期表(从上往下读),适应视图贴顶对齐,不居中 */
|
|
107
|
+
protected fitViewportAlign: 'center' | 'start';
|
|
99
108
|
}
|
|
@@ -96,4 +96,13 @@ export default class GanttDesigner extends FlowDesigner {
|
|
|
96
96
|
*/
|
|
97
97
|
validateGantt(): GanttIssue[];
|
|
98
98
|
private __anchor;
|
|
99
|
+
/**
|
|
100
|
+
* 适应视图:把图表框架(左列任务名 + 表头 + 行线)也算成内容。
|
|
101
|
+
*
|
|
102
|
+
* 框架不在 `nodes` 里(它是派生装饰),只按任务条框会把左列和表头切到视口外 ——
|
|
103
|
+
* 用户看到的就是「任务名只剩半个字」。
|
|
104
|
+
*/
|
|
105
|
+
protected contentComponents(): any[];
|
|
106
|
+
/** 甘特是排期表(从上往下读),适应视图贴顶对齐,不居中 */
|
|
107
|
+
protected fitViewportAlign: 'center' | 'start';
|
|
99
108
|
}
|
|
@@ -31,6 +31,13 @@ declare type UmlRelationStyle = {
|
|
|
31
31
|
* | 依赖 dependency | 虚线 | 开放箭头,指向被依赖方 |
|
|
32
32
|
*/
|
|
33
33
|
export declare const UML_RELATION_STYLE: Record<UmlRelationKind, UmlRelationStyle>;
|
|
34
|
+
/**
|
|
35
|
+
* 每种关系的语义色(同一张图里「线是什么关系」要能一眼分辨)。
|
|
36
|
+
*
|
|
37
|
+
* 取色原则:继承/实现是**类型关系**(靛蓝系),聚合/组合是**结构关系**(墨绿系),
|
|
38
|
+
* 关联/依赖是**弱关系**(石板灰,越弱越淡)。
|
|
39
|
+
*/
|
|
40
|
+
export declare const UML_RELATION_COLOR: Record<UmlRelationKind, string>;
|
|
34
41
|
/**
|
|
35
42
|
* @class UmlRelation UML 类图的关系线
|
|
36
43
|
*
|
|
@@ -31,6 +31,13 @@ declare type UmlRelationStyle = {
|
|
|
31
31
|
* | 依赖 dependency | 虚线 | 开放箭头,指向被依赖方 |
|
|
32
32
|
*/
|
|
33
33
|
export declare const UML_RELATION_STYLE: Record<UmlRelationKind, UmlRelationStyle>;
|
|
34
|
+
/**
|
|
35
|
+
* 每种关系的语义色(同一张图里「线是什么关系」要能一眼分辨)。
|
|
36
|
+
*
|
|
37
|
+
* 取色原则:继承/实现是**类型关系**(靛蓝系),聚合/组合是**结构关系**(墨绿系),
|
|
38
|
+
* 关联/依赖是**弱关系**(石板灰,越弱越淡)。
|
|
39
|
+
*/
|
|
40
|
+
export declare const UML_RELATION_COLOR: Record<UmlRelationKind, string>;
|
|
34
41
|
/**
|
|
35
42
|
* @class UmlRelation UML 类图的关系线
|
|
36
43
|
*
|