@hpcc-js/api 3.3.12 → 3.4.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 +461 -553
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +2 -3
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +4 -4
- package/src/__package__.ts +3 -3
- package/types/__package__.d.ts +3 -3
package/dist/index.js
CHANGED
|
@@ -1,588 +1,509 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Palette, Widget, format, hsl, map, select, selection } from "@hpcc-js/common";
|
|
2
|
+
|
|
3
|
+
//#region src/__package__.ts
|
|
4
4
|
const PKG_NAME = "@hpcc-js/api";
|
|
5
|
-
const PKG_VERSION = "3.
|
|
6
|
-
const BUILD_VERSION = "3.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
const PKG_VERSION = "3.4.0";
|
|
6
|
+
const BUILD_VERSION = "3.15.0";
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/I1DChart.ts
|
|
10
|
+
function I1DChart() {}
|
|
10
11
|
I1DChart.prototype._dataFamily = "1D";
|
|
11
12
|
I1DChart.prototype._palette = Palette.rainbow("default");
|
|
12
|
-
I1DChart.prototype.click = function(row, column, selected) {
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
__name(I2DChart, "I2DChart");
|
|
13
|
+
I1DChart.prototype.click = function(row, column, selected) {};
|
|
14
|
+
I1DChart.prototype.dblclick = function(row, column, selected) {};
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/I2DChart.ts
|
|
18
|
+
function I2DChart() {}
|
|
19
19
|
I2DChart.prototype._dataFamily = "2D";
|
|
20
20
|
I2DChart.prototype._palette = Palette.ordinal("default");
|
|
21
21
|
I2DChart.prototype.fillColor = function(row, column, value, origRow) {
|
|
22
|
-
|
|
22
|
+
return this._palette(row[0]);
|
|
23
23
|
};
|
|
24
24
|
I2DChart.prototype.strokeColor = function(row, column, value, origRow) {
|
|
25
|
-
|
|
25
|
+
return hsl(this.fillColor(row, column, value, origRow)).darker().toString();
|
|
26
26
|
};
|
|
27
27
|
I2DChart.prototype.textColor = function(row, column, value, origRow) {
|
|
28
|
-
|
|
29
|
-
};
|
|
30
|
-
I2DChart.prototype.click = function(row, column, selected) {
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
__name(I2DAggrChart, "I2DAggrChart");
|
|
28
|
+
return Palette.textColor(this.fillColor(row, column, value, origRow));
|
|
29
|
+
};
|
|
30
|
+
I2DChart.prototype.click = function(row, column, selected) {};
|
|
31
|
+
I2DChart.prototype.dblclick = function(row, column, selected) {};
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/I2DAggrChart.ts
|
|
35
|
+
function I2DAggrChart() {}
|
|
37
36
|
I2DAggrChart.prototype._palette = Palette.rainbow("default");
|
|
38
37
|
I2DAggrChart.prototype.fillColor = function(row, column, value) {
|
|
39
|
-
|
|
38
|
+
return this._palette(row.length);
|
|
40
39
|
};
|
|
41
40
|
I2DAggrChart.prototype.strokeColor = function(row, column, value) {
|
|
42
|
-
|
|
41
|
+
return hsl(this.fillColor(row, column, value)).darker().toString();
|
|
43
42
|
};
|
|
44
43
|
I2DAggrChart.prototype.textColor = function(row, column, value) {
|
|
45
|
-
|
|
46
|
-
};
|
|
47
|
-
I2DAggrChart.prototype.click = function(row, column, selected) {
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
__name(IGraph, "IGraph");
|
|
44
|
+
return Palette.textColor(this.fillColor(row, column, value));
|
|
45
|
+
};
|
|
46
|
+
I2DAggrChart.prototype.click = function(row, column, selected) {};
|
|
47
|
+
I2DAggrChart.prototype.dblclick = function(row, column, selected) {};
|
|
48
|
+
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region src/IGraph.ts
|
|
51
|
+
function IGraph() {}
|
|
54
52
|
IGraph.prototype._dataFamily = "graph";
|
|
55
53
|
IGraph.prototype.vertex_click = function(_row, _col, _sel, more) {
|
|
56
|
-
|
|
54
|
+
if (more && more.vertex) {}
|
|
57
55
|
};
|
|
58
56
|
IGraph.prototype.vertex_dblclick = function(_row, _col, _sel, more) {
|
|
59
|
-
|
|
57
|
+
if (more && more.vertex) {}
|
|
60
58
|
};
|
|
61
59
|
IGraph.prototype.edge_click = function(_row, _col, _sel, more) {
|
|
62
|
-
|
|
60
|
+
if (more && more.edge) {}
|
|
63
61
|
};
|
|
64
62
|
IGraph.prototype.edge_dblclick = function(_row, _col, _sel, more) {
|
|
65
|
-
|
|
63
|
+
if (more && more.edge) {}
|
|
66
64
|
};
|
|
65
|
+
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region src/IHighlight.ts
|
|
67
68
|
function instanceOfIHighlight(w) {
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
__name(instanceOfIHighlight, "instanceOfIHighlight");
|
|
71
|
-
function IInput() {
|
|
69
|
+
return typeof w.highlightColumn === "function";
|
|
72
70
|
}
|
|
73
|
-
|
|
71
|
+
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/IInput.ts
|
|
74
|
+
function IInput() {}
|
|
74
75
|
IInput.prototype = Object.create(Widget.prototype);
|
|
75
76
|
IInput.prototype.constructor = IInput;
|
|
76
77
|
IInput.prototype.isValid = function() {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
return true;
|
|
78
|
+
if (this.validate()) {
|
|
79
|
+
if (!new RegExp(this.validate()).test(this.value())) return false;
|
|
80
|
+
}
|
|
81
|
+
return true;
|
|
84
82
|
};
|
|
85
83
|
IInput.prototype.hasValue = function() {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
};
|
|
105
|
-
IInput.prototype.
|
|
106
|
-
};
|
|
107
|
-
IInput.prototype.keyup = function(_w) {
|
|
108
|
-
};
|
|
109
|
-
IInput.prototype.focus = function(_w) {
|
|
110
|
-
};
|
|
111
|
-
IInput.prototype.click = function(_w) {
|
|
112
|
-
};
|
|
113
|
-
IInput.prototype.dblclick = function(_w) {
|
|
114
|
-
};
|
|
115
|
-
IInput.prototype.change = function(_w, complete) {
|
|
116
|
-
};
|
|
84
|
+
if (typeof this.type === "function") {
|
|
85
|
+
switch (this.type()) {
|
|
86
|
+
case "radio":
|
|
87
|
+
case "checkbox":
|
|
88
|
+
if (this.value() && this.value() !== "false") return true;
|
|
89
|
+
break;
|
|
90
|
+
default:
|
|
91
|
+
if (this.value()) return true;
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
return false;
|
|
95
|
+
}
|
|
96
|
+
return this.value() !== "";
|
|
97
|
+
};
|
|
98
|
+
IInput.prototype.blur = function(_w) {};
|
|
99
|
+
IInput.prototype.keyup = function(_w) {};
|
|
100
|
+
IInput.prototype.focus = function(_w) {};
|
|
101
|
+
IInput.prototype.click = function(_w) {};
|
|
102
|
+
IInput.prototype.dblclick = function(_w) {};
|
|
103
|
+
IInput.prototype.change = function(_w, complete) {};
|
|
117
104
|
IInput.prototype.resetValue = function(w) {
|
|
118
|
-
|
|
105
|
+
w.value(w._inputElement[0].node().value);
|
|
119
106
|
};
|
|
120
107
|
IInput.prototype.disable = function(disable) {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
108
|
+
this._inputElement.forEach(function(e, idx) {
|
|
109
|
+
e.attr("disabled", disable ? "disabled" : null);
|
|
110
|
+
});
|
|
124
111
|
};
|
|
125
112
|
IInput.prototype.setFocus = function() {
|
|
126
|
-
|
|
127
|
-
this._inputElement[0].node().focus();
|
|
128
|
-
}
|
|
113
|
+
if (this._inputElement.length) this._inputElement[0].node().focus();
|
|
129
114
|
};
|
|
130
115
|
IInput.prototype.publish("name", "", "string", "HTML name for the input");
|
|
131
116
|
IInput.prototype.publish("label", "", "string", "Descriptive label");
|
|
132
117
|
IInput.prototype.publish("value", "", "string", "Input Current Value");
|
|
133
118
|
IInput.prototype.publish("validate", null, "string", "Input Validation");
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
119
|
+
|
|
120
|
+
//#endregion
|
|
121
|
+
//#region src/INDChart.ts
|
|
122
|
+
function INDChart() {}
|
|
137
123
|
INDChart.prototype._dataFamily = "ND";
|
|
138
124
|
INDChart.prototype._palette = Palette.ordinal("default");
|
|
139
125
|
INDChart.prototype.fillColor = function(row, column, value, origRow) {
|
|
140
|
-
|
|
126
|
+
return this._palette(column);
|
|
141
127
|
};
|
|
142
128
|
INDChart.prototype.strokeColor = function(row, column, value, origRow) {
|
|
143
|
-
|
|
129
|
+
return hsl(this.fillColor(row, column, value, origRow)).darker().toString();
|
|
144
130
|
};
|
|
145
131
|
INDChart.prototype.textColor = function(row, column, value, origRow) {
|
|
146
|
-
|
|
147
|
-
};
|
|
148
|
-
INDChart.prototype.click = function(row, column, selected) {
|
|
149
|
-
};
|
|
150
|
-
INDChart.prototype.dblclick = function(row, column, selected) {
|
|
132
|
+
return Palette.textColor(this.fillColor(row, column, value, origRow));
|
|
151
133
|
};
|
|
134
|
+
INDChart.prototype.click = function(row, column, selected) {};
|
|
135
|
+
INDChart.prototype.dblclick = function(row, column, selected) {};
|
|
136
|
+
|
|
137
|
+
//#endregion
|
|
138
|
+
//#region src/Tooltip.ts
|
|
152
139
|
function tip() {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
__name(getNodeEl, "getNodeEl");
|
|
401
|
-
function getScreenBBox(targetShape) {
|
|
402
|
-
let targetel = target || targetShape;
|
|
403
|
-
while (targetel.getCTM == null && targetel.parentNode != null) {
|
|
404
|
-
targetel = targetel.parentNode;
|
|
405
|
-
}
|
|
406
|
-
const bbox = {};
|
|
407
|
-
const matrix = targetel.getCTM();
|
|
408
|
-
const tbbox = targetel.getBBox();
|
|
409
|
-
const width = tbbox.width;
|
|
410
|
-
const height = tbbox.height;
|
|
411
|
-
const x = tbbox.x;
|
|
412
|
-
const y = tbbox.y;
|
|
413
|
-
point.x = x;
|
|
414
|
-
point.y = y;
|
|
415
|
-
bbox.nw = point.matrixTransform(matrix);
|
|
416
|
-
point.x += width;
|
|
417
|
-
bbox.ne = point.matrixTransform(matrix);
|
|
418
|
-
point.y += height;
|
|
419
|
-
bbox.se = point.matrixTransform(matrix);
|
|
420
|
-
point.x -= width;
|
|
421
|
-
bbox.sw = point.matrixTransform(matrix);
|
|
422
|
-
point.y -= height / 2;
|
|
423
|
-
bbox.w = point.matrixTransform(matrix);
|
|
424
|
-
point.x += width;
|
|
425
|
-
bbox.e = point.matrixTransform(matrix);
|
|
426
|
-
point.x -= width / 2;
|
|
427
|
-
point.y -= height / 2;
|
|
428
|
-
bbox.n = point.matrixTransform(matrix);
|
|
429
|
-
point.y += height;
|
|
430
|
-
bbox.s = point.matrixTransform(matrix);
|
|
431
|
-
return bbox;
|
|
432
|
-
}
|
|
433
|
-
__name(getScreenBBox, "getScreenBBox");
|
|
434
|
-
function functor(v) {
|
|
435
|
-
return typeof v === "function" ? v : function() {
|
|
436
|
-
return v;
|
|
437
|
-
};
|
|
438
|
-
}
|
|
439
|
-
__name(functor, "functor");
|
|
440
|
-
return tip2;
|
|
140
|
+
let direction = d3TipDirection;
|
|
141
|
+
let offset = d3TipOffset;
|
|
142
|
+
let html = d3TipHTML;
|
|
143
|
+
let rootElement = functor(document.body);
|
|
144
|
+
let node = initNode();
|
|
145
|
+
let svg = null;
|
|
146
|
+
let point = null;
|
|
147
|
+
let target = null;
|
|
148
|
+
const tip$1 = function(vis) {
|
|
149
|
+
svg = getSVGNode(vis);
|
|
150
|
+
if (!svg) return;
|
|
151
|
+
point = svg.createSVGPoint();
|
|
152
|
+
const re = rootElement();
|
|
153
|
+
if (!re) return;
|
|
154
|
+
if (!node) return;
|
|
155
|
+
re.appendChild(node);
|
|
156
|
+
};
|
|
157
|
+
tip$1.show = function(d, idx, arr) {
|
|
158
|
+
target = arr[idx];
|
|
159
|
+
const args = Array.prototype.slice.call(arguments);
|
|
160
|
+
const content = html.apply(this, args);
|
|
161
|
+
if (content === null) return tip$1;
|
|
162
|
+
const poffset = offset.apply(this, args);
|
|
163
|
+
const nodel = getNodeEl();
|
|
164
|
+
let i = directions.length;
|
|
165
|
+
let coords;
|
|
166
|
+
const root_bbox = rootElement().getBoundingClientRect();
|
|
167
|
+
nodel.html(content).style("opacity", 1).style("pointer-events", "all");
|
|
168
|
+
while (i--) nodel.classed(directions[i], false);
|
|
169
|
+
let placement_success = false;
|
|
170
|
+
const placement_overflow = {};
|
|
171
|
+
let least_overflow_direction = directions[0];
|
|
172
|
+
for (let i$1 = 0; i$1 < directions.length; i$1++) {
|
|
173
|
+
placement_success = _placement_attempt(directions[i$1]);
|
|
174
|
+
if (placement_success) break;
|
|
175
|
+
}
|
|
176
|
+
if (!placement_success) {
|
|
177
|
+
nodel.classed("notick", true);
|
|
178
|
+
const top_offset = _vertical_adjustment(placement_overflow[least_overflow_direction]);
|
|
179
|
+
const left_offset = _horizontal_adjustment(placement_overflow[least_overflow_direction]);
|
|
180
|
+
_placement_attempt(least_overflow_direction, top_offset, left_offset);
|
|
181
|
+
} else nodel.classed("notick", false);
|
|
182
|
+
return tip$1;
|
|
183
|
+
function _horizontal_adjustment(overflow_obj) {
|
|
184
|
+
if (overflow_obj.left > overflow_obj.right) return overflow_obj.left > 0 ? -overflow_obj.left : 0;
|
|
185
|
+
else return overflow_obj.right > 0 ? overflow_obj.right : 0;
|
|
186
|
+
}
|
|
187
|
+
function _vertical_adjustment(overflow_obj) {
|
|
188
|
+
if (overflow_obj.top > overflow_obj.bottom) return overflow_obj.top > 0 ? -overflow_obj.top : 0;
|
|
189
|
+
else return overflow_obj.bottom;
|
|
190
|
+
}
|
|
191
|
+
function _placement_attempt(_dir, _top_offset, _left_offset) {
|
|
192
|
+
_top_offset = _top_offset ? _top_offset : 0;
|
|
193
|
+
_left_offset = _left_offset ? _left_offset : 0;
|
|
194
|
+
nodel.style("white-space", "nowrap");
|
|
195
|
+
coords = directionCallbacks.get(_dir).apply(this);
|
|
196
|
+
nodel.classed(_dir, true).style("top", coords.top + poffset[0] - _top_offset + "px").style("left", coords.left + poffset[1] - _left_offset + "px");
|
|
197
|
+
const nodel_bbox = nodel.node().getBoundingClientRect();
|
|
198
|
+
const ret = nodel_bbox.top > root_bbox.top && nodel_bbox.left > root_bbox.left && nodel_bbox.bottom < root_bbox.bottom && nodel_bbox.right < root_bbox.right;
|
|
199
|
+
placement_overflow[_dir] = {
|
|
200
|
+
top: root_bbox.top - nodel_bbox.top,
|
|
201
|
+
right: nodel_bbox.right - root_bbox.right,
|
|
202
|
+
bottom: nodel_bbox.bottom - root_bbox.bottom,
|
|
203
|
+
left: root_bbox.left - nodel_bbox.left
|
|
204
|
+
};
|
|
205
|
+
nodel.style("white-space", "normal");
|
|
206
|
+
placement_overflow[_dir].total_overflow = Object.keys(placement_overflow[_dir]).filter((side) => placement_overflow[_dir][side] > 0).reduce((sum, side) => {
|
|
207
|
+
return sum + placement_overflow[_dir][side];
|
|
208
|
+
}, 0);
|
|
209
|
+
if (placement_overflow[least_overflow_direction].total_overflow > placement_overflow[_dir].total_overflow) least_overflow_direction = _dir;
|
|
210
|
+
if (!ret) nodel.classed(_dir, false);
|
|
211
|
+
return ret;
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
tip$1.hide = function() {
|
|
215
|
+
getNodeEl().style("opacity", 0).style("pointer-events", "none");
|
|
216
|
+
return tip$1;
|
|
217
|
+
};
|
|
218
|
+
tip$1.attr = function(n, v) {
|
|
219
|
+
if (arguments.length < 2 && typeof n === "string") return getNodeEl().attr(n);
|
|
220
|
+
const args = Array.prototype.slice.call(arguments);
|
|
221
|
+
selection.prototype.attr.apply(getNodeEl(), args);
|
|
222
|
+
return tip$1;
|
|
223
|
+
};
|
|
224
|
+
tip$1.style = function(n, v) {
|
|
225
|
+
if (arguments.length < 2 && typeof n === "string") return getNodeEl().style(n);
|
|
226
|
+
const args = Array.prototype.slice.call(arguments);
|
|
227
|
+
selection.prototype.style.apply(getNodeEl(), args);
|
|
228
|
+
return tip$1;
|
|
229
|
+
};
|
|
230
|
+
tip$1.direction = function(v) {
|
|
231
|
+
if (!arguments.length) return direction;
|
|
232
|
+
direction = v == null ? v : functor(v);
|
|
233
|
+
return tip$1;
|
|
234
|
+
};
|
|
235
|
+
tip$1.offset = function(v) {
|
|
236
|
+
if (!arguments.length) return offset;
|
|
237
|
+
offset = v == null ? v : functor(v);
|
|
238
|
+
return tip$1;
|
|
239
|
+
};
|
|
240
|
+
tip$1.html = function(v) {
|
|
241
|
+
if (!arguments.length) return html;
|
|
242
|
+
html = v == null ? v : functor(v);
|
|
243
|
+
return tip$1;
|
|
244
|
+
};
|
|
245
|
+
tip$1.rootElement = function(v) {
|
|
246
|
+
if (!arguments.length) return rootElement;
|
|
247
|
+
rootElement = functor(v);
|
|
248
|
+
return tip$1;
|
|
249
|
+
};
|
|
250
|
+
tip$1.destroy = function() {
|
|
251
|
+
if (node) {
|
|
252
|
+
getNodeEl().remove();
|
|
253
|
+
node = null;
|
|
254
|
+
}
|
|
255
|
+
return tip$1;
|
|
256
|
+
};
|
|
257
|
+
function d3TipDirection() {
|
|
258
|
+
return "n";
|
|
259
|
+
}
|
|
260
|
+
function d3TipOffset() {
|
|
261
|
+
return [0, 0];
|
|
262
|
+
}
|
|
263
|
+
function d3TipHTML() {
|
|
264
|
+
return " ";
|
|
265
|
+
}
|
|
266
|
+
const directionCallbacks = map({
|
|
267
|
+
n: directionNorth,
|
|
268
|
+
s: directionSouth,
|
|
269
|
+
e: directionEast,
|
|
270
|
+
w: directionWest,
|
|
271
|
+
nw: directionNorthWest,
|
|
272
|
+
ne: directionNorthEast,
|
|
273
|
+
sw: directionSouthWest,
|
|
274
|
+
se: directionSouthEast
|
|
275
|
+
});
|
|
276
|
+
const directions = directionCallbacks.keys();
|
|
277
|
+
function directionNorth() {
|
|
278
|
+
const bbox = getScreenBBox(window);
|
|
279
|
+
return {
|
|
280
|
+
top: bbox.n.y - node.offsetHeight,
|
|
281
|
+
left: bbox.n.x - node.offsetWidth / 2
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
function directionSouth() {
|
|
285
|
+
const bbox = getScreenBBox(window);
|
|
286
|
+
return {
|
|
287
|
+
top: bbox.s.y + 8,
|
|
288
|
+
left: bbox.s.x - node.offsetWidth / 2
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
function directionEast() {
|
|
292
|
+
const bbox = getScreenBBox(window);
|
|
293
|
+
return {
|
|
294
|
+
top: bbox.e.y - node.offsetHeight / 2,
|
|
295
|
+
left: bbox.e.x + 8
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
function directionWest() {
|
|
299
|
+
const bbox = getScreenBBox(window);
|
|
300
|
+
return {
|
|
301
|
+
top: bbox.w.y - node.offsetHeight / 2,
|
|
302
|
+
left: bbox.w.x - node.offsetWidth - 8
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
function directionNorthWest() {
|
|
306
|
+
const bbox = getScreenBBox(window);
|
|
307
|
+
return {
|
|
308
|
+
top: bbox.nw.y - node.offsetHeight,
|
|
309
|
+
left: bbox.nw.x - node.offsetWidth
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
function directionNorthEast() {
|
|
313
|
+
const bbox = getScreenBBox(window);
|
|
314
|
+
return {
|
|
315
|
+
top: bbox.ne.y - node.offsetHeight,
|
|
316
|
+
left: bbox.ne.x
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
function directionSouthWest() {
|
|
320
|
+
const bbox = getScreenBBox(window);
|
|
321
|
+
return {
|
|
322
|
+
top: bbox.sw.y,
|
|
323
|
+
left: bbox.sw.x - node.offsetWidth
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
function directionSouthEast() {
|
|
327
|
+
const bbox = getScreenBBox(window);
|
|
328
|
+
return {
|
|
329
|
+
top: bbox.se.y,
|
|
330
|
+
left: bbox.se.x
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
function initNode() {
|
|
334
|
+
const div = select(document.createElement("div"));
|
|
335
|
+
div.attr("class", "d3-tip").style("position", "absolute").style("top", "0px").style("opacity", 0).style("pointer-events", "none").style("box-sizing", "border-box");
|
|
336
|
+
return div.node();
|
|
337
|
+
}
|
|
338
|
+
function getSVGNode(element) {
|
|
339
|
+
const svgNode = element.node();
|
|
340
|
+
if (!svgNode) return null;
|
|
341
|
+
if (svgNode.tagName.toLowerCase() === "svg") return svgNode;
|
|
342
|
+
return svgNode.ownerSVGElement;
|
|
343
|
+
}
|
|
344
|
+
function getNodeEl() {
|
|
345
|
+
if (node == null) {
|
|
346
|
+
node = initNode();
|
|
347
|
+
rootElement().appendChild(node);
|
|
348
|
+
}
|
|
349
|
+
return select(node);
|
|
350
|
+
}
|
|
351
|
+
function getScreenBBox(targetShape) {
|
|
352
|
+
let targetel = target || targetShape;
|
|
353
|
+
while (targetel.getCTM == null && targetel.parentNode != null) targetel = targetel.parentNode;
|
|
354
|
+
const bbox = {};
|
|
355
|
+
const matrix = targetel.getCTM();
|
|
356
|
+
const tbbox = targetel.getBBox();
|
|
357
|
+
const width = tbbox.width;
|
|
358
|
+
const height = tbbox.height;
|
|
359
|
+
const x = tbbox.x;
|
|
360
|
+
const y = tbbox.y;
|
|
361
|
+
point.x = x;
|
|
362
|
+
point.y = y;
|
|
363
|
+
bbox.nw = point.matrixTransform(matrix);
|
|
364
|
+
point.x += width;
|
|
365
|
+
bbox.ne = point.matrixTransform(matrix);
|
|
366
|
+
point.y += height;
|
|
367
|
+
bbox.se = point.matrixTransform(matrix);
|
|
368
|
+
point.x -= width;
|
|
369
|
+
bbox.sw = point.matrixTransform(matrix);
|
|
370
|
+
point.y -= height / 2;
|
|
371
|
+
bbox.w = point.matrixTransform(matrix);
|
|
372
|
+
point.x += width;
|
|
373
|
+
bbox.e = point.matrixTransform(matrix);
|
|
374
|
+
point.x -= width / 2;
|
|
375
|
+
point.y -= height / 2;
|
|
376
|
+
bbox.n = point.matrixTransform(matrix);
|
|
377
|
+
point.y += height;
|
|
378
|
+
bbox.s = point.matrixTransform(matrix);
|
|
379
|
+
return bbox;
|
|
380
|
+
}
|
|
381
|
+
function functor(v) {
|
|
382
|
+
return typeof v === "function" ? v : function() {
|
|
383
|
+
return v;
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
return tip$1;
|
|
441
387
|
}
|
|
442
|
-
|
|
388
|
+
|
|
389
|
+
//#endregion
|
|
390
|
+
//#region src/ITooltip.ts
|
|
443
391
|
function ITooltip() {
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
const exit = this.exit;
|
|
482
|
-
this.exit = function(_domNode, _element) {
|
|
483
|
-
this.tooltipExit();
|
|
484
|
-
exit.apply(this, arguments);
|
|
485
|
-
};
|
|
486
|
-
}
|
|
392
|
+
this.tooltip = tip();
|
|
393
|
+
if (this.tooltipLabelFormat_exists()) this._labelFormatter = format(this.tooltipLabelFormat());
|
|
394
|
+
if (this.tooltipValueFormat_exists()) this._valueFormatter = format(this.tooltipValueFormat());
|
|
395
|
+
if (this.layerEnter) {
|
|
396
|
+
const layerEnter = this.layerEnter;
|
|
397
|
+
this.layerEnter = function(_base, svgElement, _domElement) {
|
|
398
|
+
if (!this._parentOverlay) this._parentOverlay = _base._parentOverlay;
|
|
399
|
+
this.tooltipEnter(svgElement);
|
|
400
|
+
layerEnter.apply(this, arguments);
|
|
401
|
+
};
|
|
402
|
+
const layerUpdate = this.layerUpdate;
|
|
403
|
+
this.layerUpdate = function(_base) {
|
|
404
|
+
layerUpdate.apply(this, arguments);
|
|
405
|
+
this.tooltipUpdate();
|
|
406
|
+
};
|
|
407
|
+
const layerExit = this.layerExit;
|
|
408
|
+
this.layerExit = function(_base) {
|
|
409
|
+
this.tooltipExit();
|
|
410
|
+
layerExit.apply(this, arguments);
|
|
411
|
+
};
|
|
412
|
+
} else {
|
|
413
|
+
const enter = this.enter;
|
|
414
|
+
this.enter = function(_domNode, element) {
|
|
415
|
+
this.tooltipEnter(element);
|
|
416
|
+
enter.apply(this, arguments);
|
|
417
|
+
};
|
|
418
|
+
const update = this.update;
|
|
419
|
+
this.update = function(_domNode, _element) {
|
|
420
|
+
update.apply(this, arguments);
|
|
421
|
+
this.tooltipUpdate();
|
|
422
|
+
};
|
|
423
|
+
const exit = this.exit;
|
|
424
|
+
this.exit = function(_domNode, _element) {
|
|
425
|
+
this.tooltipExit();
|
|
426
|
+
exit.apply(this, arguments);
|
|
427
|
+
};
|
|
428
|
+
}
|
|
487
429
|
}
|
|
488
|
-
__name(ITooltip, "ITooltip");
|
|
489
430
|
ITooltip.prototype = Object.create(Widget.prototype);
|
|
490
431
|
ITooltip.prototype.constructor = ITooltip;
|
|
491
432
|
ITooltip.prototype.tooltipEnter = function(element) {
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
}
|
|
496
|
-
element.call(this.tooltip);
|
|
433
|
+
const overlayElement = this.parentOverlay();
|
|
434
|
+
if (!overlayElement.empty()) this.tooltip.rootElement(overlayElement.node().parentNode);
|
|
435
|
+
element.call(this.tooltip);
|
|
497
436
|
};
|
|
498
437
|
ITooltip.prototype.tooltipUpdate = function() {
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
this.tooltip.attr("class", classed);
|
|
522
|
-
}
|
|
438
|
+
this.tooltip.offset(() => {
|
|
439
|
+
if (event && this.tooltipFollowMouse()) {
|
|
440
|
+
const d3tipElement = document.querySelector(".d3-tip");
|
|
441
|
+
d3tipElement.style.display = "block";
|
|
442
|
+
d3tipElement.style.left = this.tooltipOffset() + event.clientX + "px";
|
|
443
|
+
d3tipElement.style.top = event.clientY + "px";
|
|
444
|
+
return [];
|
|
445
|
+
}
|
|
446
|
+
switch (this.tooltip.direction()()) {
|
|
447
|
+
case "e": return [0, this.tooltipOffset()];
|
|
448
|
+
default: return [-this.tooltipOffset(), 0];
|
|
449
|
+
}
|
|
450
|
+
});
|
|
451
|
+
let classed = this.tooltip.attr("class");
|
|
452
|
+
if (classed) {
|
|
453
|
+
classed = classed.split(" notick").join("") + (this.tooltipTick() ? "" : " notick") + (this.tooltipStyle() === "none" ? " hidden" : "");
|
|
454
|
+
classed = classed.split(" ").filter(function(_class) {
|
|
455
|
+
return _class.indexOf("ITooltip-tooltipStyle-") !== 0;
|
|
456
|
+
}).join(" ");
|
|
457
|
+
classed += " ITooltip-tooltipStyle-" + this.tooltipStyle();
|
|
458
|
+
this.tooltip.attr("class", classed);
|
|
459
|
+
}
|
|
523
460
|
};
|
|
524
461
|
ITooltip.prototype.tooltipExit = function() {
|
|
525
|
-
|
|
526
|
-
this.tooltip.destroy();
|
|
527
|
-
}
|
|
462
|
+
if (this.tooltip) this.tooltip.destroy();
|
|
528
463
|
};
|
|
529
464
|
ITooltip.prototype._tooltipHTML = function(d) {
|
|
530
|
-
|
|
465
|
+
return d;
|
|
531
466
|
};
|
|
532
467
|
ITooltip.prototype.tooltipHTML = function(_) {
|
|
533
|
-
|
|
468
|
+
return this.tooltip.html(_);
|
|
534
469
|
};
|
|
535
470
|
ITooltip.prototype.tooltipFormat = function(opts = {}) {
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
html += "</tbody>";
|
|
565
|
-
html += "</table>";
|
|
566
|
-
return html;
|
|
567
|
-
default:
|
|
568
|
-
if (opts.series) {
|
|
569
|
-
return "<span style='color:" + this.tooltipSeriesColor() + "'>" + opts.series + "</span> / <span style='color:" + this.tooltipLabelColor() + "'>" + opts.label + "</span>: <span style='color:" + this.tooltipValueColor() + "'>" + opts.value + "</span>";
|
|
570
|
-
}
|
|
571
|
-
if (opts.label !== "") {
|
|
572
|
-
return "<span style='color:" + this.tooltipLabelColor() + "'>" + opts.label + "</span>: <span style='color:" + this.tooltipValueColor() + "'>" + opts.value + "</span>";
|
|
573
|
-
}
|
|
574
|
-
return "<span style='color:" + this.tooltipValueColor() + "'>" + opts.value + "</span>";
|
|
575
|
-
}
|
|
471
|
+
opts.label = opts.label === void 0 ? "" : opts.label;
|
|
472
|
+
if (this._labelFormatter) opts.label = this._labelFormatter(opts.label) || "";
|
|
473
|
+
else if (this.formatData && this.parseData) opts.label = this.formatData(this.parseData(opts.label));
|
|
474
|
+
opts.series = opts.series || "";
|
|
475
|
+
if (opts.value instanceof Date) opts.value = opts.value || "";
|
|
476
|
+
else if (this._valueFormatter) opts.value = this._valueFormatter(opts.value) || "";
|
|
477
|
+
else if (this.formatValue && this.parseValue) opts.value = this.formatValue(this.parseValue(opts.value));
|
|
478
|
+
switch (this.tooltipStyle()) {
|
|
479
|
+
case "none": break;
|
|
480
|
+
case "series-table":
|
|
481
|
+
let html = "<table class=\"ITooltip-series-table\"><thead><tr><th colspan=\"2\">" + opts.label + "</th></tr></thead><tbody>";
|
|
482
|
+
opts.arr.forEach(function(row) {
|
|
483
|
+
html += "<tr>";
|
|
484
|
+
html += "<td>";
|
|
485
|
+
html += "<div class=\"series-table-row-color\" style=\"background-color:" + row.color + "\"></div>";
|
|
486
|
+
html += "<div class=\"series-table-row-label\">" + row.label + "</div>";
|
|
487
|
+
html += "</td>";
|
|
488
|
+
html += "<td><div class=\"series-table-row-value\">" + row.value + "</div></td>";
|
|
489
|
+
html += "</tr>";
|
|
490
|
+
});
|
|
491
|
+
html += "</tbody>";
|
|
492
|
+
html += "</table>";
|
|
493
|
+
return html;
|
|
494
|
+
default:
|
|
495
|
+
if (opts.series) return "<span style='color:" + this.tooltipSeriesColor() + "'>" + opts.series + "</span> / <span style='color:" + this.tooltipLabelColor() + "'>" + opts.label + "</span>: <span style='color:" + this.tooltipValueColor() + "'>" + opts.value + "</span>";
|
|
496
|
+
if (opts.label !== "") return "<span style='color:" + this.tooltipLabelColor() + "'>" + opts.label + "</span>: <span style='color:" + this.tooltipValueColor() + "'>" + opts.value + "</span>";
|
|
497
|
+
return "<span style='color:" + this.tooltipValueColor() + "'>" + opts.value + "</span>";
|
|
498
|
+
}
|
|
576
499
|
};
|
|
577
500
|
ITooltip.prototype.tooltipKeyValueFormat = function(titleKey, obj) {
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
}
|
|
585
|
-
return `<table>
|
|
501
|
+
let body = "";
|
|
502
|
+
for (const key in obj) if (key !== titleKey) {
|
|
503
|
+
const value = obj && obj[key] ? obj[key] : "";
|
|
504
|
+
body += `<tr><td style="${this.tooltipLabelColor_exists() ? "color:" + this.tooltipLabelColor() : ""}">${key}</td><td style="font-weight:normal">${value}</td></tr>`;
|
|
505
|
+
}
|
|
506
|
+
return `<table>
|
|
586
507
|
<thead>
|
|
587
508
|
<tr><th colspan="2" style="font-weight:bold;font-size:16px">${obj[titleKey]}</th></tr>
|
|
588
509
|
</thead>
|
|
@@ -591,7 +512,11 @@ ITooltip.prototype.tooltipKeyValueFormat = function(titleKey, obj) {
|
|
|
591
512
|
</tbody>
|
|
592
513
|
</table>`;
|
|
593
514
|
};
|
|
594
|
-
ITooltip.prototype.publish("tooltipStyle", "default", "set", "Style mode", [
|
|
515
|
+
ITooltip.prototype.publish("tooltipStyle", "default", "set", "Style mode", [
|
|
516
|
+
"default",
|
|
517
|
+
"none",
|
|
518
|
+
"series-table"
|
|
519
|
+
], {});
|
|
595
520
|
ITooltip.prototype.publish("tooltipFollowMouse", false, "boolean", "If true, the tooltip will follow mouse movement", null, {});
|
|
596
521
|
ITooltip.prototype.publish("tooltipLabelFormat", void 0, "string", "Format of tooltip label(s) (the domain axis)", null, {});
|
|
597
522
|
ITooltip.prototype.publish("tooltipValueFormat", void 0, "string", "Number format of tooltip value(s)", null, {});
|
|
@@ -600,44 +525,27 @@ ITooltip.prototype.publish("tooltipLabelColor", "#CCFFFF", "html-color", "Color
|
|
|
600
525
|
ITooltip.prototype.publish("tooltipValueColor", "white", "html-color", "Color of tooltip value(s)", null, {});
|
|
601
526
|
ITooltip.prototype.publish("tooltipTick", true, "boolean", "Show tooltip tick", null, {});
|
|
602
527
|
ITooltip.prototype.publish("tooltipOffset", 8, "number", "Offset from the cursor", null, {});
|
|
603
|
-
|
|
528
|
+
var tooltipLabelFormat = ITooltip.prototype.tooltipLabelFormat;
|
|
604
529
|
ITooltip.prototype.tooltipLabelFormat = function(_) {
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
}
|
|
609
|
-
return retVal;
|
|
530
|
+
const retVal = tooltipLabelFormat.apply(this, arguments);
|
|
531
|
+
if (arguments.length) this._labelFormatter = format(_);
|
|
532
|
+
return retVal;
|
|
610
533
|
};
|
|
611
|
-
|
|
534
|
+
var tooltipValueFormat = ITooltip.prototype.tooltipValueFormat;
|
|
612
535
|
ITooltip.prototype.tooltipValueFormat = function(_) {
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
}
|
|
621
|
-
__name(ITree, "ITree");
|
|
536
|
+
const retVal = tooltipValueFormat.apply(this, arguments);
|
|
537
|
+
if (arguments.length) this._valueFormatter = format(_);
|
|
538
|
+
return retVal;
|
|
539
|
+
};
|
|
540
|
+
|
|
541
|
+
//#endregion
|
|
542
|
+
//#region src/ITree.ts
|
|
543
|
+
function ITree() {}
|
|
622
544
|
ITree.prototype.constructor = ITree;
|
|
623
|
-
ITree.prototype.click = function(row, column, selected) {
|
|
624
|
-
};
|
|
625
|
-
ITree.prototype.dblclick = function(row, column, selected) {
|
|
626
|
-
};
|
|
545
|
+
ITree.prototype.click = function(row, column, selected) {};
|
|
546
|
+
ITree.prototype.dblclick = function(row, column, selected) {};
|
|
627
547
|
ITree.prototype._palette = Palette.ordinal("default");
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
I2DChart,
|
|
633
|
-
IGraph,
|
|
634
|
-
IInput,
|
|
635
|
-
INDChart,
|
|
636
|
-
ITooltip,
|
|
637
|
-
ITree,
|
|
638
|
-
PKG_NAME,
|
|
639
|
-
PKG_VERSION,
|
|
640
|
-
instanceOfIHighlight
|
|
641
|
-
};
|
|
642
|
-
//# sourceMappingURL=index.js.map
|
|
643
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('.d3-tip{line-height:1;font-weight:700;padding:12px;background:#000000a8;color:#fff;border-radius:2px;pointer-events:none!important;z-index:10}.d3-tip.hidden{visibility:hidden}.d3-tip:after{content:" ";box-sizing:border-box;display:inline-block;border:4px solid rgba(0,0,0,.66);position:absolute;pointer-events:none!important;width:8px;height:8px;margin:0}.d3-tip.n:after{top:100%;left:calc(50% - 4px);border-top-width:8px;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}.d3-tip.e:after{top:calc(50% - 4px);left:-12px;border-top-color:transparent;border-right-width:8px;border-bottom-color:transparent;border-left-color:transparent}.d3-tip.s{margin-top:8px}.d3-tip.s:after{top:-12px;left:calc(50% - 4px);border-top-color:transparent;border-right-color:transparent;border-bottom-width:8px;border-left-color:transparent}.d3-tip.w:after{top:calc(50% - 4px);left:100%;border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-width:8px}.d3-tip.notick:after{border-color:transparent!important}.common_Widget .over{stroke:#000000a8;opacity:.66}.d3-tip.ITooltip-tooltipStyle-series-table{padding:0}.d3-tip .ITooltip-series-table th,.d3-tip .ITooltip-series-table td{padding:6px;text-align:left;border:1px solid #D1D1D1}.d3-tip .ITooltip-series-table .series-table-row-color{display:inline-block;height:10px;width:10px;margin-right:10px}.d3-tip .ITooltip-series-table .series-table-row-label{display:inline-block}.d3-tip .ITooltip-series-table th{background-color:#b3b3b3}.d3-tip .ITooltip-series-table td{background-color:#fff;color:#555;font-weight:400}.d3-tip .ITooltip-series-table td:first-child{border-right:0}table.ITooltip-series-table td:last-child{border-left:1px dotted #A3A3A3}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
|
|
548
|
+
|
|
549
|
+
//#endregion
|
|
550
|
+
export { BUILD_VERSION, I1DChart, I2DAggrChart, I2DChart, IGraph, IInput, INDChart, ITooltip, ITree, PKG_NAME, PKG_VERSION, instanceOfIHighlight };
|
|
551
|
+
//# sourceMappingURL=index.js.map!function(){try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('.d3-tip{color:#fff;z-index:10;background:#000000a8;border-radius:2px;padding:12px;font-weight:700;line-height:1;pointer-events:none!important}.d3-tip.hidden{visibility:hidden}.d3-tip:after{content:" ";box-sizing:border-box;border:4px solid #000000a8;width:8px;height:8px;margin:0;display:inline-block;position:absolute;pointer-events:none!important}.d3-tip.n:after{border-top-width:8px;border-bottom-color:#0000;border-left-color:#0000;border-right-color:#0000;top:100%;left:calc(50% - 4px)}.d3-tip.e:after{border-top-color:#0000;border-bottom-color:#0000;border-left-color:#0000;border-right-width:8px;top:calc(50% - 4px);left:-12px}.d3-tip.s{margin-top:8px}.d3-tip.s:after{border-top-color:#0000;border-bottom-width:8px;border-left-color:#0000;border-right-color:#0000;top:-12px;left:calc(50% - 4px)}.d3-tip.w:after{border-top-color:#0000;border-bottom-color:#0000;border-left-width:8px;border-right-color:#0000;top:calc(50% - 4px);left:100%}.d3-tip.notick:after{border-color:#0000!important}.common_Widget .over{stroke:#000000a8;opacity:.66}.d3-tip.ITooltip-tooltipStyle-series-table{padding:0}.d3-tip .ITooltip-series-table th,.d3-tip .ITooltip-series-table td{text-align:left;border:1px solid #d1d1d1;padding:6px}.d3-tip .ITooltip-series-table .series-table-row-color{width:10px;height:10px;margin-right:10px;display:inline-block}.d3-tip .ITooltip-series-table .series-table-row-label{display:inline-block}.d3-tip .ITooltip-series-table th{background-color:#b3b3b3}.d3-tip .ITooltip-series-table td{color:#555;background-color:#fff;font-weight:400}.d3-tip .ITooltip-series-table td:first-child{border-right:0}table.ITooltip-series-table td:last-child{border-left:1px dotted #a3a3a3}\n/*$vite$:1*/')),document.head.appendChild(t)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}}();
|