@hpcc-js/graph 2.84.2 → 2.84.4
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/index.es6.js +24 -24
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +22 -23
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +10 -11
- package/src/__package__.ts +2 -2
- package/src/__tests__/index.ts +1 -1
- package/src/__tests__/test5.ts +8 -4
- package/src/graph2/dataGraph.ts +9 -7
- package/src/graph2/graph.ts +12 -4
- package/src/graph2/graphReactT.ts +3 -3
- package/src/graph2/graphT.ts +37 -27
- package/src/graph2/index.ts +0 -1
- package/src/graph2/layouts/graphviz.ts +1 -2
- package/src/graph2/layouts/graphvizWorker.ts +1 -9
- package/src/graph2/layouts/placeholders.ts +15 -15
- package/src/graph2/sankeyGraph.ts +8 -8
- package/src/graph2/subgraph.tsx +2 -2
- package/src/graph2/vertex.tsx +2 -2
- package/types/__package__.d.ts +2 -2
- package/types/__tests__/index.d.ts +1 -1
- package/types/__tests__/test5.d.ts +25 -0
- package/types/__tests__/test5.d.ts.map +1 -1
- package/types/graph2/dataGraph.d.ts +4 -3
- package/types/graph2/dataGraph.d.ts.map +1 -1
- package/types/graph2/graph.d.ts +8 -3
- package/types/graph2/graph.d.ts.map +1 -1
- package/types/graph2/graphReactT.d.ts +3 -3
- package/types/graph2/graphReactT.d.ts.map +1 -1
- package/types/graph2/graphT.d.ts +11 -10
- package/types/graph2/graphT.d.ts.map +1 -1
- package/types/graph2/index.d.ts +0 -1
- package/types/graph2/index.d.ts.map +1 -1
- package/types/graph2/layouts/graphviz.d.ts.map +1 -1
- package/types/graph2/layouts/graphvizWorker.d.ts +0 -1
- package/types/graph2/layouts/graphvizWorker.d.ts.map +1 -1
- package/types/graph2/layouts/placeholders.d.ts +15 -15
- package/types/graph2/layouts/placeholders.d.ts.map +1 -1
- package/types/graph2/sankeyGraph.d.ts +5 -5
- package/types/graph2/sankeyGraph.d.ts.map +1 -1
- package/types/graph2/subgraph.d.ts +2 -2
- package/types/graph2/subgraph.d.ts.map +1 -1
- package/types/graph2/vertex.d.ts +2 -2
- package/types/graph2/vertex.d.ts.map +1 -1
- package/types-3.4/__package__.d.ts +2 -2
- package/types-3.4/__tests__/index.d.ts +1 -1
- package/types-3.4/__tests__/test5.d.ts +25 -0
- package/types-3.4/graph2/dataGraph.d.ts +4 -3
- package/types-3.4/graph2/graph.d.ts +8 -3
- package/types-3.4/graph2/graphReactT.d.ts +3 -3
- package/types-3.4/graph2/graphT.d.ts +11 -10
- package/types-3.4/graph2/index.d.ts +0 -1
- package/types-3.4/graph2/layouts/graphvizWorker.d.ts +0 -1
- package/types-3.4/graph2/layouts/placeholders.d.ts +15 -15
- package/types-3.4/graph2/sankeyGraph.d.ts +5 -5
- package/types-3.4/graph2/subgraph.d.ts +2 -2
- package/types-3.4/graph2/vertex.d.ts +2 -2
- package/dist/graphvizlib.wasm +0 -0
- package/src/graph2/edge.tsx +0 -30
- package/types/graph2/edge.d.ts +0 -9
- package/types/graph2/edge.d.ts.map +0 -1
- package/types-3.4/graph2/edge.d.ts +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subgraph.d.ts","sourceRoot":"","sources":["../../src/graph2/subgraph.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAQ,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"subgraph.d.ts","sourceRoot":"","sources":["../../src/graph2/subgraph.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAQ,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IACzD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAgBrE,CAAC"}
|
package/types/graph2/vertex.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { React } from "@hpcc-js/react";
|
|
2
|
-
import {
|
|
3
|
-
export interface BasicVertexProps extends
|
|
2
|
+
import { VertexBaseProps } from "./layouts/placeholders";
|
|
3
|
+
export interface BasicVertexProps extends VertexBaseProps {
|
|
4
4
|
textFill?: string;
|
|
5
5
|
textHeight?: number;
|
|
6
6
|
scale?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vertex.d.ts","sourceRoot":"","sources":["../../src/graph2/vertex.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAQ,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"vertex.d.ts","sourceRoot":"","sources":["../../src/graph2/vertex.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAQ,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACrD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC7B;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAgBjE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const PKG_NAME = "@hpcc-js/graph";
|
|
2
|
-
export declare const PKG_VERSION = "2.84.
|
|
3
|
-
export declare const BUILD_VERSION = "2.104.
|
|
2
|
+
export declare const PKG_VERSION = "2.84.4";
|
|
3
|
+
export declare const BUILD_VERSION = "2.104.14";
|
|
4
4
|
//# sourceMappingURL=__package__.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Test4 as Test } from "./test4";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,29 @@
|
|
|
1
1
|
import { Graph2 } from "../graph2/graph";
|
|
2
|
+
export declare const EDGE_ARR_UPDATE: {
|
|
3
|
+
id: number;
|
|
4
|
+
source: {
|
|
5
|
+
id: number;
|
|
6
|
+
text: string;
|
|
7
|
+
iconFontFamily: string;
|
|
8
|
+
centroid?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
centroid: boolean;
|
|
11
|
+
id: number;
|
|
12
|
+
text: string;
|
|
13
|
+
iconFontFamily?: undefined;
|
|
14
|
+
};
|
|
15
|
+
target: {
|
|
16
|
+
id: number;
|
|
17
|
+
text: string;
|
|
18
|
+
iconFontFamily: string;
|
|
19
|
+
centroid?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
centroid: boolean;
|
|
22
|
+
id: number;
|
|
23
|
+
text: string;
|
|
24
|
+
iconFontFamily?: undefined;
|
|
25
|
+
};
|
|
26
|
+
}[];
|
|
2
27
|
export declare class Test5 extends Graph2 {
|
|
3
28
|
constructor();
|
|
4
29
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PropertyExt, publish, Widget } from "@hpcc-js/common";
|
|
2
|
+
import { Vertex3Props, EdgeProps } from "@hpcc-js/react";
|
|
2
3
|
import { Graph2 } from "./graph";
|
|
3
|
-
|
|
4
|
+
export declare type IVertex3 = Vertex3Props;
|
|
4
5
|
export declare function toJsonObj<T>(row: any, columns: any): T;
|
|
5
6
|
export declare class AnnotationColumn extends PropertyExt {
|
|
6
7
|
columnID: publish<this, string>;
|
|
@@ -49,8 +50,8 @@ export declare class DataGraph extends Graph2 {
|
|
|
49
50
|
private _masterVertices;
|
|
50
51
|
private _masterVerticesMap;
|
|
51
52
|
mergeVertices(): void;
|
|
52
|
-
protected _prevEdges: readonly
|
|
53
|
-
protected _masterEdges:
|
|
53
|
+
protected _prevEdges: readonly EdgeProps<IVertex3>[];
|
|
54
|
+
protected _masterEdges: EdgeProps<IVertex3>[];
|
|
54
55
|
private _masterEdgesMap;
|
|
55
56
|
mergeEdges(): void;
|
|
56
57
|
private _prevHierarchy;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { React, SubgraphProps, VertexProps } from "@hpcc-js/react";
|
|
2
|
-
import { BasicEdgeProps } from "./edge";
|
|
1
|
+
import { React, SubgraphProps, VertexProps, EdgeProps } from "@hpcc-js/react";
|
|
3
2
|
import { GraphReactT } from "./graphReactT";
|
|
4
|
-
|
|
3
|
+
import { GraphDataProps, HierarchyBase } from "./graphT";
|
|
4
|
+
export declare type ISubgraph = SubgraphProps;
|
|
5
|
+
export declare type IVertex = VertexProps;
|
|
6
|
+
export declare type IEdge = EdgeProps;
|
|
7
|
+
export declare type IHierarchy = HierarchyBase<ISubgraph, IVertex>;
|
|
8
|
+
export declare type IGraphData2 = GraphDataProps<ISubgraph, IVertex, IEdge>;
|
|
9
|
+
export declare class Graph2 extends GraphReactT<ISubgraph, IVertex, IEdge> {
|
|
5
10
|
constructor();
|
|
6
11
|
calcProps(_props: VertexProps): VertexProps;
|
|
7
12
|
protected _reactVertexRenderer2: React.FunctionComponent<VertexProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { React, SubgraphProps, VertexProps } from "@hpcc-js/react";
|
|
2
|
-
import {
|
|
3
|
-
export declare class GraphReactT<SG extends SubgraphProps, V extends VertexProps, E extends EdgeProps
|
|
1
|
+
import { React, SubgraphProps, VertexProps, EdgeProps } from "@hpcc-js/react";
|
|
2
|
+
import { GraphT } from "./graphT";
|
|
3
|
+
export declare class GraphReactT<SG extends SubgraphProps, V extends VertexProps, E extends EdgeProps<V>> extends GraphT<SG, V, E> {
|
|
4
4
|
constructor(subgraphRenderer: React.FunctionComponent<SG>, vertexRenderer: React.FunctionComponent<V>, edgeRenderer: React.FunctionComponent<E>);
|
|
5
5
|
private _reactSubgraphRenderer;
|
|
6
6
|
subgraphRenderer(): React.FunctionComponent<SG>;
|
|
@@ -5,14 +5,14 @@ import { HTMLTooltip } from "@hpcc-js/html";
|
|
|
5
5
|
import "d3-transition";
|
|
6
6
|
import { ILayout } from "./layouts/index";
|
|
7
7
|
import { Options as FDOptions } from "./layouts/forceDirectedWorker";
|
|
8
|
-
import {
|
|
8
|
+
import { VertexBaseProps, EdgeBaseProps, GraphDataProps, HierarchyBase, SubgraphBaseProps } from "./layouts/placeholders";
|
|
9
9
|
import { EdgePlaceholder, SubgraphPlaceholder, VertexPlaceholder } from "./layouts/placeholders";
|
|
10
10
|
import { Engine } from "./layouts/graphvizWorker";
|
|
11
11
|
import "../../src/graph2/graph.css";
|
|
12
|
-
export {
|
|
12
|
+
export { GraphDataProps, SubgraphBaseProps, VertexBaseProps, EdgeBaseProps, HierarchyBase };
|
|
13
13
|
declare type GraphLayoutType = "Hierarchy" | "DOT" | "Tree" | "Dendrogram" | "RadialTree" | "RadialDendrogram" | "ForceDirected" | "ForceDirected2" | "ForceDirectedHybrid" | "Neato" | "FDP" | "Circle" | "TwoPI" | "Circo" | "None";
|
|
14
14
|
export declare type RendererT<T> = (props: T, element: SVGGElement) => void;
|
|
15
|
-
export declare class GraphT<SG extends
|
|
15
|
+
export declare class GraphT<SG extends SubgraphBaseProps, V extends VertexBaseProps, E extends EdgeBaseProps<V>> extends SVGZoomWidget {
|
|
16
16
|
protected _centroidFilter: SVGGlowFilter;
|
|
17
17
|
private _toggleHierarchy;
|
|
18
18
|
private _toggleForceDirected;
|
|
@@ -27,7 +27,7 @@ export declare class GraphT<SG extends SubgraphProps, V extends VertexProps, E e
|
|
|
27
27
|
private _toggleRT;
|
|
28
28
|
private _toggleD;
|
|
29
29
|
private _toggleRD;
|
|
30
|
-
protected _graphData: GraphCollection<VertexPlaceholder<V>, EdgePlaceholder<
|
|
30
|
+
protected _graphData: GraphCollection<VertexPlaceholder<V>, EdgePlaceholder<V, E>, SubgraphPlaceholder<SG>>;
|
|
31
31
|
protected _prevDoClickTime: number;
|
|
32
32
|
protected _svgDefsAnn: any;
|
|
33
33
|
protected _svgDefsCat: any;
|
|
@@ -52,12 +52,12 @@ export declare class GraphT<SG extends SubgraphProps, V extends VertexProps, E e
|
|
|
52
52
|
annotations(): IconEx[];
|
|
53
53
|
annotations(_: IconEx[]): this;
|
|
54
54
|
private _origData;
|
|
55
|
-
data():
|
|
56
|
-
data(_:
|
|
55
|
+
data(): GraphDataProps<SG, V, E>;
|
|
56
|
+
data(_: GraphDataProps<SG, V, E>, merge?: boolean): this;
|
|
57
57
|
selected(vertex: V, _?: Array<V>): boolean;
|
|
58
58
|
selection(_: Array<V | SG | E>): this;
|
|
59
59
|
selection(): Array<V | SG | E>;
|
|
60
|
-
graphData(): GraphCollection<VertexPlaceholder<V>, EdgePlaceholder<
|
|
60
|
+
graphData(): GraphCollection<VertexPlaceholder<V>, EdgePlaceholder<V, E>>;
|
|
61
61
|
resetLayout(): this;
|
|
62
62
|
layoutRunning(): boolean;
|
|
63
63
|
protected _layoutAlgo: ILayout;
|
|
@@ -84,9 +84,9 @@ export declare class GraphT<SG extends SubgraphProps, V extends VertexProps, E e
|
|
|
84
84
|
[id: string]: boolean;
|
|
85
85
|
}): this;
|
|
86
86
|
highlightVertex(_element: any, d?: VertexPlaceholder<V>): void;
|
|
87
|
-
highlightEdge(_element: any, d?: EdgePlaceholder<
|
|
87
|
+
highlightEdge(_element: any, d?: EdgePlaceholder<V, E>): void;
|
|
88
88
|
moveSubgraphPlaceholder(sp: SubgraphPlaceholder<SG>, transition: boolean): this;
|
|
89
|
-
moveEdgePlaceholder(ep: EdgePlaceholder<
|
|
89
|
+
moveEdgePlaceholder(ep: EdgePlaceholder<V, E>, transition: boolean): this;
|
|
90
90
|
moveVertexPlaceholder(vp: VertexPlaceholder<V>, transition: boolean, moveNeighbours: boolean): this;
|
|
91
91
|
moveSubgraphs(transition: boolean): this;
|
|
92
92
|
moveEdges(transition: boolean): this;
|
|
@@ -134,6 +134,7 @@ export declare class GraphT<SG extends SubgraphProps, V extends VertexProps, E e
|
|
|
134
134
|
subgraph_click(row: any, _col: any, sel: any): void;
|
|
135
135
|
vertex_click(row: any, _col: any, sel: any, data: any): void;
|
|
136
136
|
vertex_dblclick(row: any, _col: any, sel: any, data: any): void;
|
|
137
|
+
vertex_contextmenu(row: any, _col: any, sel: any, data: any): void;
|
|
137
138
|
vertex_mousein(row: any, _col: any, sel: any, data: any): void;
|
|
138
139
|
vertex_mouseover(row: any, _col: any, sel: any, data: any): void;
|
|
139
140
|
vertex_mouseout(row: any, _col: any, sel: any, data: any): void;
|
|
@@ -142,7 +143,7 @@ export declare class GraphT<SG extends SubgraphProps, V extends VertexProps, E e
|
|
|
142
143
|
edge_mouseout(_element: any, _d: any): void;
|
|
143
144
|
progress(what: "start" | "stop" | "layout-start" | "layout-tick" | "layout-stop"): void;
|
|
144
145
|
}
|
|
145
|
-
export interface GraphT<SG extends
|
|
146
|
+
export interface GraphT<SG extends SubgraphBaseProps = any, V extends VertexBaseProps = any, E extends EdgeBaseProps<V> = any> {
|
|
146
147
|
allowDragging(): boolean;
|
|
147
148
|
allowDragging(_: boolean): this;
|
|
148
149
|
dragSingleNeighbors(): boolean;
|
|
@@ -3,7 +3,7 @@ export interface BaseProps {
|
|
|
3
3
|
id: string | number;
|
|
4
4
|
origData?: any;
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
6
|
+
export interface VertexBaseProps extends BaseProps {
|
|
7
7
|
text: string;
|
|
8
8
|
categoryID?: string;
|
|
9
9
|
centroid?: boolean;
|
|
@@ -11,7 +11,7 @@ export interface VertexProps extends BaseProps {
|
|
|
11
11
|
tooltip?: string;
|
|
12
12
|
annotationIDs?: string[];
|
|
13
13
|
}
|
|
14
|
-
export interface
|
|
14
|
+
export interface SubgraphBaseProps extends BaseProps {
|
|
15
15
|
text: string;
|
|
16
16
|
width?: number;
|
|
17
17
|
height?: number;
|
|
@@ -20,36 +20,36 @@ export declare type Point = [
|
|
|
20
20
|
number,
|
|
21
21
|
number
|
|
22
22
|
];
|
|
23
|
-
export interface
|
|
24
|
-
source:
|
|
25
|
-
target:
|
|
23
|
+
export interface EdgeBaseProps<V extends VertexBaseProps = VertexBaseProps> extends BaseProps {
|
|
24
|
+
source: V;
|
|
25
|
+
target: V;
|
|
26
26
|
label?: string;
|
|
27
27
|
labelPos?: Point;
|
|
28
28
|
weight?: number;
|
|
29
29
|
strokeDasharray?: string;
|
|
30
30
|
strokeWidth?: number;
|
|
31
|
-
|
|
31
|
+
stroke?: string;
|
|
32
32
|
fontFamily?: string;
|
|
33
33
|
}
|
|
34
|
-
export interface HierarchyBase<SG extends
|
|
34
|
+
export interface HierarchyBase<SG extends SubgraphBaseProps, V extends VertexBaseProps> {
|
|
35
35
|
id: string | number;
|
|
36
36
|
parent: SG;
|
|
37
37
|
child: SG | V;
|
|
38
38
|
}
|
|
39
|
-
export interface
|
|
39
|
+
export interface GraphDataProps<SG extends SubgraphBaseProps, V extends VertexBaseProps, E extends EdgeBaseProps<V>> {
|
|
40
40
|
subgraphs?: SG[];
|
|
41
41
|
vertices: V[];
|
|
42
42
|
edges: E[];
|
|
43
43
|
hierarchy?: HierarchyBase<SG, V>[];
|
|
44
44
|
}
|
|
45
|
-
export interface SubgraphPlaceholder<SG extends
|
|
45
|
+
export interface SubgraphPlaceholder<SG extends SubgraphBaseProps = SubgraphBaseProps> {
|
|
46
46
|
id: string | number;
|
|
47
47
|
element?: Selection<SVGGElement, SubgraphPlaceholder<SG>, SVGGElement, any>;
|
|
48
48
|
props: SG;
|
|
49
49
|
x?: number;
|
|
50
50
|
y?: number;
|
|
51
51
|
}
|
|
52
|
-
export interface VertexPlaceholder<V extends
|
|
52
|
+
export interface VertexPlaceholder<V extends VertexBaseProps = VertexBaseProps> {
|
|
53
53
|
id: string | number;
|
|
54
54
|
element?: Selection<SVGGElement, VertexPlaceholder<V>, SVGGElement, any>;
|
|
55
55
|
props: V;
|
|
@@ -65,11 +65,11 @@ export interface VertexPlaceholder<V extends VertexProps = VertexProps> {
|
|
|
65
65
|
lat?: number;
|
|
66
66
|
lng?: number;
|
|
67
67
|
}
|
|
68
|
-
export interface EdgePlaceholder<
|
|
68
|
+
export interface EdgePlaceholder<V extends VertexBaseProps = VertexBaseProps, E extends EdgeBaseProps<V> = EdgeBaseProps<V>> {
|
|
69
69
|
id: string | number;
|
|
70
|
-
element?: Selection<SVGGElement, EdgePlaceholder<
|
|
71
|
-
elementPath?: Selection<SVGPathElement, EdgePlaceholder<
|
|
72
|
-
elementText?: Selection<SVGTextElement, EdgePlaceholder<
|
|
70
|
+
element?: Selection<SVGGElement, EdgePlaceholder<V, E>, SVGGElement, any>;
|
|
71
|
+
elementPath?: Selection<SVGPathElement, EdgePlaceholder<V, E>, SVGGElement, any>;
|
|
72
|
+
elementText?: Selection<SVGTextElement, EdgePlaceholder<V, E>, SVGGElement, any>;
|
|
73
73
|
props: E;
|
|
74
74
|
source: VertexPlaceholder<V>;
|
|
75
75
|
target: VertexPlaceholder<V>;
|
|
@@ -79,5 +79,5 @@ export interface EdgePlaceholder<E extends EdgeProps = EdgeProps, V extends Vert
|
|
|
79
79
|
number
|
|
80
80
|
]>;
|
|
81
81
|
}
|
|
82
|
-
export declare function isEdgePlaceholder<
|
|
82
|
+
export declare function isEdgePlaceholder<V extends VertexBaseProps = VertexBaseProps, E extends EdgeBaseProps<V> = EdgeBaseProps<V>>(item: any): item is EdgePlaceholder<V, E>;
|
|
83
83
|
//# sourceMappingURL=placeholders.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { publish, SVGWidget } from "@hpcc-js/common";
|
|
2
2
|
import { AnnotationColumn } from "./dataGraph";
|
|
3
3
|
import "../../src/graph2/sankeyGraph.css";
|
|
4
|
-
import {
|
|
4
|
+
import { EdgeBaseProps, VertexBaseProps } from "./graphT";
|
|
5
5
|
export declare class SankeyGraph extends SVGWidget {
|
|
6
6
|
vertexColumns: publish<this, string[]>;
|
|
7
7
|
vertices: publish<this, Array<Array<string | number | boolean>>>;
|
|
@@ -29,12 +29,12 @@ export declare class SankeyGraph extends SVGWidget {
|
|
|
29
29
|
private _masterVerticesMap;
|
|
30
30
|
mergeVertices(): void;
|
|
31
31
|
indexOf(columns: readonly string[], column: string, defColumn?: string): number;
|
|
32
|
-
protected _prevEdges: readonly
|
|
33
|
-
protected _masterEdges:
|
|
32
|
+
protected _prevEdges: readonly EdgeBaseProps[];
|
|
33
|
+
protected _masterEdges: EdgeBaseProps[];
|
|
34
34
|
mergeEdges(): void;
|
|
35
35
|
sankeyData(): {
|
|
36
|
-
vertices:
|
|
37
|
-
edges:
|
|
36
|
+
vertices: VertexBaseProps[];
|
|
37
|
+
edges: EdgeBaseProps<VertexBaseProps>[];
|
|
38
38
|
};
|
|
39
39
|
enter(domNode: any, element: any): void;
|
|
40
40
|
update(domNode: any, element: any): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { React } from "@hpcc-js/react";
|
|
2
|
-
import {
|
|
3
|
-
export interface BasicSubgraphProps extends
|
|
2
|
+
import { SubgraphBaseProps } from "./layouts/placeholders";
|
|
3
|
+
export interface BasicSubgraphProps extends SubgraphBaseProps {
|
|
4
4
|
label?: string;
|
|
5
5
|
labelFill?: string;
|
|
6
6
|
labelHeight?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { React } from "@hpcc-js/react";
|
|
2
|
-
import {
|
|
3
|
-
export interface BasicVertexProps extends
|
|
2
|
+
import { VertexBaseProps } from "./layouts/placeholders";
|
|
3
|
+
export interface BasicVertexProps extends VertexBaseProps {
|
|
4
4
|
textFill?: string;
|
|
5
5
|
textHeight?: number;
|
|
6
6
|
scale?: number;
|
package/dist/graphvizlib.wasm
DELETED
|
Binary file
|
package/src/graph2/edge.tsx
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// , Shape, Text,
|
|
2
|
-
import { React, Text } from "@hpcc-js/react";
|
|
3
|
-
import { EdgeProps as EdgeProps } from "./layouts/placeholders";
|
|
4
|
-
|
|
5
|
-
export interface BasicEdgeProps extends EdgeProps {
|
|
6
|
-
labelFill?: string;
|
|
7
|
-
labelHeight?: number,
|
|
8
|
-
path?: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const BasicEdge: React.FunctionComponent<BasicEdgeProps> = ({
|
|
12
|
-
label,
|
|
13
|
-
labelPos,
|
|
14
|
-
labelFill = "black",
|
|
15
|
-
labelHeight = 12,
|
|
16
|
-
path,
|
|
17
|
-
color,
|
|
18
|
-
strokeWidth,
|
|
19
|
-
strokeDasharray
|
|
20
|
-
}) => {
|
|
21
|
-
return <>
|
|
22
|
-
<path d={path} stroke={color} style={{ strokeWidth, strokeDasharray }}></path>
|
|
23
|
-
{
|
|
24
|
-
label && labelPos && labelPos.length === 2 ?
|
|
25
|
-
<g transform={`translate(${labelPos[0]} ${labelPos[1]})`}>
|
|
26
|
-
<Text text={label} fill={labelFill} height={labelHeight} />
|
|
27
|
-
</g> : undefined
|
|
28
|
-
}
|
|
29
|
-
</>;
|
|
30
|
-
};
|
package/types/graph2/edge.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { React } from "@hpcc-js/react";
|
|
2
|
-
import { EdgeProps as EdgeProps } from "./layouts/placeholders";
|
|
3
|
-
export interface BasicEdgeProps extends EdgeProps {
|
|
4
|
-
labelFill?: string;
|
|
5
|
-
labelHeight?: number;
|
|
6
|
-
path?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const BasicEdge: React.FunctionComponent<BasicEdgeProps>;
|
|
9
|
-
//# sourceMappingURL=edge.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"edge.d.ts","sourceRoot":"","sources":["../../src/graph2/edge.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAQ,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEhE,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAmB7D,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { React } from "@hpcc-js/react";
|
|
2
|
-
import { EdgeProps as EdgeProps } from "./layouts/placeholders";
|
|
3
|
-
export interface BasicEdgeProps extends EdgeProps {
|
|
4
|
-
labelFill?: string;
|
|
5
|
-
labelHeight?: number;
|
|
6
|
-
path?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const BasicEdge: React.FunctionComponent<BasicEdgeProps>;
|
|
9
|
-
//# sourceMappingURL=edge.d.ts.map
|