ebaoferc 0.0.1 → 0.0.2-beta.1
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/dist/{FlexRowCol → components/FlexRowCol}/index.js +1 -1
- package/dist/components/MindGraph/core/default.d.ts +6 -0
- package/dist/components/MindGraph/core/default.js +81 -0
- package/dist/components/MindGraph/core/graphic/drag.d.ts +42 -0
- package/dist/components/MindGraph/core/graphic/drag.js +120 -0
- package/dist/components/MindGraph/core/graphic/index.d.ts +181 -0
- package/dist/components/MindGraph/core/graphic/index.js +423 -0
- package/dist/components/MindGraph/core/graphic/node-translate-to.d.ts +11 -0
- package/dist/components/MindGraph/core/graphic/node-translate-to.js +55 -0
- package/dist/components/MindGraph/core/graphic/zoom.d.ts +17 -0
- package/dist/components/MindGraph/core/graphic/zoom.js +90 -0
- package/dist/components/MindGraph/core/helper/breadth-first-walk-tree.d.ts +5 -0
- package/dist/components/MindGraph/core/helper/breadth-first-walk-tree.js +21 -0
- package/dist/components/MindGraph/core/helper/depth-first-walk-tree.d.ts +10 -0
- package/dist/components/MindGraph/core/helper/depth-first-walk-tree.js +17 -0
- package/dist/components/MindGraph/core/helper/descendant.d.ts +6 -0
- package/dist/components/MindGraph/core/helper/descendant.js +28 -0
- package/dist/components/MindGraph/core/helper/error.d.ts +1 -0
- package/dist/components/MindGraph/core/helper/error.js +3 -0
- package/dist/components/MindGraph/core/helper/get-layout-calc-children.d.ts +10 -0
- package/dist/components/MindGraph/core/helper/get-layout-calc-children.js +37 -0
- package/dist/components/MindGraph/core/helper/get-svg-path-id.d.ts +1 -0
- package/dist/components/MindGraph/core/helper/get-svg-path-id.js +4 -0
- package/dist/components/MindGraph/core/helper/index.d.ts +23 -0
- package/dist/components/MindGraph/core/helper/index.js +26 -0
- package/dist/components/MindGraph/core/helper/judge-if-all-child-fold.d.ts +7 -0
- package/dist/components/MindGraph/core/helper/judge-if-all-child-fold.js +14 -0
- package/dist/components/MindGraph/core/helper/judge-if-heir-and-fold.d.ts +10 -0
- package/dist/components/MindGraph/core/helper/judge-if-heir-and-fold.js +26 -0
- package/dist/components/MindGraph/core/helper/judge-if-visual-leaf.d.ts +6 -0
- package/dist/components/MindGraph/core/helper/judge-if-visual-leaf.js +7 -0
- package/dist/components/MindGraph/core/helper/root-to-node-array.d.ts +2 -0
- package/dist/components/MindGraph/core/helper/root-to-node-array.js +27 -0
- package/dist/components/MindGraph/core/helper/transform-root-to-walkable.d.ts +5 -0
- package/dist/components/MindGraph/core/helper/transform-root-to-walkable.js +32 -0
- package/dist/components/MindGraph/core/helper/with-prefix.d.ts +1 -0
- package/dist/components/MindGraph/core/helper/with-prefix.js +3 -0
- package/dist/components/MindGraph/core/index.d.ts +394 -0
- package/dist/components/MindGraph/core/index.js +86 -0
- package/dist/components/MindGraph/core/process/anchor.d.ts +12 -0
- package/dist/components/MindGraph/core/process/anchor.js +63 -0
- package/dist/components/MindGraph/core/process/index.d.ts +91 -0
- package/dist/components/MindGraph/core/process/index.js +30 -0
- package/dist/components/MindGraph/core/process/layout/dagre.d.ts +2 -0
- package/dist/components/MindGraph/core/process/layout/dagre.js +20 -0
- package/dist/components/MindGraph/core/process/layout/descendant-center.d.ts +10 -0
- package/dist/components/MindGraph/core/process/layout/descendant-center.js +146 -0
- package/dist/components/MindGraph/core/process/layout/heir-center.d.ts +10 -0
- package/dist/components/MindGraph/core/process/layout/heir-center.js +52 -0
- package/dist/components/MindGraph/core/process/layout/index.d.ts +3 -0
- package/dist/components/MindGraph/core/process/layout/index.js +3 -0
- package/dist/components/MindGraph/core/process/layout/structured/calc-drag-attach.d.ts +2 -0
- package/dist/components/MindGraph/core/process/layout/structured/calc-drag-attach.js +172 -0
- package/dist/components/MindGraph/core/process/layout/structured/calc-drop-index.d.ts +2 -0
- package/dist/components/MindGraph/core/process/layout/structured/calc-drop-index.js +38 -0
- package/dist/components/MindGraph/core/process/layout/structured/get-node-cross-boundary.d.ts +10 -0
- package/dist/components/MindGraph/core/process/layout/structured/get-node-cross-boundary.js +35 -0
- package/dist/components/MindGraph/core/process/layout/structured/index.d.ts +13 -0
- package/dist/components/MindGraph/core/process/layout/structured/index.js +321 -0
- package/dist/components/MindGraph/core/process/layout/type.d.ts +44 -0
- package/dist/components/MindGraph/core/process/layout/type.js +51 -0
- package/dist/components/MindGraph/core/process/line.d.ts +9 -0
- package/dist/components/MindGraph/core/process/line.js +69 -0
- package/dist/components/MindGraph/core/process/node-valid.d.ts +6 -0
- package/dist/components/MindGraph/core/process/node-valid.js +35 -0
- package/dist/components/MindGraph/core/process/orientation.d.ts +8 -0
- package/dist/components/MindGraph/core/process/orientation.js +40 -0
- package/dist/components/MindGraph/core/process/size.d.ts +4 -0
- package/dist/components/MindGraph/core/process/size.js +16 -0
- package/dist/components/MindGraph/core/process/visible.d.ts +16 -0
- package/dist/components/MindGraph/core/process/visible.js +99 -0
- package/dist/components/MindGraph/core/render/calc-visible.d.ts +11 -0
- package/dist/components/MindGraph/core/render/calc-visible.js +25 -0
- package/dist/components/MindGraph/core/render/connect/bezier.d.ts +2 -0
- package/dist/components/MindGraph/core/render/connect/bezier.js +12 -0
- package/dist/components/MindGraph/core/render/connect/get-path-render.d.ts +2 -0
- package/dist/components/MindGraph/core/render/connect/get-path-render.js +17 -0
- package/dist/components/MindGraph/core/render/connect/index.d.ts +10 -0
- package/dist/components/MindGraph/core/render/connect/index.js +45 -0
- package/dist/components/MindGraph/core/render/connect/line.d.ts +2 -0
- package/dist/components/MindGraph/core/render/connect/line.js +71 -0
- package/dist/components/MindGraph/core/render/connect/temporary-line.d.ts +15 -0
- package/dist/components/MindGraph/core/render/connect/temporary-line.js +44 -0
- package/dist/components/MindGraph/core/render/index.d.ts +27 -0
- package/dist/components/MindGraph/core/render/index.js +8 -0
- package/dist/components/MindGraph/core/render/layout.d.ts +12 -0
- package/dist/components/MindGraph/core/render/layout.js +85 -0
- package/dist/components/MindGraph/demo.js +54 -0
- package/dist/components/MindGraph/index.d.ts +3 -0
- package/dist/components/MindGraph/index.js +3 -0
- package/dist/components/MindGraph/react/component/index.d.ts +3 -0
- package/dist/components/MindGraph/react/component/index.js +227 -0
- package/dist/components/MindGraph/react/component/index.module.less +72 -0
- package/dist/components/MindGraph/react/component/nodes.d.ts +13 -0
- package/dist/components/MindGraph/react/component/nodes.js +153 -0
- package/dist/components/MindGraph/react/hook/use-drag.d.ts +20 -0
- package/dist/components/MindGraph/react/hook/use-drag.js +191 -0
- package/dist/components/MindGraph/react/hook/use-shadow-state.d.ts +2 -0
- package/dist/components/MindGraph/react/hook/use-shadow-state.js +24 -0
- package/dist/components/MindGraph/react/index.d.ts +154 -0
- package/dist/components/MindGraph/react/index.js +9 -0
- package/dist/components/MindGraph/react/scrollbar/axis/index.d.ts +25 -0
- package/dist/components/MindGraph/react/scrollbar/axis/index.js +143 -0
- package/dist/components/MindGraph/react/scrollbar/axis/index.module.less +48 -0
- package/dist/components/MindGraph/react/scrollbar/index.d.ts +8 -0
- package/dist/components/MindGraph/react/scrollbar/index.js +134 -0
- package/dist/components/MindGraph/react/tools/class-name-wrapper.d.ts +1 -0
- package/dist/components/MindGraph/react/tools/class-name-wrapper.js +5 -0
- package/dist/{SliderVerify → components/SliderVerify}/icons/close.js +0 -1
- package/dist/{SliderVerify → components/SliderVerify}/icons/refresh.js +0 -1
- package/dist/components/SliderVerify/icons/slider.d.ts +1 -0
- package/dist/{SliderVerify → components/SliderVerify}/icons/slider.js +0 -1
- package/dist/{SliderVerify → components/SliderVerify}/style.module.less +119 -121
- package/dist/{StyledQueryFilter → components/StyledQueryFilter}/index.less +22 -22
- package/dist/{StyledTable → components/StyledTable}/index.less +11 -11
- package/dist/{TabSearchTools → components/TabSearchTools}/index.d.ts +2 -2
- package/dist/{TabSearchTools → components/TabSearchTools}/index.js +1 -1
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +6 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/useBIHooks/index.d.ts +10 -0
- package/dist/hooks/useBIHooks/index.js +64 -0
- package/dist/index.d.ts +3 -5
- package/dist/index.js +3 -5
- package/dist/utils/bi/index.d.ts +2 -0
- package/dist/utils/bi/index.js +35 -0
- package/dist/utils/format/index.js +8 -8
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/package.json +33 -20
- /package/dist/{FlexRowCol → components/FlexRowCol}/index.d.ts +0 -0
- /package/dist/{SliderVerify/icons/close.d.ts → components/MindGraph/demo.d.ts} +0 -0
- /package/dist/{SliderVerify/icons/refresh.d.ts → components/SliderVerify/icons/close.d.ts} +0 -0
- /package/dist/{SliderVerify/icons/slider.d.ts → components/SliderVerify/icons/refresh.d.ts} +0 -0
- /package/dist/{SliderVerify → components/SliderVerify}/index.d.ts +0 -0
- /package/dist/{SliderVerify → components/SliderVerify}/index.js +0 -0
- /package/dist/{StyledQueryFilter → components/StyledQueryFilter}/index.d.ts +0 -0
- /package/dist/{StyledQueryFilter → components/StyledQueryFilter}/index.js +0 -0
- /package/dist/{StyledTable → components/StyledTable}/index.d.ts +0 -0
- /package/dist/{StyledTable → components/StyledTable}/index.js +0 -0
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
import { Graphic as GraphicClass } from './graphic';
|
|
2
|
+
import { Drag as DragClass } from './graphic/drag';
|
|
3
|
+
import { Process as ProcessModule } from './process';
|
|
4
|
+
import { DraggableLayout as DraggableLayoutClass } from './process/layout/type';
|
|
5
|
+
export declare namespace Mind {
|
|
6
|
+
type ValueOf<T> = T[keyof T];
|
|
7
|
+
export interface Size {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
}
|
|
11
|
+
export interface Coordinate {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
}
|
|
15
|
+
export type CacheMap = Map<string, Mind.NodeCache>;
|
|
16
|
+
export const ChildAlignMode: {
|
|
17
|
+
/**
|
|
18
|
+
* 子代对齐模式
|
|
19
|
+
*/
|
|
20
|
+
readonly descendantCenter: "descendant-center";
|
|
21
|
+
/**
|
|
22
|
+
* 直系子代节点中心对齐
|
|
23
|
+
*/
|
|
24
|
+
readonly heirCenter: "heir-center";
|
|
25
|
+
/**
|
|
26
|
+
* 结构化规整模式
|
|
27
|
+
*/
|
|
28
|
+
readonly structured: "structured";
|
|
29
|
+
};
|
|
30
|
+
export type ChildAlignMode = ValueOf<typeof ChildAlignMode>;
|
|
31
|
+
export interface Root {
|
|
32
|
+
/**
|
|
33
|
+
* 根节点数据
|
|
34
|
+
*/
|
|
35
|
+
node: Omit<Node, 'children'>;
|
|
36
|
+
/**
|
|
37
|
+
* 正向区域节点
|
|
38
|
+
*/
|
|
39
|
+
positive?: Node[];
|
|
40
|
+
/**
|
|
41
|
+
* 负向区域节点
|
|
42
|
+
*/
|
|
43
|
+
negative?: Node[];
|
|
44
|
+
}
|
|
45
|
+
export const Orientation: {
|
|
46
|
+
/**
|
|
47
|
+
* 处于正向区域
|
|
48
|
+
*/
|
|
49
|
+
readonly negative: "negative";
|
|
50
|
+
/**
|
|
51
|
+
* 处于负向区域
|
|
52
|
+
*/
|
|
53
|
+
readonly positive: "positive";
|
|
54
|
+
/**
|
|
55
|
+
* 根节点
|
|
56
|
+
*/
|
|
57
|
+
readonly root: "root";
|
|
58
|
+
};
|
|
59
|
+
export type Orientation = ValueOf<typeof Orientation>;
|
|
60
|
+
export const Direction: {
|
|
61
|
+
/**
|
|
62
|
+
* x轴水平方向渲染
|
|
63
|
+
*/
|
|
64
|
+
readonly x: "x";
|
|
65
|
+
/**
|
|
66
|
+
* y轴垂直方向渲染
|
|
67
|
+
*/
|
|
68
|
+
readonly y: "y";
|
|
69
|
+
};
|
|
70
|
+
export type Direction = ValueOf<typeof Direction>;
|
|
71
|
+
export interface Visible {
|
|
72
|
+
/**
|
|
73
|
+
* 节点本身是否可见
|
|
74
|
+
*/
|
|
75
|
+
node: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* 与父级之间的连线
|
|
78
|
+
*/
|
|
79
|
+
lineAttachParent: boolean;
|
|
80
|
+
}
|
|
81
|
+
export interface Transform {
|
|
82
|
+
x: number;
|
|
83
|
+
y: number;
|
|
84
|
+
scale: number;
|
|
85
|
+
}
|
|
86
|
+
export const LinkStyle: {
|
|
87
|
+
/**
|
|
88
|
+
* 贝塞尔曲线
|
|
89
|
+
*/
|
|
90
|
+
readonly bezier: "bezier";
|
|
91
|
+
/**
|
|
92
|
+
* 线性
|
|
93
|
+
* - 线性只有在 ChildAlignMode.structured 风格下表现最佳
|
|
94
|
+
*/
|
|
95
|
+
readonly line: "line";
|
|
96
|
+
};
|
|
97
|
+
export type LinkStyle = ValueOf<typeof LinkStyle>;
|
|
98
|
+
export interface PathData extends Line {
|
|
99
|
+
/**
|
|
100
|
+
* 节点自身数据
|
|
101
|
+
*/
|
|
102
|
+
node: Mind.Node;
|
|
103
|
+
}
|
|
104
|
+
export interface Range<T> {
|
|
105
|
+
min: T;
|
|
106
|
+
max: T;
|
|
107
|
+
}
|
|
108
|
+
export interface PathRenderContext extends PathData {
|
|
109
|
+
/**
|
|
110
|
+
* 设定
|
|
111
|
+
*/
|
|
112
|
+
options: Required<Options>;
|
|
113
|
+
/**
|
|
114
|
+
* 缓存地图
|
|
115
|
+
*/
|
|
116
|
+
cacheMap: CacheMap;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* 拖动关联信息
|
|
120
|
+
*/
|
|
121
|
+
export interface DragAttach {
|
|
122
|
+
/**
|
|
123
|
+
* 链接
|
|
124
|
+
*/
|
|
125
|
+
link: {
|
|
126
|
+
source: Mind.Coordinate;
|
|
127
|
+
target: Mind.Coordinate;
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* 关联节点
|
|
131
|
+
*/
|
|
132
|
+
node: Mind.Node;
|
|
133
|
+
/**
|
|
134
|
+
* 拖动节点关联到目标节点的区域
|
|
135
|
+
*/
|
|
136
|
+
orientation: Mind.Orientation;
|
|
137
|
+
}
|
|
138
|
+
export interface NodeCache {
|
|
139
|
+
/**
|
|
140
|
+
* 节点方位
|
|
141
|
+
*/
|
|
142
|
+
orientation: Orientation;
|
|
143
|
+
/**
|
|
144
|
+
* 节点数据
|
|
145
|
+
*/
|
|
146
|
+
node: Node;
|
|
147
|
+
/**
|
|
148
|
+
* 节点所属矩形大小以及位置
|
|
149
|
+
*/
|
|
150
|
+
rect: Size & Coordinate;
|
|
151
|
+
/**
|
|
152
|
+
* 是否可见
|
|
153
|
+
*/
|
|
154
|
+
visible: Visible;
|
|
155
|
+
/**
|
|
156
|
+
* 父级节点
|
|
157
|
+
*/
|
|
158
|
+
parent?: Node;
|
|
159
|
+
/**
|
|
160
|
+
* 处理器在处理时的缓存数据
|
|
161
|
+
*/
|
|
162
|
+
processCache: any;
|
|
163
|
+
/**
|
|
164
|
+
* 连线相关信息
|
|
165
|
+
*/
|
|
166
|
+
line: Line;
|
|
167
|
+
/**
|
|
168
|
+
* 整体布局尺寸
|
|
169
|
+
* - 只有根节点保存此数据
|
|
170
|
+
*/
|
|
171
|
+
layoutSize?: Size;
|
|
172
|
+
}
|
|
173
|
+
export interface Event {
|
|
174
|
+
/**
|
|
175
|
+
* 视窗上下文菜单事件
|
|
176
|
+
* - 组件禁用了在视窗上的右键菜单
|
|
177
|
+
* @param e
|
|
178
|
+
*/
|
|
179
|
+
onViewportContextMenu?: (e: MouseEvent) => void;
|
|
180
|
+
/**
|
|
181
|
+
* zoom 事件触发器
|
|
182
|
+
*/
|
|
183
|
+
onZoomEventTrigger?: ZoomEvent;
|
|
184
|
+
}
|
|
185
|
+
export interface Callback {
|
|
186
|
+
/**
|
|
187
|
+
* 转换发生改变,通知外部
|
|
188
|
+
* @param transform
|
|
189
|
+
*/
|
|
190
|
+
onTransformChange?: (transform: Transform) => void;
|
|
191
|
+
/**
|
|
192
|
+
* 可见节点发生了改变
|
|
193
|
+
* - 每一次 `setData` 后都必定会调用此事件
|
|
194
|
+
* @param nodes 可见节点数组(节点都是对`setData`中节点数据的引用,请注意根节点设置`children`无效)
|
|
195
|
+
*/
|
|
196
|
+
onNodeVisibleChange?: (nodes: Mind.Node[]) => void;
|
|
197
|
+
}
|
|
198
|
+
export interface Line {
|
|
199
|
+
/**
|
|
200
|
+
* 链接线起点(节点父级)
|
|
201
|
+
*/
|
|
202
|
+
source: Coordinate;
|
|
203
|
+
/**
|
|
204
|
+
* 连接线终点(节点自身)
|
|
205
|
+
*/
|
|
206
|
+
target: Coordinate;
|
|
207
|
+
}
|
|
208
|
+
export interface Node {
|
|
209
|
+
/**
|
|
210
|
+
* 全局唯一 id
|
|
211
|
+
*/
|
|
212
|
+
id: string;
|
|
213
|
+
/**
|
|
214
|
+
* 子代
|
|
215
|
+
*/
|
|
216
|
+
children?: Node[];
|
|
217
|
+
/**
|
|
218
|
+
* 是否折叠子代
|
|
219
|
+
* - 根节点为数组,[negative,positive]
|
|
220
|
+
* - 普通节点直接代表是否折叠子代
|
|
221
|
+
* @default false | [false,false]
|
|
222
|
+
*/
|
|
223
|
+
fold?: boolean | boolean[];
|
|
224
|
+
/**
|
|
225
|
+
* 附带数据
|
|
226
|
+
* - 请将节点附带的数据全部存储到此处
|
|
227
|
+
*/
|
|
228
|
+
attachData?: any;
|
|
229
|
+
/**
|
|
230
|
+
* 获取当前节点尺寸
|
|
231
|
+
*/
|
|
232
|
+
sizeof: () => Size;
|
|
233
|
+
}
|
|
234
|
+
export type PathRender = (context: PathRenderContext) => string;
|
|
235
|
+
export const RelativeX: {
|
|
236
|
+
readonly left: "left";
|
|
237
|
+
readonly middle: "middle";
|
|
238
|
+
readonly right: "right";
|
|
239
|
+
};
|
|
240
|
+
export type RelativeX = ValueOf<typeof RelativeX>;
|
|
241
|
+
export const RelativeY: {
|
|
242
|
+
readonly bottom: "bottom";
|
|
243
|
+
readonly middle: "middle";
|
|
244
|
+
readonly top: "top";
|
|
245
|
+
};
|
|
246
|
+
export type RelativeY = ValueOf<typeof RelativeY>;
|
|
247
|
+
export interface Relative {
|
|
248
|
+
x: RelativeX;
|
|
249
|
+
y: RelativeY;
|
|
250
|
+
}
|
|
251
|
+
export interface ZoomExtent {
|
|
252
|
+
/**
|
|
253
|
+
* 位移边界
|
|
254
|
+
* - 其是可视区域(viewport)在图形所在世界的边界坐标
|
|
255
|
+
* - 计算时,可以简单的将 viewport 视作可移动的部分,图形保持位置不变(注意scale带来的影响,需要将viewport转换到图形所在世界坐标系,EM: viewport.width/scale))
|
|
256
|
+
* default [[x: -∞, y: -∞], [x: +∞, y :+∞]]
|
|
257
|
+
*/
|
|
258
|
+
translate?: [Coordinate, Coordinate];
|
|
259
|
+
/**
|
|
260
|
+
* 缩放边界
|
|
261
|
+
* default [0, ∞]
|
|
262
|
+
*/
|
|
263
|
+
scale?: [number, number];
|
|
264
|
+
}
|
|
265
|
+
export interface Options {
|
|
266
|
+
/**
|
|
267
|
+
* 禁止连接线裁剪渲染
|
|
268
|
+
* @default false
|
|
269
|
+
*/
|
|
270
|
+
disableLinesTailor?: boolean;
|
|
271
|
+
/**
|
|
272
|
+
* 渲染方向
|
|
273
|
+
* - positive 在 x 模式下渲染在右侧,y 模式下渲染在上侧
|
|
274
|
+
* - negative 在 x 模式下渲染在左侧,y 模式下渲染在下侧
|
|
275
|
+
* default 'x' 水平方向
|
|
276
|
+
*/
|
|
277
|
+
direction?: Direction;
|
|
278
|
+
/**
|
|
279
|
+
* 节点间距
|
|
280
|
+
* @default 50
|
|
281
|
+
*/
|
|
282
|
+
nodeSeparate?: number;
|
|
283
|
+
/**
|
|
284
|
+
* 每一级的距离
|
|
285
|
+
* @default 50
|
|
286
|
+
*/
|
|
287
|
+
rankSeparate?: number;
|
|
288
|
+
/**
|
|
289
|
+
* 子代对齐模式(布局模式)
|
|
290
|
+
* @default 'structured'
|
|
291
|
+
*/
|
|
292
|
+
childAlignMode?: ChildAlignMode;
|
|
293
|
+
/**
|
|
294
|
+
* 视窗四周预加载尺寸
|
|
295
|
+
* @default 0
|
|
296
|
+
*/
|
|
297
|
+
viewportPreloadPadding?: number;
|
|
298
|
+
/**
|
|
299
|
+
* 回调
|
|
300
|
+
*/
|
|
301
|
+
callback?: Callback;
|
|
302
|
+
/**
|
|
303
|
+
* 事件
|
|
304
|
+
*/
|
|
305
|
+
event?: Event;
|
|
306
|
+
/**
|
|
307
|
+
* 连线样式风格
|
|
308
|
+
* @default 'bezier'
|
|
309
|
+
*/
|
|
310
|
+
lineStyle?: LinkStyle;
|
|
311
|
+
/**
|
|
312
|
+
* 自定义path渲染路径
|
|
313
|
+
* - 优先级高于 `lineStyle`
|
|
314
|
+
* @param data
|
|
315
|
+
* @return 返回字符串将作为 path d 属性
|
|
316
|
+
*/
|
|
317
|
+
pathRender?: PathRender | undefined;
|
|
318
|
+
/**
|
|
319
|
+
* 自定义布局处理器
|
|
320
|
+
* - 优先级高于 childAlignMode 选择的布局方式
|
|
321
|
+
*/
|
|
322
|
+
layoutProcess?: {
|
|
323
|
+
new (): Process.Lifecycle;
|
|
324
|
+
};
|
|
325
|
+
/**
|
|
326
|
+
* 缩放尺度控制
|
|
327
|
+
*/
|
|
328
|
+
zoomExtent?: ZoomExtent;
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* 位移/缩放事件函数
|
|
332
|
+
* @param event the underlying input event, such as mousemove or touchmove
|
|
333
|
+
*/
|
|
334
|
+
export type ZoomEventFunc = (event: any) => void;
|
|
335
|
+
export interface ZoomEvent {
|
|
336
|
+
/**
|
|
337
|
+
* 缩放/拖动开始事件
|
|
338
|
+
*/
|
|
339
|
+
start?: ZoomEventFunc;
|
|
340
|
+
/**
|
|
341
|
+
* 缩放/拖动中事件
|
|
342
|
+
*/
|
|
343
|
+
zoom?: ZoomEventFunc;
|
|
344
|
+
/**
|
|
345
|
+
* 缩放/拖动结束
|
|
346
|
+
*/
|
|
347
|
+
end?: ZoomEventFunc;
|
|
348
|
+
}
|
|
349
|
+
export namespace Process {
|
|
350
|
+
type Lifecycle = ProcessModule.Lifecycle;
|
|
351
|
+
type StartContext = ProcessModule.StartContext;
|
|
352
|
+
type EveryContext = ProcessModule.EveryContext;
|
|
353
|
+
}
|
|
354
|
+
export type Graphic = GraphicClass;
|
|
355
|
+
export const Graphic: typeof GraphicClass;
|
|
356
|
+
export type Drag = DragClass;
|
|
357
|
+
export const Drag: typeof DragClass;
|
|
358
|
+
export type DraggableLayout = DraggableLayoutClass;
|
|
359
|
+
export const DraggableLayout: typeof DraggableLayoutClass;
|
|
360
|
+
export const _Helper: {
|
|
361
|
+
breadthFirstWalkTree: (node: Node, callback: {
|
|
362
|
+
before: (node: Node) => boolean;
|
|
363
|
+
after: (rank: Node[]) => void;
|
|
364
|
+
}) => void; /**
|
|
365
|
+
* 直系子代节点中心对齐
|
|
366
|
+
*/
|
|
367
|
+
depthFirstWalkTree: (root: Node, callback: {
|
|
368
|
+
before: (node: Node, parent?: Node | undefined) => boolean;
|
|
369
|
+
after: (node: Node, parent?: Node | undefined) => void;
|
|
370
|
+
}) => void;
|
|
371
|
+
descendant: (node: Node) => Node[];
|
|
372
|
+
error: (message: string) => Error;
|
|
373
|
+
getLayoutCalcChildren: (node: Node, rootId: string, getRootHeirOrientation: ProcessModule.getRootHeirOrientationFunc) => Node[];
|
|
374
|
+
getSvgPathId: (id: string) => string;
|
|
375
|
+
judgeIfAllChildFold: (node: Node, rootId: string) => boolean;
|
|
376
|
+
judgeIfHeirAndFold: (node: Node, parent: Node | undefined, root: Root, getRootHeirOrientation: ProcessModule.getRootHeirOrientationFunc) => boolean;
|
|
377
|
+
judgeIfVisualLeaf: (node: Node, children?: Node[] | undefined) => boolean | boolean[] | undefined;
|
|
378
|
+
rootToNodeArray: (root: Root, callback: (node: Node) => void) => Node[];
|
|
379
|
+
transformRootToWalkable: (root: Root) => {
|
|
380
|
+
getRootHeirOrientation: (id: string) => Orientation;
|
|
381
|
+
shadowNode: Node;
|
|
382
|
+
};
|
|
383
|
+
withPrefix: (message: string) => string;
|
|
384
|
+
};
|
|
385
|
+
export const _Process: typeof ProcessModule;
|
|
386
|
+
export const _WithDefault: {
|
|
387
|
+
cache: (data?: NodeCache | undefined) => Required<NodeCache>;
|
|
388
|
+
options: (data?: Options | undefined) => Required<Options>;
|
|
389
|
+
transform: (data?: Transform | undefined) => Required<Transform>; /**
|
|
390
|
+
* y轴垂直方向渲染
|
|
391
|
+
*/
|
|
392
|
+
};
|
|
393
|
+
export {};
|
|
394
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
2
|
+
import { WithDefault } from "./default";
|
|
3
|
+
import { Graphic as GraphicClass } from "./graphic";
|
|
4
|
+
import { Drag as DragClass } from "./graphic/drag";
|
|
5
|
+
import { Helper } from "./helper";
|
|
6
|
+
import { Process as ProcessModule } from "./process";
|
|
7
|
+
import { DraggableLayout as DraggableLayoutClass } from "./process/layout/type";
|
|
8
|
+
export var Mind;
|
|
9
|
+
(function (_Mind) {
|
|
10
|
+
var ChildAlignMode = _Mind.ChildAlignMode = {
|
|
11
|
+
/**
|
|
12
|
+
* 子代对齐模式
|
|
13
|
+
*/
|
|
14
|
+
descendantCenter: 'descendant-center',
|
|
15
|
+
/**
|
|
16
|
+
* 直系子代节点中心对齐
|
|
17
|
+
*/
|
|
18
|
+
heirCenter: 'heir-center',
|
|
19
|
+
/**
|
|
20
|
+
* 结构化规整模式
|
|
21
|
+
*/
|
|
22
|
+
structured: 'structured'
|
|
23
|
+
};
|
|
24
|
+
var Orientation = _Mind.Orientation = {
|
|
25
|
+
/**
|
|
26
|
+
* 处于正向区域
|
|
27
|
+
*/
|
|
28
|
+
negative: 'negative',
|
|
29
|
+
/**
|
|
30
|
+
* 处于负向区域
|
|
31
|
+
*/
|
|
32
|
+
positive: 'positive',
|
|
33
|
+
/**
|
|
34
|
+
* 根节点
|
|
35
|
+
*/
|
|
36
|
+
root: 'root'
|
|
37
|
+
};
|
|
38
|
+
var Direction = _Mind.Direction = {
|
|
39
|
+
/**
|
|
40
|
+
* x轴水平方向渲染
|
|
41
|
+
*/
|
|
42
|
+
x: 'x',
|
|
43
|
+
/**
|
|
44
|
+
* y轴垂直方向渲染
|
|
45
|
+
*/
|
|
46
|
+
y: 'y'
|
|
47
|
+
};
|
|
48
|
+
var LinkStyle = _Mind.LinkStyle = {
|
|
49
|
+
/**
|
|
50
|
+
* 贝塞尔曲线
|
|
51
|
+
*/
|
|
52
|
+
bezier: 'bezier',
|
|
53
|
+
/**
|
|
54
|
+
* 线性
|
|
55
|
+
* - 线性只有在 ChildAlignMode.structured 风格下表现最佳
|
|
56
|
+
*/
|
|
57
|
+
line: 'line'
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* 拖动关联信息
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
var RelativeX = _Mind.RelativeX = {
|
|
65
|
+
left: 'left',
|
|
66
|
+
middle: 'middle',
|
|
67
|
+
right: 'right'
|
|
68
|
+
};
|
|
69
|
+
var RelativeY = _Mind.RelativeY = {
|
|
70
|
+
bottom: 'bottom',
|
|
71
|
+
middle: 'middle',
|
|
72
|
+
top: 'top'
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* 位移/缩放事件函数
|
|
77
|
+
* @param event the underlying input event, such as mousemove or touchmove
|
|
78
|
+
*/
|
|
79
|
+
|
|
80
|
+
var Graphic = _Mind.Graphic = GraphicClass;
|
|
81
|
+
var Drag = _Mind.Drag = DragClass;
|
|
82
|
+
var DraggableLayout = _Mind.DraggableLayout = DraggableLayoutClass;
|
|
83
|
+
var _Helper = _Mind._Helper = Helper;
|
|
84
|
+
var _Process = _Mind._Process = ProcessModule;
|
|
85
|
+
var _WithDefault = _Mind._WithDefault = WithDefault;
|
|
86
|
+
})(Mind || (Mind = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Process } from './index';
|
|
2
|
+
export declare class Anchor implements Process.Lifecycle {
|
|
3
|
+
private preAnchorRect?;
|
|
4
|
+
private anchor?;
|
|
5
|
+
private cacheMap;
|
|
6
|
+
private transform;
|
|
7
|
+
private zoom;
|
|
8
|
+
private viewport;
|
|
9
|
+
private root;
|
|
10
|
+
start: (context: Process.StartContext) => void;
|
|
11
|
+
end: () => void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
5
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
9
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
|
+
export var Anchor = /*#__PURE__*/_createClass(function Anchor() {
|
|
11
|
+
var _this = this;
|
|
12
|
+
_classCallCheck(this, Anchor);
|
|
13
|
+
_defineProperty(this, "preAnchorRect", void 0);
|
|
14
|
+
_defineProperty(this, "anchor", void 0);
|
|
15
|
+
_defineProperty(this, "cacheMap", void 0);
|
|
16
|
+
_defineProperty(this, "transform", void 0);
|
|
17
|
+
_defineProperty(this, "zoom", void 0);
|
|
18
|
+
_defineProperty(this, "viewport", void 0);
|
|
19
|
+
_defineProperty(this, "root", void 0);
|
|
20
|
+
_defineProperty(this, "start", function (context) {
|
|
21
|
+
var preCacheMap = context.preCacheMap,
|
|
22
|
+
cacheMap = context.cacheMap,
|
|
23
|
+
anchor = context.anchor,
|
|
24
|
+
transform = context.transform,
|
|
25
|
+
zoom = context.zoom,
|
|
26
|
+
viewport = context.viewport,
|
|
27
|
+
root = context.root;
|
|
28
|
+
_this.anchor = anchor;
|
|
29
|
+
_this.cacheMap = cacheMap;
|
|
30
|
+
_this.transform = transform;
|
|
31
|
+
_this.zoom = zoom;
|
|
32
|
+
_this.viewport = viewport;
|
|
33
|
+
_this.root = root;
|
|
34
|
+
if (anchor && preCacheMap.get(anchor)) {
|
|
35
|
+
_this.preAnchorRect = _objectSpread({}, preCacheMap.get(anchor).rect);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
_defineProperty(this, "end", function () {
|
|
39
|
+
var anchorCache = _this.cacheMap.get(_this.anchor || '');
|
|
40
|
+
|
|
41
|
+
// 在经历数据改变,布局重计算之后,锚点依然存在,则,锁定锚点,保持缩放比不变
|
|
42
|
+
if (anchorCache && _this.preAnchorRect) {
|
|
43
|
+
var diff = {
|
|
44
|
+
x: (anchorCache.rect.x - _this.preAnchorRect.x) * _this.transform.scale,
|
|
45
|
+
y: (anchorCache.rect.y - _this.preAnchorRect.y) * _this.transform.scale
|
|
46
|
+
};
|
|
47
|
+
_this.zoom.setTransform({
|
|
48
|
+
scale: _this.transform.scale,
|
|
49
|
+
x: _this.transform.x - diff.x,
|
|
50
|
+
y: _this.transform.y - diff.y
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
// 没有找到任何锚点,则,根节点居中,缩放比归一
|
|
54
|
+
else {
|
|
55
|
+
var rootRect = _this.cacheMap.get(_this.root.node.id);
|
|
56
|
+
_this.zoom.setTransform({
|
|
57
|
+
scale: 1,
|
|
58
|
+
x: _this.viewport.clientWidth / 2 - rootRect.rect.x,
|
|
59
|
+
y: _this.viewport.clientHeight / 2 - rootRect.rect.y
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
});
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { Zoom } from '../graphic/zoom';
|
|
2
|
+
import { Mind } from '../index';
|
|
3
|
+
import { Anchor as AnchorProcess } from './anchor';
|
|
4
|
+
import { DescendantCenterLayout as DescendantCenterLayoutProcess, HeirCenterLayout as HeirCenterLayoutProcess, StructuredLayout as StructuredLayoutProcess } from './layout';
|
|
5
|
+
import { Line as LineProcess } from './line';
|
|
6
|
+
import { NodeValid as NodeValidProcess } from './node-valid';
|
|
7
|
+
import { Orientation as OrientationProcess } from './orientation';
|
|
8
|
+
import { Size as SizeProcess } from './size';
|
|
9
|
+
import { Visible as VisibleProcess } from './visible';
|
|
10
|
+
export declare namespace Process {
|
|
11
|
+
type getRootHeirOrientationFunc = (id: string) => Mind.Orientation;
|
|
12
|
+
interface EveryContext {
|
|
13
|
+
/**
|
|
14
|
+
* 当前处理节点缓存信息
|
|
15
|
+
*/
|
|
16
|
+
cache: Mind.NodeCache;
|
|
17
|
+
}
|
|
18
|
+
interface StartContext {
|
|
19
|
+
/**
|
|
20
|
+
* 配置项
|
|
21
|
+
*/
|
|
22
|
+
options: Required<Mind.Options>;
|
|
23
|
+
/**
|
|
24
|
+
* 根数据
|
|
25
|
+
*/
|
|
26
|
+
root: Mind.Root;
|
|
27
|
+
/**
|
|
28
|
+
* 获取根直系子代的方位
|
|
29
|
+
* @param id 直系子代 id
|
|
30
|
+
*/
|
|
31
|
+
getRootHeirOrientation: getRootHeirOrientationFunc;
|
|
32
|
+
/**
|
|
33
|
+
* 缓存地图
|
|
34
|
+
*/
|
|
35
|
+
cacheMap: Mind.CacheMap;
|
|
36
|
+
/**
|
|
37
|
+
* 上一次的缓存地图
|
|
38
|
+
*/
|
|
39
|
+
preCacheMap?: Mind.CacheMap;
|
|
40
|
+
/**
|
|
41
|
+
* 可视窗口
|
|
42
|
+
*/
|
|
43
|
+
viewport: HTMLElement;
|
|
44
|
+
/**
|
|
45
|
+
* 内容容器
|
|
46
|
+
*/
|
|
47
|
+
container: HTMLElement;
|
|
48
|
+
/**
|
|
49
|
+
* 位移/缩放配置
|
|
50
|
+
*/
|
|
51
|
+
transform: Mind.Transform;
|
|
52
|
+
/**
|
|
53
|
+
* 配置锚点
|
|
54
|
+
*/
|
|
55
|
+
anchor?: string;
|
|
56
|
+
/**
|
|
57
|
+
* 位移/缩放控制器
|
|
58
|
+
*/
|
|
59
|
+
zoom: Zoom;
|
|
60
|
+
}
|
|
61
|
+
interface Lifecycle<S = void, E = void, AE = void, END = void> {
|
|
62
|
+
/**
|
|
63
|
+
* 开始步骤
|
|
64
|
+
*/
|
|
65
|
+
start?: (context: StartContext) => S;
|
|
66
|
+
/**
|
|
67
|
+
* 每一个节点处理(开始深度优先递归子代之前)
|
|
68
|
+
* @param context 上下文环境
|
|
69
|
+
*/
|
|
70
|
+
every?: (context: EveryContext) => E;
|
|
71
|
+
/**
|
|
72
|
+
* 每一个节点处理(结束深度优先递归子代之后)
|
|
73
|
+
* @param context 上下文环境
|
|
74
|
+
*/
|
|
75
|
+
afterEvery?: (context: EveryContext) => AE;
|
|
76
|
+
/**
|
|
77
|
+
* 结束处理步骤
|
|
78
|
+
*/
|
|
79
|
+
end?: () => END;
|
|
80
|
+
}
|
|
81
|
+
const Size: typeof SizeProcess;
|
|
82
|
+
const HeirCenterLayout: typeof HeirCenterLayoutProcess;
|
|
83
|
+
const DescendantCenterLayout: typeof DescendantCenterLayoutProcess;
|
|
84
|
+
const StructuredLayout: typeof StructuredLayoutProcess;
|
|
85
|
+
const Visible: typeof VisibleProcess;
|
|
86
|
+
const Line: typeof LineProcess;
|
|
87
|
+
const Orientation: typeof OrientationProcess;
|
|
88
|
+
const Anchor: typeof AnchorProcess;
|
|
89
|
+
const NodeValid: typeof NodeValidProcess;
|
|
90
|
+
const getLayoutProcess: (options: Required<Mind.Options>) => (new () => Mind.Process.Lifecycle) | typeof HeirCenterLayoutProcess | typeof DescendantCenterLayoutProcess | typeof StructuredLayoutProcess;
|
|
91
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
4
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
6
|
+
|
|
7
|
+
import { Mind } from "../index";
|
|
8
|
+
import { Anchor as AnchorProcess } from "./anchor";
|
|
9
|
+
import { DescendantCenterLayout as DescendantCenterLayoutProcess, HeirCenterLayout as HeirCenterLayoutProcess, StructuredLayout as StructuredLayoutProcess } from "./layout";
|
|
10
|
+
import { Line as LineProcess } from "./line";
|
|
11
|
+
import { NodeValid as NodeValidProcess } from "./node-valid";
|
|
12
|
+
import { Orientation as OrientationProcess } from "./orientation";
|
|
13
|
+
import { Size as SizeProcess } from "./size";
|
|
14
|
+
import { Visible as VisibleProcess } from "./visible";
|
|
15
|
+
export var Process;
|
|
16
|
+
(function (_Process) {
|
|
17
|
+
var Size = _Process.Size = SizeProcess;
|
|
18
|
+
var HeirCenterLayout = _Process.HeirCenterLayout = HeirCenterLayoutProcess;
|
|
19
|
+
var DescendantCenterLayout = _Process.DescendantCenterLayout = DescendantCenterLayoutProcess;
|
|
20
|
+
var StructuredLayout = _Process.StructuredLayout = StructuredLayoutProcess;
|
|
21
|
+
var Visible = _Process.Visible = VisibleProcess;
|
|
22
|
+
var Line = _Process.Line = LineProcess;
|
|
23
|
+
var Orientation = _Process.Orientation = OrientationProcess;
|
|
24
|
+
var Anchor = _Process.Anchor = AnchorProcess;
|
|
25
|
+
var NodeValid = _Process.NodeValid = NodeValidProcess;
|
|
26
|
+
var getLayoutProcess = _Process.getLayoutProcess = function (options) {
|
|
27
|
+
var matchMap = _defineProperty(_defineProperty(_defineProperty({}, Mind.ChildAlignMode.heirCenter, HeirCenterLayoutProcess), Mind.ChildAlignMode.descendantCenter, DescendantCenterLayoutProcess), Mind.ChildAlignMode.structured, StructuredLayoutProcess);
|
|
28
|
+
return options.layoutProcess ? options.layoutProcess : matchMap[options.childAlignMode];
|
|
29
|
+
};
|
|
30
|
+
})(Process || (Process = {}));
|