@hpcc-js/graph 2.84.3 → 2.85.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/dist/index.es6.js +44 -40
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +42 -39
- 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 +9 -9
- package/src/__package__.ts +2 -2
- package/src/__tests__/index.ts +1 -1
- 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 +23 -23
- package/src/graph2/index.ts +0 -1
- package/src/graph2/layouts/graphviz.ts +33 -25
- 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/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 +10 -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 +17 -0
- 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/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 +10 -10
- package/types-3.4/graph2/index.d.ts +0 -1
- package/types-3.4/graph2/layouts/graphvizWorker.d.ts +17 -0
- 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/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,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/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
|