@hpcc-js/react 2.50.0 → 2.52.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 +234 -117
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +235 -116
- 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 +7 -7
- package/src/ImageChar.tsx +9 -2
- package/src/__package__.ts +2 -2
- package/src/edge.tsx +4 -1
- package/src/icon.tsx +7 -1
- package/src/index.ts +1 -0
- package/src/shape.tsx +13 -1
- package/src/text.tsx +37 -29
- package/src/vertex.tsx +9 -7
- package/src/vertex2.tsx +3 -1
- package/src/vertex3.tsx +38 -20
- package/src/vertex4.tsx +307 -0
- package/types/ImageChar.d.ts.map +1 -1
- package/types/__package__.d.ts +2 -2
- package/types/edge.d.ts.map +1 -1
- package/types/icon.d.ts +3 -1
- package/types/icon.d.ts.map +1 -1
- package/types/index.d.ts +1 -0
- package/types/index.d.ts.map +1 -1
- package/types/shape.d.ts +2 -1
- package/types/shape.d.ts.map +1 -1
- package/types/text.d.ts.map +1 -1
- package/types/vertex.d.ts.map +1 -1
- package/types/vertex2.d.ts.map +1 -1
- package/types/vertex3.d.ts +1 -0
- package/types/vertex3.d.ts.map +1 -1
- package/types/vertex4.d.ts +32 -0
- package/types/vertex4.d.ts.map +1 -0
- package/types-3.4/__package__.d.ts +2 -2
- package/types-3.4/icon.d.ts +3 -1
- package/types-3.4/index.d.ts +1 -0
- package/types-3.4/shape.d.ts +2 -1
- package/types-3.4/vertex3.d.ts +1 -0
- package/types-3.4/vertex4.d.ts +32 -0
package/src/vertex4.tsx
ADDED
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
/* eslint-disable no-debugger, no-console */
|
|
2
|
+
import { Utility } from "@hpcc-js/common";
|
|
3
|
+
import * as React from "@hpcc-js/preact-shim";
|
|
4
|
+
import { Icon } from "./icon";
|
|
5
|
+
import { TextBox } from "./text";
|
|
6
|
+
import { Vertex } from "./vertex";
|
|
7
|
+
|
|
8
|
+
export interface IVertex4Annotation extends Icon {
|
|
9
|
+
shapeOffsetX?: number;
|
|
10
|
+
shapeOffsetY?: number;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface IVertex4 extends Vertex {
|
|
14
|
+
textboxStrokeWidth?: number;
|
|
15
|
+
annotations?: IVertex4Annotation[];
|
|
16
|
+
iconAnnotations?: IVertex4Annotation[];
|
|
17
|
+
annotationGutter?: number;
|
|
18
|
+
cornerRadius?: number;
|
|
19
|
+
subText?: any;
|
|
20
|
+
noLabelRadius?: number;
|
|
21
|
+
iconBorderWidth?: number;
|
|
22
|
+
iconBorderColor?: string;
|
|
23
|
+
iconBackgroundColor?: string;
|
|
24
|
+
shapeOffsetX?: number;
|
|
25
|
+
shapeOffsetY?: number;
|
|
26
|
+
iconOffsetX?: number;
|
|
27
|
+
iconOffsetY?: number;
|
|
28
|
+
iconPadding?: number;
|
|
29
|
+
iconFontSize?: number;
|
|
30
|
+
iconFontColor?: string;
|
|
31
|
+
iconFontFamily?: string;
|
|
32
|
+
iconText?: string;
|
|
33
|
+
shapeRendering?: "auto" | "optimizeSpeed" | "crispEdges" | "geometricPrecision";
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export const Vertex4: React.FunctionComponent<IVertex4> = ({
|
|
37
|
+
categoryID = "",
|
|
38
|
+
text = "",
|
|
39
|
+
textHeight = 10,
|
|
40
|
+
textPadding = 4,
|
|
41
|
+
textFill = "#287EC4",
|
|
42
|
+
textboxFill = "white",
|
|
43
|
+
textboxStroke = "#CCCCCC",
|
|
44
|
+
textboxStrokeWidth = 1,
|
|
45
|
+
textFontFamily = "Verdana",
|
|
46
|
+
annotationGutter = 2,
|
|
47
|
+
annotations = [],
|
|
48
|
+
iconAnnotations = [],
|
|
49
|
+
cornerRadius = 3,
|
|
50
|
+
icon = {},
|
|
51
|
+
subText = {},
|
|
52
|
+
showLabel = true,
|
|
53
|
+
noLabelRadius = 5,
|
|
54
|
+
|
|
55
|
+
iconBorderWidth = 1,
|
|
56
|
+
iconBorderColor = "#333",
|
|
57
|
+
|
|
58
|
+
iconBackgroundColor = "#fff",
|
|
59
|
+
|
|
60
|
+
iconFontColor = "#000",
|
|
61
|
+
iconFontSize = 20,
|
|
62
|
+
iconFontFamily = "FontAwesome",
|
|
63
|
+
|
|
64
|
+
shapeOffsetX = 0,
|
|
65
|
+
shapeOffsetY = 0,
|
|
66
|
+
iconOffsetX = 0,
|
|
67
|
+
iconOffsetY = 0,
|
|
68
|
+
|
|
69
|
+
iconPadding = 4,
|
|
70
|
+
iconText = "?",
|
|
71
|
+
shapeRendering = "auto"
|
|
72
|
+
}) => {
|
|
73
|
+
icon = {
|
|
74
|
+
height: 50,
|
|
75
|
+
imageChar: "?",
|
|
76
|
+
imageFontFamily: "FontAwesome",
|
|
77
|
+
imageCharFill: "#555555",
|
|
78
|
+
fill: "transparent",
|
|
79
|
+
strokeWidth: 0,
|
|
80
|
+
...icon
|
|
81
|
+
};
|
|
82
|
+
subText = {
|
|
83
|
+
text: "",
|
|
84
|
+
fill: "white",
|
|
85
|
+
textFill: "#555555",
|
|
86
|
+
...subText
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
const annoOffsetY = 0;
|
|
90
|
+
const labelWidth = React.useMemo(() => {
|
|
91
|
+
return Utility.textSize(text, textFontFamily, textHeight, false).width;
|
|
92
|
+
}, [text, textFontFamily, textHeight]);
|
|
93
|
+
|
|
94
|
+
let labelShapeWidth = 0;
|
|
95
|
+
if (text !== "") {
|
|
96
|
+
labelShapeWidth = labelWidth + (textPadding * 2) + (textboxStrokeWidth * 2);
|
|
97
|
+
}
|
|
98
|
+
let fullAnnotationWidth = labelShapeWidth + annotationGutter;
|
|
99
|
+
const textOffsetX = fullAnnotationWidth - (labelShapeWidth / 2);
|
|
100
|
+
|
|
101
|
+
const textShapeHeight = textHeight + (annotationGutter * 2) + (textboxStrokeWidth * 2);
|
|
102
|
+
const annoWidthArr = annotations.map((anno, i) => {
|
|
103
|
+
return Utility.textSize(anno.imageChar, anno.imageFontFamily, anno.height, false).width;
|
|
104
|
+
});
|
|
105
|
+
const annotationArr = [];
|
|
106
|
+
let _labelAnnoOffsetX = fullAnnotationWidth;
|
|
107
|
+
annotations.forEach((anno, i) => {
|
|
108
|
+
const annoText = anno.imageChar;
|
|
109
|
+
const annoTextHeight = anno.height ?? textShapeHeight;
|
|
110
|
+
_labelAnnoOffsetX += annoWidthArr[i] + annotationGutter;
|
|
111
|
+
const annoOffsetX = _labelAnnoOffsetX - (annoWidthArr[i] / 2);
|
|
112
|
+
annotationArr.push(
|
|
113
|
+
<g key={i} class="vertex3-anno" data-click={"annotation"} data-click-data={JSON.stringify(anno)} transform={`translate(${annoOffsetX} ${annoOffsetY})`}>
|
|
114
|
+
<Icon
|
|
115
|
+
{...anno}
|
|
116
|
+
shape="rectangle"
|
|
117
|
+
width={annoWidthArr[i]}
|
|
118
|
+
height={annoTextHeight}
|
|
119
|
+
imageChar={annoText}
|
|
120
|
+
imageFontFamily={anno.imageFontFamily}
|
|
121
|
+
cornerRadius={cornerRadius}
|
|
122
|
+
strokeWidth={0}
|
|
123
|
+
/>
|
|
124
|
+
</g>
|
|
125
|
+
);
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
if (annotations.length > 0) {
|
|
129
|
+
fullAnnotationWidth += annotationGutter * (annotations.length - 1);
|
|
130
|
+
}
|
|
131
|
+
const iconAnnotationArr = [];
|
|
132
|
+
iconAnnotations.forEach((anno, i) => {
|
|
133
|
+
const x = anno.shapeOffsetX;
|
|
134
|
+
const y = anno.shapeOffsetY;
|
|
135
|
+
iconAnnotationArr.push(
|
|
136
|
+
<g key={i} class="vertex3-iconAnno" data-click={"icon-annotation"} data-click-data={JSON.stringify(anno)} transform={`translate(${x} ${y})`}>
|
|
137
|
+
<Icon
|
|
138
|
+
{...anno}
|
|
139
|
+
shape={anno.shape ?? "square"}
|
|
140
|
+
imageChar={anno.imageChar}
|
|
141
|
+
imageFontFamily={anno.imageFontFamily}
|
|
142
|
+
cornerRadius={cornerRadius}
|
|
143
|
+
stroke={anno.stroke}
|
|
144
|
+
strokeWidth={anno.strokeWidth}
|
|
145
|
+
/>
|
|
146
|
+
</g>
|
|
147
|
+
);
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
const textElement = <g data-click={"text"} transform={`translate(${textOffsetX} ${annoOffsetY})`}>
|
|
151
|
+
{!showLabel || text === "" ? <circle r={noLabelRadius} stroke={textboxStroke} fill={textFill} /> : <TextBox
|
|
152
|
+
text={text}
|
|
153
|
+
height={textHeight}
|
|
154
|
+
padding={textPadding}
|
|
155
|
+
strokeWidth={textboxStrokeWidth}
|
|
156
|
+
stroke={textboxStroke}
|
|
157
|
+
fill={textboxFill}
|
|
158
|
+
textFill={textFill}
|
|
159
|
+
fontFamily={textFontFamily}
|
|
160
|
+
cornerRadius={cornerRadius}
|
|
161
|
+
/>}
|
|
162
|
+
</g>;
|
|
163
|
+
|
|
164
|
+
const subTextOffsetX = 0;
|
|
165
|
+
const subTextOffsetY = textShapeHeight + (annotationGutter * 2);
|
|
166
|
+
|
|
167
|
+
const subtextElement = subText.text === "" ? null : <g data-click={"subtext"}
|
|
168
|
+
transform={`translate(${subTextOffsetX} ${subTextOffsetY})`}
|
|
169
|
+
>
|
|
170
|
+
<TextBox
|
|
171
|
+
fill={subText.fill || "#FFFFFF"}
|
|
172
|
+
textFill={subText.textFill || textFill}
|
|
173
|
+
{...subText}
|
|
174
|
+
height={textHeight}
|
|
175
|
+
padding={textPadding}
|
|
176
|
+
strokeWidth={0}
|
|
177
|
+
stroke={textboxStroke}
|
|
178
|
+
fontFamily={textFontFamily}
|
|
179
|
+
cornerRadius={cornerRadius}
|
|
180
|
+
/>
|
|
181
|
+
</g>;
|
|
182
|
+
return <g>
|
|
183
|
+
<g data-click={"icon"}
|
|
184
|
+
transform={`translate(${shapeOffsetX} ${shapeOffsetY})`}
|
|
185
|
+
>
|
|
186
|
+
<Icon
|
|
187
|
+
{...icon}
|
|
188
|
+
strokeWidth={iconBorderWidth}
|
|
189
|
+
shape="circle"
|
|
190
|
+
height={iconFontSize}
|
|
191
|
+
fill={iconBackgroundColor}
|
|
192
|
+
stroke={iconBorderColor}
|
|
193
|
+
imageFontFamily={iconFontFamily}
|
|
194
|
+
imageChar={iconText}
|
|
195
|
+
imageCharFill={iconFontColor}
|
|
196
|
+
padding={iconPadding}
|
|
197
|
+
xOffset={iconOffsetX}
|
|
198
|
+
yOffset={iconOffsetY}
|
|
199
|
+
cornerRadius={cornerRadius}
|
|
200
|
+
shapeRendering={shapeRendering}
|
|
201
|
+
/>
|
|
202
|
+
{iconAnnotationArr}
|
|
203
|
+
</g>
|
|
204
|
+
<g
|
|
205
|
+
transform={`translate(${-fullAnnotationWidth / 2} ${annoOffsetY})`}
|
|
206
|
+
>
|
|
207
|
+
{textElement}
|
|
208
|
+
{annotationArr}
|
|
209
|
+
</g>
|
|
210
|
+
{subtextElement}
|
|
211
|
+
</g>
|
|
212
|
+
;
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
export const CentroidVertex4: React.FunctionComponent<IVertex4> = function ({
|
|
216
|
+
categoryID = "",
|
|
217
|
+
text = "",
|
|
218
|
+
textHeight = 12,
|
|
219
|
+
textPadding = 10,
|
|
220
|
+
textFill = "#287EC4",
|
|
221
|
+
textboxFill = "white",
|
|
222
|
+
textboxStroke = "#CCCCCC",
|
|
223
|
+
textboxStrokeWidth = 1,
|
|
224
|
+
textFontFamily = "Verdana",
|
|
225
|
+
annotationGutter = 2,
|
|
226
|
+
annotations = [],
|
|
227
|
+
iconAnnotations = [],
|
|
228
|
+
cornerRadius,
|
|
229
|
+
icon = {},
|
|
230
|
+
subText = {},
|
|
231
|
+
showLabel = true,
|
|
232
|
+
noLabelRadius = 5,
|
|
233
|
+
|
|
234
|
+
iconBorderWidth = 1,
|
|
235
|
+
iconBorderColor = "#333",
|
|
236
|
+
|
|
237
|
+
iconBackgroundColor = "#fff",
|
|
238
|
+
|
|
239
|
+
iconFontColor = "#000",
|
|
240
|
+
iconFontSize = 20,
|
|
241
|
+
iconFontFamily = "FontAwesome",
|
|
242
|
+
|
|
243
|
+
shapeOffsetX = 0,
|
|
244
|
+
shapeOffsetY = 0,
|
|
245
|
+
iconOffsetX = 0,
|
|
246
|
+
iconOffsetY = 0,
|
|
247
|
+
|
|
248
|
+
iconPadding = 4,
|
|
249
|
+
iconText = "?",
|
|
250
|
+
shapeRendering = "auto"
|
|
251
|
+
}) {
|
|
252
|
+
icon = {
|
|
253
|
+
height: 91,
|
|
254
|
+
padding: 40,
|
|
255
|
+
imageCharFill: "#555555",
|
|
256
|
+
imageFontFamily: "FontAwesome",
|
|
257
|
+
fill: "#FFCC33",
|
|
258
|
+
stroke: "#DFDFDF",
|
|
259
|
+
imageChar: "?",
|
|
260
|
+
strokeWidth: 4,
|
|
261
|
+
yOffset: -15,
|
|
262
|
+
...icon
|
|
263
|
+
};
|
|
264
|
+
subText = {
|
|
265
|
+
text: "",
|
|
266
|
+
fill: "transparent",
|
|
267
|
+
textFill: "#555555",
|
|
268
|
+
...subText
|
|
269
|
+
};
|
|
270
|
+
const props = {
|
|
271
|
+
categoryID,
|
|
272
|
+
text,
|
|
273
|
+
textHeight,
|
|
274
|
+
textPadding,
|
|
275
|
+
textFill,
|
|
276
|
+
textboxFill,
|
|
277
|
+
textboxStroke,
|
|
278
|
+
textboxStrokeWidth,
|
|
279
|
+
textFontFamily,
|
|
280
|
+
annotationGutter,
|
|
281
|
+
annotations,
|
|
282
|
+
iconAnnotations,
|
|
283
|
+
cornerRadius,
|
|
284
|
+
icon,
|
|
285
|
+
subText,
|
|
286
|
+
showLabel,
|
|
287
|
+
noLabelRadius,
|
|
288
|
+
iconBorderWidth,
|
|
289
|
+
iconBorderColor,
|
|
290
|
+
iconBackgroundColor,
|
|
291
|
+
iconFontColor,
|
|
292
|
+
iconFontSize,
|
|
293
|
+
iconFontFamily,
|
|
294
|
+
shapeOffsetX,
|
|
295
|
+
shapeOffsetY,
|
|
296
|
+
iconOffsetX,
|
|
297
|
+
iconOffsetY,
|
|
298
|
+
iconPadding,
|
|
299
|
+
iconText,
|
|
300
|
+
shapeRendering
|
|
301
|
+
};
|
|
302
|
+
return <Vertex4
|
|
303
|
+
{...props}
|
|
304
|
+
icon={icon}
|
|
305
|
+
subText={subText}
|
|
306
|
+
/>;
|
|
307
|
+
};
|
package/types/ImageChar.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageChar.d.ts","sourceRoot":"","sources":["../src/ImageChar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAC;AAE9C,UAAU,SAAS;IACf,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"ImageChar.d.ts","sourceRoot":"","sources":["../src/ImageChar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAC;AAE9C,UAAU,SAAS;IACf,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,SAAS,CAwBxD,CAAC"}
|
package/types/__package__.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const PKG_NAME = "@hpcc-js/react";
|
|
2
|
-
export declare const PKG_VERSION = "2.
|
|
3
|
-
export declare const BUILD_VERSION = "2.104.
|
|
2
|
+
export declare const PKG_VERSION = "2.52.0";
|
|
3
|
+
export declare const BUILD_VERSION = "2.104.3";
|
|
4
4
|
//# sourceMappingURL=__package__.d.ts.map
|
package/types/edge.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edge.d.ts","sourceRoot":"","sources":["../src/edge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAC;AAyB9C,MAAM,WAAW,IAAI;IACjB,MAAM,CAAC,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,iBAAiB,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"edge.d.ts","sourceRoot":"","sources":["../src/edge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAC;AAyB9C,MAAM,WAAW,IAAI;IACjB,MAAM,CAAC,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,iBAAiB,CAAC,IAAI,CAU9C,CAAC"}
|
package/types/icon.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from "@hpcc-js/preact-shim";
|
|
2
2
|
export interface Icon {
|
|
3
|
-
shape?: "circle" | "square";
|
|
3
|
+
shape?: "circle" | "square" | "rectangle";
|
|
4
|
+
width?: number;
|
|
4
5
|
height?: number;
|
|
5
6
|
padding?: number;
|
|
6
7
|
fill?: string;
|
|
@@ -9,6 +10,7 @@ export interface Icon {
|
|
|
9
10
|
imageFontFamily?: string;
|
|
10
11
|
imageChar?: string;
|
|
11
12
|
imageCharFill?: string;
|
|
13
|
+
xOffset?: number;
|
|
12
14
|
yOffset?: number;
|
|
13
15
|
cornerRadius?: number;
|
|
14
16
|
shapeRendering?: "auto" | "optimizeSpeed" | "crispEdges" | "geometricPrecision";
|
package/types/icon.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../src/icon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAC;AAI9C,MAAM,WAAW,IAAI;IACjB,KAAK,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../src/icon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAC;AAI9C,MAAM,WAAW,IAAI;IACjB,KAAK,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,WAAW,CAAC;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,GAAG,eAAe,GAAG,YAAY,GAAG,oBAAoB,CAAC;CACnF;AAED,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,iBAAiB,CAAC,IAAI,CAqC9C,CAAC;AAEF,MAAM,WAAW,MAAO,SAAQ,IAAI;IAChC,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,KAAK;IAClB,KAAK,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAchD,CAAC"}
|
package/types/index.d.ts
CHANGED
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAE9B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAE3B,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EACH,KAAK,EACR,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAE9B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAE3B,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EACH,KAAK,EACR,CAAC"}
|
package/types/shape.d.ts
CHANGED
|
@@ -27,8 +27,9 @@ interface Rectangle {
|
|
|
27
27
|
}
|
|
28
28
|
export declare const Rectangle: React.FunctionComponent<Rectangle>;
|
|
29
29
|
interface Shape {
|
|
30
|
-
shape?: "circle" | "square";
|
|
30
|
+
shape?: "circle" | "square" | "rectangle";
|
|
31
31
|
height?: number;
|
|
32
|
+
width?: number;
|
|
32
33
|
fill?: string;
|
|
33
34
|
stroke?: string;
|
|
34
35
|
strokeWidth?: number;
|
package/types/shape.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shape.d.ts","sourceRoot":"","sources":["../src/shape.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAC;AAE9C,UAAU,MAAM;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,GAAG,eAAe,GAAG,YAAY,GAAG,oBAAoB,CAAC;CACnF;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,MAAM,CAY7C,CAAC;AAEP,UAAU,MAAM;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;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ertex.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vertex.d.ts","sourceRoot":"","sources":["../src/vertex.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAG9B,MAAM,WAAW,WAAW;IACxB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAgB5D,CAAC;AAEF,MAAM,WAAW,MAAM;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACjE,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"vertex.d.ts","sourceRoot":"","sources":["../src/vertex.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAC;AAC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C,MAAM,
|
|
1
|
+
{"version":3,"file":"vertex2.d.ts","sourceRoot":"","sources":["../src/vertex2.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAC;AAG9C,OAAO,EAAe,MAAM,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,MAAM,CA6FnD,CAAC"}
|
package/types/vertex3.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export interface IVertex3 extends Vertex {
|
|
|
24
24
|
}) => void;
|
|
25
25
|
showLabel?: boolean;
|
|
26
26
|
noLabelRadius?: number;
|
|
27
|
+
expansionIcon?: Icon;
|
|
27
28
|
}
|
|
28
29
|
export declare const Vertex3: React.FunctionComponent<IVertex3>;
|
|
29
30
|
export declare const CentroidVertex3: React.FunctionComponent<IVertex3>;
|
package/types/vertex3.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vertex3.d.ts","sourceRoot":"","sources":["../src/vertex3.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,WAAW,QAAS,SAAQ,MAAM;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,WAAW,CAAC,EAAE,IAAI,EAAE,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAA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AE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACjE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,IAAI,CAAC;CACxB;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,QAAQ,CA+IrD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC,QAAQ,CAyD7D,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from "@hpcc-js/preact-shim";
|
|
2
|
+
import { Icon } from "./icon";
|
|
3
|
+
import { Vertex } from "./vertex";
|
|
4
|
+
export interface IVertex4Annotation extends Icon {
|
|
5
|
+
shapeOffsetX?: number;
|
|
6
|
+
shapeOffsetY?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface IVertex4 extends Vertex {
|
|
9
|
+
textboxStrokeWidth?: number;
|
|
10
|
+
annotations?: IVertex4Annotation[];
|
|
11
|
+
iconAnnotations?: IVertex4Annotation[];
|
|
12
|
+
annotationGutter?: number;
|
|
13
|
+
cornerRadius?: number;
|
|
14
|
+
subText?: any;
|
|
15
|
+
noLabelRadius?: number;
|
|
16
|
+
iconBorderWidth?: number;
|
|
17
|
+
iconBorderColor?: string;
|
|
18
|
+
iconBackgroundColor?: string;
|
|
19
|
+
shapeOffsetX?: number;
|
|
20
|
+
shapeOffsetY?: number;
|
|
21
|
+
iconOffsetX?: number;
|
|
22
|
+
iconOffsetY?: number;
|
|
23
|
+
iconPadding?: number;
|
|
24
|
+
iconFontSize?: number;
|
|
25
|
+
iconFontColor?: string;
|
|
26
|
+
iconFontFamily?: string;
|
|
27
|
+
iconText?: string;
|
|
28
|
+
shapeRendering?: "auto" | "optimizeSpeed" | "crispEdges" | "geometricPrecision";
|
|
29
|
+
}
|
|
30
|
+
export declare const Vertex4: React.FunctionComponent<IVertex4>;
|
|
31
|
+
export declare const CentroidVertex4: React.FunctionComponent<IVertex4>;
|
|
32
|
+
//# sourceMappingURL=vertex4.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vertex4.d.ts","sourceRoot":"","sources":["../src/vertex4.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,WAAW,kBAAmB,SAAQ,IAAI;IAC5C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,QAAS,SAAQ,MAAM;IACpC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACnC,eAAe,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACvC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,GAAG,eAAe,GAAG,YAAY,GAAG,oBAAoB,CAAC;CACnF;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,QAAQ,CAiLrD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC,QAAQ,CA4F7D,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const PKG_NAME = "@hpcc-js/react";
|
|
2
|
-
export declare const PKG_VERSION = "2.
|
|
3
|
-
export declare const BUILD_VERSION = "2.104.
|
|
2
|
+
export declare const PKG_VERSION = "2.52.0";
|
|
3
|
+
export declare const BUILD_VERSION = "2.104.3";
|
|
4
4
|
//# sourceMappingURL=__package__.d.ts.map
|
package/types-3.4/icon.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from "@hpcc-js/preact-shim";
|
|
2
2
|
export interface Icon {
|
|
3
|
-
shape?: "circle" | "square";
|
|
3
|
+
shape?: "circle" | "square" | "rectangle";
|
|
4
|
+
width?: number;
|
|
4
5
|
height?: number;
|
|
5
6
|
padding?: number;
|
|
6
7
|
fill?: string;
|
|
@@ -9,6 +10,7 @@ export interface Icon {
|
|
|
9
10
|
imageFontFamily?: string;
|
|
10
11
|
imageChar?: string;
|
|
11
12
|
imageCharFill?: string;
|
|
13
|
+
xOffset?: number;
|
|
12
14
|
yOffset?: number;
|
|
13
15
|
cornerRadius?: number;
|
|
14
16
|
shapeRendering?: "auto" | "optimizeSpeed" | "crispEdges" | "geometricPrecision";
|
package/types-3.4/index.d.ts
CHANGED
package/types-3.4/shape.d.ts
CHANGED
|
@@ -27,8 +27,9 @@ interface Rectangle {
|
|
|
27
27
|
}
|
|
28
28
|
export declare const Rectangle: React.FunctionComponent<Rectangle>;
|
|
29
29
|
interface Shape {
|
|
30
|
-
shape?: "circle" | "square";
|
|
30
|
+
shape?: "circle" | "square" | "rectangle";
|
|
31
31
|
height?: number;
|
|
32
|
+
width?: number;
|
|
32
33
|
fill?: string;
|
|
33
34
|
stroke?: string;
|
|
34
35
|
strokeWidth?: number;
|
package/types-3.4/vertex3.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export interface IVertex3 extends Vertex {
|
|
|
24
24
|
}) => void;
|
|
25
25
|
showLabel?: boolean;
|
|
26
26
|
noLabelRadius?: number;
|
|
27
|
+
expansionIcon?: Icon;
|
|
27
28
|
}
|
|
28
29
|
export declare const Vertex3: React.FunctionComponent<IVertex3>;
|
|
29
30
|
export declare const CentroidVertex3: React.FunctionComponent<IVertex3>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from "@hpcc-js/preact-shim";
|
|
2
|
+
import { Icon } from "./icon";
|
|
3
|
+
import { Vertex } from "./vertex";
|
|
4
|
+
export interface IVertex4Annotation extends Icon {
|
|
5
|
+
shapeOffsetX?: number;
|
|
6
|
+
shapeOffsetY?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface IVertex4 extends Vertex {
|
|
9
|
+
textboxStrokeWidth?: number;
|
|
10
|
+
annotations?: IVertex4Annotation[];
|
|
11
|
+
iconAnnotations?: IVertex4Annotation[];
|
|
12
|
+
annotationGutter?: number;
|
|
13
|
+
cornerRadius?: number;
|
|
14
|
+
subText?: any;
|
|
15
|
+
noLabelRadius?: number;
|
|
16
|
+
iconBorderWidth?: number;
|
|
17
|
+
iconBorderColor?: string;
|
|
18
|
+
iconBackgroundColor?: string;
|
|
19
|
+
shapeOffsetX?: number;
|
|
20
|
+
shapeOffsetY?: number;
|
|
21
|
+
iconOffsetX?: number;
|
|
22
|
+
iconOffsetY?: number;
|
|
23
|
+
iconPadding?: number;
|
|
24
|
+
iconFontSize?: number;
|
|
25
|
+
iconFontColor?: string;
|
|
26
|
+
iconFontFamily?: string;
|
|
27
|
+
iconText?: string;
|
|
28
|
+
shapeRendering?: "auto" | "optimizeSpeed" | "crispEdges" | "geometricPrecision";
|
|
29
|
+
}
|
|
30
|
+
export declare const Vertex4: React.FunctionComponent<IVertex4>;
|
|
31
|
+
export declare const CentroidVertex4: React.FunctionComponent<IVertex4>;
|
|
32
|
+
//# sourceMappingURL=vertex4.d.ts.map
|