@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.
Files changed (58) hide show
  1. package/dist/index.es6.js +44 -40
  2. package/dist/index.es6.js.map +1 -1
  3. package/dist/index.js +42 -39
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/package.json +9 -9
  8. package/src/__package__.ts +2 -2
  9. package/src/__tests__/index.ts +1 -1
  10. package/src/graph2/dataGraph.ts +9 -7
  11. package/src/graph2/graph.ts +12 -4
  12. package/src/graph2/graphReactT.ts +3 -3
  13. package/src/graph2/graphT.ts +23 -23
  14. package/src/graph2/index.ts +0 -1
  15. package/src/graph2/layouts/graphviz.ts +33 -25
  16. package/src/graph2/layouts/placeholders.ts +15 -15
  17. package/src/graph2/sankeyGraph.ts +8 -8
  18. package/src/graph2/subgraph.tsx +2 -2
  19. package/src/graph2/vertex.tsx +2 -2
  20. package/types/__package__.d.ts +2 -2
  21. package/types/__tests__/index.d.ts +1 -1
  22. package/types/graph2/dataGraph.d.ts +4 -3
  23. package/types/graph2/dataGraph.d.ts.map +1 -1
  24. package/types/graph2/graph.d.ts +8 -3
  25. package/types/graph2/graph.d.ts.map +1 -1
  26. package/types/graph2/graphReactT.d.ts +3 -3
  27. package/types/graph2/graphReactT.d.ts.map +1 -1
  28. package/types/graph2/graphT.d.ts +10 -10
  29. package/types/graph2/graphT.d.ts.map +1 -1
  30. package/types/graph2/index.d.ts +0 -1
  31. package/types/graph2/index.d.ts.map +1 -1
  32. package/types/graph2/layouts/graphviz.d.ts.map +1 -1
  33. package/types/graph2/layouts/graphvizWorker.d.ts +17 -0
  34. package/types/graph2/layouts/graphvizWorker.d.ts.map +1 -1
  35. package/types/graph2/layouts/placeholders.d.ts +15 -15
  36. package/types/graph2/layouts/placeholders.d.ts.map +1 -1
  37. package/types/graph2/sankeyGraph.d.ts +5 -5
  38. package/types/graph2/sankeyGraph.d.ts.map +1 -1
  39. package/types/graph2/subgraph.d.ts +2 -2
  40. package/types/graph2/subgraph.d.ts.map +1 -1
  41. package/types/graph2/vertex.d.ts +2 -2
  42. package/types/graph2/vertex.d.ts.map +1 -1
  43. package/types-3.4/__package__.d.ts +2 -2
  44. package/types-3.4/__tests__/index.d.ts +1 -1
  45. package/types-3.4/graph2/dataGraph.d.ts +4 -3
  46. package/types-3.4/graph2/graph.d.ts +8 -3
  47. package/types-3.4/graph2/graphReactT.d.ts +3 -3
  48. package/types-3.4/graph2/graphT.d.ts +10 -10
  49. package/types-3.4/graph2/index.d.ts +0 -1
  50. package/types-3.4/graph2/layouts/graphvizWorker.d.ts +17 -0
  51. package/types-3.4/graph2/layouts/placeholders.d.ts +15 -15
  52. package/types-3.4/graph2/sankeyGraph.d.ts +5 -5
  53. package/types-3.4/graph2/subgraph.d.ts +2 -2
  54. package/types-3.4/graph2/vertex.d.ts +2 -2
  55. package/src/graph2/edge.tsx +0 -30
  56. package/types/graph2/edge.d.ts +0 -9
  57. package/types/graph2/edge.d.ts.map +0 -1
  58. 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 { EdgeProps, VertexProps } from "./graphT";
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 EdgeProps[];
33
- protected _masterEdges: EdgeProps[];
32
+ protected _prevEdges: readonly EdgeBaseProps[];
33
+ protected _masterEdges: EdgeBaseProps[];
34
34
  mergeEdges(): void;
35
35
  sankeyData(): {
36
- vertices: VertexProps[];
37
- edges: EdgeProps[];
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 { SubgraphProps } from "./layouts/placeholders";
3
- export interface BasicSubgraphProps extends SubgraphProps {
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 { VertexProps } from "./layouts/placeholders";
3
- export interface BasicVertexProps extends VertexProps {
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,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
- };
@@ -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