@moxa/graph 1.4.1 → 2.0.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/assets/worker-CJB7i_ev.js +13 -0
- package/index.cjs +237 -4020
- package/index.d.ts +0 -5
- package/index.d.ts.map +1 -1
- package/index.js +53881 -70284
- 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 +16 -0
- package/lib/edge/custom/line-edge.d.ts.map +1 -0
- package/lib/edge/custom/polyline-edge.d.ts +19 -0
- package/lib/edge/custom/polyline-edge.d.ts.map +1 -0
- package/lib/edge/custom/quadratic-edge.d.ts +16 -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 +18 -0
- package/lib/edge/helper/edge-g6.mapper.d.ts.map +1 -0
- package/lib/edge/helper/edge.mapper.d.ts +17 -0
- package/lib/edge/helper/edge.mapper.d.ts.map +1 -0
- package/lib/edge/helper/edge.theme.d.ts +9 -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 +2 -10
- package/lib/edge/index.d.ts.map +1 -1
- package/lib/graph/graph.d.ts +73 -407
- package/lib/graph/graph.d.ts.map +1 -1
- 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 +1 -0
- package/lib/graph/index.d.ts.map +1 -1
- package/lib/group/custom/device-group.d.ts +32 -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 +7 -0
- package/lib/group/helper/group-g6.mapper.d.ts.map +1 -0
- package/lib/group/helper/group.mapper.d.ts +8 -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 +2 -3
- package/lib/group/index.d.ts.map +1 -1
- package/lib/interaction/brush-select.d.ts +6 -0
- package/lib/interaction/brush-select.d.ts.map +1 -0
- package/lib/interaction/click-select.d.ts +5 -72
- package/lib/interaction/click-select.d.ts.map +1 -1
- package/lib/interaction/collapse-expand.d.ts +6 -0
- package/lib/interaction/collapse-expand.d.ts.map +1 -0
- package/lib/interaction/create-edge.d.ts +6 -0
- package/lib/interaction/create-edge.d.ts.map +1 -0
- package/lib/interaction/drag-canvas.d.ts +6 -0
- package/lib/interaction/drag-canvas.d.ts.map +1 -0
- package/lib/interaction/drag-element.d.ts +6 -0
- package/lib/interaction/drag-element.d.ts.map +1 -0
- package/lib/interaction/focus-element.d.ts +6 -0
- package/lib/interaction/focus-element.d.ts.map +1 -0
- package/lib/interaction/helper/behavior.mapper.d.ts +6 -0
- package/lib/interaction/helper/behavior.mapper.d.ts.map +1 -0
- package/lib/interaction/helper/index.d.ts +2 -0
- package/lib/interaction/helper/index.d.ts.map +1 -0
- package/lib/interaction/hover-activate.d.ts +5 -46
- package/lib/interaction/hover-activate.d.ts.map +1 -1
- package/lib/interaction/index.d.ts +1 -5
- package/lib/interaction/index.d.ts.map +1 -1
- package/lib/interaction/scroll-canvas.d.ts +6 -0
- package/lib/interaction/scroll-canvas.d.ts.map +1 -0
- package/lib/interaction/select-all.d.ts +14 -0
- package/lib/interaction/select-all.d.ts.map +1 -0
- package/lib/interaction/zoom-canvas.d.ts +6 -0
- package/lib/interaction/zoom-canvas.d.ts.map +1 -0
- package/lib/layout/grid.d.ts +12 -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.mapper.d.ts +5 -0
- package/lib/layout/helper/layout.mapper.d.ts.map +1 -0
- package/lib/layout/index.d.ts +5 -4
- package/lib/layout/index.d.ts.map +1 -1
- package/lib/layout/mesh.d.ts +10 -0
- package/lib/layout/mesh.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/behavior.model.d.ts +45 -18
- package/lib/model/behavior.model.d.ts.map +1 -1
- package/lib/model/edge.model.d.ts +20 -43
- package/lib/model/edge.model.d.ts.map +1 -1
- package/lib/model/event.model.d.ts +207 -2
- package/lib/model/event.model.d.ts.map +1 -1
- package/lib/model/graph.model.d.ts +14 -55
- package/lib/model/graph.model.d.ts.map +1 -1
- package/lib/model/group.model.d.ts +7 -29
- package/lib/model/group.model.d.ts.map +1 -1
- package/lib/model/icon.model.d.ts +1 -1
- package/lib/model/icon.model.d.ts.map +1 -1
- package/lib/model/label.model.d.ts +0 -2
- package/lib/model/label.model.d.ts.map +1 -1
- package/lib/model/layout.model.d.ts +14 -22
- package/lib/model/layout.model.d.ts.map +1 -1
- package/lib/model/node.model.d.ts +7 -32
- package/lib/model/node.model.d.ts.map +1 -1
- package/lib/model/plugin.model.d.ts +11 -40
- package/lib/model/plugin.model.d.ts.map +1 -1
- package/lib/model/theme.model.d.ts +2 -6
- package/lib/model/theme.model.d.ts.map +1 -1
- package/lib/node/custom/device-node.d.ts +30 -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 +13 -0
- package/lib/node/helper/node-g6.mapper.d.ts.map +1 -0
- package/lib/node/helper/node.mapper.d.ts +23 -0
- package/lib/node/helper/node.mapper.d.ts.map +1 -0
- package/lib/node/index.d.ts +2 -3
- package/lib/node/index.d.ts.map +1 -1
- package/lib/plugin/_minimap.d.ts +1 -0
- package/lib/plugin/_minimap.d.ts.map +1 -0
- package/lib/plugin/context-menu.d.ts +5 -0
- package/lib/plugin/context-menu.d.ts.map +1 -0
- package/lib/plugin/graph-background.d.ts +26 -19
- package/lib/plugin/graph-background.d.ts.map +1 -1
- 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 +7 -0
- package/lib/plugin/helper/plugin.mapper.d.ts.map +1 -0
- package/lib/plugin/history.d.ts +5 -0
- package/lib/plugin/history.d.ts.map +1 -0
- package/lib/plugin/index.d.ts +3 -2
- package/lib/plugin/index.d.ts.map +1 -1
- package/lib/plugin/toolbar.d.ts +4 -2
- package/lib/plugin/toolbar.d.ts.map +1 -1
- package/lib/plugin/tooltip.d.ts +9 -97
- package/lib/plugin/tooltip.d.ts.map +1 -1
- package/lib/themes/dark.d.ts +3 -0
- package/lib/themes/dark.d.ts.map +1 -0
- package/lib/themes/index.d.ts +3 -3
- package/lib/themes/index.d.ts.map +1 -1
- package/lib/themes/light.d.ts +3 -0
- package/lib/themes/light.d.ts.map +1 -0
- package/lib/themes/light.theme.d.ts +3 -0
- package/lib/themes/light.theme.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/graph.helper.d.ts +4 -0
- package/lib/utils/graph.helper.d.ts.map +1 -0
- package/lib/utils/index.d.ts +4 -0
- package/lib/utils/index.d.ts.map +1 -1
- 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 +1 -1
- package/lib/utils/state.helper.d.ts.map +1 -1
- package/lib/utils/tree.helper.d.ts +4 -0
- package/lib/utils/tree.helper.d.ts.map +1 -0
- package/package.json +2 -2
- package/assets/worker-DNGSJ4Eg.js +0 -13
- package/lib/data/data.d.ts +0 -2
- package/lib/data/data.d.ts.map +0 -1
- package/lib/data/index.d.ts +0 -2
- package/lib/data/index.d.ts.map +0 -1
- package/lib/edge/cubic-edge.d.ts +0 -47
- package/lib/edge/cubic-edge.d.ts.map +0 -1
- package/lib/edge/edge.controller.d.ts +0 -19
- package/lib/edge/edge.controller.d.ts.map +0 -1
- package/lib/edge/edge.helper.d.ts +0 -6
- package/lib/edge/edge.helper.d.ts.map +0 -1
- package/lib/edge/line-edge.d.ts +0 -28
- package/lib/edge/line-edge.d.ts.map +0 -1
- package/lib/edge/loop-edge.d.ts +0 -34
- package/lib/edge/loop-edge.d.ts.map +0 -1
- package/lib/edge/multi-label-edge-base.d.ts +0 -84
- package/lib/edge/multi-label-edge-base.d.ts.map +0 -1
- package/lib/edge/polyline-edge.d.ts +0 -40
- package/lib/edge/polyline-edge.d.ts.map +0 -1
- package/lib/edge/quadratic-edge.d.ts +0 -41
- package/lib/edge/quadratic-edge.d.ts.map +0 -1
- package/lib/graph/extendGraph.d.ts +0 -25
- package/lib/graph/extendGraph.d.ts.map +0 -1
- package/lib/group/device-group.d.ts +0 -179
- package/lib/group/device-group.d.ts.map +0 -1
- package/lib/group/group.controller.d.ts +0 -17
- package/lib/group/group.controller.d.ts.map +0 -1
- package/lib/group/group.helper.d.ts +0 -5
- package/lib/group/group.helper.d.ts.map +0 -1
- package/lib/interaction/collapse-expand-combo.d.ts +0 -26
- package/lib/interaction/collapse-expand-combo.d.ts.map +0 -1
- package/lib/interaction/drag-item.d.ts +0 -17
- package/lib/interaction/drag-item.d.ts.map +0 -1
- package/lib/interaction/interaction.controller.d.ts +0 -18
- package/lib/interaction/interaction.controller.d.ts.map +0 -1
- package/lib/interaction/mapping/edge-mapping.behavior.d.ts +0 -4
- package/lib/interaction/mapping/edge-mapping.behavior.d.ts.map +0 -1
- package/lib/interaction/mapping/graph-mapping.behavior.d.ts +0 -43
- package/lib/interaction/mapping/graph-mapping.behavior.d.ts.map +0 -1
- package/lib/interaction/mapping/group-mapping.behavior.d.ts +0 -4
- package/lib/interaction/mapping/group-mapping.behavior.d.ts.map +0 -1
- package/lib/interaction/mapping/node-mapping.behavior.d.ts +0 -4
- package/lib/interaction/mapping/node-mapping.behavior.d.ts.map +0 -1
- package/lib/interaction/select-all-item.behavior.d.ts +0 -6
- package/lib/interaction/select-all-item.behavior.d.ts.map +0 -1
- package/lib/layout/grid-layout.d.ts +0 -4
- package/lib/layout/grid-layout.d.ts.map +0 -1
- package/lib/layout/layout.mapper.d.ts +0 -4
- package/lib/layout/layout.mapper.d.ts.map +0 -1
- package/lib/layout/mesh-layout.d.ts +0 -4
- package/lib/layout/mesh-layout.d.ts.map +0 -1
- package/lib/layout/tree-layout.d.ts +0 -4
- package/lib/layout/tree-layout.d.ts.map +0 -1
- package/lib/node/device-node.d.ts +0 -172
- package/lib/node/device-node.d.ts.map +0 -1
- package/lib/node/node.controller.d.ts +0 -18
- package/lib/node/node.controller.d.ts.map +0 -1
- package/lib/node/node.helper.d.ts +0 -5
- package/lib/node/node.helper.d.ts.map +0 -1
- package/lib/plugin/minimap.d.ts +0 -3
- package/lib/plugin/minimap.d.ts.map +0 -1
- package/lib/plugin/plugin.mapper.d.ts +0 -4
- package/lib/plugin/plugin.mapper.d.ts.map +0 -1
- package/lib/themes/dark/dark.theme.d.ts +0 -4
- package/lib/themes/dark/dark.theme.d.ts.map +0 -1
- package/lib/themes/dark/index.d.ts +0 -2
- package/lib/themes/dark/index.d.ts.map +0 -1
- package/lib/themes/dark/node-dark.theme.d.ts +0 -3
- package/lib/themes/dark/node-dark.theme.d.ts.map +0 -1
- package/lib/themes/light/index.d.ts +0 -2
- package/lib/themes/light/index.d.ts.map +0 -1
- package/lib/themes/light/light.theme.d.ts +0 -4
- package/lib/themes/light/light.theme.d.ts.map +0 -1
- package/lib/themes/light/node-light.theme.d.ts +0 -3
- package/lib/themes/light/node-light.theme.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/lib/edge/custom/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Group, PathStyleProps } from '@antv/g';
|
|
2
|
+
import { EdgeLabelStyleProps, Line, LineStyleProps, PathArray } from '@antv/g6';
|
|
3
|
+
import { Prefix } from '@antv/g6/lib/types';
|
|
4
|
+
import { MxBaseEdgeStyleProps, MxEdgeLabel } from '../../model/index.ts';
|
|
5
|
+
export type MxLineStyleProps = LineStyleProps & MxBaseEdgeStyleProps;
|
|
6
|
+
export type MxEdgeLabelStyle = Prefix<'label', EdgeLabelStyleProps & Pick<MxEdgeLabel, 'id' | 'position' | 'startArrow' | 'endArrow' | 'type'>>;
|
|
7
|
+
export declare class LineEdge extends Line {
|
|
8
|
+
getEndpoints(attrs: Required<MxLineStyleProps>): [import("@antv/g6").Point, import("@antv/g6").Point];
|
|
9
|
+
getKeyStyle(attrs: Required<MxLineStyleProps>): PathStyleProps;
|
|
10
|
+
getLoopPath(attributes: Required<MxLineStyleProps>): PathArray;
|
|
11
|
+
drawCustomLabelShape(attrs: Required<MxLineStyleProps>, container: Group): void;
|
|
12
|
+
drawLabelArrow(attrs: Required<MxLineStyleProps>, container: Group): void;
|
|
13
|
+
drawMiddleArrow(attrs: Required<MxLineStyleProps>, container: Group): void;
|
|
14
|
+
render(attrs: Required<MxLineStyleProps>, container: Group): void;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=line-edge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"line-edge.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/lib/edge/custom/line-edge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAS,cAAc,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,EACL,mBAAmB,EAGnB,IAAI,EACJ,cAAc,EAEd,SAAS,EAGV,MAAM,UAAU,CAAC;AAElB,OAAO,EAAkB,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAO5D,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAUrE,MAAM,MAAM,gBAAgB,GAAG,cAAc,GAAG,oBAAoB,CAAC;AAErE,MAAM,MAAM,gBAAgB,GAAG,MAAM,CACnC,OAAO,EACP,mBAAmB,GACjB,IAAI,CAAC,WAAW,EAAE,IAAI,GAAG,UAAU,GAAG,YAAY,GAAG,UAAU,GAAG,MAAM,CAAC,CAC5E,CAAC;AAEF,qBAAa,QAAS,SAAQ,IAAI;IACvB,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,gBAAgB,CAAC;IAK9C,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,gBAAgB,CAAC,GAAG,cAAc;IAW9D,WAAW,CAAC,UAAU,EAAE,QAAQ,CAAC,gBAAgB,CAAC,GAAG,SAAS;IA+BvE,oBAAoB,CAAC,KAAK,EAAE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,SAAS,EAAE,KAAK;IAUxE,cAAc,CAAC,KAAK,EAAE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,SAAS,EAAE,KAAK;IA8BlE,eAAe,CAAC,KAAK,EAAE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,SAAS,EAAE,KAAK;IAgC1D,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,SAAS,EAAE,KAAK;CAMpE"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Group, PathStyleProps } from '@antv/g';
|
|
2
|
+
import { PathArray, Point, Polyline, PolylineStyleProps, State } from '@antv/g6';
|
|
3
|
+
import { MxBaseEdgeStyleProps } from '../../model/index.ts';
|
|
4
|
+
import { MxLineStyleProps } from './line-edge';
|
|
5
|
+
export type MxPolylineEdgeStyle = PolylineStyleProps & MxBaseEdgeStyleProps;
|
|
6
|
+
export declare class PolylineEdge extends Polyline {
|
|
7
|
+
get states(): State[];
|
|
8
|
+
get isEdgeExist(): boolean;
|
|
9
|
+
getKeyPath(attrs: Required<MxPolylineEdgeStyle>): PathArray;
|
|
10
|
+
getControlPoints(attrs: Required<MxPolylineEdgeStyle>, sourcePoint: Point, targetPoint: Point): Point[];
|
|
11
|
+
private getPoints;
|
|
12
|
+
getEndpoints(attrs: Required<MxPolylineEdgeStyle>): [Point, Point];
|
|
13
|
+
getKeyStyle(attrs: Required<MxPolylineEdgeStyle>): PathStyleProps;
|
|
14
|
+
drawCustomLabelShape(attrs: Required<MxLineStyleProps>, container: Group): void;
|
|
15
|
+
drawLabelArrow(attrs: Required<MxLineStyleProps>, container: Group): void;
|
|
16
|
+
drawMiddleArrow(attrs: Required<MxLineStyleProps>, container: Group): void;
|
|
17
|
+
render(attrs: Required<MxLineStyleProps>, container: Group): void;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=polyline-edge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polyline-edge.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/lib/edge/custom/polyline-edge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAS,cAAc,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,EAGL,SAAS,EACT,KAAK,EACL,QAAQ,EACR,kBAAkB,EAElB,KAAK,EACN,MAAM,UAAU,CAAC;AAKlB,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAQxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,GAAG,oBAAoB,CAAC;AAE5E,qBAAa,YAAa,SAAQ,QAAQ;IACxC,IAAI,MAAM,IAAI,KAAK,EAAE,CAGpB;IAED,IAAI,WAAW,YAEd;IAEQ,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,mBAAmB,CAAC,GAAG,SAAS;IAyB3D,gBAAgB,CACvB,KAAK,EAAE,QAAQ,CAAC,mBAAmB,CAAC,EACpC,WAAW,EAAE,KAAK,EAClB,WAAW,EAAE,KAAK,GACjB,KAAK,EAAE;IAmBV,OAAO,CAAC,SAAS;IAgBR,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,mBAAmB,CAAC;IAQjD,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,mBAAmB,CAAC,GAAG,cAAc;IAO1E,oBAAoB,CAAC,KAAK,EAAE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,SAAS,EAAE,KAAK;IAUxE,cAAc,CAAC,KAAK,EAAE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,SAAS,EAAE,KAAK;IA8BlE,eAAe,CAAC,KAAK,EAAE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,SAAS,EAAE,KAAK;IAgC1D,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,SAAS,EAAE,KAAK;CAMpE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Group, PathStyleProps } from '@antv/g';
|
|
2
|
+
import { Quadratic, QuadraticStyleProps, State } from '@antv/g6';
|
|
3
|
+
import { MxBaseEdgeStyleProps } from '../../model/index.ts';
|
|
4
|
+
import { MxLineStyleProps } from './line-edge';
|
|
5
|
+
export type MxQuadraticEdgeStyle = QuadraticStyleProps & MxBaseEdgeStyleProps;
|
|
6
|
+
export declare class QuadraticEdge extends Quadratic {
|
|
7
|
+
get states(): State[];
|
|
8
|
+
get isEdgeExist(): boolean;
|
|
9
|
+
getEndpoints(attrs: Required<MxQuadraticEdgeStyle>): [import("@antv/g6").Point, import("@antv/g6").Point];
|
|
10
|
+
getKeyStyle(attrs: Required<MxQuadraticEdgeStyle>): PathStyleProps;
|
|
11
|
+
drawCustomLabelShape(attrs: Required<MxLineStyleProps>, container: Group): void;
|
|
12
|
+
drawLabelArrow(attrs: Required<MxLineStyleProps>, container: Group): void;
|
|
13
|
+
drawMiddleArrow(attrs: Required<MxLineStyleProps>, container: Group): void;
|
|
14
|
+
render(attrs: Required<MxLineStyleProps>, container: Group): void;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=quadratic-edge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quadratic-edge.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/lib/edge/custom/quadratic-edge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAS,cAAc,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,EAGL,SAAS,EACT,mBAAmB,EAEnB,KAAK,EACN,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAQxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,GAAG,oBAAoB,CAAC;AAE9E,qBAAa,aAAc,SAAQ,SAAS;IAC1C,IAAI,MAAM,IAAI,KAAK,EAAE,CAGpB;IAED,IAAI,WAAW,YAEd;IAEQ,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,oBAAoB,CAAC;IAKlD,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,oBAAoB,CAAC,GAAG,cAAc;IAO3E,oBAAoB,CAAC,KAAK,EAAE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,SAAS,EAAE,KAAK;IAUxE,cAAc,CAAC,KAAK,EAAE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,SAAS,EAAE,KAAK;IA8BlE,eAAe,CAAC,KAAK,EAAE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,SAAS,EAAE,KAAK;IAgC1D,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,SAAS,EAAE,KAAK;CAMpE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ImageStyleProps } from '@antv/g';
|
|
2
|
+
import { BaseEdge, BaseEdgeStyleProps, EdgeLabelStyleProps } from '@antv/g6';
|
|
3
|
+
import { State } from '@antv/g6/lib/types';
|
|
4
|
+
import { MxGraph } from '../../graph';
|
|
5
|
+
import { MxBaseEdgeStyleProps } from '../../model';
|
|
6
|
+
export type MxEdgeStyleProps = BaseEdgeStyleProps & MxBaseEdgeStyleProps;
|
|
7
|
+
export declare const getMxGraph: (attrs: Required<MxEdgeStyleProps>) => MxGraph;
|
|
8
|
+
export declare const getStates: (edge: BaseEdge, attrs: Required<MxEdgeStyleProps>) => State[];
|
|
9
|
+
export declare const getLabelStyle: (edge: BaseEdge, attrs: Required<MxEdgeStyleProps>) => EdgeLabelStyleProps;
|
|
10
|
+
export declare const getLabelArrowStyle: (edge: BaseEdge, attrs: Required<MxEdgeStyleProps>, type: 'start' | 'end') => ImageStyleProps;
|
|
11
|
+
export declare const getMiddleArrowStyle: (edge: BaseEdge, attrs: Required<MxEdgeStyleProps>, type: 'start' | 'end') => ImageStyleProps;
|
|
12
|
+
//# sourceMappingURL=custom-edge.helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-edge.helper.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/lib/edge/helper/custom-edge.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAQ,MAAM,SAAS,CAAC;AAChD,OAAO,EACL,QAAQ,EACR,kBAAkB,EAClB,mBAAmB,EAEpB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,oBAAoB,EAAe,MAAM,aAAa,CAAC;AAYhE,MAAM,MAAM,gBAAgB,GAAG,kBAAkB,GAAG,oBAAoB,CAAC;AAEzE,eAAO,MAAM,UAAU,UAAW,SAAS,gBAAgB,CAAC,KAAG,OAG9D,CAAC;AAEF,eAAO,MAAM,SAAS,SACd,QAAQ,SACP,SAAS,gBAAgB,CAAC,KAChC,KAAK,EAEP,CAAC;AAEF,eAAO,MAAM,aAAa,SAClB,QAAQ,SACP,SAAS,gBAAgB,CAAC,KAChC,mBA6CF,CAAC;AAEF,eAAO,MAAM,kBAAkB,SACvB,QAAQ,SACP,SAAS,gBAAgB,CAAC,QAC3B,OAAO,GAAG,KAAK,KACpB,eAsCF,CAAC;AAEF,eAAO,MAAM,mBAAmB,SACxB,QAAQ,SACP,SAAS,gBAAgB,CAAC,QAC3B,OAAO,GAAG,KAAK,KACpB,eA2BF,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EdgeData } from '@antv/g6';
|
|
2
|
+
import { EdgeStyle } from '@antv/g6/lib/spec/element/edge';
|
|
3
|
+
import { PartialEdgeData } from '@antv/g6/lib/types';
|
|
4
|
+
import { MxEdgeArrow, MxEdgeConfig, MxEdgeData, MxEdgeLabel, MxEdgeType, MxPartialEdgeData } from '../../model';
|
|
5
|
+
export declare const toEdgeCommonStyle: (config: EdgeStyle) => MxEdgeConfig;
|
|
6
|
+
export declare const toEdgeType: (type: string) => MxEdgeType;
|
|
7
|
+
export declare const toEdgeLabel: (label: EdgeStyle) => MxEdgeLabel;
|
|
8
|
+
export declare const toLabels: (labels: any[]) => MxEdgeLabel[];
|
|
9
|
+
export declare const toEdgeArrow: (arrows: EdgeStyle) => MxEdgeArrow;
|
|
10
|
+
export declare const toEdgeData: (edge: EdgeData) => MxEdgeData;
|
|
11
|
+
export declare const toEdgeDataPartial: (edge: MxPartialEdgeData) => PartialEdgeData<EdgeData>;
|
|
12
|
+
export declare const G6EdgeMapper: {
|
|
13
|
+
toEdgeData: (edge: EdgeData) => MxEdgeData;
|
|
14
|
+
toEdgeCommon: (config: EdgeStyle) => MxEdgeConfig;
|
|
15
|
+
toEdgeType: (type: string) => MxEdgeType;
|
|
16
|
+
toEdgeArrow: (arrows: EdgeStyle) => MxEdgeArrow;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=edge-g6.mapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edge-g6.mapper.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/lib/edge/helper/edge-g6.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACL,WAAW,EACX,YAAY,EACZ,UAAU,EAEV,WAAW,EACX,UAAU,EACV,iBAAiB,EAClB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,iBAAiB,WAAY,SAAS,KAAG,YAerD,CAAC;AAEF,eAAO,MAAM,UAAU,SAAU,MAAM,KAAG,UASzC,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,SAAS,KAAG,WAkD9C,CAAC;AAEF,eAAO,MAAM,QAAQ,WAAY,GAAG,EAAE,KAAG,WAAW,EAKnD,CAAC;AAEF,eAAO,MAAM,WAAW,WAAY,SAAS,KAAG,WA+B/C,CAAC;AAEF,eAAO,MAAM,UAAU,SAAU,QAAQ,KAAG,UA0B3C,CAAC;AAEF,eAAO,MAAM,iBAAiB,SACtB,iBAAiB,KACtB,gBAAgB,QAAQ,CAE1B,CAAC;AAEF,eAAO,MAAM,YAAY;uBAlCQ,QAAQ,KAAG,UAAU;2BAxHZ,SAAS,KAAG,YAAY;uBAiBjC,MAAM,KAAG,UAAU;0BAsEhB,SAAS,KAAG,WAAW;CAwE1D,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EdgeData } from '@antv/g6';
|
|
2
|
+
import { EdgeStyle } from '@antv/g6/lib/spec/element/edge';
|
|
3
|
+
import { PartialEdgeData } from '@antv/g6/lib/types';
|
|
4
|
+
import { MxEdgeConfig, MxEdgeLabel, MxPartialEdgeData } from '../../model';
|
|
5
|
+
export declare const MxEdgeMapper: {
|
|
6
|
+
toEdgeData: (edge: MxPartialEdgeData, option?: {
|
|
7
|
+
full: boolean;
|
|
8
|
+
}) => PartialEdgeData<EdgeData>;
|
|
9
|
+
toEdgeCommonStyle: (config: MxEdgeConfig) => EdgeStyle;
|
|
10
|
+
toEdgeType: (type: MxEdgeConfig['type']) => Partial<EdgeData>;
|
|
11
|
+
toEdgeArrow: (arrows: MxEdgeConfig['arrows']) => EdgeStyle;
|
|
12
|
+
toEdgeLabel: (label: MxEdgeLabel) => EdgeStyle;
|
|
13
|
+
toLoopEdge: (config: MxEdgeConfig['loop']) => EdgeStyle;
|
|
14
|
+
toPolylineEdge: (config: MxEdgeConfig) => EdgeStyle;
|
|
15
|
+
toQuadraticEdge: (config: MxEdgeConfig['quadratic']) => EdgeStyle;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=edge.mapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edge.mapper.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/lib/edge/helper/edge.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAwL3E,eAAO,MAAM,YAAY;uBArLjB,iBAAiB;;UAEtB,gBAAgB,QAAQ,CAAC;gCAgCO,YAAY,KAAG,SAAS;uBAkBjC,YAAY,CAAC,MAAM,CAAC,KAAG,QAAQ,QAAQ,CAAC;0BAkFrC,YAAY,CAAC,QAAQ,CAAC,KAAG,SAAS;yBArEnC,WAAW,KAAG,SAAS;yBAyFvB,YAAY,CAAC,MAAM,CAAC,KAAG,SAAS;6BAS5B,YAAY,KAAG,SAAS;8BAOvB,YAAY,CAAC,WAAW,CAAC,KAAG,SAAS;CAoBrE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EdgeArrowStyleProps, EdgeLabelStyleProps, State } from '@antv/g6';
|
|
2
|
+
import { EdgeStyle } from '@antv/g6/lib/spec/element/edge';
|
|
3
|
+
import { MxEdgeHighlightType, MxHighlightCommonType, MxUserThemeType } from '../../model';
|
|
4
|
+
export declare const getEdgeColor: (type: MxHighlightCommonType, states: State[], theme?: MxUserThemeType) => string;
|
|
5
|
+
export declare const getHighlightType: (highlight: MxEdgeHighlightType, type: 'start' | 'end') => MxHighlightCommonType;
|
|
6
|
+
export declare const getEdgeLabelColorStyle: (attrs: any, theme?: MxUserThemeType) => Omit<EdgeLabelStyleProps, 'text'>;
|
|
7
|
+
export declare const getEdgeArrowStyle: (attrs: any, states: State[], type: 'start' | 'end', theme?: MxUserThemeType) => EdgeArrowStyleProps;
|
|
8
|
+
export declare const getEdgeStyle: (attrs: any, states: State[], theme: MxUserThemeType) => EdgeStyle;
|
|
9
|
+
//# sourceMappingURL=edge.theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edge.theme.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/lib/edge/helper/edge.theme.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,KAAK,EAEN,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAG3D,OAAO,EACL,mBAAmB,EAEnB,qBAAqB,EACrB,eAAe,EAChB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,YAAY,SACjB,qBAAqB,UACnB,KAAK,EAAE,UACR,eAAe,WAqBvB,CAAC;AAEF,eAAO,MAAM,gBAAgB,cAChB,mBAAmB,QACxB,OAAO,GAAG,KAAK,0BAQtB,CAAC;AAEF,eAAO,MAAM,sBAAsB,UAC1B,GAAG,UACH,eAAe,KACrB,KAAK,mBAAmB,EAAE,MAAM,CAyClC,CAAC;AAEF,eAAO,MAAM,iBAAiB,UACrB,GAAG,UACF,KAAK,EAAE,QACT,OAAO,GAAG,KAAK,UACd,eAAe,KACrB,mBAQF,CAAC;AAEF,eAAO,MAAM,YAAY,UAChB,GAAG,UACF,KAAK,EAAE,SACR,eAAe,KACrB,SAUF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/lib/edge/helper/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC"}
|
package/lib/edge/index.d.ts
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './edge.controller';
|
|
4
|
-
export * from './edge.helper';
|
|
5
|
-
export * from './line-edge';
|
|
6
|
-
export * from './multi-label-edge-base';
|
|
7
|
-
export * from './polyline-edge';
|
|
8
|
-
export * from './quadratic-edge';
|
|
9
|
-
export declare const DEFAULT_USER_EDGE: MxEdgeTypeSupport[];
|
|
10
|
-
export declare const MxEdgeTypeMap: Record<MxEdgeTypeSupport, G6AcceptEdgeType>;
|
|
1
|
+
export * from './custom';
|
|
2
|
+
export * from './helper';
|
|
11
3
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/edge/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/edge/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/edge/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
|