@hpcc-js/react 3.1.0 → 3.2.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.js +1689 -2
- package/dist/index.js.map +1 -7
- package/dist/index.umd.cjs +3 -0
- package/dist/index.umd.cjs.map +1 -0
- package/package.json +13 -15
- package/src/ImageChar.tsx +3 -2
- package/src/__package__.ts +2 -2
- package/src/edge.tsx +2 -2
- package/src/icon.tsx +3 -3
- package/src/image.tsx +3 -3
- package/src/index.ts +1 -4
- package/src/preact-shim.ts +4 -0
- package/src/render.ts +11 -35
- package/src/shape.tsx +5 -5
- package/src/span.tsx +2 -2
- package/src/subgraph.tsx +2 -2
- package/src/text.tsx +28 -27
- package/src/vertex.tsx +10 -9
- package/src/vertex2.tsx +5 -4
- package/src/vertex3.tsx +5 -4
- package/src/vertex4.tsx +5 -4
- package/types/ImageChar.d.ts +2 -2
- package/types/__package__.d.ts +2 -2
- package/types/edge.d.ts +2 -2
- package/types/icon.d.ts +3 -3
- package/types/image.d.ts +2 -2
- package/types/index.d.ts +1 -2
- package/types/preact-shim.d.ts +4 -0
- package/types/render.d.ts +7 -14
- package/types/shape.d.ts +5 -5
- package/types/span.d.ts +2 -2
- package/types/subgraph.d.ts +2 -2
- package/types/text.d.ts +6 -6
- package/types/vertex.d.ts +3 -3
- package/types/vertex2.d.ts +2 -2
- package/types/vertex3.d.ts +3 -3
- package/types/vertex4.d.ts +3 -3
package/types/text.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FunctionComponent } from "preact";
|
|
2
2
|
export interface TextLineProps {
|
|
3
3
|
text: string;
|
|
4
4
|
height?: number;
|
|
@@ -7,7 +7,7 @@ export interface TextLineProps {
|
|
|
7
7
|
fontFamily?: string;
|
|
8
8
|
fill?: string;
|
|
9
9
|
}
|
|
10
|
-
export declare const TextLine:
|
|
10
|
+
export declare const TextLine: FunctionComponent<TextLineProps>;
|
|
11
11
|
export interface TextProps {
|
|
12
12
|
text: string;
|
|
13
13
|
height?: number;
|
|
@@ -18,7 +18,7 @@ export interface TextProps {
|
|
|
18
18
|
height: number;
|
|
19
19
|
}) => void;
|
|
20
20
|
}
|
|
21
|
-
export declare const Text:
|
|
21
|
+
export declare const Text: FunctionComponent<TextProps>;
|
|
22
22
|
export interface TextBoxProps {
|
|
23
23
|
text: string;
|
|
24
24
|
height?: number;
|
|
@@ -35,15 +35,15 @@ export interface TextBoxProps {
|
|
|
35
35
|
height: number;
|
|
36
36
|
}) => void;
|
|
37
37
|
}
|
|
38
|
-
export declare const TextBox:
|
|
38
|
+
export declare const TextBox: FunctionComponent<TextBoxProps>;
|
|
39
39
|
export interface LabelledRect extends TextBoxProps {
|
|
40
40
|
width?: number;
|
|
41
41
|
fontSize?: number;
|
|
42
42
|
}
|
|
43
|
-
export declare const LabelledRect:
|
|
43
|
+
export declare const LabelledRect: FunctionComponent<LabelledRect>;
|
|
44
44
|
export interface IconLabelledRect extends LabelledRect {
|
|
45
45
|
icon: string;
|
|
46
46
|
iconFontFamily?: string;
|
|
47
47
|
iconFontSize?: number;
|
|
48
48
|
}
|
|
49
|
-
export declare const IconLabelledRect:
|
|
49
|
+
export declare const IconLabelledRect: FunctionComponent<IconLabelledRect>;
|
package/types/vertex.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FunctionComponent } from "preact";
|
|
2
2
|
import { IconProps } from "./icon.tsx";
|
|
3
3
|
export interface AnnotationsProps {
|
|
4
4
|
x: number;
|
|
@@ -6,7 +6,7 @@ export interface AnnotationsProps {
|
|
|
6
6
|
annotationIDs: string[];
|
|
7
7
|
stepSize?: number;
|
|
8
8
|
}
|
|
9
|
-
export declare const Annotations:
|
|
9
|
+
export declare const Annotations: FunctionComponent<AnnotationsProps>;
|
|
10
10
|
export interface VertexProps {
|
|
11
11
|
id: string | number;
|
|
12
12
|
origData?: any;
|
|
@@ -29,4 +29,4 @@ export interface VertexProps {
|
|
|
29
29
|
showLabel?: boolean;
|
|
30
30
|
scale?: number;
|
|
31
31
|
}
|
|
32
|
-
export declare const Vertex:
|
|
32
|
+
export declare const Vertex: FunctionComponent<VertexProps>;
|
package/types/vertex2.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FunctionComponent } from "preact";
|
|
2
2
|
import { VertexProps } from "./vertex.tsx";
|
|
3
|
-
export declare const Vertex2:
|
|
3
|
+
export declare const Vertex2: FunctionComponent<VertexProps>;
|
package/types/vertex3.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FunctionComponent } from "preact";
|
|
2
2
|
import { IconProps } from "./icon.tsx";
|
|
3
3
|
import { TextBoxProps } from "./text.tsx";
|
|
4
4
|
import { VertexProps } from "./vertex.tsx";
|
|
@@ -29,5 +29,5 @@ export interface Vertex3Props extends VertexProps {
|
|
|
29
29
|
expansionIcon?: IconProps;
|
|
30
30
|
scale?: number;
|
|
31
31
|
}
|
|
32
|
-
export declare const Vertex3:
|
|
33
|
-
export declare const CentroidVertex3:
|
|
32
|
+
export declare const Vertex3: FunctionComponent<Vertex3Props>;
|
|
33
|
+
export declare const CentroidVertex3: FunctionComponent<Vertex3Props>;
|
package/types/vertex4.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FunctionComponent } from "preact";
|
|
2
2
|
import { IconProps } from "./icon.tsx";
|
|
3
3
|
import { VertexProps } from "./vertex.tsx";
|
|
4
4
|
export interface IVertex4Annotation extends IconProps {
|
|
@@ -27,5 +27,5 @@ export interface IVertex4 extends VertexProps {
|
|
|
27
27
|
iconText?: string;
|
|
28
28
|
shapeRendering?: "auto" | "optimizeSpeed" | "crispEdges" | "geometricPrecision";
|
|
29
29
|
}
|
|
30
|
-
export declare const Vertex4:
|
|
31
|
-
export declare const CentroidVertex4:
|
|
30
|
+
export declare const Vertex4: FunctionComponent<IVertex4>;
|
|
31
|
+
export declare const CentroidVertex4: FunctionComponent<IVertex4>;
|