@moxa/graph 2.8.1 → 2.8.2
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 +321 -0
- package/assets/icon-sprite.svg +1 -0
- package/assets/worker-Df6v-Qfe.js +13 -0
- package/graph-tokens.json +160 -0
- package/index.cjs +472 -0
- package/index.d.ts +10 -0
- package/index.d.ts.map +1 -0
- package/index.js +74434 -0
- package/lib/behavior/brush-select.d.ts +10 -0
- package/lib/behavior/brush-select.d.ts.map +1 -0
- package/lib/behavior/click-select.d.ts +129 -0
- package/lib/behavior/click-select.d.ts.map +1 -0
- package/lib/behavior/collapse-expand.d.ts +4 -0
- package/lib/behavior/collapse-expand.d.ts.map +1 -0
- package/lib/behavior/create-edge.d.ts +52 -0
- package/lib/behavior/create-edge.d.ts.map +1 -0
- package/lib/behavior/drag-canvas.d.ts +7 -0
- package/lib/behavior/drag-canvas.d.ts.map +1 -0
- package/lib/behavior/drag-element.d.ts +6 -0
- package/lib/behavior/drag-element.d.ts.map +1 -0
- package/lib/behavior/fix-element-size.d.ts +9 -0
- package/lib/behavior/fix-element-size.d.ts.map +1 -0
- package/lib/behavior/focus-element.d.ts +4 -0
- package/lib/behavior/focus-element.d.ts.map +1 -0
- package/lib/behavior/helper/behavior.mapper.d.ts +9 -0
- package/lib/behavior/helper/behavior.mapper.d.ts.map +1 -0
- package/lib/behavior/helper/index.d.ts +2 -0
- package/lib/behavior/helper/index.d.ts.map +1 -0
- package/lib/behavior/hover-activate.d.ts +4 -0
- package/lib/behavior/hover-activate.d.ts.map +1 -0
- package/lib/behavior/index.d.ts +13 -0
- package/lib/behavior/index.d.ts.map +1 -0
- package/lib/behavior/scroll-canvas.d.ts +4 -0
- package/lib/behavior/scroll-canvas.d.ts.map +1 -0
- package/lib/behavior/select-all.d.ts +14 -0
- package/lib/behavior/select-all.d.ts.map +1 -0
- package/lib/behavior/zoom-canvas.d.ts +4 -0
- package/lib/behavior/zoom-canvas.d.ts.map +1 -0
- package/lib/edge/custom/index.d.ts +4 -0
- package/lib/edge/custom/index.d.ts.map +1 -0
- package/lib/edge/custom/line-edge.d.ts +15 -0
- package/lib/edge/custom/line-edge.d.ts.map +1 -0
- package/lib/edge/custom/polyline-edge.d.ts +21 -0
- package/lib/edge/custom/polyline-edge.d.ts.map +1 -0
- package/lib/edge/custom/quadratic-edge.d.ts +15 -0
- package/lib/edge/custom/quadratic-edge.d.ts.map +1 -0
- package/lib/edge/helper/custom-edge.helper.d.ts +12 -0
- package/lib/edge/helper/custom-edge.helper.d.ts.map +1 -0
- package/lib/edge/helper/edge-g6.mapper.d.ts +19 -0
- package/lib/edge/helper/edge-g6.mapper.d.ts.map +1 -0
- package/lib/edge/helper/edge.mapper.d.ts +20 -0
- package/lib/edge/helper/edge.mapper.d.ts.map +1 -0
- package/lib/edge/helper/edge.theme.d.ts +10 -0
- package/lib/edge/helper/edge.theme.d.ts.map +1 -0
- package/lib/edge/helper/index.d.ts +5 -0
- package/lib/edge/helper/index.d.ts.map +1 -0
- package/lib/edge/index.d.ts +3 -0
- package/lib/edge/index.d.ts.map +1 -0
- package/lib/graph/graph.d.ts +506 -0
- package/lib/graph/graph.d.ts.map +1 -0
- package/lib/graph/graph.mapper.d.ts +15 -0
- package/lib/graph/graph.mapper.d.ts.map +1 -0
- package/lib/graph/index.d.ts +3 -0
- package/lib/graph/index.d.ts.map +1 -0
- package/lib/group/custom/device-group.d.ts +33 -0
- package/lib/group/custom/device-group.d.ts.map +1 -0
- package/lib/group/custom/index.d.ts +2 -0
- package/lib/group/custom/index.d.ts.map +1 -0
- package/lib/group/helper/group-g6.mapper.d.ts +16 -0
- package/lib/group/helper/group-g6.mapper.d.ts.map +1 -0
- package/lib/group/helper/group.mapper.d.ts +21 -0
- package/lib/group/helper/group.mapper.d.ts.map +1 -0
- package/lib/group/helper/index.d.ts +3 -0
- package/lib/group/helper/index.d.ts.map +1 -0
- package/lib/group/index.d.ts +3 -0
- package/lib/group/index.d.ts.map +1 -0
- package/lib/layout/align.d.ts +18 -0
- package/lib/layout/align.d.ts.map +1 -0
- package/lib/layout/force.d.ts +10 -0
- package/lib/layout/force.d.ts.map +1 -0
- package/lib/layout/grid.d.ts +17 -0
- package/lib/layout/grid.d.ts.map +1 -0
- package/lib/layout/helper/index.d.ts +2 -0
- package/lib/layout/helper/index.d.ts.map +1 -0
- package/lib/layout/helper/layout.helper.d.ts +4 -0
- package/lib/layout/helper/layout.helper.d.ts.map +1 -0
- package/lib/layout/helper/layout.mapper.d.ts +6 -0
- package/lib/layout/helper/layout.mapper.d.ts.map +1 -0
- package/lib/layout/index.d.ts +7 -0
- package/lib/layout/index.d.ts.map +1 -0
- package/lib/layout/ring.d.ts +10 -0
- package/lib/layout/ring.d.ts.map +1 -0
- package/lib/layout/tree.d.ts +12 -0
- package/lib/layout/tree.d.ts.map +1 -0
- package/lib/model/background.model.d.ts +8 -0
- package/lib/model/background.model.d.ts.map +1 -0
- package/lib/model/behavior.model.d.ts +27 -0
- package/lib/model/behavior.model.d.ts.map +1 -0
- package/lib/model/edge.model.d.ts +80 -0
- package/lib/model/edge.model.d.ts.map +1 -0
- package/lib/model/element.model.d.ts +2 -0
- package/lib/model/element.model.d.ts.map +1 -0
- package/lib/model/event.model.d.ts +216 -0
- package/lib/model/event.model.d.ts.map +1 -0
- package/lib/model/extension.model.d.ts +15 -0
- package/lib/model/extension.model.d.ts.map +1 -0
- package/lib/model/graph.model.d.ts +34 -0
- package/lib/model/graph.model.d.ts.map +1 -0
- package/lib/model/group.model.d.ts +43 -0
- package/lib/model/group.model.d.ts.map +1 -0
- package/lib/model/icon.model.d.ts +11 -0
- package/lib/model/icon.model.d.ts.map +1 -0
- package/lib/model/image.model.d.ts +8 -0
- package/lib/model/image.model.d.ts.map +1 -0
- package/lib/model/index.d.ts +17 -0
- package/lib/model/index.d.ts.map +1 -0
- package/lib/model/label.model.d.ts +19 -0
- package/lib/model/label.model.d.ts.map +1 -0
- package/lib/model/layout.model.d.ts +22 -0
- package/lib/model/layout.model.d.ts.map +1 -0
- package/lib/model/node.model.d.ts +35 -0
- package/lib/model/node.model.d.ts.map +1 -0
- package/lib/model/plugin.model.d.ts +19 -0
- package/lib/model/plugin.model.d.ts.map +1 -0
- package/lib/model/shape.model.d.ts +8 -0
- package/lib/model/shape.model.d.ts.map +1 -0
- package/lib/model/state.model.d.ts +6 -0
- package/lib/model/state.model.d.ts.map +1 -0
- package/lib/model/theme.model.d.ts +62 -0
- package/lib/model/theme.model.d.ts.map +1 -0
- package/lib/model/viewport.model.d.ts +12 -0
- package/lib/model/viewport.model.d.ts.map +1 -0
- package/lib/node/custom/device-node.d.ts +36 -0
- package/lib/node/custom/device-node.d.ts.map +1 -0
- package/lib/node/custom/index.d.ts +2 -0
- package/lib/node/custom/index.d.ts.map +1 -0
- package/lib/node/helper/icon-style.d.ts +4 -0
- package/lib/node/helper/icon-style.d.ts.map +1 -0
- package/lib/node/helper/index.d.ts +5 -0
- package/lib/node/helper/index.d.ts.map +1 -0
- package/lib/node/helper/key-style.d.ts +5 -0
- package/lib/node/helper/key-style.d.ts.map +1 -0
- package/lib/node/helper/node-g6.mapper.d.ts +15 -0
- package/lib/node/helper/node-g6.mapper.d.ts.map +1 -0
- package/lib/node/helper/node.mapper.d.ts +26 -0
- package/lib/node/helper/node.mapper.d.ts.map +1 -0
- package/lib/node/index.d.ts +3 -0
- package/lib/node/index.d.ts.map +1 -0
- package/lib/plugin/context-menu.d.ts +6 -0
- package/lib/plugin/context-menu.d.ts.map +1 -0
- package/lib/plugin/element-toolbar.d.ts +51 -0
- package/lib/plugin/element-toolbar.d.ts.map +1 -0
- package/lib/plugin/fixed-toolbar.d.ts +28 -0
- package/lib/plugin/fixed-toolbar.d.ts.map +1 -0
- package/lib/plugin/graph-background.d.ts +33 -0
- package/lib/plugin/graph-background.d.ts.map +1 -0
- package/lib/plugin/helper/index.d.ts +2 -0
- package/lib/plugin/helper/index.d.ts.map +1 -0
- package/lib/plugin/helper/plugin.mapper.d.ts +8 -0
- package/lib/plugin/helper/plugin.mapper.d.ts.map +1 -0
- package/lib/plugin/history.d.ts +7 -0
- package/lib/plugin/history.d.ts.map +1 -0
- package/lib/plugin/index.d.ts +10 -0
- package/lib/plugin/index.d.ts.map +1 -0
- package/lib/plugin/minimap.d.ts +13 -0
- package/lib/plugin/minimap.d.ts.map +1 -0
- package/lib/plugin/snapline.d.ts +9 -0
- package/lib/plugin/snapline.d.ts.map +1 -0
- package/lib/plugin/tooltip.d.ts +11 -0
- package/lib/plugin/tooltip.d.ts.map +1 -0
- package/lib/themes/dark.d.ts +3 -0
- package/lib/themes/dark.d.ts.map +1 -0
- package/lib/themes/index.d.ts +4 -0
- package/lib/themes/index.d.ts.map +1 -0
- package/lib/themes/light.d.ts +3 -0
- package/lib/themes/light.d.ts.map +1 -0
- package/lib/themes/theme.mapper.d.ts +65 -0
- package/lib/themes/theme.mapper.d.ts.map +1 -0
- package/lib/utils/edge.helper.d.ts +19 -0
- package/lib/utils/edge.helper.d.ts.map +1 -0
- package/lib/utils/element.helper.d.ts +5 -0
- package/lib/utils/element.helper.d.ts.map +1 -0
- package/lib/utils/graph.helper.d.ts +5 -0
- package/lib/utils/graph.helper.d.ts.map +1 -0
- package/lib/utils/icon.helper.d.ts +3 -0
- package/lib/utils/icon.helper.d.ts.map +1 -0
- package/lib/utils/index.d.ts +10 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/platform.helper.d.ts +3 -0
- package/lib/utils/platform.helper.d.ts.map +1 -0
- package/lib/utils/rect.helper.d.ts +16 -0
- package/lib/utils/rect.helper.d.ts.map +1 -0
- package/lib/utils/state.helper.d.ts +4 -0
- package/lib/utils/state.helper.d.ts.map +1 -0
- package/lib/utils/theme.helper.d.ts +3 -0
- package/lib/utils/theme.helper.d.ts.map +1 -0
- package/lib/utils/tree.helper.d.ts +4 -0
- package/lib/utils/tree.helper.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from './background.model';
|
|
2
|
+
export * from './behavior.model';
|
|
3
|
+
export * from './edge.model';
|
|
4
|
+
export * from './element.model';
|
|
5
|
+
export * from './event.model';
|
|
6
|
+
export * from './extension.model';
|
|
7
|
+
export * from './graph.model';
|
|
8
|
+
export * from './group.model';
|
|
9
|
+
export * from './icon.model';
|
|
10
|
+
export * from './label.model';
|
|
11
|
+
export * from './layout.model';
|
|
12
|
+
export * from './node.model';
|
|
13
|
+
export * from './plugin.model';
|
|
14
|
+
export * from './state.model';
|
|
15
|
+
export * from './theme.model';
|
|
16
|
+
export * from './viewport.model';
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { MxBackground } from './background.model';
|
|
2
|
+
export interface MxLabelConfig {
|
|
3
|
+
text?: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
show?: boolean;
|
|
6
|
+
background?: MxBackground;
|
|
7
|
+
maxWidth?: number;
|
|
8
|
+
offset?: {
|
|
9
|
+
x?: number;
|
|
10
|
+
y?: number;
|
|
11
|
+
};
|
|
12
|
+
dataLevel?: number;
|
|
13
|
+
fontSize?: number;
|
|
14
|
+
fontFamily?: string;
|
|
15
|
+
wordWrap?: boolean;
|
|
16
|
+
wordWrapWidth?: number;
|
|
17
|
+
maxLines?: number;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=label.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.model.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/model/label.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { NodeData, SingleLayoutOptions } from '@antv/g6';
|
|
2
|
+
import { MxGraph } from '../graph';
|
|
3
|
+
import { MxAlignLayoutConfig, MxForceLayoutConfig, MxGridLayoutConfig, MxRingLayoutConfig, MxTreeLayoutConfig } from '../layout';
|
|
4
|
+
export declare enum MxLayout {
|
|
5
|
+
ALIGN = "align",
|
|
6
|
+
TREE = "tree",
|
|
7
|
+
MESH = "mesh",
|
|
8
|
+
GRID = "grid",
|
|
9
|
+
RING = "ring"
|
|
10
|
+
}
|
|
11
|
+
export type MxLayoutItem<T = any, C = any> = MxLayoutConfigBase & Partial<C> & {
|
|
12
|
+
type: T;
|
|
13
|
+
};
|
|
14
|
+
export type MxLayoutFunction = (mxGraph: MxGraph, config?: MxLayoutConfigBase) => SingleLayoutOptions;
|
|
15
|
+
export type MxLayoutItems = MxLayoutItem<typeof MxLayout.ALIGN, MxAlignLayoutConfig> | MxLayoutItem<typeof MxLayout.TREE, MxTreeLayoutConfig> | MxLayoutItem<typeof MxLayout.MESH, MxForceLayoutConfig> | MxLayoutItem<typeof MxLayout.GRID, MxGridLayoutConfig> | MxLayoutItem<typeof MxLayout.RING, MxRingLayoutConfig>;
|
|
16
|
+
export type MxLayoutType = MxLayoutItems['type'];
|
|
17
|
+
export type MxLayoutConfig = MxLayoutType | MxLayoutItems;
|
|
18
|
+
export type MxLayoutConfigBase = {
|
|
19
|
+
type: string;
|
|
20
|
+
layoutNodes?: string[] | ((node: NodeData) => boolean);
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=layout.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.model.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/model/layout.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,WAAW,CAAC;AAEnB,oBAAY,QAAQ;IAClB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAED,MAAM,MAAM,YAAY,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,IAAI,kBAAkB,GAC7D,OAAO,CAAC,CAAC,CAAC,GAAG;IACX,IAAI,EAAE,CAAC,CAAC;CACT,CAAC;AAEJ,MAAM,MAAM,gBAAgB,GAAG,CAC7B,OAAO,EAAE,OAAO,EAChB,MAAM,CAAC,EAAE,kBAAkB,KACxB,mBAAmB,CAAC;AAEzB,MAAM,MAAM,aAAa,GACrB,YAAY,CAAC,OAAO,QAAQ,CAAC,KAAK,EAAE,mBAAmB,CAAC,GACxD,YAAY,CAAC,OAAO,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC,GACtD,YAAY,CAAC,OAAO,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC,GACvD,YAAY,CAAC,OAAO,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC,GACtD,YAAY,CAAC,OAAO,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;AAE3D,MAAM,MAAM,YAAY,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;AAEjD,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG,aAAa,CAAC;AAE1D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,QAAQ,KAAK,OAAO,CAAC,CAAC;CACxD,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ID } from '@antv/g6';
|
|
2
|
+
import { MxIconConfig } from './icon.model';
|
|
3
|
+
import { MxLabelConfig } from './label.model';
|
|
4
|
+
import { MxNodeState } from './state.model';
|
|
5
|
+
export interface MxNodeData {
|
|
6
|
+
id: ID;
|
|
7
|
+
config: MxNodeConfig;
|
|
8
|
+
customData?: any;
|
|
9
|
+
}
|
|
10
|
+
export interface MxNodeLabel extends MxLabelConfig {
|
|
11
|
+
position?: 'top' | 'bottom' | 'left' | 'right' | 'center';
|
|
12
|
+
status?: 'error' | 'warning' | 'success';
|
|
13
|
+
}
|
|
14
|
+
export interface MxNodeConfig {
|
|
15
|
+
type?: MxNodeType;
|
|
16
|
+
point?: {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
};
|
|
20
|
+
label?: MxNodeLabel;
|
|
21
|
+
title?: MxNodeLabel;
|
|
22
|
+
color?: string;
|
|
23
|
+
highlight?: 'success' | 'warning' | 'error' | 'default';
|
|
24
|
+
icon?: MxIconConfig;
|
|
25
|
+
parentId?: string;
|
|
26
|
+
treeParentId?: string;
|
|
27
|
+
isTreeRoot?: boolean;
|
|
28
|
+
preventPolylineEdgeOverlap?: boolean;
|
|
29
|
+
dataLevel?: number;
|
|
30
|
+
dataType?: 'default';
|
|
31
|
+
states?: MxNodeState[];
|
|
32
|
+
}
|
|
33
|
+
export type MxNodeType = 'circle-node' | 'rect-node' | 'device-node';
|
|
34
|
+
export type MxPartialNodeData<T extends MxNodeData = MxNodeData> = Partial<T> & Pick<T, 'id'>;
|
|
35
|
+
//# sourceMappingURL=node.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.model.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/model/node.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,EAAE,CAAC;IACP,MAAM,EAAE,YAAY,CAAC;IACrB,UAAU,CAAC,EAAE,GAAG,CAAC;CAClB;AAED,MAAM,WAAW,WAAY,SAAQ,aAAa;IAChD,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;IAC1D,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;CAC1C;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACjC,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IACxD,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC;CACxB;AAED,MAAM,MAAM,UAAU,GAAG,aAAa,GAAG,WAAW,GAAG,aAAa,CAAC;AAErE,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,IAC3D,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CustomPluginOption } from '@antv/g6';
|
|
2
|
+
import { MxGraph } from '../graph';
|
|
3
|
+
import { MxContextMenuOptions, MxElementToolbarOptions, MxFixedToolbarOptions, MxGraphBackgroundOptions, MxHistoryOptions, MxMinimapOptions, MxSnaplineOptions, MxTooltipOptions } from '../plugin';
|
|
4
|
+
export declare enum MxPlugin {
|
|
5
|
+
HISTORY = "history",
|
|
6
|
+
CONTEXT_MENU = "contextmenu",
|
|
7
|
+
TOOLTIP = "tooltip",
|
|
8
|
+
FIXED_TOOLBAR = "fixed-toolbar",
|
|
9
|
+
ELEMENT_TOOLBAR = "element-toolbar",
|
|
10
|
+
GRAPH_BACKGROUND = "graphBackground",
|
|
11
|
+
MINIMAP = "minimap",
|
|
12
|
+
SNAPLINE = "snapline"
|
|
13
|
+
}
|
|
14
|
+
export type MxUserPlugin = MxPlugin | CustomPluginOption | MxPluginOption<MxPlugin.HISTORY, MxHistoryOptions> | MxPluginOption<MxPlugin.CONTEXT_MENU, MxContextMenuOptions> | MxPluginOption<MxPlugin.TOOLTIP, MxTooltipOptions> | MxPluginOption<MxPlugin.FIXED_TOOLBAR, MxFixedToolbarOptions> | MxPluginOption<MxPlugin.ELEMENT_TOOLBAR, MxElementToolbarOptions> | MxPluginOption<MxPlugin.GRAPH_BACKGROUND, MxGraphBackgroundOptions> | MxPluginOption<MxPlugin.MINIMAP, MxMinimapOptions> | MxPluginOption<MxPlugin.SNAPLINE, MxSnaplineOptions>;
|
|
15
|
+
export type MxPluginFunction<T extends CustomPluginOption = any, R extends CustomPluginOption = any> = (graph: MxGraph, option?: T) => R;
|
|
16
|
+
export type MxPluginOption<T, R> = {
|
|
17
|
+
type: T;
|
|
18
|
+
} & R;
|
|
19
|
+
//# sourceMappingURL=plugin.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.model.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/model/plugin.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,EACV,oBAAoB,EACpB,uBAAuB,EACvB,qBAAqB,EACrB,wBAAwB,EACxB,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,WAAW,CAAC;AAEnB,oBAAY,QAAQ;IAClB,OAAO,YAAY;IACnB,YAAY,gBAAgB;IAC5B,OAAO,YAAY;IACnB,aAAa,kBAAkB;IAC/B,eA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C,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type MxCommonState = 'default' | 'active' | 'selected' | 'disabled';
|
|
2
|
+
export type MxNodeState = MxCommonState | FixElementState;
|
|
3
|
+
export type MxEdgeState = MxCommonState | FixElementState;
|
|
4
|
+
export type MxGroupState = MxCommonState | FixElementState;
|
|
5
|
+
export type FixElementState = 'fixed';
|
|
6
|
+
//# sourceMappingURL=state.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.model.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/model/state.model.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,CAAC;AAE3E,MAAM,MAAM,WAAW,GAAG,aAAa,GAAG,eAAe,CAAC;AAE1D,MAAM,MAAM,WAAW,GAAG,aAAa,GAAG,eAAe,CAAC;AAE1D,MAAM,MAAM,YAAY,GAAG,aAAa,GAAG,eAAe,CAAC;AAG3D,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export type MxUserThemeType = 'light' | 'dark';
|
|
2
|
+
export type MxThemeType = `mx-${MxUserThemeType}`;
|
|
3
|
+
export type MxTokenConfig = {
|
|
4
|
+
light: MxTokenValues;
|
|
5
|
+
dark: MxTokenValues;
|
|
6
|
+
};
|
|
7
|
+
export type MxTokenValues = {
|
|
8
|
+
'background-neutral-default': string;
|
|
9
|
+
'text-neutral-default': string;
|
|
10
|
+
'text-neutral-default-subtle': string;
|
|
11
|
+
'background-neutral-subtle': string;
|
|
12
|
+
'background-neutral-inverse': string;
|
|
13
|
+
'text-neutral-inverse': string;
|
|
14
|
+
'icon-primary-default': string;
|
|
15
|
+
'icon-error-default': string;
|
|
16
|
+
'icon-warning-default': string;
|
|
17
|
+
'icon-success-default': string;
|
|
18
|
+
'icon-info-default': string;
|
|
19
|
+
'border-primary-default': string;
|
|
20
|
+
'border-error-default': string;
|
|
21
|
+
'border-warning-default': string;
|
|
22
|
+
'border-success-default': string;
|
|
23
|
+
'border-info-default': string;
|
|
24
|
+
'path/outline-neutral-default': string;
|
|
25
|
+
'guides/outline-accent': string;
|
|
26
|
+
'background-primary-default': string;
|
|
27
|
+
'background-primary-hovered': string;
|
|
28
|
+
'background-neutral-hovered': string;
|
|
29
|
+
'background-error-default': string;
|
|
30
|
+
'background-error-hovered': string;
|
|
31
|
+
'background-warning-default': string;
|
|
32
|
+
'background-warning-hovered': string;
|
|
33
|
+
'background-success-default': string;
|
|
34
|
+
'background-success-hovered': string;
|
|
35
|
+
'background-info-default': string;
|
|
36
|
+
'background-info-hovered': string;
|
|
37
|
+
};
|
|
38
|
+
export type DesignTokenConfig = {
|
|
39
|
+
version: string;
|
|
40
|
+
metadata?: any;
|
|
41
|
+
collections: DesignCollection[];
|
|
42
|
+
};
|
|
43
|
+
export type DesignCollection = {
|
|
44
|
+
name: string;
|
|
45
|
+
modes: DesignCollectionMode[];
|
|
46
|
+
};
|
|
47
|
+
export type DesignCollectionMode = {
|
|
48
|
+
name: string;
|
|
49
|
+
variables: DesignModeValue[];
|
|
50
|
+
};
|
|
51
|
+
export type DesignModeValue = {
|
|
52
|
+
name: string;
|
|
53
|
+
type: 'color' | 'number' | 'typography';
|
|
54
|
+
isAlias: boolean;
|
|
55
|
+
value: DesignCollectionValue | DesignStyleValue | number | string;
|
|
56
|
+
};
|
|
57
|
+
export type DesignCollectionValue = {
|
|
58
|
+
collection: 'color-palettes';
|
|
59
|
+
name: string;
|
|
60
|
+
};
|
|
61
|
+
export type DesignStyleValue = Record<string, string | number>;
|
|
62
|
+
//# sourceMappingURL=theme.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.model.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/model/theme.model.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,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AAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,WAAW,EAAE,gBAAgB,EAAE,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,oBAAoB,EAAE,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,eAAe,EAAE,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,YAAY,CAAC;IACxC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,qBAAqB,GAAG,gBAAgB,GAAG,MAAM,GAAG,MAAM,CAAC;CACnE,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,UAAU,EAAE,gBAAgB,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Viewport options for configuring the view. */
|
|
2
|
+
/**
|
|
3
|
+
* zoom range
|
|
4
|
+
* [min, max]
|
|
5
|
+
* */
|
|
6
|
+
export type MxZoomRange = [number, number];
|
|
7
|
+
/**
|
|
8
|
+
* whether to auto fit
|
|
9
|
+
* @remark Every time `render` is executed, it will be adapted according to `autoFit`
|
|
10
|
+
*/
|
|
11
|
+
export type MxViewFitMode = 'view' | 'center';
|
|
12
|
+
//# sourceMappingURL=viewport.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewport.model.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/model/viewport.model.ts"],"names":[],"mappings":"AAAA,iDAAiD;AAEjD;;;KAGK;AACL,MAAM,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE3C;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,QAAQ,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { CircleStyleProps as GCircleStyleProps, Group, Image, ImageStyleProps, Rect, RectStyleProps, Text, TextStyleProps } from '@antv/g';
|
|
2
|
+
import { Circle, CircleStyleProps, IconStyleProps, State } from '@antv/g6';
|
|
3
|
+
import { MxNodeConfig, MxNodeLabel } from '../../../index.ts';
|
|
4
|
+
declare const NODE_SIZE = 132;
|
|
5
|
+
export { NODE_SIZE };
|
|
6
|
+
export interface DeviceNodeStyleProps extends CircleStyleProps {
|
|
7
|
+
title: boolean;
|
|
8
|
+
titleText: string;
|
|
9
|
+
highlight: MxNodeConfig['highlight'];
|
|
10
|
+
labelStatus: MxNodeLabel['status'];
|
|
11
|
+
labelCustomBackground: MxNodeLabel['background'];
|
|
12
|
+
iconOffsetX: number;
|
|
13
|
+
iconOffsetY: number;
|
|
14
|
+
}
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare class DeviceNode extends Circle {
|
|
17
|
+
get nodeData(): import('@antv/g6').NodeLikeData | null;
|
|
18
|
+
get states(): State[];
|
|
19
|
+
get isNodeExist(): boolean;
|
|
20
|
+
private getElementOffsets;
|
|
21
|
+
getKeyStyle(attrs: Required<DeviceNodeStyleProps>): GCircleStyleProps;
|
|
22
|
+
getHaloStyle(attrs: Required<DeviceNodeStyleProps>): GCircleStyleProps | false;
|
|
23
|
+
getIconStyle(attrs: Required<DeviceNodeStyleProps>): IconStyleProps;
|
|
24
|
+
getLabelStyle(attrs: Required<DeviceNodeStyleProps>): TextStyleProps | false;
|
|
25
|
+
getTitleStyle(attrs: Required<DeviceNodeStyleProps>): TextStyleProps | false;
|
|
26
|
+
getTextStyle(attrs: Required<DeviceNodeStyleProps>): TextStyleProps;
|
|
27
|
+
getStatusStyle(attrs: Required<DeviceNodeStyleProps>): ImageStyleProps | false;
|
|
28
|
+
getTitleBackgroundStyle(attrs: Required<DeviceNodeStyleProps>): RectStyleProps | false;
|
|
29
|
+
getLabelBackgroundStyle(attrs: Required<DeviceNodeStyleProps>): RectStyleProps | false;
|
|
30
|
+
drawTitleShape(attrs: Required<DeviceNodeStyleProps>, container: Group): Text | undefined;
|
|
31
|
+
drawStatusShape(attrs: Required<DeviceNodeStyleProps>, container: Group): Image | undefined;
|
|
32
|
+
drawTitleBackgroundShape(attrs: Required<DeviceNodeStyleProps>, container: Group): Rect | undefined;
|
|
33
|
+
drawLabelBackgroundShape(attrs: Required<DeviceNodeStyleProps>, container: Group): Rect | undefined;
|
|
34
|
+
render(attrs: Required<DeviceNodeStyleProps>, container: Group): void;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=device-node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device-node.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/lib/node/custom/device-node.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,IAAI,iBAAiB,EACrC,KAAK,EACL,KAAK,EACL,eAAe,EACf,IAAI,EACJ,cAAc,EACd,IAAI,EACJ,cAAc,EACf,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,MAAM,EACN,gBAAgB,EAEhB,cAAc,EAGd,KAAK,EAEN,MAAM,UAAU,CAAC;AAClB,OAAO,EAGL,YAAY,EACZ,WAAW,EAEZ,MAAM,aAAa,CAAC;AAQrB,QAAA,MAAM,SAAS,MAAM,CAAC;AAKtB,OAAO,EAAE,SAAS,EAAE,CAAC;AAErB,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC5D,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;IACrC,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC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,CAAC,EACrC,SAAS,EAAE,KAAK;IAUlB,wBAAwB,CACtB,KAAK,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EACrC,SAAS,EAAE,KAAK;IAUT,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EAAE,SAAS,EAAE,KAAK;CAOxE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/lib/node/custom/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { MxGraph, MxNodeLabel } from '../../../index.ts';
|
|
2
|
+
export declare const getIconImage: (graph: MxGraph, icon: string, color: string) => HTMLImageElement;
|
|
3
|
+
export declare const getStatusIconSrc: (graph: MxGraph, status: MxNodeLabel["status"], token: any) => "" | HTMLImageElement;
|
|
4
|
+
//# sourceMappingURL=icon-style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-style.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/lib/node/helper/icon-style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEtE,eAAO,MAAM,YAAY,UAAW,OAAO,QAAQ,MAAM,SAAS,MAAM,qBAEvE,CAAC;AAEF,eAAO,MAAM,gBAAgB,UACpB,OAAO,UACN,WAAW,CAAC,QAAQ,CAAC,SACtB,GAAG,0BAWX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/lib/node/helper/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BaseStyleProps } from '@antv/g';
|
|
2
|
+
import { State } from '@antv/g6';
|
|
3
|
+
import { MxGraph, MxNodeConfig } from '../../../index.ts';
|
|
4
|
+
export declare const getKeyStyleByTheme: (graph: MxGraph, states: State[], status?: MxNodeConfig["highlight"]) => BaseStyleProps;
|
|
5
|
+
//# sourceMappingURL=key-style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"key-style.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/lib/node/helper/key-style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGpD,eAAO,MAAM,kBAAkB,UACtB,OAAO,UACN,KAAK,EAAE,WACN,YAAY,CAAC,WAAW,CAAC,KACjC,cAwFF,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { NodeData } from '@antv/g6';
|
|
2
|
+
import { PartialNodeLikeData } from '@antv/g6/lib/types';
|
|
3
|
+
import { MxNodeConfig, MxNodeData } from '../../../index.ts';
|
|
4
|
+
/**
|
|
5
|
+
* internal
|
|
6
|
+
*/
|
|
7
|
+
export declare const G6NodeMapper: {
|
|
8
|
+
toNodeData: (node: PartialNodeLikeData<NodeData>) => MxNodeData;
|
|
9
|
+
toCommonStyle: (style: NodeData["style"]) => Partial<MxNodeConfig>;
|
|
10
|
+
toNodeType: (type: NodeData["type"]) => Partial<MxNodeConfig>;
|
|
11
|
+
toPosition: (style: NodeData["style"]) => Partial<MxNodeConfig>;
|
|
12
|
+
toLabelData: (style: NodeData["style"], type: "label" | "title") => Partial<MxNodeConfig>;
|
|
13
|
+
toIconData: (style: NodeData["style"]) => Partial<MxNodeConfig>;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=node-g6.mapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-g6.mapper.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/lib/node/helper/node-g6.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,QAAQ,EAAiB,MAAM,UAAU,CAAC;AACnE,OAAO,EAAuB,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAEL,YAAY,EACZ,UAAU,EAGX,MAAM,aAAa,CAAC;AA0HrB;;GAEG;AACH,eAAO,MAAM,YAAY;uBA3HC,mBAAmB,CAAC,QAAQ,CAAC,KAAG,UAAU;2BA4BtC,QAAQ,CAAC,OAAO,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;uBAW7C,QAAQ,CAAC,MAAM,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;wBAWvC,QAAQ,CAAC,OAAO,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;yBAW3D,QAAQ,CAAC,OAAO,CAAC,QAClB,OAAO,GAAG,OAAO,KACtB,OAAO,CAAC,YAAY,CAAC;wBA0CG,QAAQ,CAAC,OAAO,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC;CAyBnE,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { NodeData } from '@antv/g6';
|
|
2
|
+
import { NodeStyle } from '@antv/g6/lib/spec/element/node';
|
|
3
|
+
import { MxNodeConfig, MxPartialNodeData } from '../../../index.ts';
|
|
4
|
+
/**
|
|
5
|
+
* internal
|
|
6
|
+
*/
|
|
7
|
+
export declare const MxNodeMapper: {
|
|
8
|
+
toNodeData: (node: MxPartialNodeData, options?: {
|
|
9
|
+
full: boolean;
|
|
10
|
+
}) => NodeData;
|
|
11
|
+
toCommonStyle: (config: MxNodeConfig, options?: {
|
|
12
|
+
full: boolean;
|
|
13
|
+
}) => NodeStyle;
|
|
14
|
+
toNodeType: (type: MxNodeConfig["type"]) => Partial<NodeData>;
|
|
15
|
+
toPosition: (point: MxNodeConfig["point"]) => NodeStyle;
|
|
16
|
+
toTitleData: (title: MxNodeConfig["title"], options?: {
|
|
17
|
+
full: boolean;
|
|
18
|
+
}) => NodeStyle;
|
|
19
|
+
toLabelData: (label: MxNodeConfig["label"], options?: {
|
|
20
|
+
full: boolean;
|
|
21
|
+
}) => NodeStyle;
|
|
22
|
+
toIconData: (icon: MxNodeConfig["icon"], options?: {
|
|
23
|
+
full: boolean;
|
|
24
|
+
}) => NodeStyle;
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=node.mapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.mapper.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/lib/node/helper/node.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA+B,MAAM,UAAU,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAE3D,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AA8L9D;;GAEG;AACH,eAAO,MAAM,YAAY;uBA7LjB,iBAAiB,YACb;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,KAC1B,QAAQ;4BAkCD,YAAY,YACV;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,KAC1B,SAAS;uBAec,YAAY,CAAC,MAAM,CAAC,KAAG,OAAO,CAAC,QAAQ,CAAC;wBAYvC,YAAY,CAAC,OAAO,CAAC,KAAG,SAAS;yBAWnD,YAAY,CAAC,OAAO,CAAC,YAClB;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,KAC1B,SAAS;yBAsCH,YAAY,CAAC,OAAO,CAAC,YAClB;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,KAC1B,SAAS;uBA0CJ,YAAY,CAAC,MAAM,CAAC,YAChB;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,KAC1B,SAAS;CAmCX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/node/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BasePluginOptions, Contextmenu, ContextmenuOptions } from '@antv/g6';
|
|
2
|
+
import { MxPluginFunction } from '../model';
|
|
3
|
+
export type MxContextMenu = Contextmenu;
|
|
4
|
+
export type MxContextMenuOptions = BasePluginOptions;
|
|
5
|
+
export declare const getContextMenuOptions: MxPluginFunction<MxContextMenuOptions, ContextmenuOptions>;
|
|
6
|
+
//# sourceMappingURL=context-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/plugin/context-menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9E,OAAO,EAAY,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,MAAM,aAAa,GAAG,WAAW,CAAC;AAExC,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,CAAC;AAErD,eAAO,MAAM,qBAAqB,EAAE,gBAAgB,CAClD,oBAAoB,EACpB,kBAAkB,CAMnB,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { BasePlugin, BasePluginOptions, IElementEvent, RuntimeContext } from '@antv/g6';
|
|
2
|
+
import { MxPluginFunction } from '../model';
|
|
3
|
+
export declare const NODE_TOOLBAR_OPTIONS: MxElementToolbarItem[];
|
|
4
|
+
export declare const EDGE_TOOLBAR_OPTIONS: MxElementToolbarItem[];
|
|
5
|
+
export declare const GROUP_TOOLBAR_OPTIONS: MxElementToolbarItem[];
|
|
6
|
+
export declare const MULTI_NODE_GROUP_TOOLBAR_OPTIONS: MxElementToolbarItem[];
|
|
7
|
+
export type MxElementToolbarOptions = BasePluginOptions & {
|
|
8
|
+
visible?: boolean;
|
|
9
|
+
position?: {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
};
|
|
13
|
+
enable?: (ids: string[]) => boolean;
|
|
14
|
+
getItems?: (ids: string[]) => MxElementToolbarItem[];
|
|
15
|
+
onClick?: (value: string, ids: string[]) => boolean;
|
|
16
|
+
};
|
|
17
|
+
export type MxElementToolbarItem = {
|
|
18
|
+
icon?: string;
|
|
19
|
+
iconSrc?: string;
|
|
20
|
+
value: string;
|
|
21
|
+
info?: string;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
export declare const getElementToolbarOptions: MxPluginFunction<MxElementToolbarOptions, MxElementToolbarOptions>;
|
|
27
|
+
export declare class MxElementToolbar extends BasePlugin<MxElementToolbarOptions> {
|
|
28
|
+
static defaultOptions: Partial<MxElementToolbarOptions>;
|
|
29
|
+
private $element;
|
|
30
|
+
private ids;
|
|
31
|
+
constructor(context: RuntimeContext, options: MxElementToolbarOptions);
|
|
32
|
+
private init;
|
|
33
|
+
getEvents: () => {
|
|
34
|
+
[key: string]: (event: any) => void;
|
|
35
|
+
};
|
|
36
|
+
private getToolbarPosition;
|
|
37
|
+
private getSelectedIds;
|
|
38
|
+
private getBrushSelectedIds;
|
|
39
|
+
private showToolbar;
|
|
40
|
+
protected onClick: (e: IElementEvent) => void;
|
|
41
|
+
protected onDrag: (e: IElementEvent) => void;
|
|
42
|
+
protected onBrushSelect: (states: Record<string, string | string[]>) => void;
|
|
43
|
+
protected onClear: () => void;
|
|
44
|
+
update(options: Partial<MxElementToolbarOptions>): Promise<void>;
|
|
45
|
+
private getDOMContent;
|
|
46
|
+
private onToolbarItemClick;
|
|
47
|
+
private bindEvents;
|
|
48
|
+
private unbindEvents;
|
|
49
|
+
destroy(): void;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=element-toolbar.d.ts.map
|
|
@@ -0,0 +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,CAAC;IACvE,MAAM,CAAC,cAAc,EAAE,OAAO,CAAC,uBAAuB,CAAC,CAIrD;IAEF,OAAO,CAAC,QAAQ,CAGd;IAEF,OAAO,CAAC,GAAG,CAAgB;gBAEf,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,uBAAuB;IAOrE,OAAO,CAAC,IAAI;IAaZ,SAAS,QAAO;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAA;KAAE,CAarD;IAEF,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,WAAW;IAgBnB,SAAS,CAAC,OAAO,MAAO,aAAa,UAMnC;IAEF,SAAS,CAAC,MAAM,MAAO,aAAa,UAMlC;IAEF,SAAS,CAAC,aAAa,WAAY,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,UAMlE;IAEF,SAAS,CAAC,OAAO,aAKf;IAEoB,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,uBAAuB,CAAC;YAwBxD,aAAa;IAiB3B,OAAO,CAAC,kBAAkB,CASxB;IAEF,OAAO,CAAC,UAAU;IASlB,OAAO,CAAC,YAAY;IASJ,OAAO,IAAI,IAAI;CAKhC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BasePlugin, BasePluginOptions, CornerPlacement, RuntimeContext } from '@antv/g6';
|
|
2
|
+
import { MxPluginFunction } from '../model';
|
|
3
|
+
export type MxFixedToolbarOptions = BasePluginOptions & {
|
|
4
|
+
items: MxToolbarItem[];
|
|
5
|
+
className?: string;
|
|
6
|
+
position?: CornerPlacement;
|
|
7
|
+
onClick?: (value: string, target: Element) => void;
|
|
8
|
+
};
|
|
9
|
+
export type MxToolbarItem = {
|
|
10
|
+
icon?: string;
|
|
11
|
+
iconSrc?: string;
|
|
12
|
+
value: string;
|
|
13
|
+
info?: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const getFixedToolbarOptions: MxPluginFunction<MxFixedToolbarOptions, MxFixedToolbarOptions>;
|
|
19
|
+
export declare class MxFixedToolbar extends BasePlugin<MxFixedToolbarOptions> {
|
|
20
|
+
static defaultOptions: Partial<MxFixedToolbarOptions>;
|
|
21
|
+
private $element;
|
|
22
|
+
constructor(context: RuntimeContext, options: MxFixedToolbarOptions);
|
|
23
|
+
update(options: Partial<MxFixedToolbarOptions>): Promise<void>;
|
|
24
|
+
destroy(): void;
|
|
25
|
+
private getDOMContent;
|
|
26
|
+
protected onToolbarItemClick: (e: MouseEvent) => void;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=fixed-toolbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixed-toolbar.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/plugin/fixed-toolbar.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,eAAe,EAGf,cAAc,EACf,MAAM,UAAU,CAAC;AAOlB,OAAO,EAAY,gBAAgB,EAAE,MAAM,UAAU,CAAC;AA2CtD,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,GAAG;IACtD,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CACpD,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,gBAAgB,CACnD,qBAAqB,EACrB,qBAAqB,CAgCtB,CAAC;AAEF,qBAAa,cAAe,SAAQ,UAAU,CAAC,qBAAqB,CAAC;IACnE,MAAM,CAAC,cAAc,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAGnD;IAEF,OAAO,CAAC,QAAQ,CAAwD;gBAE5D,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,qBAAqB;IAgB7C,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,qBAAqB,CAAC;IAapD,OAAO,IAAI,IAAI;YAOjB,aAAa;IAiB3B,SAAS,CAAC,kBAAkB,MAAO,UAAU,UAQ3C;CACH"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Image } from '@antv/g';
|
|
2
|
+
import { BasePluginOptions, IElementEvent, RuntimeContext, BasePlugin } from '@antv/g6';
|
|
3
|
+
import { MxPluginFunction } from '../model';
|
|
4
|
+
export type MxGraphBackgroundOptions = BasePluginOptions & {
|
|
5
|
+
url?: string;
|
|
6
|
+
width?: number;
|
|
7
|
+
height?: number;
|
|
8
|
+
position?: string;
|
|
9
|
+
begin?: {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
};
|
|
13
|
+
opacity?: number;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const getGraphBackgroundOptions: MxPluginFunction<MxGraphBackgroundOptions, MxGraphBackgroundOptions>;
|
|
19
|
+
export declare class MxGraphBackground extends BasePlugin<MxGraphBackgroundOptions> {
|
|
20
|
+
static defaultOptions: Partial<MxGraphBackgroundOptions>;
|
|
21
|
+
imageNode: Image | undefined;
|
|
22
|
+
constructor(context: RuntimeContext, options: MxGraphBackgroundOptions);
|
|
23
|
+
getEvents: () => {
|
|
24
|
+
[key: string]: (event: IElementEvent) => void;
|
|
25
|
+
};
|
|
26
|
+
update(options: Partial<MxGraphBackgroundOptions>): void;
|
|
27
|
+
setBackgroundImage(): void;
|
|
28
|
+
protected onGraphSizeChange: (e: IElementEvent) => void;
|
|
29
|
+
destroy(): void;
|
|
30
|
+
private bindEvents;
|
|
31
|
+
private unbindEvents;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=graph-background.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-background.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/plugin/graph-background.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,EACV,iBAAiB,EACjB,aAAa,EACb,cAAc,EACf,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,UAAU,EAA+B,MAAM,UAAU,CAAC;AACnE,OAAO,EAAqB,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE/D,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,GAAG;IACzD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,gBAAgB,CACtD,wBAAwB,EACxB,wBAAwB,CAQzB,CAAC;AAEF,qBAAa,iBAAkB,SAAQ,UAAU,CAAC,wBAAwB,CAAC;IACzE,MAAM,CAAC,cAAc,EAAE,OAAO,CAAC,wBAAwB,CAAC,CAMtD;IACF,SAAS,EAAE,KAAK,GAAG,SAAS,CAAa;gBAE7B,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,wBAAwB;IAUtE,SAAS,QAAO;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAA;KAAE,CAI/D;IAEc,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,wBAAwB,CAAC;IAKjE,kBAAkB;IA0BlB,SAAS,CAAC,iBAAiB,MAAO,aAAa,UAE7C;IAEO,OAAO,IAAI,IAAI;IAMxB,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,YAAY;CAQrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/lib/plugin/helper/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BasePluginOptions, CustomPluginOption } from '@antv/g6';
|
|
2
|
+
import { MxGraph } from '../../graph';
|
|
3
|
+
import { MxPlugin, MxPluginFunction, MxUserPlugin } from '../../model';
|
|
4
|
+
export declare const BUILT_IN_PLUGINS: MxPlugin[] | BasePluginOptions[];
|
|
5
|
+
export declare const DEFAULT_PLUGINS: MxPlugin[];
|
|
6
|
+
export declare const PLUGIN_MAPPER: Record<MxPlugin, MxPluginFunction>;
|
|
7
|
+
export declare const getPlugins: (graph: MxGraph, plugins: MxUserPlugin[]) => CustomPluginOption[];
|
|
8
|
+
//# sourceMappingURL=plugin.mapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.mapper.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/lib/plugin/helper/plugin.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEjE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAUvE,eAAO,MAAM,gBAAgB,EAAE,QAAQ,EAAE,GAAG,iBAAiB,EAM5D,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,QAAQ,EAGrC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,QAAQ,EAAE,gBAAgB,CAS5D,CAAC;AAEF,eAAO,MAAM,UAAU,UACd,OAAO,WACL,YAAY,EAAE,KACtB,kBAAkB,EAOpB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BasePluginOptions, History, HistoryOptions } from '@antv/g6';
|
|
2
|
+
import { MxPluginFunction } from '../model';
|
|
3
|
+
/** @hidden */
|
|
4
|
+
export type MxHistory = History;
|
|
5
|
+
export type MxHistoryOptions = BasePluginOptions;
|
|
6
|
+
export declare const getHistoryOptions: MxPluginFunction<MxHistoryOptions, HistoryOptions>;
|
|
7
|
+
//# sourceMappingURL=history.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/plugin/history.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,EAIjB,OAAO,EACP,cAAc,EACf,MAAM,UAAU,CAAC;AAClB,OAAO,EAAY,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEtD,cAAc;AACd,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC;AAEhC,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;AAEjD,eAAO,MAAM,iBAAiB,EAAE,gBAAgB,CAC9C,gBAAgB,EAChB,cAAc,CAaf,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './context-menu';
|
|
2
|
+
export * from './element-toolbar';
|
|
3
|
+
export * from './fixed-toolbar';
|
|
4
|
+
export * from './graph-background';
|
|
5
|
+
export * from './helper';
|
|
6
|
+
export * from './history';
|
|
7
|
+
export * from './minimap';
|
|
8
|
+
export * from './snapline';
|
|
9
|
+
export * from './tooltip';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/plugin/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BasePluginOptions, Minimap, MinimapOptions, Placement } from '@antv/g6';
|
|
2
|
+
import { MxGraph } from '../graph';
|
|
3
|
+
import { MxPluginFunction } from '../model';
|
|
4
|
+
export type MxMinimap = Minimap;
|
|
5
|
+
export type MxMinimapOptions = BasePluginOptions & {
|
|
6
|
+
position?: Placement;
|
|
7
|
+
className?: string;
|
|
8
|
+
size?: [number, number];
|
|
9
|
+
offset?: [number, number];
|
|
10
|
+
};
|
|
11
|
+
export declare const getMinimapOptions: MxPluginFunction<MxMinimapOptions, MinimapOptions>;
|
|
12
|
+
export declare const resetMinimap: (graph: MxGraph) => void;
|
|
13
|
+
//# sourceMappingURL=minimap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"minimap.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/plugin/minimap.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,OAAO,EACP,cAAc,EACd,SAAS,EACV,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAY,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC;AAEhC,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,GAAG;IACjD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxB,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC3B,CAAC;AAUF,eAAO,MAAM,iBAAiB,EAAE,gBAAgB,CAC9C,gBAAgB,EAChB,cAAc,CAuBf,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,OAAO,SAO1C,CAAC"}
|