billboard.js 3.3.0 → 3.3.3
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/billboard.css +1 -1
- package/dist/billboard.js +489 -399
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +2 -2
- package/dist/billboard.pkgd.js +2491 -2239
- package/dist/billboard.pkgd.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.js +166 -103
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.js +166 -103
- package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.js +32 -130
- package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.js +32 -130
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +2004 -1842
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +2168 -1943
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +2170 -1945
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +2036 -1972
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +2037 -1973
- package/dist/theme/datalab.css +1 -1
- package/dist/theme/datalab.min.css +2 -2
- package/dist/theme/graph.css +1 -1
- package/dist/theme/graph.min.css +2 -2
- package/dist/theme/insight.css +1 -1
- package/dist/theme/insight.min.css +2 -2
- package/dist-esm/billboard.js +481 -412
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -4
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +129 -77
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +135 -80
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +4 -8
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +4 -7
- package/package.json +28 -28
- package/src/Chart/api/chart.ts +1 -1
- package/src/Chart/api/focus.ts +8 -8
- package/src/Chart/api/regions.ts +3 -3
- package/src/Chart/api/selection.ts +15 -15
- package/src/Chart/api/subchart.ts +10 -10
- package/src/ChartInternal/Axis/Axis.ts +16 -14
- package/src/ChartInternal/ChartInternal.ts +7 -8
- package/src/ChartInternal/data/data.ts +3 -3
- package/src/ChartInternal/data/load.ts +2 -2
- package/src/ChartInternal/interactions/drag.ts +15 -15
- package/src/ChartInternal/interactions/eventrect.ts +18 -18
- package/src/ChartInternal/interactions/interaction.ts +10 -10
- package/src/ChartInternal/interactions/zoom.ts +4 -4
- package/src/ChartInternal/internals/color.ts +4 -4
- package/src/ChartInternal/internals/domain.ts +1 -1
- package/src/ChartInternal/internals/format.ts +9 -4
- package/src/ChartInternal/internals/grid.ts +32 -32
- package/src/ChartInternal/internals/legend.ts +27 -27
- package/src/ChartInternal/internals/redraw.ts +6 -5
- package/src/ChartInternal/internals/region.ts +3 -3
- package/src/ChartInternal/internals/selection.ts +16 -15
- package/src/ChartInternal/internals/size.ts +3 -3
- package/src/ChartInternal/internals/text.ts +8 -8
- package/src/ChartInternal/internals/title.ts +4 -4
- package/src/ChartInternal/internals/tooltip.ts +5 -5
- package/src/ChartInternal/internals/transform.ts +5 -5
- package/src/ChartInternal/shape/arc.ts +22 -22
- package/src/ChartInternal/shape/area.ts +4 -4
- package/src/ChartInternal/shape/bar.ts +7 -7
- package/src/ChartInternal/shape/candlestick.ts +8 -8
- package/src/ChartInternal/shape/gauge.ts +8 -8
- package/src/ChartInternal/shape/line.ts +7 -7
- package/src/ChartInternal/shape/point.ts +18 -18
- package/src/ChartInternal/shape/radar.ts +10 -10
- package/src/ChartInternal/shape/shape.ts +4 -2
- package/src/Plugin/sparkline/index.ts +2 -2
- package/src/Plugin/stanford/index.ts +3 -3
- package/src/Plugin/stanford/util.ts +0 -1
- package/src/config/Options/common/tooltip.ts +10 -1
- package/src/config/classes.ts +154 -66
- package/src/module/util.ts +21 -13
package/dist/billboard.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.3.
|
|
8
|
+
* @version 3.3.3
|
|
9
9
|
*/
|
|
10
10
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
11
11
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
@@ -314,121 +314,6 @@ function _defineProperty(obj, key, value) {
|
|
|
314
314
|
}
|
|
315
315
|
// EXTERNAL MODULE: external {"commonjs":"d3-brush","commonjs2":"d3-brush","amd":"d3-brush","root":"d3"}
|
|
316
316
|
var external_commonjs_d3_brush_commonjs2_d3_brush_amd_d3_brush_root_d3_ = __webpack_require__(3);
|
|
317
|
-
;// CONCATENATED MODULE: ./src/config/classes.ts
|
|
318
|
-
/**
|
|
319
|
-
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
320
|
-
* billboard.js project is licensed under the MIT license
|
|
321
|
-
*/
|
|
322
|
-
|
|
323
|
-
/**
|
|
324
|
-
* CSS class names definition
|
|
325
|
-
* @private
|
|
326
|
-
*/
|
|
327
|
-
/* harmony default export */ var config_classes = ({
|
|
328
|
-
arc: "bb-arc",
|
|
329
|
-
arcLabelLine: "bb-arc-label-line",
|
|
330
|
-
arcs: "bb-arcs",
|
|
331
|
-
area: "bb-area",
|
|
332
|
-
areas: "bb-areas",
|
|
333
|
-
axis: "bb-axis",
|
|
334
|
-
axisX: "bb-axis-x",
|
|
335
|
-
axisXLabel: "bb-axis-x-label",
|
|
336
|
-
axisY: "bb-axis-y",
|
|
337
|
-
axisY2: "bb-axis-y2",
|
|
338
|
-
axisY2Label: "bb-axis-y2-label",
|
|
339
|
-
axisYLabel: "bb-axis-y-label",
|
|
340
|
-
bar: "bb-bar",
|
|
341
|
-
bars: "bb-bars",
|
|
342
|
-
brush: "bb-brush",
|
|
343
|
-
button: "bb-button",
|
|
344
|
-
buttonZoomReset: "bb-zoom-reset",
|
|
345
|
-
candlestick: "bb-candlestick",
|
|
346
|
-
candlesticks: "bb-candlesticks",
|
|
347
|
-
chart: "bb-chart",
|
|
348
|
-
chartArc: "bb-chart-arc",
|
|
349
|
-
chartArcs: "bb-chart-arcs",
|
|
350
|
-
chartArcsBackground: "bb-chart-arcs-background",
|
|
351
|
-
chartArcsGaugeMax: "bb-chart-arcs-gauge-max",
|
|
352
|
-
chartArcsGaugeMin: "bb-chart-arcs-gauge-min",
|
|
353
|
-
chartArcsGaugeUnit: "bb-chart-arcs-gauge-unit",
|
|
354
|
-
chartArcsTitle: "bb-chart-arcs-title",
|
|
355
|
-
chartArcsGaugeTitle: "bb-chart-arcs-gauge-title",
|
|
356
|
-
chartBar: "bb-chart-bar",
|
|
357
|
-
chartBars: "bb-chart-bars",
|
|
358
|
-
chartCandlestick: "bb-chart-candlestick",
|
|
359
|
-
chartCandlesticks: "bb-chart-candlesticks",
|
|
360
|
-
chartCircles: "bb-chart-circles",
|
|
361
|
-
chartLine: "bb-chart-line",
|
|
362
|
-
chartLines: "bb-chart-lines",
|
|
363
|
-
chartRadar: "bb-chart-radar",
|
|
364
|
-
chartRadars: "bb-chart-radars",
|
|
365
|
-
chartText: "bb-chart-text",
|
|
366
|
-
chartTexts: "bb-chart-texts",
|
|
367
|
-
circle: "bb-circle",
|
|
368
|
-
circles: "bb-circles",
|
|
369
|
-
colorPattern: "bb-color-pattern",
|
|
370
|
-
colorScale: "bb-colorscale",
|
|
371
|
-
defocused: "bb-defocused",
|
|
372
|
-
dragarea: "bb-dragarea",
|
|
373
|
-
empty: "bb-empty",
|
|
374
|
-
eventRect: "bb-event-rect",
|
|
375
|
-
eventRects: "bb-event-rects",
|
|
376
|
-
eventRectsMultiple: "bb-event-rects-multiple",
|
|
377
|
-
eventRectsSingle: "bb-event-rects-single",
|
|
378
|
-
focused: "bb-focused",
|
|
379
|
-
gaugeValue: "bb-gauge-value",
|
|
380
|
-
grid: "bb-grid",
|
|
381
|
-
gridLines: "bb-grid-lines",
|
|
382
|
-
legend: "bb-legend",
|
|
383
|
-
legendBackground: "bb-legend-background",
|
|
384
|
-
legendItem: "bb-legend-item",
|
|
385
|
-
legendItemEvent: "bb-legend-item-event",
|
|
386
|
-
legendItemFocused: "bb-legend-item-focused",
|
|
387
|
-
legendItemHidden: "bb-legend-item-hidden",
|
|
388
|
-
legendItemPoint: "bb-legend-item-point",
|
|
389
|
-
legendItemTile: "bb-legend-item-tile",
|
|
390
|
-
level: "bb-level",
|
|
391
|
-
levels: "bb-levels",
|
|
392
|
-
line: "bb-line",
|
|
393
|
-
lines: "bb-lines",
|
|
394
|
-
main: "bb-main",
|
|
395
|
-
region: "bb-region",
|
|
396
|
-
regions: "bb-regions",
|
|
397
|
-
selectedCircle: "bb-selected-circle",
|
|
398
|
-
selectedCircles: "bb-selected-circles",
|
|
399
|
-
shape: "bb-shape",
|
|
400
|
-
shapes: "bb-shapes",
|
|
401
|
-
stanfordElements: "bb-stanford-elements",
|
|
402
|
-
stanfordLine: "bb-stanford-line",
|
|
403
|
-
stanfordLines: "bb-stanford-lines",
|
|
404
|
-
stanfordRegion: "bb-stanford-region",
|
|
405
|
-
stanfordRegions: "bb-stanford-regions",
|
|
406
|
-
subchart: "bb-subchart",
|
|
407
|
-
target: "bb-target",
|
|
408
|
-
text: "bb-text",
|
|
409
|
-
texts: "bb-texts",
|
|
410
|
-
title: "bb-title",
|
|
411
|
-
tooltip: "bb-tooltip",
|
|
412
|
-
tooltipContainer: "bb-tooltip-container",
|
|
413
|
-
tooltipName: "bb-tooltip-name",
|
|
414
|
-
valueDown: "bb-value-down",
|
|
415
|
-
valueUp: "bb-value-up",
|
|
416
|
-
xgrid: "bb-xgrid",
|
|
417
|
-
xgridFocus: "bb-xgrid-focus",
|
|
418
|
-
xgridLine: "bb-xgrid-line",
|
|
419
|
-
xgridLines: "bb-xgrid-lines",
|
|
420
|
-
xgrids: "bb-xgrids",
|
|
421
|
-
ygrid: "bb-ygrid",
|
|
422
|
-
ygridFocus: "bb-ygrid-focus",
|
|
423
|
-
ygridLine: "bb-ygrid-line",
|
|
424
|
-
ygridLines: "bb-ygrid-lines",
|
|
425
|
-
ygrids: "bb-ygrids",
|
|
426
|
-
zoomBrush: "bb-zoom-brush",
|
|
427
|
-
EXPANDED: "_expanded_",
|
|
428
|
-
SELECTED: "_selected_",
|
|
429
|
-
INCLUDED: "_included_",
|
|
430
|
-
TextOverlapping: "text-overlapping"
|
|
431
|
-
});
|
|
432
317
|
;// CONCATENATED MODULE: ./src/module/util.ts
|
|
433
318
|
|
|
434
319
|
|
|
@@ -446,7 +331,6 @@ function _objectSpread(target) { for (var i = 1, source; i < arguments.length; i
|
|
|
446
331
|
|
|
447
332
|
|
|
448
333
|
|
|
449
|
-
|
|
450
334
|
var isValue = function (v) {
|
|
451
335
|
return v || v === 0;
|
|
452
336
|
},
|
|
@@ -717,7 +601,7 @@ function getBrushSelection(ctx) {
|
|
|
717
601
|
// check from event
|
|
718
602
|
if (event && event.type === "brush") {
|
|
719
603
|
selection = event.selection; // check from brush area selection
|
|
720
|
-
} else if (main && (selection = main.select("."
|
|
604
|
+
} else if (main && (selection = main.select(".bb-brush").node())) {
|
|
721
605
|
selection = (0,external_commonjs_d3_brush_commonjs2_d3_brush_amd_d3_brush_root_d3_.brushSelection)(selection);
|
|
722
606
|
}
|
|
723
607
|
|
|
@@ -739,17 +623,27 @@ function getBoundingRect(node) {
|
|
|
739
623
|
/**
|
|
740
624
|
* Retrun random number
|
|
741
625
|
* @param {boolean} asStr Convert returned value as string
|
|
626
|
+
* @param {number} min Minimum value
|
|
627
|
+
* @param {number} max Maximum value
|
|
742
628
|
* @returns {number|string}
|
|
743
629
|
* @private
|
|
744
630
|
*/
|
|
745
631
|
|
|
746
632
|
|
|
747
|
-
function getRandom(asStr) {
|
|
633
|
+
function getRandom(asStr, min, max) {
|
|
748
634
|
if (asStr === void 0) {
|
|
749
635
|
asStr = !0;
|
|
750
636
|
}
|
|
751
637
|
|
|
752
|
-
|
|
638
|
+
if (min === void 0) {
|
|
639
|
+
min = 0;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
if (max === void 0) {
|
|
643
|
+
max = 1e4;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
var rand = Math.floor(Math.random() * (max - min) + min);
|
|
753
647
|
return asStr ? rand + "" : rand;
|
|
754
648
|
}
|
|
755
649
|
/**
|
|
@@ -1223,19 +1117,27 @@ function isTabVisible() {
|
|
|
1223
1117
|
|
|
1224
1118
|
|
|
1225
1119
|
function convertInputType(mouse, touch) {
|
|
1226
|
-
var
|
|
1120
|
+
var hasTouch = !1;
|
|
1227
1121
|
|
|
1228
|
-
if (
|
|
1122
|
+
if (touch) {
|
|
1229
1123
|
// Some Edge desktop return true: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/20417074/
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1124
|
+
if (win.navigator && "maxTouchPoints" in win.navigator) {
|
|
1125
|
+
hasTouch = win.navigator.maxTouchPoints > 0; // Ref: https://github.com/Modernizr/Modernizr/blob/master/feature-detects/touchevents.js
|
|
1126
|
+
// On IE11 with IE9 emulation mode, ('ontouchstart' in window) is returning true
|
|
1127
|
+
} else if ("ontouchmove" in win || win.DocumentTouch && browser_doc instanceof win.DocumentTouch) {
|
|
1128
|
+
hasTouch = !0;
|
|
1129
|
+
} else {
|
|
1130
|
+
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent#avoiding_user_agent_detection
|
|
1131
|
+
var mQ = win.matchMedia && matchMedia("(pointer:coarse)");
|
|
1233
1132
|
|
|
1234
|
-
|
|
1133
|
+
if (mQ && mQ.media === "(pointer:coarse)") {
|
|
1134
|
+
hasTouch = !!mQ.matches;
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1235
1137
|
}
|
|
1236
1138
|
|
|
1237
|
-
var hasMouse = mouse && !
|
|
1238
|
-
return hasMouse && "mouse" ||
|
|
1139
|
+
var hasMouse = mouse && !hasTouch ? "onmouseover" in win : !1;
|
|
1140
|
+
return hasMouse && "mouse" || hasTouch && "touch" || null;
|
|
1239
1141
|
}
|
|
1240
1142
|
;// CONCATENATED MODULE: ./src/module/error.ts
|
|
1241
1143
|
|
|
@@ -1295,6 +1197,167 @@ function logError(head, tail) {
|
|
|
1295
1197
|
|
|
1296
1198
|
throw Error(prefix + " " + head.replace(/\%c([a-z-]+)/i, "'$1' ") + " " + tail);
|
|
1297
1199
|
}
|
|
1200
|
+
;// CONCATENATED MODULE: ./src/config/classes.ts
|
|
1201
|
+
|
|
1202
|
+
|
|
1203
|
+
function classes_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1204
|
+
|
|
1205
|
+
function classes_objectSpread(target) { for (var i = 1, source; i < arguments.length; i++) { source = null != arguments[i] ? arguments[i] : {}; i % 2 ? classes_ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : classes_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
1209
|
+
* billboard.js project is licensed under the MIT license
|
|
1210
|
+
*/
|
|
1211
|
+
|
|
1212
|
+
/**
|
|
1213
|
+
* CSS class names definition
|
|
1214
|
+
* @private
|
|
1215
|
+
*/
|
|
1216
|
+
var $COMMON = {
|
|
1217
|
+
button: "bb-button",
|
|
1218
|
+
chart: "bb-chart",
|
|
1219
|
+
empty: "bb-empty",
|
|
1220
|
+
main: "bb-main",
|
|
1221
|
+
target: "bb-target",
|
|
1222
|
+
EXPANDED: "_expanded_"
|
|
1223
|
+
};
|
|
1224
|
+
var $ARC = {
|
|
1225
|
+
arc: "bb-arc",
|
|
1226
|
+
arcLabelLine: "bb-arc-label-line",
|
|
1227
|
+
arcs: "bb-arcs",
|
|
1228
|
+
chartArc: "bb-chart-arc",
|
|
1229
|
+
chartArcs: "bb-chart-arcs",
|
|
1230
|
+
chartArcsBackground: "bb-chart-arcs-background",
|
|
1231
|
+
chartArcsTitle: "bb-chart-arcs-title"
|
|
1232
|
+
};
|
|
1233
|
+
var $AREA = {
|
|
1234
|
+
area: "bb-area",
|
|
1235
|
+
areas: "bb-areas"
|
|
1236
|
+
};
|
|
1237
|
+
var $AXIS = {
|
|
1238
|
+
axis: "bb-axis",
|
|
1239
|
+
axisX: "bb-axis-x",
|
|
1240
|
+
axisXLabel: "bb-axis-x-label",
|
|
1241
|
+
axisY: "bb-axis-y",
|
|
1242
|
+
axisY2: "bb-axis-y2",
|
|
1243
|
+
axisY2Label: "bb-axis-y2-label",
|
|
1244
|
+
axisYLabel: "bb-axis-y-label"
|
|
1245
|
+
};
|
|
1246
|
+
var $BAR = {
|
|
1247
|
+
bar: "bb-bar",
|
|
1248
|
+
bars: "bb-bars",
|
|
1249
|
+
chartBar: "bb-chart-bar",
|
|
1250
|
+
chartBars: "bb-chart-bars"
|
|
1251
|
+
};
|
|
1252
|
+
var $CANDLESTICK = {
|
|
1253
|
+
candlestick: "bb-candlestick",
|
|
1254
|
+
candlesticks: "bb-candlesticks",
|
|
1255
|
+
chartCandlestick: "bb-chart-candlestick",
|
|
1256
|
+
chartCandlesticks: "bb-chart-candlesticks",
|
|
1257
|
+
valueDown: "bb-value-down",
|
|
1258
|
+
valueUp: "bb-value-up"
|
|
1259
|
+
};
|
|
1260
|
+
var $CIRCLE = {
|
|
1261
|
+
chartCircles: "bb-chart-circles",
|
|
1262
|
+
circle: "bb-circle",
|
|
1263
|
+
circles: "bb-circles"
|
|
1264
|
+
};
|
|
1265
|
+
var $COLOR = {
|
|
1266
|
+
colorPattern: "bb-color-pattern",
|
|
1267
|
+
colorScale: "bb-colorscale"
|
|
1268
|
+
};
|
|
1269
|
+
var $DRAG = {
|
|
1270
|
+
dragarea: "bb-dragarea",
|
|
1271
|
+
INCLUDED: "_included_"
|
|
1272
|
+
};
|
|
1273
|
+
var $GAUGE = {
|
|
1274
|
+
chartArcsGaugeMax: "bb-chart-arcs-gauge-max",
|
|
1275
|
+
chartArcsGaugeMin: "bb-chart-arcs-gauge-min",
|
|
1276
|
+
chartArcsGaugeUnit: "bb-chart-arcs-gauge-unit",
|
|
1277
|
+
chartArcsGaugeTitle: "bb-chart-arcs-gauge-title",
|
|
1278
|
+
gaugeValue: "bb-gauge-value"
|
|
1279
|
+
};
|
|
1280
|
+
var $LEGEND = {
|
|
1281
|
+
legend: "bb-legend",
|
|
1282
|
+
legendBackground: "bb-legend-background",
|
|
1283
|
+
legendItem: "bb-legend-item",
|
|
1284
|
+
legendItemEvent: "bb-legend-item-event",
|
|
1285
|
+
legendItemHidden: "bb-legend-item-hidden",
|
|
1286
|
+
legendItemPoint: "bb-legend-item-point",
|
|
1287
|
+
legendItemTile: "bb-legend-item-tile"
|
|
1288
|
+
};
|
|
1289
|
+
var $LINE = {
|
|
1290
|
+
chartLine: "bb-chart-line",
|
|
1291
|
+
chartLines: "bb-chart-lines",
|
|
1292
|
+
line: "bb-line",
|
|
1293
|
+
lines: "bb-lines"
|
|
1294
|
+
};
|
|
1295
|
+
var $EVENT = {
|
|
1296
|
+
eventRect: "bb-event-rect",
|
|
1297
|
+
eventRects: "bb-event-rects",
|
|
1298
|
+
eventRectsMultiple: "bb-event-rects-multiple",
|
|
1299
|
+
eventRectsSingle: "bb-event-rects-single"
|
|
1300
|
+
};
|
|
1301
|
+
var $FOCUS = {
|
|
1302
|
+
focused: "bb-focused",
|
|
1303
|
+
defocused: "bb-defocused",
|
|
1304
|
+
legendItemFocused: "bb-legend-item-focused",
|
|
1305
|
+
xgridFocus: "bb-xgrid-focus",
|
|
1306
|
+
ygridFocus: "bb-ygrid-focus"
|
|
1307
|
+
};
|
|
1308
|
+
var $GRID = {
|
|
1309
|
+
grid: "bb-grid",
|
|
1310
|
+
gridLines: "bb-grid-lines",
|
|
1311
|
+
xgrid: "bb-xgrid",
|
|
1312
|
+
xgridLine: "bb-xgrid-line",
|
|
1313
|
+
xgridLines: "bb-xgrid-lines",
|
|
1314
|
+
xgrids: "bb-xgrids",
|
|
1315
|
+
ygrid: "bb-ygrid",
|
|
1316
|
+
ygridLine: "bb-ygrid-line",
|
|
1317
|
+
ygridLines: "bb-ygrid-lines",
|
|
1318
|
+
ygrids: "bb-ygrids"
|
|
1319
|
+
};
|
|
1320
|
+
var $RADAR = {
|
|
1321
|
+
chartRadar: "bb-chart-radar",
|
|
1322
|
+
chartRadars: "bb-chart-radars",
|
|
1323
|
+
level: "bb-level",
|
|
1324
|
+
levels: "bb-levels"
|
|
1325
|
+
};
|
|
1326
|
+
var $REGION = {
|
|
1327
|
+
region: "bb-region",
|
|
1328
|
+
regions: "bb-regions"
|
|
1329
|
+
};
|
|
1330
|
+
var $SELECT = {
|
|
1331
|
+
selectedCircle: "bb-selected-circle",
|
|
1332
|
+
selectedCircles: "bb-selected-circles",
|
|
1333
|
+
SELECTED: "_selected_"
|
|
1334
|
+
};
|
|
1335
|
+
var $SHAPE = {
|
|
1336
|
+
shape: "bb-shape",
|
|
1337
|
+
shapes: "bb-shapes"
|
|
1338
|
+
};
|
|
1339
|
+
var $SUBCHART = {
|
|
1340
|
+
brush: "bb-brush",
|
|
1341
|
+
subchart: "bb-subchart"
|
|
1342
|
+
};
|
|
1343
|
+
var $TEXT = {
|
|
1344
|
+
chartText: "bb-chart-text",
|
|
1345
|
+
chartTexts: "bb-chart-texts",
|
|
1346
|
+
text: "bb-text",
|
|
1347
|
+
texts: "bb-texts",
|
|
1348
|
+
title: "bb-title",
|
|
1349
|
+
TextOverlapping: "text-overlapping"
|
|
1350
|
+
};
|
|
1351
|
+
var $TOOLTIP = {
|
|
1352
|
+
tooltip: "bb-tooltip",
|
|
1353
|
+
tooltipContainer: "bb-tooltip-container",
|
|
1354
|
+
tooltipName: "bb-tooltip-name"
|
|
1355
|
+
};
|
|
1356
|
+
var $ZOOM = {
|
|
1357
|
+
buttonZoomReset: "bb-zoom-reset",
|
|
1358
|
+
zoomBrush: "bb-zoom-brush"
|
|
1359
|
+
};
|
|
1360
|
+
/* harmony default export */ var classes = (classes_objectSpread(classes_objectSpread(classes_objectSpread(classes_objectSpread(classes_objectSpread(classes_objectSpread(classes_objectSpread(classes_objectSpread(classes_objectSpread(classes_objectSpread(classes_objectSpread(classes_objectSpread(classes_objectSpread(classes_objectSpread(classes_objectSpread(classes_objectSpread(classes_objectSpread(classes_objectSpread(classes_objectSpread(classes_objectSpread(classes_objectSpread(classes_objectSpread(classes_objectSpread({}, $COMMON), $ARC), $AREA), $AXIS), $BAR), $CANDLESTICK), $CIRCLE), $COLOR), $DRAG), $GAUGE), $LEGEND), $LINE), $EVENT), $FOCUS), $GRID), $RADAR), $REGION), $SELECT), $SHAPE), $SUBCHART), $TEXT), $TOOLTIP), $ZOOM));
|
|
1298
1361
|
;// CONCATENATED MODULE: ./src/config/Store/Element.ts
|
|
1299
1362
|
/**
|
|
1300
1363
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
@@ -1543,7 +1606,7 @@ var State = function () {
|
|
|
1543
1606
|
|
|
1544
1607
|
// mapping
|
|
1545
1608
|
|
|
1546
|
-
var
|
|
1609
|
+
var Store_classes = {
|
|
1547
1610
|
element: Element,
|
|
1548
1611
|
state: State
|
|
1549
1612
|
};
|
|
@@ -1558,8 +1621,8 @@ var Store = /*#__PURE__*/function () {
|
|
|
1558
1621
|
function Store() {
|
|
1559
1622
|
var _this = this;
|
|
1560
1623
|
|
|
1561
|
-
Object.keys(
|
|
1562
|
-
_this[v] = new
|
|
1624
|
+
Object.keys(Store_classes).forEach(function (v) {
|
|
1625
|
+
_this[v] = new Store_classes[v]();
|
|
1563
1626
|
});
|
|
1564
1627
|
}
|
|
1565
1628
|
|
|
@@ -3102,7 +3165,16 @@ var Store = /*#__PURE__*/function () {
|
|
|
3102
3165
|
* - `element {SVGElement}`: Tooltip event bound element
|
|
3103
3166
|
* - `pos {object}`: Current position of the tooltip.
|
|
3104
3167
|
* @property {Function|object} [tooltip.contents] Set custom HTML for the tooltip.<br>
|
|
3105
|
-
*
|
|
3168
|
+
* If tooltip.grouped is true, data includes multiple data points.<br><br>
|
|
3169
|
+
* Specified function receives `data` array and `defaultTitleFormat`, `defaultValueFormat` and `color` functions of the data point to show.
|
|
3170
|
+
* - **Note:**
|
|
3171
|
+
* - defaultTitleFormat:
|
|
3172
|
+
* - if `axis.x.tick.format` option will be used if set.
|
|
3173
|
+
* - otherwise, will return funciton based on tick format type(category, timeseries).
|
|
3174
|
+
* - defaultValueFormat:
|
|
3175
|
+
* - for Arc type (except gauge, radar), the function will return value from `(ratio * 100).toFixed(1)`.
|
|
3176
|
+
* - for Axis based types, will be used `axis.[y|y2].tick.format` option value if is set.
|
|
3177
|
+
* - otherwise, will parse value and return as number.
|
|
3106
3178
|
* @property {string|HTMLElement} [tooltip.contents.bindto=undefined] Set CSS selector or element reference to bind tooltip.
|
|
3107
3179
|
* - **NOTE:** When is specified, will not be updating tooltip's position.
|
|
3108
3180
|
* @property {string} [tooltip.contents.template=undefined] Set tooltip's template.<br><br>
|
|
@@ -4615,7 +4687,7 @@ var external_commonjs_d3_dsv_commonjs2_d3_dsv_amd_d3_dsv_root_d3_ = __webpack_re
|
|
|
4615
4687
|
data.filter(function (v) {
|
|
4616
4688
|
return $$.isBarType(v.id) || $$.isCandlestickType(v.id);
|
|
4617
4689
|
}).forEach(function (v) {
|
|
4618
|
-
var selector = $$.isBarType(v.id) ? "." +
|
|
4690
|
+
var selector = $$.isBarType(v.id) ? "." + $BAR.chartBar + "." + $COMMON.target + $$.getTargetSelectorSuffix(v.id) + " ." + $BAR.bar + "-" + v.index : "." + $CANDLESTICK.chartCandlestick + "." + $COMMON.target + $$.getTargetSelectorSuffix(v.id) + " ." + $CANDLESTICK.candlestick + "-" + v.index + " path";
|
|
4619
4691
|
|
|
4620
4692
|
if (!closest && $$.isWithinBar(main.select(selector).node())) {
|
|
4621
4693
|
closest = v;
|
|
@@ -4986,7 +5058,7 @@ var external_commonjs_d3_dsv_commonjs2_d3_dsv_amd_d3_dsv_root_d3_ = __webpack_re
|
|
|
4986
5058
|
state.withoutFadeIn[id] = !1; // Remove target's elements
|
|
4987
5059
|
|
|
4988
5060
|
if ($el.legend) {
|
|
4989
|
-
$el.legend.selectAll("." +
|
|
5061
|
+
$el.legend.selectAll("." + $LEGEND.legendItem + $$.getTargetSelectorSuffix(id)).remove();
|
|
4990
5062
|
} // Remove target
|
|
4991
5063
|
|
|
4992
5064
|
|
|
@@ -5030,8 +5102,8 @@ var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack
|
|
|
5030
5102
|
}
|
|
5031
5103
|
}
|
|
5032
5104
|
|
|
5033
|
-
main.selectAll("." +
|
|
5034
|
-
(0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this).classed(
|
|
5105
|
+
main.selectAll("." + $SHAPE.shape + "-" + index).each(function () {
|
|
5106
|
+
(0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this).classed($COMMON.EXPANDED, !0);
|
|
5035
5107
|
|
|
5036
5108
|
if (isSelectionEnabled) {
|
|
5037
5109
|
eventRect.style("cursor", isSelectionGrouped ? "pointer" : null);
|
|
@@ -5096,8 +5168,8 @@ var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack
|
|
|
5096
5168
|
["bar", "candlestick"].filter(function (v) {
|
|
5097
5169
|
return $$.$el[v];
|
|
5098
5170
|
}).forEach(function (v) {
|
|
5099
|
-
reset && $$.$el[v].classed(
|
|
5100
|
-
$$.getShapeByIndex(v, i, id).classed(
|
|
5171
|
+
reset && $$.$el[v].classed($COMMON.EXPANDED, !1);
|
|
5172
|
+
$$.getShapeByIndex(v, i, id).classed($COMMON.EXPANDED, expand);
|
|
5101
5173
|
});
|
|
5102
5174
|
},
|
|
5103
5175
|
|
|
@@ -5120,10 +5192,10 @@ var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack
|
|
|
5120
5192
|
config.color_onover && $$.setOverColor(isOver, d, isArc);
|
|
5121
5193
|
|
|
5122
5194
|
if (isArc) {
|
|
5123
|
-
callback(d, main.select("." +
|
|
5195
|
+
callback(d, main.select("." + $ARC.arc + $$.getTargetSelectorSuffix(d.id)).node());
|
|
5124
5196
|
} else if (!config.tooltip_grouped) {
|
|
5125
5197
|
var last = $$.cache.get(KEY.setOverOut) || [],
|
|
5126
|
-
shape = main.selectAll("." +
|
|
5198
|
+
shape = main.selectAll("." + $SHAPE.shape + "-" + d).filter(function (d) {
|
|
5127
5199
|
return $$.isWithinShape(this, d);
|
|
5128
5200
|
});
|
|
5129
5201
|
shape.each(function (d) {
|
|
@@ -5151,7 +5223,7 @@ var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack
|
|
|
5151
5223
|
config.point_focus_only && hasRadar ? $$.showCircleFocus($$.getAllValuesOnIndex(d, !0)) : $$.setExpand(d, null, !0);
|
|
5152
5224
|
}
|
|
5153
5225
|
|
|
5154
|
-
$$.isMultipleX() || main.selectAll("." +
|
|
5226
|
+
$$.isMultipleX() || main.selectAll("." + $SHAPE.shape + "-" + d).each(function (d) {
|
|
5155
5227
|
callback(d, this);
|
|
5156
5228
|
});
|
|
5157
5229
|
}
|
|
@@ -5214,7 +5286,7 @@ var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack
|
|
|
5214
5286
|
arcs = _$$$$el.arcs,
|
|
5215
5287
|
radar = _$$$$el.radar,
|
|
5216
5288
|
isMultipleX = $$.isMultipleX(),
|
|
5217
|
-
element = (hasRadar ? radar.axes.select("." +
|
|
5289
|
+
element = (hasRadar ? radar.axes.select("." + $AXIS.axis + "-" + index + " text") : eventRect || arcs.selectAll("." + $COMMON.target + " path").filter(function (d, i) {
|
|
5218
5290
|
return i === index;
|
|
5219
5291
|
})).node(),
|
|
5220
5292
|
_element$getBoundingC = element.getBoundingClientRect(),
|
|
@@ -5309,7 +5381,7 @@ var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack
|
|
|
5309
5381
|
|
|
5310
5382
|
return function (d) {
|
|
5311
5383
|
var data = d.data || d,
|
|
5312
|
-
result = (withShape ? _this.generateClass(
|
|
5384
|
+
result = (withShape ? _this.generateClass(classes[isPlural ? "shapes" : "shape"], data[key]) : "") + _this.generateClass(classes[type], data[useIdKey ? "id" : key]);
|
|
5313
5385
|
|
|
5314
5386
|
return result.trim();
|
|
5315
5387
|
};
|
|
@@ -5325,7 +5397,7 @@ var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack
|
|
|
5325
5397
|
var _this2 = this;
|
|
5326
5398
|
|
|
5327
5399
|
return function (d) {
|
|
5328
|
-
return
|
|
5400
|
+
return classes["chart" + type] + _this2.classTarget((d.data ? d.data : d).id);
|
|
5329
5401
|
};
|
|
5330
5402
|
},
|
|
5331
5403
|
generateExtraLineClass: function generateExtraLineClass() {
|
|
@@ -5344,26 +5416,26 @@ var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack
|
|
|
5344
5416
|
};
|
|
5345
5417
|
},
|
|
5346
5418
|
classRegion: function classRegion(d, i) {
|
|
5347
|
-
return this.generateClass(
|
|
5419
|
+
return this.generateClass(classes.region, i) + " " + ("class" in d ? d.class : "");
|
|
5348
5420
|
},
|
|
5349
5421
|
classTarget: function classTarget(id) {
|
|
5350
5422
|
var additionalClassSuffix = this.config.data_classes[id],
|
|
5351
5423
|
additionalClass = "";
|
|
5352
5424
|
|
|
5353
5425
|
if (additionalClassSuffix) {
|
|
5354
|
-
additionalClass = " " +
|
|
5426
|
+
additionalClass = " " + classes.target + "-" + additionalClassSuffix;
|
|
5355
5427
|
}
|
|
5356
5428
|
|
|
5357
|
-
return this.generateClass(
|
|
5429
|
+
return this.generateClass(classes.target, id) + additionalClass;
|
|
5358
5430
|
},
|
|
5359
5431
|
classFocus: function classFocus(d) {
|
|
5360
5432
|
return this.classFocused(d) + this.classDefocused(d);
|
|
5361
5433
|
},
|
|
5362
5434
|
classFocused: function classFocused(d) {
|
|
5363
|
-
return " " + (this.state.focusedTargetIds.indexOf(d.id) >= 0 ?
|
|
5435
|
+
return " " + (this.state.focusedTargetIds.indexOf(d.id) >= 0 ? classes.focused : "");
|
|
5364
5436
|
},
|
|
5365
5437
|
classDefocused: function classDefocused(d) {
|
|
5366
|
-
return " " + (this.state.defocusedTargetIds.indexOf(d.id) >= 0 ?
|
|
5438
|
+
return " " + (this.state.defocusedTargetIds.indexOf(d.id) >= 0 ? classes.defocused : "");
|
|
5367
5439
|
},
|
|
5368
5440
|
getTargetSelectorSuffix: function getTargetSelectorSuffix(targetId) {
|
|
5369
5441
|
var targetStr = targetId || targetId === 0 ? "-" + targetId : "";
|
|
@@ -5373,7 +5445,7 @@ var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack
|
|
|
5373
5445
|
var pfx = prefix || "",
|
|
5374
5446
|
target = this.getTargetSelectorSuffix(id);
|
|
5375
5447
|
// select target & circle
|
|
5376
|
-
return pfx + "." + (
|
|
5448
|
+
return pfx + "." + (classes.target + target) + ", " + pfx + "." + (classes.circles + target);
|
|
5377
5449
|
},
|
|
5378
5450
|
selectorTargets: function selectorTargets(idsValue, prefix) {
|
|
5379
5451
|
var _this3 = this,
|
|
@@ -5384,7 +5456,7 @@ var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack
|
|
|
5384
5456
|
}) : null;
|
|
5385
5457
|
},
|
|
5386
5458
|
selectorLegend: function selectorLegend(id) {
|
|
5387
|
-
return "." + (
|
|
5459
|
+
return "." + (classes.legendItem + this.getTargetSelectorSuffix(id));
|
|
5388
5460
|
},
|
|
5389
5461
|
selectorLegends: function selectorLegends(ids) {
|
|
5390
5462
|
var _this4 = this;
|
|
@@ -5460,7 +5532,7 @@ var colorizePattern = function (pattern, color, id) {
|
|
|
5460
5532
|
|
|
5461
5533
|
if (!pattern) {
|
|
5462
5534
|
var span = browser_doc.createElement("span");
|
|
5463
|
-
span.className =
|
|
5535
|
+
span.className = $COLOR.colorPattern;
|
|
5464
5536
|
span.style.display = "none";
|
|
5465
5537
|
body.appendChild(span);
|
|
5466
5538
|
var content = win.getComputedStyle(span).backgroundImage;
|
|
@@ -5600,7 +5672,7 @@ var colorizePattern = function (pattern, color, id) {
|
|
|
5600
5672
|
}
|
|
5601
5673
|
|
|
5602
5674
|
main.selectAll(isObject(d) ? // when is Arc type
|
|
5603
|
-
"." +
|
|
5675
|
+
"." + $ARC.arc + $$.getTargetSelectorSuffix(d.id) : "." + $SHAPE.shape + "-" + d).style("fill", color);
|
|
5604
5676
|
}
|
|
5605
5677
|
});
|
|
5606
5678
|
;// CONCATENATED MODULE: ./src/ChartInternal/internals/domain.ts
|
|
@@ -5714,7 +5786,7 @@ var colorizePattern = function (pattern, color, id) {
|
|
|
5714
5786
|
yDomainMax = $$.getYDomainMinMax(yTargets, "max"),
|
|
5715
5787
|
isZeroBased = [TYPE.BAR, TYPE.BUBBLE, TYPE.SCATTER].concat(TYPE_BY_CATEGORY.Line).some(function (v) {
|
|
5716
5788
|
var type = v.indexOf("area") > -1 ? "area" : v;
|
|
5717
|
-
return $$.hasType(v, yTargets) && config[type + "_zerobased"];
|
|
5789
|
+
return $$.hasType(v, yTargets, !0) && config[type + "_zerobased"];
|
|
5718
5790
|
});
|
|
5719
5791
|
// MEMO: avoid inverting domain unexpectedly
|
|
5720
5792
|
yDomainMin = isValue(yMin) ? yMin : isValue(yMax) ? yDomainMin < yMax ? yDomainMin : yMax - 10 : yDomainMin;
|
|
@@ -6053,8 +6125,14 @@ function getFormat($$, typeValue, v) {
|
|
|
6053
6125
|
*/
|
|
6054
6126
|
getDefaultValueFormat: function getDefaultValueFormat() {
|
|
6055
6127
|
var $$ = this,
|
|
6056
|
-
|
|
6057
|
-
|
|
6128
|
+
defaultArcValueFormat = $$.defaultArcValueFormat,
|
|
6129
|
+
yFormat = $$.yFormat,
|
|
6130
|
+
y2Format = $$.y2Format,
|
|
6131
|
+
hasArc = $$.hasArcType(null, ["gauge", "radar"]);
|
|
6132
|
+
return function (v, ratio, id) {
|
|
6133
|
+
var format = hasArc ? defaultArcValueFormat : $$.axis && $$.axis.getId(id) === "y2" ? y2Format : yFormat;
|
|
6134
|
+
return format.call($$, v, ratio);
|
|
6135
|
+
};
|
|
6058
6136
|
},
|
|
6059
6137
|
defaultValueFormat: function defaultValueFormat(v) {
|
|
6060
6138
|
return isValue(v) ? +v : "";
|
|
@@ -6110,7 +6188,7 @@ function getFormat($$, typeValue, v) {
|
|
|
6110
6188
|
|
|
6111
6189
|
if (config.legend_show) {
|
|
6112
6190
|
if (!config.legend_contents_bindto) {
|
|
6113
|
-
$el.legend = $$.$el.svg.append("g").classed(
|
|
6191
|
+
$el.legend = $$.$el.svg.append("g").classed($LEGEND.legend, !0).attr("transform", $$.getTranslate("legend"));
|
|
6114
6192
|
} // MEMO: call here to update legend box and translate for all
|
|
6115
6193
|
// MEMO: translate will be updated by this, so transform not needed in updateLegend()
|
|
6116
6194
|
|
|
@@ -6149,7 +6227,7 @@ function getFormat($$, typeValue, v) {
|
|
|
6149
6227
|
} // toggle legend state
|
|
6150
6228
|
|
|
6151
6229
|
|
|
6152
|
-
$el.legend.selectAll("." +
|
|
6230
|
+
$el.legend.selectAll("." + $LEGEND.legendItem).classed($LEGEND.legendItemHidden, function (id) {
|
|
6153
6231
|
var hide = !$$.isTargetToShow(id);
|
|
6154
6232
|
|
|
6155
6233
|
if (hide) {
|
|
@@ -6277,7 +6355,7 @@ function getFormat($$, typeValue, v) {
|
|
|
6277
6355
|
var legend = this.$el.legend;
|
|
6278
6356
|
|
|
6279
6357
|
if (legend) {
|
|
6280
|
-
legend.select("." +
|
|
6358
|
+
legend.select("." + $LEGEND.legendItem + "-" + id + " line").style("stroke", color);
|
|
6281
6359
|
}
|
|
6282
6360
|
},
|
|
6283
6361
|
|
|
@@ -6319,7 +6397,7 @@ function getFormat($$, typeValue, v) {
|
|
|
6319
6397
|
* @private
|
|
6320
6398
|
*/
|
|
6321
6399
|
opacityForUnfocusedLegend: function opacityForUnfocusedLegend(legendItem) {
|
|
6322
|
-
return legendItem.classed(
|
|
6400
|
+
return legendItem.classed($LEGEND.legendItemHidden) ? null : "0.3";
|
|
6323
6401
|
},
|
|
6324
6402
|
|
|
6325
6403
|
/**
|
|
@@ -6333,9 +6411,9 @@ function getFormat($$, typeValue, v) {
|
|
|
6333
6411
|
legend = $$.$el.legend,
|
|
6334
6412
|
$T = $$.$T,
|
|
6335
6413
|
targetIdz = $$.mapToTargetIds(targetIds);
|
|
6336
|
-
legend && $T(legend.selectAll("." +
|
|
6414
|
+
legend && $T(legend.selectAll("." + $LEGEND.legendItem).filter(function (id) {
|
|
6337
6415
|
return targetIdz.indexOf(id) >= 0;
|
|
6338
|
-
}).classed(
|
|
6416
|
+
}).classed($FOCUS.legendItemFocused, focus)).style("opacity", function () {
|
|
6339
6417
|
return focus ? null : $$.opacityForUnfocusedLegend.call($$, (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this));
|
|
6340
6418
|
});
|
|
6341
6419
|
},
|
|
@@ -6348,7 +6426,7 @@ function getFormat($$, typeValue, v) {
|
|
|
6348
6426
|
var $$ = this,
|
|
6349
6427
|
legend = $$.$el.legend,
|
|
6350
6428
|
$T = $$.$T;
|
|
6351
|
-
legend && $T(legend.selectAll("." +
|
|
6429
|
+
legend && $T(legend.selectAll("." + $LEGEND.legendItem).classed($FOCUS.legendItemFocused, !1)).style("opacity", null);
|
|
6352
6430
|
},
|
|
6353
6431
|
|
|
6354
6432
|
/**
|
|
@@ -6409,7 +6487,7 @@ function getFormat($$, typeValue, v) {
|
|
|
6409
6487
|
data = !state.redrawing && cache.get(cacheKey) || {};
|
|
6410
6488
|
|
|
6411
6489
|
if (!data[id]) {
|
|
6412
|
-
data[id] = $$.getTextRect(textElement,
|
|
6490
|
+
data[id] = $$.getTextRect(textElement, $LEGEND.legendItem);
|
|
6413
6491
|
cache.add(cacheKey, data);
|
|
6414
6492
|
}
|
|
6415
6493
|
|
|
@@ -6434,7 +6512,7 @@ function getFormat($$, typeValue, v) {
|
|
|
6434
6512
|
item.attr("class", function (id) {
|
|
6435
6513
|
var node = (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this),
|
|
6436
6514
|
itemClass = !node.empty() && node.attr("class") || "";
|
|
6437
|
-
return itemClass + $$.generateClass(
|
|
6515
|
+
return itemClass + $$.generateClass($LEGEND.legendItem, id);
|
|
6438
6516
|
}).style("visibility", function (id) {
|
|
6439
6517
|
return $$.isLegendToShow(id) ? null : "hidden";
|
|
6440
6518
|
});
|
|
@@ -6447,7 +6525,7 @@ function getFormat($$, typeValue, v) {
|
|
|
6447
6525
|
api.show(id);
|
|
6448
6526
|
} else {
|
|
6449
6527
|
api.toggle(id);
|
|
6450
|
-
(0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this).classed(
|
|
6528
|
+
(0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this).classed($FOCUS.legendItemFocused, !1);
|
|
6451
6529
|
}
|
|
6452
6530
|
}
|
|
6453
6531
|
|
|
@@ -6455,20 +6533,20 @@ function getFormat($$, typeValue, v) {
|
|
|
6455
6533
|
});
|
|
6456
6534
|
isTouch || item.on("mouseout", function (event, id) {
|
|
6457
6535
|
if (!callFn(config.legend_item_onout, api, id)) {
|
|
6458
|
-
(0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this).classed(
|
|
6536
|
+
(0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this).classed($FOCUS.legendItemFocused, !1);
|
|
6459
6537
|
|
|
6460
6538
|
if (hasGauge) {
|
|
6461
|
-
$$.undoMarkOverlapped($$, "." +
|
|
6539
|
+
$$.undoMarkOverlapped($$, "." + $GAUGE.gaugeValue);
|
|
6462
6540
|
}
|
|
6463
6541
|
|
|
6464
6542
|
$$.api.revert();
|
|
6465
6543
|
}
|
|
6466
6544
|
}).on("mouseover", function (event, id) {
|
|
6467
6545
|
if (!callFn(config.legend_item_onover, api, id)) {
|
|
6468
|
-
(0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this).classed(
|
|
6546
|
+
(0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this).classed($FOCUS.legendItemFocused, !0);
|
|
6469
6547
|
|
|
6470
6548
|
if (hasGauge) {
|
|
6471
|
-
$$.markOverlapped(id, $$, "." +
|
|
6549
|
+
$$.markOverlapped(id, $$, "." + $GAUGE.gaugeValue);
|
|
6472
6550
|
}
|
|
6473
6551
|
|
|
6474
6552
|
if (!state.transiting && $$.isTargetToShow(id)) {
|
|
@@ -6639,7 +6717,7 @@ function getFormat($$, typeValue, v) {
|
|
|
6639
6717
|
return yForLegend(id, i) + 4;
|
|
6640
6718
|
},
|
|
6641
6719
|
pos = -200,
|
|
6642
|
-
l = legend.selectAll("." +
|
|
6720
|
+
l = legend.selectAll("." + $LEGEND.legendItem).data(targetIdz).enter().append("g");
|
|
6643
6721
|
|
|
6644
6722
|
$$.setLegendItem(l);
|
|
6645
6723
|
l.append("text").text(function (id) {
|
|
@@ -6647,7 +6725,7 @@ function getFormat($$, typeValue, v) {
|
|
|
6647
6725
|
}).each(function (id, i) {
|
|
6648
6726
|
updatePositions(this, id, i);
|
|
6649
6727
|
}).style("pointer-events", "none").attr("x", isLegendRightOrInset ? xForLegendText : pos).attr("y", isLegendRightOrInset ? pos : yForLegendText);
|
|
6650
|
-
l.append("rect").attr("class",
|
|
6728
|
+
l.append("rect").attr("class", $LEGEND.legendItemEvent).style("fill-opacity", "0").attr("x", isLegendRightOrInset ? xForLegendRect : pos).attr("y", isLegendRightOrInset ? pos : yForLegendRect);
|
|
6651
6729
|
|
|
6652
6730
|
var getColor = function (id) {
|
|
6653
6731
|
var data = $$.getDataById(id);
|
|
@@ -6667,21 +6745,21 @@ function getFormat($$, typeValue, v) {
|
|
|
6667
6745
|
}
|
|
6668
6746
|
|
|
6669
6747
|
return browser_doc.createElementNS(external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.namespaces.svg, "hasValidPointType" in $$ && $$.hasValidPointType(point) ? point : "use");
|
|
6670
|
-
}).attr("class",
|
|
6748
|
+
}).attr("class", $LEGEND.legendItemPoint).style("fill", getColor).style("pointer-events", "none").attr("href", function (data, idx, selection) {
|
|
6671
6749
|
var node = selection[idx],
|
|
6672
6750
|
nodeName = node.nodeName.toLowerCase(),
|
|
6673
6751
|
id = $$.getTargetSelectorSuffix(data);
|
|
6674
6752
|
return nodeName === "use" ? "#" + state.datetimeId + "-point" + id : undefined;
|
|
6675
6753
|
});
|
|
6676
6754
|
} else {
|
|
6677
|
-
l.append("line").attr("class",
|
|
6755
|
+
l.append("line").attr("class", $LEGEND.legendItemTile).style("stroke", getColor).style("pointer-events", "none").attr("x1", isLegendRightOrInset ? x1ForLegendTile : pos).attr("y1", isLegendRightOrInset ? pos : yForLegendTile).attr("x2", isLegendRightOrInset ? x2ForLegendTile : pos).attr("y2", isLegendRightOrInset ? pos : yForLegendTile).attr("stroke-width", config.legend_item_tile_height);
|
|
6678
6756
|
} // Set background for inset legend
|
|
6679
6757
|
|
|
6680
6758
|
|
|
6681
|
-
background = legend.select("." +
|
|
6759
|
+
background = legend.select("." + $LEGEND.legendBackground + " rect");
|
|
6682
6760
|
|
|
6683
6761
|
if (state.isLegendInset && maxWidth > 0 && background.size() === 0) {
|
|
6684
|
-
background = legend.insert("g", "." +
|
|
6762
|
+
background = legend.insert("g", "." + $LEGEND.legendItem).attr("class", $LEGEND.legendBackground).append("rect");
|
|
6685
6763
|
}
|
|
6686
6764
|
|
|
6687
6765
|
var texts = legend.selectAll("text").data(targetIdz).text(function (id) {
|
|
@@ -6691,7 +6769,7 @@ function getFormat($$, typeValue, v) {
|
|
|
6691
6769
|
updatePositions(this, id, i);
|
|
6692
6770
|
});
|
|
6693
6771
|
$T(texts, withTransition).attr("x", xForLegendText).attr("y", yForLegendText);
|
|
6694
|
-
var rects = legend.selectAll("rect." +
|
|
6772
|
+
var rects = legend.selectAll("rect." + $LEGEND.legendItemEvent).data(targetIdz);
|
|
6695
6773
|
$T(rects, withTransition).attr("width", function (id) {
|
|
6696
6774
|
return widths[id];
|
|
6697
6775
|
}).attr("height", function (id) {
|
|
@@ -6699,7 +6777,7 @@ function getFormat($$, typeValue, v) {
|
|
|
6699
6777
|
}).attr("x", xForLegendRect).attr("y", yForLegendRect);
|
|
6700
6778
|
|
|
6701
6779
|
if (usePoint) {
|
|
6702
|
-
var tiles = legend.selectAll("." +
|
|
6780
|
+
var tiles = legend.selectAll("." + $LEGEND.legendItemPoint).data(targetIdz);
|
|
6703
6781
|
$T(tiles, withTransition).each(function () {
|
|
6704
6782
|
var nodeName = this.nodeName.toLowerCase(),
|
|
6705
6783
|
pointR = config.point_r,
|
|
@@ -6733,7 +6811,7 @@ function getFormat($$, typeValue, v) {
|
|
|
6733
6811
|
}).attr("r", radius).attr("width", width).attr("height", height);
|
|
6734
6812
|
});
|
|
6735
6813
|
} else {
|
|
6736
|
-
var _tiles = legend.selectAll("line." +
|
|
6814
|
+
var _tiles = legend.selectAll("line." + $LEGEND.legendItemTile).data(targetIdz);
|
|
6737
6815
|
|
|
6738
6816
|
$T(_tiles, withTransition).style("stroke", getColor).attr("x1", x1ForLegendTile).attr("y1", yForLegendTile).attr("x2", x2ForLegendTile).attr("y2", yForLegendTile);
|
|
6739
6817
|
}
|
|
@@ -6803,7 +6881,7 @@ var external_commonjs_d3_transition_commonjs2_d3_transition_amd_d3_transition_ro
|
|
|
6803
6881
|
// @TODO: Make 'init' state to be accessible everywhere not passing as argument.
|
|
6804
6882
|
$$.axis.redrawAxis(targetsToShow, wth, transitions, flow, initializing); // Data empty label positioning and text.
|
|
6805
6883
|
|
|
6806
|
-
config.data_empty_label_text && main.select("text." +
|
|
6884
|
+
config.data_empty_label_text && main.select("text." + $TEXT.text + "." + $COMMON.empty).attr("x", state.width / 2).attr("y", state.height / 2).text(config.data_empty_label_text).style("display", targetsToShow.length ? "none" : null); // grid
|
|
6807
6885
|
|
|
6808
6886
|
$$.hasGrid() && $$.updateGrid(); // rect for regions
|
|
6809
6887
|
|
|
@@ -6816,7 +6894,7 @@ var external_commonjs_d3_transition_commonjs2_d3_transition_amd_d3_transition_ro
|
|
|
6816
6894
|
}
|
|
6817
6895
|
}); // circles for select
|
|
6818
6896
|
|
|
6819
|
-
$el.text && main.selectAll("." +
|
|
6897
|
+
$el.text && main.selectAll("." + $SELECT.selectedCircles).filter($$.isBarType.bind($$)).selectAll("circle").remove(); // event rects will redrawn when flow called
|
|
6820
6898
|
|
|
6821
6899
|
if (config.interaction_enabled && !flow && wth.EventRect) {
|
|
6822
6900
|
$$.redrawEventRect();
|
|
@@ -6982,7 +7060,8 @@ var external_commonjs_d3_transition_commonjs2_d3_transition_amd_d3_transition_ro
|
|
|
6982
7060
|
redrawWithoutRescale: function redrawWithoutRescale() {
|
|
6983
7061
|
this.redraw({
|
|
6984
7062
|
withY: !1,
|
|
6985
|
-
|
|
7063
|
+
withDimension: !1,
|
|
7064
|
+
withLegend: !1,
|
|
6986
7065
|
withSubchart: !1,
|
|
6987
7066
|
withEventRect: !1,
|
|
6988
7067
|
withTransitionForAxis: !1
|
|
@@ -7467,11 +7546,13 @@ var external_commonjs_d3_shape_commonjs2_d3_shape_amd_d3_shape_root_d3_ = __webp
|
|
|
7467
7546
|
*/
|
|
7468
7547
|
getShapeYMin: function getShapeYMin(id) {
|
|
7469
7548
|
var $$ = this,
|
|
7470
|
-
|
|
7549
|
+
axisId = $$.axis.getId(id),
|
|
7550
|
+
scale = $$.scale[axisId],
|
|
7471
7551
|
_scale$domain = scale.domain(),
|
|
7472
|
-
yMin = _scale$domain[0]
|
|
7552
|
+
yMin = _scale$domain[0],
|
|
7553
|
+
inverted = $$.config["axis_" + axisId + "_inverted"];
|
|
7473
7554
|
|
|
7474
|
-
return !$$.isGrouped(id) && yMin > 0 ? yMin : 0;
|
|
7555
|
+
return !$$.isGrouped(id) && !inverted && yMin > 0 ? yMin : 0;
|
|
7475
7556
|
},
|
|
7476
7557
|
|
|
7477
7558
|
/**
|
|
@@ -7622,7 +7703,7 @@ var external_commonjs_d3_shape_commonjs2_d3_shape_amd_d3_shape_root_d3_ = __webp
|
|
|
7622
7703
|
return isValue(i) ? d.index === i : !0;
|
|
7623
7704
|
});
|
|
7624
7705
|
} else {
|
|
7625
|
-
shape = (id ? $el.main.selectAll("." +
|
|
7706
|
+
shape = (id ? $el.main.selectAll("." + classes[shapeName + "s"] + $$.getTargetSelectorSuffix(id)) : $el.main).selectAll("." + classes[shapeName] + suffix);
|
|
7626
7707
|
}
|
|
7627
7708
|
|
|
7628
7709
|
return shape;
|
|
@@ -7637,7 +7718,7 @@ var external_commonjs_d3_shape_commonjs2_d3_shape_amd_d3_shape_root_d3_ = __webp
|
|
|
7637
7718
|
} else if ($$.hasValidPointType != null && $$.hasValidPointType(that.nodeName)) {
|
|
7638
7719
|
isWithin = $$.isStepType(d) ? $$.isWithinStep(that, $$.getYScaleById(d.id)(d.value)) : $$.isWithinCircle(that, $$.isBubbleType(d) ? $$.pointSelectR(d) * 1.5 : 0);
|
|
7639
7720
|
} else if (that.nodeName === "path") {
|
|
7640
|
-
isWithin = shape.classed(
|
|
7721
|
+
isWithin = shape.classed(classes.bar) ? $$.isWithinBar(that) : !0;
|
|
7641
7722
|
}
|
|
7642
7723
|
|
|
7643
7724
|
return isWithin;
|
|
@@ -7847,7 +7928,7 @@ var external_commonjs_d3_shape_commonjs2_d3_shape_amd_d3_shape_root_d3_ = __webp
|
|
|
7847
7928
|
config = $$.config,
|
|
7848
7929
|
$el = $$.$el,
|
|
7849
7930
|
hasLeftAxisRect = config.axis_rotated || !config.axis_rotated && !config.axis_y_inner,
|
|
7850
|
-
leftAxisClass = config.axis_rotated ?
|
|
7931
|
+
leftAxisClass = config.axis_rotated ? $AXIS.axisX : $AXIS.axisY,
|
|
7851
7932
|
leftAxis = $el.main.select("." + leftAxisClass).node(),
|
|
7852
7933
|
svgRect = leftAxis && hasLeftAxisRect ? leftAxis.getBoundingClientRect() : {
|
|
7853
7934
|
right: 0
|
|
@@ -7886,7 +7967,7 @@ var external_commonjs_d3_shape_commonjs2_d3_shape_amd_d3_shape_root_d3_ = __webp
|
|
|
7886
7967
|
svg.attr("width", current.width).attr("height", current.height);
|
|
7887
7968
|
|
|
7888
7969
|
if (hasAxis) {
|
|
7889
|
-
var brush = svg.select("." +
|
|
7970
|
+
var brush = svg.select("." + $SUBCHART.brush + " .overlay"),
|
|
7890
7971
|
brushSize = {
|
|
7891
7972
|
width: 0,
|
|
7892
7973
|
height: 0
|
|
@@ -8049,7 +8130,7 @@ var external_commonjs_d3_shape_commonjs2_d3_shape_amd_d3_shape_root_d3_ = __webp
|
|
|
8049
8130
|
*/
|
|
8050
8131
|
initText: function initText() {
|
|
8051
8132
|
var $el = this.$el;
|
|
8052
|
-
$el.main.select("." +
|
|
8133
|
+
$el.main.select("." + $COMMON.chart).append("g").attr("class", $TEXT.chartTexts);
|
|
8053
8134
|
},
|
|
8054
8135
|
|
|
8055
8136
|
/**
|
|
@@ -8062,7 +8143,7 @@ var external_commonjs_d3_shape_commonjs2_d3_shape_amd_d3_shape_root_d3_ = __webp
|
|
|
8062
8143
|
classChartText = $$.getChartClass("Text"),
|
|
8063
8144
|
classTexts = $$.getClass("texts", "id"),
|
|
8064
8145
|
classFocus = $$.classFocus.bind($$),
|
|
8065
|
-
mainTextUpdate = $$.$el.main.select("." +
|
|
8146
|
+
mainTextUpdate = $$.$el.main.select("." + $TEXT.chartTexts).selectAll("." + $TEXT.chartText).data(targets).attr("class", function (d) {
|
|
8066
8147
|
return classChartText(d) + classFocus(d);
|
|
8067
8148
|
}),
|
|
8068
8149
|
mainTextEnter = mainTextUpdate.enter().append("g").style("opacity", "0").attr("class", classChartText).style("pointer-events", "none");
|
|
@@ -8079,7 +8160,7 @@ var external_commonjs_d3_shape_commonjs2_d3_shape_amd_d3_shape_root_d3_ = __webp
|
|
|
8079
8160
|
$T = $$.$T,
|
|
8080
8161
|
config = $$.config,
|
|
8081
8162
|
classText = $$.getClass("text", "index"),
|
|
8082
|
-
text = $el.main.selectAll("." +
|
|
8163
|
+
text = $el.main.selectAll("." + $TEXT.texts).selectAll("." + $TEXT.text).data($$.labelishData.bind($$));
|
|
8083
8164
|
$T(text.exit()).style("fill-opacity", "0").remove();
|
|
8084
8165
|
$el.text = text.enter().append("text").merge(text).attr("class", classText).attr("text-anchor", function (d) {
|
|
8085
8166
|
// when value is negative or
|
|
@@ -8442,7 +8523,7 @@ var external_commonjs_d3_shape_commonjs2_d3_shape_amd_d3_shape_root_d3_ = __webp
|
|
|
8442
8523
|
nodeForWidth = calcHypo(translate.e, translate.f) > calcHypo(coordinate.e, coordinate.f) ? textNode : filteredTextNode,
|
|
8443
8524
|
overlapsX = Math.ceil(Math.abs(translate.e - coordinate.e)) < Math.ceil(nodeForWidth.node().getComputedTextLength()),
|
|
8444
8525
|
overlapsY = Math.ceil(Math.abs(translate.f - coordinate.f)) < parseInt(textNode.style("font-size"), 10);
|
|
8445
|
-
filteredTextNode.classed(
|
|
8526
|
+
filteredTextNode.classed($TEXT.TextOverlapping, overlapsX && overlapsY);
|
|
8446
8527
|
});
|
|
8447
8528
|
},
|
|
8448
8529
|
|
|
@@ -8455,7 +8536,7 @@ var external_commonjs_d3_shape_commonjs2_d3_shape_amd_d3_shape_root_d3_ = __webp
|
|
|
8455
8536
|
*/
|
|
8456
8537
|
undoMarkOverlapped: function undoMarkOverlapped($$, selector) {
|
|
8457
8538
|
$$.$el.arcs.selectAll(selector).each(function () {
|
|
8458
|
-
(0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.selectAll)([this, this.previousSibling]).classed(
|
|
8539
|
+
(0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.selectAll)([this, this.previousSibling]).classed($TEXT.TextOverlapping, !1);
|
|
8459
8540
|
});
|
|
8460
8541
|
},
|
|
8461
8542
|
|
|
@@ -8523,7 +8604,7 @@ function getTextPos(pos, width) {
|
|
|
8523
8604
|
|
|
8524
8605
|
if (config.title_text) {
|
|
8525
8606
|
$el.title = $el.svg.append("g");
|
|
8526
|
-
var text = $el.title.append("text").style("text-anchor", getTextPos(config.title_position)).attr("class",
|
|
8607
|
+
var text = $el.title.append("text").style("text-anchor", getTextPos(config.title_position)).attr("class", $TEXT.title);
|
|
8527
8608
|
setTextValue(text, config.title_text, [.3, 1.5]);
|
|
8528
8609
|
}
|
|
8529
8610
|
},
|
|
@@ -8559,7 +8640,7 @@ function getTextPos(pos, width) {
|
|
|
8559
8640
|
config = $$.config,
|
|
8560
8641
|
current = $$.state.current,
|
|
8561
8642
|
position = config.title_position || "left",
|
|
8562
|
-
textRectWidth = $$.getTextRect($$.$el.title,
|
|
8643
|
+
textRectWidth = $$.getTextRect($$.$el.title, $TEXT.title).width,
|
|
8563
8644
|
x;
|
|
8564
8645
|
|
|
8565
8646
|
if (/(right|center)/.test(position)) {
|
|
@@ -8585,7 +8666,7 @@ function getTextPos(pos, width) {
|
|
|
8585
8666
|
*/
|
|
8586
8667
|
yForTitle: function yForTitle() {
|
|
8587
8668
|
var $$ = this;
|
|
8588
|
-
return ($$.config.title_padding.top || 0) + $$.getTextRect($$.$el.title,
|
|
8669
|
+
return ($$.config.title_padding.top || 0) + $$.getTextRect($$.$el.title, $TEXT.title).height;
|
|
8589
8670
|
},
|
|
8590
8671
|
|
|
8591
8672
|
/**
|
|
@@ -8619,7 +8700,7 @@ function getTextPos(pos, width) {
|
|
|
8619
8700
|
$el.tooltip = (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(config.tooltip_contents.bindto);
|
|
8620
8701
|
|
|
8621
8702
|
if ($el.tooltip.empty()) {
|
|
8622
|
-
$el.tooltip = $el.chart.append("div").attr("class",
|
|
8703
|
+
$el.tooltip = $el.chart.append("div").attr("class", $TOOLTIP.tooltipContainer).style("position", "absolute").style("pointer-events", "none").style("display", "none");
|
|
8623
8704
|
}
|
|
8624
8705
|
|
|
8625
8706
|
$$.bindTooltipResizePos();
|
|
@@ -8772,13 +8853,13 @@ function getTextPos(pos, width) {
|
|
|
8772
8853
|
if (isUndefined(text)) {
|
|
8773
8854
|
var title = (state.hasAxis || state.hasRadar) && sanitise(titleFormat ? titleFormat(row.x) : row.x);
|
|
8774
8855
|
text = tplProcess(tpl[0], {
|
|
8775
|
-
CLASS_TOOLTIP:
|
|
8856
|
+
CLASS_TOOLTIP: $TOOLTIP.tooltip,
|
|
8776
8857
|
TITLE: isValue(title) ? tplStr ? title : "<tr><th colspan=\"2\">" + title + "</th></tr>" : ""
|
|
8777
8858
|
});
|
|
8778
8859
|
}
|
|
8779
8860
|
|
|
8780
8861
|
if (!row.ratio && $$.$el.arcs) {
|
|
8781
|
-
row.ratio = $$.getRatio("arc", $$.$el.arcs.select("path." +
|
|
8862
|
+
row.ratio = $$.getRatio("arc", $$.$el.arcs.select("path." + $ARC.arc + "-" + row.id).data()[0]);
|
|
8782
8863
|
}
|
|
8783
8864
|
|
|
8784
8865
|
param = [row.ratio, row.id, row.index, d];
|
|
@@ -8820,7 +8901,7 @@ function getTextPos(pos, width) {
|
|
|
8820
8901
|
var name = sanitise(nameFormat.apply(void 0, [row.name].concat(param))),
|
|
8821
8902
|
color = getBgColor(row),
|
|
8822
8903
|
contentValue = {
|
|
8823
|
-
CLASS_TOOLTIP_NAME:
|
|
8904
|
+
CLASS_TOOLTIP_NAME: $TOOLTIP.tooltipName + $$.getTargetSelectorSuffix(row.id),
|
|
8824
8905
|
COLOR: tplStr || !$$.patterns ? color : "<svg><rect style=\"fill:" + color + "\" width=\"10\" height=\"10\"></rect></svg>",
|
|
8825
8906
|
NAME: name,
|
|
8826
8907
|
VALUE: value
|
|
@@ -9158,14 +9239,14 @@ function getTextPos(pos, width) {
|
|
|
9158
9239
|
var $$ = this,
|
|
9159
9240
|
main = $$.$el.main,
|
|
9160
9241
|
$T = $$.$T,
|
|
9161
|
-
xAxis = transitions != null && transitions.axisX ? transitions.axisX : $T(main.select("." +
|
|
9162
|
-
yAxis = transitions != null && transitions.axisY ? transitions.axisY : $T(main.select("." +
|
|
9163
|
-
y2Axis = transitions != null && transitions.axisY2 ? transitions.axisY2 : $T(main.select("." +
|
|
9242
|
+
xAxis = transitions != null && transitions.axisX ? transitions.axisX : $T(main.select("." + $AXIS.axisX), withTransition),
|
|
9243
|
+
yAxis = transitions != null && transitions.axisY ? transitions.axisY : $T(main.select("." + $AXIS.axisY), withTransition),
|
|
9244
|
+
y2Axis = transitions != null && transitions.axisY2 ? transitions.axisY2 : $T(main.select("." + $AXIS.axisY2), withTransition);
|
|
9164
9245
|
$T(main, withTransition).attr("transform", $$.getTranslate("main"));
|
|
9165
9246
|
xAxis.attr("transform", $$.getTranslate("x"));
|
|
9166
9247
|
yAxis.attr("transform", $$.getTranslate("y"));
|
|
9167
9248
|
y2Axis.attr("transform", $$.getTranslate("y2"));
|
|
9168
|
-
main.select("." +
|
|
9249
|
+
main.select("." + $ARC.chartArcs).attr("transform", $$.getTranslate("arc"));
|
|
9169
9250
|
},
|
|
9170
9251
|
transformAll: function transformAll(withTransition, transitions) {
|
|
9171
9252
|
var $$ = this,
|
|
@@ -9649,7 +9730,7 @@ var ChartInternal = /*#__PURE__*/function () {
|
|
|
9649
9730
|
state = _ref.state,
|
|
9650
9731
|
isRotated = config.axis_rotated;
|
|
9651
9732
|
// datetime to be used for uniqueness
|
|
9652
|
-
state.datetimeId = "bb-" + +new Date();
|
|
9733
|
+
state.datetimeId = "bb-" + +new Date() * getRandom();
|
|
9653
9734
|
$$.color = $$.generateColor();
|
|
9654
9735
|
$$.levelColor = $$.generateLevelColor();
|
|
9655
9736
|
|
|
@@ -9786,7 +9867,7 @@ var ChartInternal = /*#__PURE__*/function () {
|
|
|
9786
9867
|
|
|
9787
9868
|
$$.bindResize(); // Define regions
|
|
9788
9869
|
|
|
9789
|
-
var main = $el.svg.append("g").classed(
|
|
9870
|
+
var main = $el.svg.append("g").classed($COMMON.main, !0).attr("transform", $$.getTranslate("main"));
|
|
9790
9871
|
$el.main = main; // initialize subchart when subchart show option is set
|
|
9791
9872
|
|
|
9792
9873
|
config.subchart_show && $$.initSubchart();
|
|
@@ -9796,7 +9877,7 @@ var ChartInternal = /*#__PURE__*/function () {
|
|
|
9796
9877
|
// text when empty
|
|
9797
9878
|
|
|
9798
9879
|
if (config.data_empty_label_text) {
|
|
9799
|
-
main.append("text").attr("class",
|
|
9880
|
+
main.append("text").attr("class", $TEXT.text + " " + $COMMON.empty).attr("text-anchor", "middle") // horizontal centering of text at x position in all browsers.
|
|
9800
9881
|
.attr("dominant-baseline", "middle"); // vertical centering of text at y position in all browsers, except IE.
|
|
9801
9882
|
}
|
|
9802
9883
|
|
|
@@ -9808,7 +9889,7 @@ var ChartInternal = /*#__PURE__*/function () {
|
|
|
9808
9889
|
} // Define g for chart area
|
|
9809
9890
|
|
|
9810
9891
|
|
|
9811
|
-
main.append("g").attr("class",
|
|
9892
|
+
main.append("g").attr("class", $COMMON.chart).attr("clip-path", state.clip.path);
|
|
9812
9893
|
$$.callPluginHook("$init");
|
|
9813
9894
|
|
|
9814
9895
|
if (hasAxis) {
|
|
@@ -10007,7 +10088,7 @@ var ChartInternal = /*#__PURE__*/function () {
|
|
|
10007
10088
|
var $$ = this,
|
|
10008
10089
|
svg = $$.$el.svg,
|
|
10009
10090
|
$T = $$.$T;
|
|
10010
|
-
$T(svg.selectAll("." +
|
|
10091
|
+
$T(svg.selectAll("." + $COMMON.target).filter(function (d) {
|
|
10011
10092
|
return $$.isTargetToShow(d.id);
|
|
10012
10093
|
})).style("opacity", null);
|
|
10013
10094
|
};
|
|
@@ -10177,7 +10258,7 @@ function loadConfig(config) {
|
|
|
10177
10258
|
config.size_width = size ? size.width : null;
|
|
10178
10259
|
config.size_height = size ? size.height : null;
|
|
10179
10260
|
state.resizing = !0;
|
|
10180
|
-
this.flush(!1
|
|
10261
|
+
this.flush(!1);
|
|
10181
10262
|
$$.resizeFunction();
|
|
10182
10263
|
}
|
|
10183
10264
|
},
|
|
@@ -10711,11 +10792,11 @@ function nodeToSvgDataUrl(node, option, orgSize) {
|
|
|
10711
10792
|
candidates = $$.$el.svg.selectAll($$.selectorTargets(targetIds.filter($$.isTargetToShow, $$)));
|
|
10712
10793
|
this.revert();
|
|
10713
10794
|
this.defocus();
|
|
10714
|
-
candidates.classed(
|
|
10795
|
+
candidates.classed($FOCUS.focused, !0).classed($FOCUS.defocused, !1);
|
|
10715
10796
|
|
|
10716
10797
|
if ($$.hasArcType() && !state.hasRadar) {
|
|
10717
10798
|
$$.expandArc(targetIds);
|
|
10718
|
-
$$.hasType("gauge") && $$.markOverlapped(targetIdsValue, $$, "." +
|
|
10799
|
+
$$.hasType("gauge") && $$.markOverlapped(targetIdsValue, $$, "." + $GAUGE.gaugeValue);
|
|
10719
10800
|
}
|
|
10720
10801
|
|
|
10721
10802
|
$$.toggleFocusLegend(targetIds, !0);
|
|
@@ -10747,11 +10828,11 @@ function nodeToSvgDataUrl(node, option, orgSize) {
|
|
|
10747
10828
|
state = $$.state,
|
|
10748
10829
|
targetIds = $$.mapToTargetIds(targetIdsValue),
|
|
10749
10830
|
candidates = $$.$el.svg.selectAll($$.selectorTargets(targetIds.filter($$.isTargetToShow, $$)));
|
|
10750
|
-
candidates.classed(
|
|
10831
|
+
candidates.classed($FOCUS.focused, !1).classed($FOCUS.defocused, !0);
|
|
10751
10832
|
|
|
10752
10833
|
if ($$.hasArcType()) {
|
|
10753
10834
|
$$.unexpandArc(targetIds);
|
|
10754
|
-
$$.hasType("gauge") && $$.undoMarkOverlapped($$, "." +
|
|
10835
|
+
$$.hasType("gauge") && $$.undoMarkOverlapped($$, "." + $GAUGE.gaugeValue);
|
|
10755
10836
|
}
|
|
10756
10837
|
|
|
10757
10838
|
$$.toggleFocusLegend(targetIds, !1);
|
|
@@ -10786,14 +10867,14 @@ function nodeToSvgDataUrl(node, option, orgSize) {
|
|
|
10786
10867
|
targetIds = $$.mapToTargetIds(targetIdsValue),
|
|
10787
10868
|
candidates = $el.svg.selectAll($$.selectorTargets(targetIds));
|
|
10788
10869
|
// should be for all targets
|
|
10789
|
-
candidates.classed(
|
|
10870
|
+
candidates.classed($FOCUS.focused, !1).classed($FOCUS.defocused, !1);
|
|
10790
10871
|
$$.hasArcType() && $$.unexpandArc(targetIds);
|
|
10791
10872
|
|
|
10792
10873
|
if (config.legend_show) {
|
|
10793
10874
|
$$.showLegend(targetIds.filter($$.isLegendToShow.bind($$)));
|
|
10794
10875
|
$el.legend.selectAll($$.selectorLegends(targetIds)).filter(function () {
|
|
10795
|
-
return (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this).classed(
|
|
10796
|
-
}).classed(
|
|
10876
|
+
return (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this).classed($FOCUS.legendItemFocused);
|
|
10877
|
+
}).classed($FOCUS.legendItemFocused, !1);
|
|
10797
10878
|
}
|
|
10798
10879
|
|
|
10799
10880
|
state.focusedTargetIds = [];
|
|
@@ -12032,8 +12113,8 @@ extend(regions, {
|
|
|
12032
12113
|
config = $$.config,
|
|
12033
12114
|
$T = $$.$T,
|
|
12034
12115
|
options = optionsValue || {},
|
|
12035
|
-
classes = getOption(options, "classes", [
|
|
12036
|
-
regions = $$.$el.main.select("." +
|
|
12116
|
+
classes = getOption(options, "classes", [$REGION.region]),
|
|
12117
|
+
regions = $$.$el.main.select("." + $REGION.regions).selectAll(classes.map(function (c) {
|
|
12037
12118
|
return "." + c;
|
|
12038
12119
|
}));
|
|
12039
12120
|
$T(regions).style("opacity", "0").remove();
|
|
@@ -13026,7 +13107,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
13026
13107
|
var _proto = Axis.prototype;
|
|
13027
13108
|
|
|
13028
13109
|
_proto.getAxisClassName = function getAxisClassName(id) {
|
|
13029
|
-
return
|
|
13110
|
+
return $AXIS.axis + " " + $AXIS["axis" + capitalize(id)];
|
|
13030
13111
|
};
|
|
13031
13112
|
|
|
13032
13113
|
_proto.isHorizontal = function isHorizontal($$, forHorizontal) {
|
|
@@ -13096,7 +13177,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
13096
13177
|
config.axis_y2_show && target.push("y2");
|
|
13097
13178
|
target.forEach(function (v) {
|
|
13098
13179
|
var classAxis = _this.getAxisClassName(v),
|
|
13099
|
-
classLabel =
|
|
13180
|
+
classLabel = $AXIS["axis" + v.toUpperCase() + "Label"];
|
|
13100
13181
|
|
|
13101
13182
|
axis[v] = main.append("g").attr("class", classAxis).attr("clip-path", function () {
|
|
13102
13183
|
var res = null;
|
|
@@ -13183,7 +13264,8 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
13183
13264
|
var _this2 = this,
|
|
13184
13265
|
$$ = this.owner,
|
|
13185
13266
|
config = $$.config,
|
|
13186
|
-
main = $$.$el.main
|
|
13267
|
+
main = $$.$el.main,
|
|
13268
|
+
$T = $$.$T;
|
|
13187
13269
|
|
|
13188
13270
|
Object.keys(this.axesList).forEach(function (id) {
|
|
13189
13271
|
var axesConfig = config["axis_" + id + "_axes"],
|
|
@@ -13207,7 +13289,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
13207
13289
|
g = main.append("g").attr("class", className).style("visibility", config["axis_" + id + "_show"] ? null : "hidden").call(v);
|
|
13208
13290
|
} else {
|
|
13209
13291
|
axesConfig[i].domain && scale.domain(axesConfig[i].domain);
|
|
13210
|
-
|
|
13292
|
+
$T(g).call(v.scale(scale));
|
|
13211
13293
|
}
|
|
13212
13294
|
|
|
13213
13295
|
g.attr("transform", $$.getTranslate(id, i + 1));
|
|
@@ -13663,9 +13745,9 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
13663
13745
|
main = $$.$el.main,
|
|
13664
13746
|
$T = $$.$T,
|
|
13665
13747
|
labels = {
|
|
13666
|
-
x: main.select("." +
|
|
13667
|
-
y: main.select("." +
|
|
13668
|
-
y2: main.select("." +
|
|
13748
|
+
x: main.select("." + $AXIS.axisX + " ." + $AXIS.axisXLabel),
|
|
13749
|
+
y: main.select("." + $AXIS.axisY + " ." + $AXIS.axisYLabel),
|
|
13750
|
+
y2: main.select("." + $AXIS.axisY2 + " ." + $AXIS.axisY2Label)
|
|
13669
13751
|
};
|
|
13670
13752
|
|
|
13671
13753
|
Object.keys(labels).filter(function (id) {
|
|
@@ -13826,11 +13908,12 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
13826
13908
|
}
|
|
13827
13909
|
|
|
13828
13910
|
["y", "y2"].forEach(function (key) {
|
|
13829
|
-
var
|
|
13911
|
+
var prefix = "axis_" + key + "_",
|
|
13912
|
+
axisScale = scale[key];
|
|
13830
13913
|
|
|
13831
|
-
if (axisScale) {
|
|
13832
|
-
var tickValues = config[
|
|
13833
|
-
tickCount = config[
|
|
13914
|
+
if (config[prefix + "show"] && axisScale) {
|
|
13915
|
+
var tickValues = config[prefix + "tick_values"],
|
|
13916
|
+
tickCount = config[prefix + "tick_count"];
|
|
13834
13917
|
axisScale.domain($$.getYDomain(targetsToShow, key, xDomainForZoom));
|
|
13835
13918
|
|
|
13836
13919
|
if (!tickValues && tickCount) {
|
|
@@ -13897,7 +13980,8 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
13897
13980
|
|
|
13898
13981
|
tickNodes.each(function (d) {
|
|
13899
13982
|
if (tickValues.indexOf(d) % intervalForCulling) {
|
|
13900
|
-
|
|
13983
|
+
var node = lines ? this.querySelector("text") : this;
|
|
13984
|
+
node && (node.style.display = "none");
|
|
13901
13985
|
}
|
|
13902
13986
|
});
|
|
13903
13987
|
} else {
|
|
@@ -13907,7 +13991,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
13907
13991
|
|
|
13908
13992
|
if (type === "x") {
|
|
13909
13993
|
var clipPath = current.maxTickWidths.x.clipPath ? clip.pathXAxisTickTexts : null;
|
|
13910
|
-
$el.svg.selectAll("." +
|
|
13994
|
+
$el.svg.selectAll("." + $AXIS.axisX + " .tick text").attr("clip-path", clipPath);
|
|
13911
13995
|
}
|
|
13912
13996
|
}
|
|
13913
13997
|
});
|
|
@@ -13930,7 +14014,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
13930
14014
|
*/
|
|
13931
14015
|
initEventRect: function initEventRect() {
|
|
13932
14016
|
var $$ = this;
|
|
13933
|
-
$$.$el.main.select("." +
|
|
14017
|
+
$$.$el.main.select("." + $COMMON.chart).append("g").attr("class", $EVENT.eventRects).style("fill-opacity", "0");
|
|
13934
14018
|
},
|
|
13935
14019
|
|
|
13936
14020
|
/**
|
|
@@ -13947,8 +14031,8 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
13947
14031
|
if ($el.eventRect) {
|
|
13948
14032
|
$$.updateEventRect($el.eventRect, !0);
|
|
13949
14033
|
} else {
|
|
13950
|
-
var eventRects = $$.$el.main.select("." +
|
|
13951
|
-
eventRectUpdate = eventRects.selectAll("." +
|
|
14034
|
+
var eventRects = $$.$el.main.select("." + $EVENT.eventRects).style("cursor", config.zoom_enabled && config.zoom_type !== "drag" ? config.axis_rotated ? "ns-resize" : "ew-resize" : null).classed($EVENT.eventRectsMultiple, isMultipleX).classed($EVENT.eventRectsSingle, !isMultipleX),
|
|
14035
|
+
eventRectUpdate = eventRects.selectAll("." + $EVENT.eventRect).data([0]).enter().append("rect"); // append event <rect>
|
|
13952
14036
|
|
|
13953
14037
|
$$.updateEventRect(eventRectUpdate); // bind event to <rect> element
|
|
13954
14038
|
|
|
@@ -14026,7 +14110,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
14026
14110
|
}).on("touchstart.eventRect touchmove.eventRect", function (event) {
|
|
14027
14111
|
state.event = event;
|
|
14028
14112
|
|
|
14029
|
-
if (!eventRect.empty() && eventRect.classed(
|
|
14113
|
+
if (!eventRect.empty() && eventRect.classed($EVENT.eventRect)) {
|
|
14030
14114
|
// if touch points are > 1, means doing zooming interaction. In this case do not execute tooltip codes.
|
|
14031
14115
|
if (state.dragging || state.flowing || $$.hasArcType() || event.touches.length > 1) {
|
|
14032
14116
|
return;
|
|
@@ -14040,7 +14124,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
14040
14124
|
}, !0).on("touchend.eventRect", function (event) {
|
|
14041
14125
|
state.event = event;
|
|
14042
14126
|
|
|
14043
|
-
if (!eventRect.empty() && eventRect.classed(
|
|
14127
|
+
if (!eventRect.empty() && eventRect.classed($EVENT.eventRect)) {
|
|
14044
14128
|
if ($$.hasArcType() || !$$.toggleShape || state.cancelClick) {
|
|
14045
14129
|
state.cancelClick && (state.cancelClick = !1);
|
|
14046
14130
|
}
|
|
@@ -14082,7 +14166,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
14082
14166
|
rectElement.attr("x", 0).attr("y", 0).attr("width", width).attr("height", height); // only for init
|
|
14083
14167
|
|
|
14084
14168
|
if (!rendered) {
|
|
14085
|
-
rectElement.attr("class",
|
|
14169
|
+
rectElement.attr("class", $EVENT.eventRect);
|
|
14086
14170
|
}
|
|
14087
14171
|
}
|
|
14088
14172
|
|
|
@@ -14223,7 +14307,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
14223
14307
|
$$.showGridFocus(selectedData); // Show cursor as pointer if point is close to mouse position
|
|
14224
14308
|
|
|
14225
14309
|
if ($$.isBarType(closest.id) || $$.dist(closest, mouse) < config.point_sensitivity) {
|
|
14226
|
-
$$.$el.svg.select("." +
|
|
14310
|
+
$$.$el.svg.select("." + $EVENT.eventRect).style("cursor", "pointer");
|
|
14227
14311
|
|
|
14228
14312
|
if (!state.mouseover) {
|
|
14229
14313
|
config.data_onover.call($$.api, closest);
|
|
@@ -14242,7 +14326,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
14242
14326
|
_$$$$el2 = $$.$el,
|
|
14243
14327
|
circle = _$$$$el2.circle,
|
|
14244
14328
|
tooltip = _$$$$el2.tooltip;
|
|
14245
|
-
$$.$el.svg.select("." +
|
|
14329
|
+
$$.$el.svg.select("." + $EVENT.eventRect).style("cursor", null);
|
|
14246
14330
|
$$.hideGridFocus();
|
|
14247
14331
|
|
|
14248
14332
|
if (tooltip) {
|
|
@@ -14258,8 +14342,8 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
14258
14342
|
/**
|
|
14259
14343
|
* Create eventRect for each data on the x-axis.
|
|
14260
14344
|
* Register touch and drag events.
|
|
14261
|
-
* @param {object} eventRectEnter d3.select(
|
|
14262
|
-
* @returns {object} d3.select(
|
|
14345
|
+
* @param {object} eventRectEnter d3.select($EVENT.eventRects) object.
|
|
14346
|
+
* @returns {object} d3.select($EVENT.eventRects) object.
|
|
14263
14347
|
* @private
|
|
14264
14348
|
*/
|
|
14265
14349
|
generateEventRectsForSingleX: function generateEventRectsForSingleX(eventRectEnter) {
|
|
@@ -14351,7 +14435,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
14351
14435
|
}
|
|
14352
14436
|
|
|
14353
14437
|
var index = d.index;
|
|
14354
|
-
main.selectAll("." +
|
|
14438
|
+
main.selectAll("." + $SHAPE.shape + "-" + index).each(function (d2) {
|
|
14355
14439
|
if (config.data_selection_grouped || $$.isWithinShape(this, d2)) {
|
|
14356
14440
|
$$.toggleShape == null ? void 0 : $$.toggleShape(this, d2, index);
|
|
14357
14441
|
config.data_onclick.bind($$.api)(d2, this);
|
|
@@ -14362,7 +14446,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
14362
14446
|
/**
|
|
14363
14447
|
* Create an eventRect,
|
|
14364
14448
|
* Register touch and drag events.
|
|
14365
|
-
* @param {object} eventRectEnter d3.select(
|
|
14449
|
+
* @param {object} eventRectEnter d3.select($EVENT.eventRects) object.
|
|
14366
14450
|
* @private
|
|
14367
14451
|
*/
|
|
14368
14452
|
generateEventRectsForMultipleXs: function generateEventRectsForMultipleXs(eventRectEnter) {
|
|
@@ -14407,7 +14491,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
14407
14491
|
|
|
14408
14492
|
|
|
14409
14493
|
if ($$.isBarType(closest.id) || $$.dist(closest, mouse) < config.point_sensitivity) {
|
|
14410
|
-
$$.$el.main.selectAll("." +
|
|
14494
|
+
$$.$el.main.selectAll("." + $SHAPE.shapes + $$.getTargetSelectorSuffix(closest.id)).selectAll("." + $SHAPE.shape + "-" + closest.index).each(function () {
|
|
14411
14495
|
if (config.data_selection_grouped || $$.isWithinShape(this, closest)) {
|
|
14412
14496
|
$$.toggleShape == null ? void 0 : $$.toggleShape(this, closest, closest.index);
|
|
14413
14497
|
config.data_onclick.bind($$.api)(closest, this);
|
|
@@ -14542,13 +14626,13 @@ var external_commonjs_d3_ease_commonjs2_d3_ease_amd_d3_ease_root_d3_ = __webpack
|
|
|
14542
14626
|
var target = [];
|
|
14543
14627
|
|
|
14544
14628
|
for (var i = 0; i < flowLength; i++) {
|
|
14545
|
-
target.push("." +
|
|
14629
|
+
target.push("." + classes[v] + "-" + i);
|
|
14546
14630
|
}
|
|
14547
14631
|
|
|
14548
|
-
svg.selectAll("." +
|
|
14632
|
+
svg.selectAll("." + classes[v + "s"]) // circles, shapes, texts, eventRects
|
|
14549
14633
|
.selectAll(target).remove();
|
|
14550
14634
|
});
|
|
14551
|
-
svg.select("." +
|
|
14635
|
+
svg.select("." + classes.xgrid).remove();
|
|
14552
14636
|
} // draw again for removing flowed elements and reverting attr
|
|
14553
14637
|
|
|
14554
14638
|
|
|
@@ -14841,9 +14925,9 @@ function smoothLines(el, type) {
|
|
|
14841
14925
|
$el = $$.$el;
|
|
14842
14926
|
|
|
14843
14927
|
if (config.grid_x_lines.length || config.grid_y_lines.length) {
|
|
14844
|
-
$el.gridLines.main = $el.main.insert("g", "." +
|
|
14845
|
-
$el.gridLines.main.append("g").attr("class",
|
|
14846
|
-
$el.gridLines.main.append("g").attr("class",
|
|
14928
|
+
$el.gridLines.main = $el.main.insert("g", "." + $COMMON.chart + (config.grid_lines_front ? " + *" : "")).attr("clip-path", clip.pathGrid).attr("class", $GRID.grid + " " + $GRID.gridLines);
|
|
14929
|
+
$el.gridLines.main.append("g").attr("class", $GRID.xgridLines);
|
|
14930
|
+
$el.gridLines.main.append("g").attr("class", $GRID.ygridLines);
|
|
14847
14931
|
$el.gridLines.x = (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.selectAll)([]);
|
|
14848
14932
|
}
|
|
14849
14933
|
},
|
|
@@ -14873,9 +14957,9 @@ function smoothLines(el, type) {
|
|
|
14873
14957
|
"y1": 0,
|
|
14874
14958
|
"y2": state.height
|
|
14875
14959
|
};
|
|
14876
|
-
grid.x = main.select("." +
|
|
14960
|
+
grid.x = main.select("." + $GRID.xgrids).selectAll("." + $GRID.xgrid).data(xgridData);
|
|
14877
14961
|
grid.x.exit().remove();
|
|
14878
|
-
grid.x = grid.x.enter().append("line").attr("class",
|
|
14962
|
+
grid.x = grid.x.enter().append("line").attr("class", $GRID.xgrid).merge(grid.x);
|
|
14879
14963
|
|
|
14880
14964
|
if (!withoutUpdate) {
|
|
14881
14965
|
grid.x.each(function () {
|
|
@@ -14901,9 +14985,9 @@ function smoothLines(el, type) {
|
|
|
14901
14985
|
return Math.ceil($$.scale.y(d));
|
|
14902
14986
|
};
|
|
14903
14987
|
|
|
14904
|
-
grid.y = main.select("." +
|
|
14988
|
+
grid.y = main.select("." + $GRID.ygrids).selectAll("." + $GRID.ygrid).data(gridValues);
|
|
14905
14989
|
grid.y.exit().remove();
|
|
14906
|
-
grid.y = grid.y.enter().append("line").attr("class",
|
|
14990
|
+
grid.y = grid.y.enter().append("line").attr("class", $GRID.ygrid).merge(grid.y);
|
|
14907
14991
|
grid.y.attr("x1", isRotated ? pos : 0).attr("x2", isRotated ? pos : state.width).attr("y1", isRotated ? 0 : pos).attr("y2", isRotated ? state.height : pos);
|
|
14908
14992
|
smoothLines(grid.y, "grid");
|
|
14909
14993
|
},
|
|
@@ -14933,7 +15017,7 @@ function smoothLines(el, type) {
|
|
|
14933
15017
|
$T = $$.$T,
|
|
14934
15018
|
isRotated = config.axis_rotated;
|
|
14935
15019
|
config.grid_x_show && $$.updateXGrid();
|
|
14936
|
-
var xLines = main.select("." +
|
|
15020
|
+
var xLines = main.select("." + $GRID.xgridLines).selectAll("." + $GRID.xgridLine).data(config.grid_x_lines); // exit
|
|
14937
15021
|
|
|
14938
15022
|
$T(xLines.exit()).style("opacity", "0").remove(); // enter
|
|
14939
15023
|
|
|
@@ -14942,7 +15026,7 @@ function smoothLines(el, type) {
|
|
|
14942
15026
|
xgridLine.append("text").attr("transform", isRotated ? "" : "rotate(-90)").attr("dy", -5).style("opacity", "0");
|
|
14943
15027
|
xLines = xgridLine.merge(xLines);
|
|
14944
15028
|
$T(xLines.attr("class", function (d) {
|
|
14945
|
-
return (
|
|
15029
|
+
return ($GRID.xgridLine + " " + (d.class || "")).trim();
|
|
14946
15030
|
}).select("text").attr("text-anchor", getGridTextAnchor).attr("dx", getGridTextDx)).text(function (d) {
|
|
14947
15031
|
return d.text;
|
|
14948
15032
|
}).style("opacity", null);
|
|
@@ -14963,7 +15047,7 @@ function smoothLines(el, type) {
|
|
|
14963
15047
|
$T = $$.$T,
|
|
14964
15048
|
isRotated = config.axis_rotated;
|
|
14965
15049
|
config.grid_y_show && $$.updateYGrid();
|
|
14966
|
-
var ygridLines = $el.main.select("." +
|
|
15050
|
+
var ygridLines = $el.main.select("." + $GRID.ygridLines).selectAll("." + $GRID.ygridLine).data(config.grid_y_lines); // exit
|
|
14967
15051
|
|
|
14968
15052
|
$T(ygridLines.exit()).style("opacity", "0").remove(); // enter
|
|
14969
15053
|
|
|
@@ -14974,7 +15058,7 @@ function smoothLines(el, type) {
|
|
|
14974
15058
|
|
|
14975
15059
|
var yv = $$.yv.bind($$);
|
|
14976
15060
|
$T(ygridLines.attr("class", function (d) {
|
|
14977
|
-
return (
|
|
15061
|
+
return ($GRID.ygridLine + " " + (d.class || "")).trim();
|
|
14978
15062
|
}).select("line")).attr("x1", isRotated ? yv : 0).attr("x2", isRotated ? yv : width).attr("y1", isRotated ? 0 : yv).attr("y2", isRotated ? height : yv).style("opacity", null);
|
|
14979
15063
|
$T(ygridLines.select("text").attr("text-anchor", getGridTextAnchor).attr("dx", getGridTextDx)).attr("dy", -5).attr("x", getGridTextX(isRotated, width, height)).attr("y", yv).text(function (d) {
|
|
14980
15064
|
return d.text;
|
|
@@ -15004,17 +15088,17 @@ function smoothLines(el, type) {
|
|
|
15004
15088
|
clip = $$.state.clip,
|
|
15005
15089
|
$el = $$.$el,
|
|
15006
15090
|
isFront = config.grid_front,
|
|
15007
|
-
className = "." +
|
|
15008
|
-
grid = $el.main.insert("g", className).attr("clip-path", clip.pathGrid).attr("class",
|
|
15091
|
+
className = "." + (isFront && $el.gridLines.main ? $GRID.gridLines : $COMMON.chart) + (isFront ? " + *" : ""),
|
|
15092
|
+
grid = $el.main.insert("g", className).attr("clip-path", clip.pathGrid).attr("class", $GRID.grid);
|
|
15009
15093
|
$el.grid.main = grid;
|
|
15010
|
-
config.grid_x_show && grid.append("g").attr("class",
|
|
15011
|
-
config.grid_y_show && grid.append("g").attr("class",
|
|
15094
|
+
config.grid_x_show && grid.append("g").attr("class", $GRID.xgrids);
|
|
15095
|
+
config.grid_y_show && grid.append("g").attr("class", $GRID.ygrids);
|
|
15012
15096
|
|
|
15013
15097
|
if (config.interaction_enabled && config.grid_focus_show) {
|
|
15014
|
-
grid.append("g").attr("class",
|
|
15098
|
+
grid.append("g").attr("class", $FOCUS.xgridFocus).append("line").attr("class", $FOCUS.xgridFocus); // to show xy focus grid line, should be 'tooltip.grouped=false'
|
|
15015
15099
|
|
|
15016
15100
|
if (config.grid_focus_y && !config.tooltip_grouped) {
|
|
15017
|
-
grid.append("g").attr("class",
|
|
15101
|
+
grid.append("g").attr("class", $FOCUS.ygridFocus).append("line").attr("class", $FOCUS.ygridFocus);
|
|
15018
15102
|
}
|
|
15019
15103
|
}
|
|
15020
15104
|
},
|
|
@@ -15031,7 +15115,7 @@ function smoothLines(el, type) {
|
|
|
15031
15115
|
width = _$$$state3.width,
|
|
15032
15116
|
height = _$$$state3.height,
|
|
15033
15117
|
isRotated = config.axis_rotated,
|
|
15034
|
-
focusEl = $$.$el.main.selectAll("line." +
|
|
15118
|
+
focusEl = $$.$el.main.selectAll("line." + $FOCUS.xgridFocus + ", line." + $FOCUS.ygridFocus),
|
|
15035
15119
|
dataToShow = (data || [focusEl.datum()]).filter(function (d) {
|
|
15036
15120
|
return d && isValue($$.getBaseValue(d));
|
|
15037
15121
|
});
|
|
@@ -15051,7 +15135,7 @@ function smoothLines(el, type) {
|
|
|
15051
15135
|
},
|
|
15052
15136
|
xy;
|
|
15053
15137
|
|
|
15054
|
-
if (el.classed(
|
|
15138
|
+
if (el.classed($FOCUS.xgridFocus)) {
|
|
15055
15139
|
// will contain 'x1, y1, x2, y2' order
|
|
15056
15140
|
xy = isRotated ? [null, // x1
|
|
15057
15141
|
pos.x, // y1
|
|
@@ -15082,7 +15166,7 @@ function smoothLines(el, type) {
|
|
|
15082
15166
|
main = $$.$el.main;
|
|
15083
15167
|
|
|
15084
15168
|
if (inputType === "mouse" || !resizing) {
|
|
15085
|
-
main.selectAll("line." +
|
|
15169
|
+
main.selectAll("line." + $FOCUS.xgridFocus + ", line." + $FOCUS.ygridFocus).style("visibility", "hidden");
|
|
15086
15170
|
$$.hideCircleFocus == null ? void 0 : $$.hideCircleFocus();
|
|
15087
15171
|
}
|
|
15088
15172
|
},
|
|
@@ -15094,7 +15178,7 @@ function smoothLines(el, type) {
|
|
|
15094
15178
|
height = _$$$state5.height,
|
|
15095
15179
|
resizing = _$$$state5.resizing,
|
|
15096
15180
|
grid = $$.$el.grid,
|
|
15097
|
-
xgridFocus = grid.main.select("line." +
|
|
15181
|
+
xgridFocus = grid.main.select("line." + $FOCUS.xgridFocus);
|
|
15098
15182
|
|
|
15099
15183
|
if (inputType === "touch") {
|
|
15100
15184
|
if (xgridFocus.empty()) {
|
|
@@ -15113,7 +15197,7 @@ function smoothLines(el, type) {
|
|
|
15113
15197
|
},
|
|
15114
15198
|
generateGridData: function generateGridData(type, scale) {
|
|
15115
15199
|
var $$ = this,
|
|
15116
|
-
tickNum = $$.$el.main.select("." +
|
|
15200
|
+
tickNum = $$.$el.main.select("." + $AXIS.axisX).selectAll(".tick").size(),
|
|
15117
15201
|
gridData = [];
|
|
15118
15202
|
|
|
15119
15203
|
if (type === "year") {
|
|
@@ -15158,8 +15242,8 @@ function smoothLines(el, type) {
|
|
|
15158
15242
|
config = $$.config,
|
|
15159
15243
|
$T = $$.$T,
|
|
15160
15244
|
toRemove = $$.getGridFilterToRemove(params),
|
|
15161
|
-
classLines = forX ?
|
|
15162
|
-
classLine = forX ?
|
|
15245
|
+
classLines = forX ? $GRID.xgridLines : $GRID.ygridLines,
|
|
15246
|
+
classLine = forX ? $GRID.xgridLine : $GRID.ygridLine;
|
|
15163
15247
|
$T($$.$el.main.select("." + classLines).selectAll("." + classLine).filter(toRemove)).style("opacity", "0").remove();
|
|
15164
15248
|
var gridLines = "grid_" + (forX ? "x" : "y") + "_lines";
|
|
15165
15249
|
config[gridLines] = config[gridLines].filter(function toShow(line) {
|
|
@@ -15180,7 +15264,7 @@ function smoothLines(el, type) {
|
|
|
15180
15264
|
initRegion: function initRegion() {
|
|
15181
15265
|
var $$ = this,
|
|
15182
15266
|
$el = $$.$el;
|
|
15183
|
-
$el.region.main = $el.main.insert("g", ":first-child").attr("clip-path", $$.state.clip.path).attr("class",
|
|
15267
|
+
$el.region.main = $el.main.insert("g", ":first-child").attr("clip-path", $$.state.clip.path).attr("class", $REGION.regions);
|
|
15184
15268
|
},
|
|
15185
15269
|
updateRegion: function updateRegion() {
|
|
15186
15270
|
var $$ = this,
|
|
@@ -15195,7 +15279,7 @@ function smoothLines(el, type) {
|
|
|
15195
15279
|
|
|
15196
15280
|
region.main.style("visibility", $$.hasArcType() ? "hidden" : null); // select <g> element
|
|
15197
15281
|
|
|
15198
|
-
var list = region.main.selectAll("." +
|
|
15282
|
+
var list = region.main.selectAll("." + $REGION.region).data(config.regions);
|
|
15199
15283
|
$T(list.exit()).style("opacity", "0").remove();
|
|
15200
15284
|
list = list.enter().append("g").merge(list).attr("class", $$.classRegion.bind($$));
|
|
15201
15285
|
list.append("rect").style("fill-opacity", "0");
|
|
@@ -17697,14 +17781,14 @@ var external_commonjs_d3_interpolate_commonjs2_d3_interpolate_amd_d3_interpolate
|
|
|
17697
17781
|
var interval = setInterval(function () {
|
|
17698
17782
|
if (!transiting) {
|
|
17699
17783
|
clearInterval(interval);
|
|
17700
|
-
$el.legend.selectAll("." +
|
|
17784
|
+
$el.legend.selectAll("." + $FOCUS.legendItemFocused).size() > 0 && $$.expandArc(targetIds);
|
|
17701
17785
|
}
|
|
17702
17786
|
}, 10);
|
|
17703
17787
|
return;
|
|
17704
17788
|
}
|
|
17705
17789
|
|
|
17706
17790
|
var newTargetIds = $$.mapToTargetIds(targetIds);
|
|
17707
|
-
$el.svg.selectAll($$.selectorTargets(newTargetIds, "." +
|
|
17791
|
+
$el.svg.selectAll($$.selectorTargets(newTargetIds, "." + $ARC.chartArc)).each(function (d) {
|
|
17708
17792
|
if (!$$.shouldExpand(d.data.id)) {
|
|
17709
17793
|
return;
|
|
17710
17794
|
}
|
|
@@ -17724,10 +17808,10 @@ var external_commonjs_d3_interpolate_commonjs2_d3_interpolate_amd_d3_interpolate
|
|
|
17724
17808
|
}
|
|
17725
17809
|
|
|
17726
17810
|
var newTargetIds = $$.mapToTargetIds(targetIds);
|
|
17727
|
-
svg.selectAll($$.selectorTargets(newTargetIds, "." +
|
|
17811
|
+
svg.selectAll($$.selectorTargets(newTargetIds, "." + $ARC.chartArc)).selectAll("path").transition().duration(function (d) {
|
|
17728
17812
|
return $$.getExpandConfig(d.data.id, "duration");
|
|
17729
17813
|
}).attr("d", $$.svgArc);
|
|
17730
|
-
svg.selectAll("" +
|
|
17814
|
+
svg.selectAll("" + $ARC.arc).style("opacity", null);
|
|
17731
17815
|
},
|
|
17732
17816
|
|
|
17733
17817
|
/**
|
|
@@ -17792,20 +17876,20 @@ var external_commonjs_d3_interpolate_commonjs2_d3_interpolate_amd_d3_interpolate
|
|
|
17792
17876
|
classChartArc = $$.getChartClass("Arc"),
|
|
17793
17877
|
classArcs = $$.getClass("arcs", !0),
|
|
17794
17878
|
classFocus = $$.classFocus.bind($$),
|
|
17795
|
-
chartArcs = $el.main.select("." +
|
|
17796
|
-
mainPieUpdate = chartArcs.selectAll("." +
|
|
17879
|
+
chartArcs = $el.main.select("." + $ARC.chartArcs),
|
|
17880
|
+
mainPieUpdate = chartArcs.selectAll("." + $ARC.chartArc).data($$.pie(targets)).attr("class", function (d) {
|
|
17797
17881
|
return classChartArc(d) + classFocus(d.data);
|
|
17798
17882
|
}),
|
|
17799
17883
|
mainPieEnter = mainPieUpdate.enter().append("g").attr("class", classChartArc);
|
|
17800
17884
|
mainPieEnter.append("g").attr("class", classArcs).merge(mainPieUpdate);
|
|
17801
17885
|
mainPieEnter.append("text").attr("dy", hasGauge && !$$.hasMultiTargets() ? "-.1em" : ".35em").style("opacity", "0").style("text-anchor", "middle").style("pointer-events", "none");
|
|
17802
|
-
$el.text = chartArcs.selectAll("." +
|
|
17886
|
+
$el.text = chartArcs.selectAll("." + $COMMON.target + " text"); // MEMO: can not keep same color..., but not bad to update color in redraw
|
|
17803
17887
|
// mainPieUpdate.exit().remove();
|
|
17804
17888
|
},
|
|
17805
17889
|
initArc: function initArc() {
|
|
17806
17890
|
var $$ = this,
|
|
17807
17891
|
$el = $$.$el;
|
|
17808
|
-
$el.arcs = $el.main.select("." +
|
|
17892
|
+
$el.arcs = $el.main.select("." + $COMMON.chart).append("g").attr("class", $ARC.chartArcs).attr("transform", $$.getTranslate("arc"));
|
|
17809
17893
|
$$.setArcTitle();
|
|
17810
17894
|
},
|
|
17811
17895
|
|
|
@@ -17819,7 +17903,7 @@ var external_commonjs_d3_interpolate_commonjs2_d3_interpolate_amd_d3_interpolate
|
|
|
17819
17903
|
hasGauge = $$.hasType("gauge");
|
|
17820
17904
|
|
|
17821
17905
|
if (title) {
|
|
17822
|
-
var text = $$.$el.arcs.append("text").attr("class",
|
|
17906
|
+
var text = $$.$el.arcs.append("text").attr("class", hasGauge ? $GAUGE.chartArcsGaugeTitle : $ARC.chartArcsTitle).style("text-anchor", "middle");
|
|
17823
17907
|
hasGauge && text.attr("dy", "-0.3em");
|
|
17824
17908
|
setTextValue(text, title, hasGauge ? undefined : [-.6, 1.35], !0);
|
|
17825
17909
|
}
|
|
@@ -17831,7 +17915,7 @@ var external_commonjs_d3_interpolate_commonjs2_d3_interpolate_amd_d3_interpolate
|
|
|
17831
17915
|
main = $$.$el.main,
|
|
17832
17916
|
hasInteraction = config.interaction_enabled,
|
|
17833
17917
|
isSelectable = hasInteraction && config.data_selection_isselectable,
|
|
17834
|
-
mainArc = main.selectAll("." +
|
|
17918
|
+
mainArc = main.selectAll("." + $ARC.arcs).selectAll("." + $ARC.arc).data($$.arcData.bind($$));
|
|
17835
17919
|
mainArc.exit().transition().duration(durationForExit).style("opacity", "0").remove();
|
|
17836
17920
|
mainArc = mainArc.enter().append("path").attr("class", $$.getClass("arc", !0)).style("fill", function (d) {
|
|
17837
17921
|
return $$.color(d.data);
|
|
@@ -17920,13 +18004,13 @@ var external_commonjs_d3_interpolate_commonjs2_d3_interpolate_amd_d3_interpolate
|
|
|
17920
18004
|
isFullCircle = config.gauge_fullCircle,
|
|
17921
18005
|
startAngle = $$.getStartAngle(),
|
|
17922
18006
|
endAngle = isFullCircle ? startAngle + $$.getArcLength() : startAngle * -1,
|
|
17923
|
-
backgroundArc = $$.$el.arcs.select((hasMultiArcGauge ? "g" : "") + "." +
|
|
18007
|
+
backgroundArc = $$.$el.arcs.select((hasMultiArcGauge ? "g" : "") + "." + $ARC.chartArcsBackground);
|
|
17924
18008
|
|
|
17925
18009
|
if (hasMultiArcGauge) {
|
|
17926
18010
|
var index = 0;
|
|
17927
|
-
backgroundArc = backgroundArc.selectAll("path." +
|
|
18011
|
+
backgroundArc = backgroundArc.selectAll("path." + $ARC.chartArcsBackground).data($$.data.targets);
|
|
17928
18012
|
backgroundArc.enter().append("path").attr("class", function (d, i) {
|
|
17929
|
-
return
|
|
18013
|
+
return $ARC.chartArcsBackground + " " + $ARC.chartArcsBackground + "-" + i;
|
|
17930
18014
|
}).merge(backgroundArc).style("fill", config.gauge_background || null).attr("d", function (_ref2) {
|
|
17931
18015
|
var id = _ref2.id;
|
|
17932
18016
|
|
|
@@ -18068,8 +18152,8 @@ var external_commonjs_d3_interpolate_commonjs2_d3_interpolate_amd_d3_interpolate
|
|
|
18068
18152
|
|
|
18069
18153
|
// for gauge type, update text when has no title & multi data
|
|
18070
18154
|
if (!(hasGauge && $$.data.targets.length === 1 && config.gauge_title)) {
|
|
18071
|
-
text = main.selectAll("." +
|
|
18072
|
-
return $$.isGaugeType(d.data) ?
|
|
18155
|
+
text = main.selectAll("." + $ARC.chartArc).select("text").style("opacity", "0").attr("class", function (d) {
|
|
18156
|
+
return $$.isGaugeType(d.data) ? $GAUGE.gaugeValue : null;
|
|
18073
18157
|
}).call($$.textForArcLabel.bind($$)).attr("transform", $$.transformForArcLabel.bind($$)).style("font-size", function (d) {
|
|
18074
18158
|
return $$.isGaugeType(d.data) && $$.data.targets.length === 1 && !hasMultiArcGauge ? Math.round(state.radius / 5) + "px" : null;
|
|
18075
18159
|
}).transition().duration(duration).style("opacity", function (d) {
|
|
@@ -18078,7 +18162,7 @@ var external_commonjs_d3_interpolate_commonjs2_d3_interpolate_amd_d3_interpolate
|
|
|
18078
18162
|
hasMultiArcGauge && text.attr("dy", "-.1em");
|
|
18079
18163
|
}
|
|
18080
18164
|
|
|
18081
|
-
main.select("." +
|
|
18165
|
+
main.select("." + $ARC.chartArcsTitle).style("opacity", $$.hasType("donut") || hasGauge ? null : "0");
|
|
18082
18166
|
|
|
18083
18167
|
if (hasGauge) {
|
|
18084
18168
|
var _text,
|
|
@@ -18087,10 +18171,10 @@ var external_commonjs_d3_interpolate_commonjs2_d3_interpolate_amd_d3_interpolate
|
|
|
18087
18171
|
isFullCircle && ((_text = text) == null ? void 0 : _text.attr("dy", "" + (hasMultiArcGauge ? 0 : Math.round(state.radius / 14))));
|
|
18088
18172
|
|
|
18089
18173
|
if (config.gauge_label_show) {
|
|
18090
|
-
arcs.select("." +
|
|
18091
|
-
arcs.select("." +
|
|
18174
|
+
arcs.select("." + $GAUGE.chartArcsGaugeUnit).attr("dy", (isFullCircle ? 1.5 : .75) + "em").text(config.gauge_units);
|
|
18175
|
+
arcs.select("." + $GAUGE.chartArcsGaugeMin).attr("dx", -1 * (state.innerRadius + (state.radius - state.innerRadius) / (isFullCircle ? 1 : 2)) + "px").attr("dy", "1.2em").text($$.textForGaugeMinMax(config.gauge_min, !1)); // show max text when isn't fullCircle
|
|
18092
18176
|
|
|
18093
|
-
isFullCircle || arcs.select("." +
|
|
18177
|
+
isFullCircle || arcs.select("." + $GAUGE.chartArcsGaugeMax).attr("dx", state.innerRadius + (state.radius - state.innerRadius) / 2 + "px").attr("dy", "1.2em").text($$.textForGaugeMinMax(config.gauge_max, !0));
|
|
18094
18178
|
}
|
|
18095
18179
|
}
|
|
18096
18180
|
}
|
|
@@ -18108,7 +18192,7 @@ var external_commonjs_d3_interpolate_commonjs2_d3_interpolate_amd_d3_interpolate
|
|
|
18108
18192
|
initArea: function initArea(mainLine) {
|
|
18109
18193
|
var $$ = this,
|
|
18110
18194
|
config = $$.config;
|
|
18111
|
-
mainLine.insert("g", "." +
|
|
18195
|
+
mainLine.insert("g", "." + (config.area_front ? $CIRCLE.circles : $LINE.lines)).attr("class", $$.getClass("areas", !0));
|
|
18112
18196
|
},
|
|
18113
18197
|
updateAreaGradient: function updateAreaGradient() {
|
|
18114
18198
|
var $$ = this,
|
|
@@ -18158,7 +18242,7 @@ var external_commonjs_d3_interpolate_commonjs2_d3_interpolate_amd_d3_interpolate
|
|
|
18158
18242
|
$T = $$.$T,
|
|
18159
18243
|
$root = isSub ? $el.subchart : $el;
|
|
18160
18244
|
config.area_linearGradient && $$.updateAreaGradient();
|
|
18161
|
-
var area = $root.main.selectAll("." +
|
|
18245
|
+
var area = $root.main.selectAll("." + $AREA.areas).selectAll("." + $AREA.area).data($$.lineData.bind($$));
|
|
18162
18246
|
$T(area.exit(), withTransition).style("opacity", "0").remove();
|
|
18163
18247
|
$root.area = area.enter().append("path").attr("class", $$.getClass("area", !0)).style("fill", $$.updateAreaColor.bind($$)).style("opacity", function () {
|
|
18164
18248
|
state.orgAreaOpacity = (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this).style("opacity");
|
|
@@ -18285,8 +18369,8 @@ var external_commonjs_d3_interpolate_commonjs2_d3_interpolate_amd_d3_interpolate
|
|
|
18285
18369
|
var $el = this.$el,
|
|
18286
18370
|
config = this.config,
|
|
18287
18371
|
clip = this.state.clip;
|
|
18288
|
-
$el.bar = $el.main.select("." +
|
|
18289
|
-
.insert("g", ":first-child").attr("class",
|
|
18372
|
+
$el.bar = $el.main.select("." + $COMMON.chart) // should positioned at the beginning of the shape node to not overlap others
|
|
18373
|
+
.insert("g", ":first-child").attr("class", $BAR.chartBars); // set clip-path attribute when condition meet
|
|
18290
18374
|
// https://github.com/naver/billboard.js/issues/2421
|
|
18291
18375
|
|
|
18292
18376
|
if (config.clipPath === !1 && (config.bar_radius || config.bar_radius_ratio)) {
|
|
@@ -18306,7 +18390,7 @@ var external_commonjs_d3_interpolate_commonjs2_d3_interpolate_amd_d3_interpolate
|
|
|
18306
18390
|
$$.initBar();
|
|
18307
18391
|
}
|
|
18308
18392
|
|
|
18309
|
-
var mainBarUpdate = $$.$el.main.select("." +
|
|
18393
|
+
var mainBarUpdate = $$.$el.main.select("." + $BAR.chartBars).selectAll("." + $BAR.chartBar).data( // remove
|
|
18310
18394
|
targets.filter(function (v) {
|
|
18311
18395
|
return v.values.some(function (d) {
|
|
18312
18396
|
return isNumber(d.value) || $$.isBarRangeType(d);
|
|
@@ -18340,7 +18424,7 @@ var external_commonjs_d3_interpolate_commonjs2_d3_interpolate_amd_d3_interpolate
|
|
|
18340
18424
|
$root = isSub ? $el.subchart : $el,
|
|
18341
18425
|
classBar = $$.getClass("bar", !0),
|
|
18342
18426
|
initialOpacity = $$.initialOpacity.bind($$),
|
|
18343
|
-
bar = $root.main.selectAll("." +
|
|
18427
|
+
bar = $root.main.selectAll("." + $BAR.bars).selectAll("." + $BAR.bar).data($$.labelishData.bind($$));
|
|
18344
18428
|
$T(bar.exit(), withTransition).style("opacity", "0").remove();
|
|
18345
18429
|
$root.bar = bar.enter().append("path").attr("class", classBar).style("fill", $$.color).merge(bar).style("opacity", initialOpacity);
|
|
18346
18430
|
},
|
|
@@ -18512,8 +18596,8 @@ function candlestick_objectSpread(target) { for (var i = 1, source; i < argument
|
|
|
18512
18596
|
/* harmony default export */ var candlestick = ({
|
|
18513
18597
|
initCandlestick: function initCandlestick() {
|
|
18514
18598
|
var $el = this.$el;
|
|
18515
|
-
$el.candlestick = $el.main.select("." +
|
|
18516
|
-
.append("g").attr("class",
|
|
18599
|
+
$el.candlestick = $el.main.select("." + $COMMON.chart) // should positioned at the beginning of the shape node to not overlap others
|
|
18600
|
+
.append("g").attr("class", $CANDLESTICK.chartCandlesticks);
|
|
18517
18601
|
},
|
|
18518
18602
|
|
|
18519
18603
|
/**
|
|
@@ -18532,7 +18616,7 @@ function candlestick_objectSpread(target) { for (var i = 1, source; i < argument
|
|
|
18532
18616
|
$$.initCandlestick();
|
|
18533
18617
|
}
|
|
18534
18618
|
|
|
18535
|
-
var mainUpdate = $$.$el.main.select("." +
|
|
18619
|
+
var mainUpdate = $$.$el.main.select("." + $CANDLESTICK.chartCandlesticks).selectAll("." + $CANDLESTICK.chartCandlestick).data(targets).attr("class", function (d) {
|
|
18536
18620
|
return classChart(d) + classFocus(d);
|
|
18537
18621
|
});
|
|
18538
18622
|
mainUpdate.enter().append("g").attr("class", classChart).style("pointer-events", "none");
|
|
@@ -18555,7 +18639,7 @@ function candlestick_objectSpread(target) { for (var i = 1, source; i < argument
|
|
|
18555
18639
|
$root = isSub ? $el.subchart : $el,
|
|
18556
18640
|
classSetter = $$.getClass("candlestick", !0),
|
|
18557
18641
|
initialOpacity = $$.initialOpacity.bind($$),
|
|
18558
|
-
candlestick = $root.main.selectAll("." +
|
|
18642
|
+
candlestick = $root.main.selectAll("." + $CANDLESTICK.chartCandlestick).selectAll("." + $CANDLESTICK.candlestick).data($$.labelishData.bind($$));
|
|
18559
18643
|
$T(candlestick.exit(), withTransition).style("opacity", "0").remove();
|
|
18560
18644
|
var candlestickEnter = candlestick.enter().filter(function (d) {
|
|
18561
18645
|
return d.value;
|
|
@@ -18591,7 +18675,7 @@ function candlestick_objectSpread(target) { for (var i = 1, source; i < argument
|
|
|
18591
18675
|
indexX = +isRotated;
|
|
18592
18676
|
|
|
18593
18677
|
if (g.classed) {
|
|
18594
|
-
g.classed(
|
|
18678
|
+
g.classed($CANDLESTICK[isUp ? "valueUp" : "valueDown"], !0);
|
|
18595
18679
|
}
|
|
18596
18680
|
|
|
18597
18681
|
var path = isRotated ? "H" + points[1][1] + " V" + points[1][0] + " H" + points[0][1] : "V" + points[1][1] + " H" + points[1][0] + " V" + points[0][1];
|
|
@@ -18760,12 +18844,12 @@ function candlestick_objectSpread(target) { for (var i = 1, source; i < argument
|
|
|
18760
18844
|
|
|
18761
18845
|
if ($$.hasType("gauge")) {
|
|
18762
18846
|
var hasMulti = $$.hasMultiArcGauge();
|
|
18763
|
-
arcs.append(hasMulti ? "g" : "path").attr("class",
|
|
18764
|
-
config.gauge_units && appendText(
|
|
18847
|
+
arcs.append(hasMulti ? "g" : "path").attr("class", $ARC.chartArcsBackground).style("fill", !hasMulti && config.gauge_background || null);
|
|
18848
|
+
config.gauge_units && appendText($GAUGE.chartArcsGaugeUnit);
|
|
18765
18849
|
|
|
18766
18850
|
if (config.gauge_label_show) {
|
|
18767
|
-
appendText(
|
|
18768
|
-
config.gauge_fullCircle || appendText(
|
|
18851
|
+
appendText($GAUGE.chartArcsGaugeMin);
|
|
18852
|
+
config.gauge_fullCircle || appendText($GAUGE.chartArcsGaugeMax);
|
|
18769
18853
|
}
|
|
18770
18854
|
}
|
|
18771
18855
|
},
|
|
@@ -18787,9 +18871,9 @@ function candlestick_objectSpread(target) { for (var i = 1, source; i < argument
|
|
|
18787
18871
|
state = $$.state,
|
|
18788
18872
|
$el = $$.$el,
|
|
18789
18873
|
hiddenTargetIds = $$.state.hiddenTargetIds,
|
|
18790
|
-
arcLabelLines = $el.main.selectAll("." +
|
|
18874
|
+
arcLabelLines = $el.main.selectAll("." + $ARC.arcs).selectAll("." + $ARC.arcLabelLine).data($$.arcData.bind($$)),
|
|
18791
18875
|
mainArcLabelLine = arcLabelLines.enter().append("rect").attr("class", function (d) {
|
|
18792
|
-
return
|
|
18876
|
+
return $ARC.arcLabelLine + " " + $COMMON.target + " " + $COMMON.target + "-" + d.data.id;
|
|
18793
18877
|
}).merge(arcLabelLines);
|
|
18794
18878
|
mainArcLabelLine.style("fill", function (d) {
|
|
18795
18879
|
return $$.levelColor ? $$.levelColor(d.data.values[0].value) : $$.color(d.data);
|
|
@@ -18920,7 +19004,7 @@ function candlestick_objectSpread(target) { for (var i = 1, source; i < argument
|
|
|
18920
19004
|
/* harmony default export */ var line = ({
|
|
18921
19005
|
initLine: function initLine() {
|
|
18922
19006
|
var $el = this.$el;
|
|
18923
|
-
$el.line = $el.main.select("." +
|
|
19007
|
+
$el.line = $el.main.select("." + $COMMON.chart).append("g").attr("class", $LINE.chartLines);
|
|
18924
19008
|
},
|
|
18925
19009
|
updateTargetsForLine: function updateTargetsForLine(t) {
|
|
18926
19010
|
var $$ = this,
|
|
@@ -18939,7 +19023,7 @@ function candlestick_objectSpread(target) { for (var i = 1, source; i < argument
|
|
|
18939
19023
|
var targets = t.filter(function (d) {
|
|
18940
19024
|
return !($$.isScatterType(d) || $$.isBubbleType(d));
|
|
18941
19025
|
}),
|
|
18942
|
-
mainLineUpdate = main.select("." +
|
|
19026
|
+
mainLineUpdate = main.select("." + $LINE.chartLines).selectAll("." + $LINE.chartLine).data(targets).attr("class", function (d) {
|
|
18943
19027
|
return classChartLine(d) + classFocus(d);
|
|
18944
19028
|
}),
|
|
18945
19029
|
mainLineEnter = mainLineUpdate.enter().append("g").attr("class", classChartLine).style("opacity", "0").style("pointer-events", "none");
|
|
@@ -18969,7 +19053,7 @@ function candlestick_objectSpread(target) { for (var i = 1, source; i < argument
|
|
|
18969
19053
|
$el = $$.$el,
|
|
18970
19054
|
$T = $$.$T,
|
|
18971
19055
|
$root = isSub ? $el.subchart : $el,
|
|
18972
|
-
line = $root.main.selectAll("." +
|
|
19056
|
+
line = $root.main.selectAll("." + $LINE.lines).selectAll("." + $LINE.line).data($$.lineData.bind($$));
|
|
18973
19057
|
$T(line.exit(), withTransition).style("opacity", "0").remove();
|
|
18974
19058
|
$root.line = line.enter().append("path").attr("class", function (d) {
|
|
18975
19059
|
return $$.getClass("line", !0)(d) + " " + (extraLineClasses(d) || "");
|
|
@@ -19261,8 +19345,8 @@ var getTransitionName = function () {
|
|
|
19261
19345
|
main = $$.$el.main;
|
|
19262
19346
|
$$.point = $$.generatePoint();
|
|
19263
19347
|
|
|
19264
|
-
if (($$.hasType("bubble") || $$.hasType("scatter")) && main.select("." +
|
|
19265
|
-
main.select("." +
|
|
19348
|
+
if (($$.hasType("bubble") || $$.hasType("scatter")) && main.select("." + $CIRCLE.chartCircles).empty()) {
|
|
19349
|
+
main.select("." + $COMMON.chart).append("g").attr("class", $CIRCLE.chartCircles);
|
|
19266
19350
|
}
|
|
19267
19351
|
},
|
|
19268
19352
|
updateTargetForCircle: function updateTargetForCircle(targetsValue, enterNodeValue) {
|
|
@@ -19288,21 +19372,21 @@ var getTransitionName = function () {
|
|
|
19288
19372
|
targets = data.targets.filter(function (d) {
|
|
19289
19373
|
return _this.isScatterType(d) || _this.isBubbleType(d);
|
|
19290
19374
|
});
|
|
19291
|
-
var mainCircle = $el.main.select("." +
|
|
19375
|
+
var mainCircle = $el.main.select("." + $CIRCLE.chartCircles).style("pointer-events", "none").selectAll("." + $CIRCLE.circles).data(targets).attr("class", classCircles);
|
|
19292
19376
|
mainCircle.exit().remove();
|
|
19293
19377
|
enterNode = mainCircle.enter();
|
|
19294
19378
|
} // Circles for each data point on lines
|
|
19295
19379
|
|
|
19296
19380
|
|
|
19297
19381
|
selectionEnabled && enterNode.append("g").attr("class", function (d) {
|
|
19298
|
-
return $$.generateClass(
|
|
19382
|
+
return $$.generateClass($SELECT.selectedCircles, d.id);
|
|
19299
19383
|
});
|
|
19300
19384
|
enterNode.append("g").attr("class", classCircles).style("cursor", function (d) {
|
|
19301
19385
|
return isFunction(isSelectable) && isSelectable(d) ? "pointer" : null;
|
|
19302
19386
|
}); // Update date for selected circles
|
|
19303
19387
|
|
|
19304
19388
|
selectionEnabled && targets.forEach(function (t) {
|
|
19305
|
-
$el.main.selectAll("." +
|
|
19389
|
+
$el.main.selectAll("." + $SELECT.selectedCircles + $$.getTargetSelectorSuffix(t.id)).selectAll("" + $SELECT.selectedCircle).each(function (d) {
|
|
19306
19390
|
d.value = t.values[d.index].value;
|
|
19307
19391
|
});
|
|
19308
19392
|
});
|
|
@@ -19320,12 +19404,12 @@ var getTransitionName = function () {
|
|
|
19320
19404
|
$root = isSub ? $el.subchart : $el;
|
|
19321
19405
|
|
|
19322
19406
|
if (config.point_show && !state.toggling) {
|
|
19323
|
-
var circles = $root.main.selectAll("." +
|
|
19407
|
+
var circles = $root.main.selectAll("." + $CIRCLE.circles).selectAll("." + $CIRCLE.circle).data(function (d) {
|
|
19324
19408
|
return $$.isLineType(d) && $$.shouldDrawPointsForLine(d) || $$.isBubbleType(d) || $$.isRadarType(d) || $$.isScatterType(d) ? focusOnly ? [d.values[0]] : d.values : [];
|
|
19325
19409
|
});
|
|
19326
19410
|
circles.exit().remove();
|
|
19327
19411
|
circles.enter().filter(Boolean).append($$.point("create", this, $$.pointR.bind($$), $$.color));
|
|
19328
|
-
$root.circle = $root.main.selectAll("." +
|
|
19412
|
+
$root.circle = $root.main.selectAll("." + $CIRCLE.circles + " ." + $CIRCLE.circle).style("stroke", $$.color).style("opacity", $$.initialOpacityForCircle.bind($$));
|
|
19329
19413
|
}
|
|
19330
19414
|
},
|
|
19331
19415
|
redrawCircle: function redrawCircle(cx, cy, withTransition, flow, isSub) {
|
|
@@ -19338,7 +19422,7 @@ var getTransitionName = function () {
|
|
|
19338
19422
|
$el = $$.$el,
|
|
19339
19423
|
$T = $$.$T,
|
|
19340
19424
|
$root = isSub ? $el.subchart : $el,
|
|
19341
|
-
selectedCircles = $root.main.selectAll("." +
|
|
19425
|
+
selectedCircles = $root.main.selectAll("." + $SELECT.selectedCircle);
|
|
19342
19426
|
|
|
19343
19427
|
if (!$$.config.point_show) {
|
|
19344
19428
|
return [];
|
|
@@ -19438,7 +19522,7 @@ var getTransitionName = function () {
|
|
|
19438
19522
|
var $$ = this,
|
|
19439
19523
|
r = $$.pointExpandedR.bind($$);
|
|
19440
19524
|
reset && $$.unexpandCircles();
|
|
19441
|
-
var circles = $$.getShapeByIndex("circle", i, id).classed(
|
|
19525
|
+
var circles = $$.getShapeByIndex("circle", i, id).classed($COMMON.EXPANDED, !0),
|
|
19442
19526
|
scale = r(circles) / $$.config.point_r,
|
|
19443
19527
|
ratio = 1 - scale;
|
|
19444
19528
|
|
|
@@ -19467,8 +19551,8 @@ var getTransitionName = function () {
|
|
|
19467
19551
|
var $$ = this,
|
|
19468
19552
|
r = $$.pointR.bind($$),
|
|
19469
19553
|
circles = $$.getShapeByIndex("circle", i).filter(function () {
|
|
19470
|
-
return (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this).classed(
|
|
19471
|
-
}).classed(
|
|
19554
|
+
return (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this).classed($COMMON.EXPANDED);
|
|
19555
|
+
}).classed($COMMON.EXPANDED, !1);
|
|
19472
19556
|
circles.attr("r", r);
|
|
19473
19557
|
$$.isCirclePoint() || circles.attr("transform", "scale(" + r(circles) / $$.config.point_r + ")");
|
|
19474
19558
|
},
|
|
@@ -19560,8 +19644,8 @@ var getTransitionName = function () {
|
|
|
19560
19644
|
pointClass = d === !0 ? circle.each(function (d) {
|
|
19561
19645
|
var className = $$.getClass("circle", !0)(d);
|
|
19562
19646
|
|
|
19563
|
-
if (this.getAttribute("class").indexOf(
|
|
19564
|
-
className += " " +
|
|
19647
|
+
if (this.getAttribute("class").indexOf($COMMON.EXPANDED) > -1) {
|
|
19648
|
+
className += " " + $COMMON.EXPANDED;
|
|
19565
19649
|
}
|
|
19566
19650
|
|
|
19567
19651
|
this.setAttribute("class", className);
|
|
@@ -19754,13 +19838,13 @@ var cacheKey = KEY.radarPoints;
|
|
|
19754
19838
|
$el = $$.$el;
|
|
19755
19839
|
|
|
19756
19840
|
if ($$.hasType("radar")) {
|
|
19757
|
-
$el.radar = $el.main.select("." +
|
|
19841
|
+
$el.radar = $el.main.select("." + $COMMON.chart).append("g").attr("class", $RADAR.chartRadars); // level
|
|
19758
19842
|
|
|
19759
|
-
$el.radar.levels = $el.radar.append("g").attr("class",
|
|
19843
|
+
$el.radar.levels = $el.radar.append("g").attr("class", $RADAR.levels); // axis
|
|
19760
19844
|
|
|
19761
|
-
$el.radar.axes = $el.radar.append("g").attr("class",
|
|
19845
|
+
$el.radar.axes = $el.radar.append("g").attr("class", $AXIS.axis); // shapes
|
|
19762
19846
|
|
|
19763
|
-
$el.radar.shapes = $el.radar.append("g").attr("class",
|
|
19847
|
+
$el.radar.shapes = $el.radar.append("g").attr("class", $SHAPE.shapes);
|
|
19764
19848
|
current.dataMax = config.radar_axis_max || $$.getMinMaxData().max[0].value;
|
|
19765
19849
|
}
|
|
19766
19850
|
},
|
|
@@ -19838,7 +19922,7 @@ var cacheKey = KEY.radarPoints;
|
|
|
19838
19922
|
// Adjust radar, circles and texts' position
|
|
19839
19923
|
if (translate) {
|
|
19840
19924
|
radar.attr("transform", translate);
|
|
19841
|
-
main.select("." +
|
|
19925
|
+
main.select("." + $TEXT.chartTexts).attr("transform", translate);
|
|
19842
19926
|
$$.generateRadarPoints();
|
|
19843
19927
|
$$.updateRadarLevel();
|
|
19844
19928
|
$$.updateRadarAxes();
|
|
@@ -19877,11 +19961,11 @@ var cacheKey = KEY.radarPoints;
|
|
|
19877
19961
|
});
|
|
19878
19962
|
return pos.join(" ");
|
|
19879
19963
|
}),
|
|
19880
|
-
level = radarLevels.selectAll("." +
|
|
19964
|
+
level = radarLevels.selectAll("." + $RADAR.level).data(levelData);
|
|
19881
19965
|
|
|
19882
19966
|
level.exit().remove();
|
|
19883
19967
|
var levelEnter = level.enter().append("g").attr("class", function (d, i) {
|
|
19884
|
-
return
|
|
19968
|
+
return $RADAR.level + " " + $RADAR.level + "-" + i;
|
|
19885
19969
|
});
|
|
19886
19970
|
levelEnter.append("polygon").style("visibility", config.radar_level_show ? null : "hidden");
|
|
19887
19971
|
|
|
@@ -19923,7 +20007,7 @@ var cacheKey = KEY.radarPoints;
|
|
|
19923
20007
|
|
|
19924
20008
|
axis.exit().remove();
|
|
19925
20009
|
var axisEnter = axis.enter().append("g").attr("class", function (d, i) {
|
|
19926
|
-
return
|
|
20010
|
+
return $AXIS.axis + "-" + i;
|
|
19927
20011
|
});
|
|
19928
20012
|
config.radar_axis_line_show && axisEnter.append("line");
|
|
19929
20013
|
config.radar_axis_text_show && axisEnter.append("text");
|
|
@@ -21149,8 +21233,8 @@ var _area = function area() {
|
|
|
21149
21233
|
selected: function selected(targetId) {
|
|
21150
21234
|
var $$ = this.internal,
|
|
21151
21235
|
dataPoint = [];
|
|
21152
|
-
$$.$el.main.selectAll("." + (
|
|
21153
|
-
return (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this).classed(
|
|
21236
|
+
$$.$el.main.selectAll("." + ($SHAPE.shapes + $$.getTargetSelectorSuffix(targetId))).selectAll("." + $SHAPE.shape).filter(function () {
|
|
21237
|
+
return (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this).classed($SELECT.SELECTED);
|
|
21154
21238
|
}).each(function (d) {
|
|
21155
21239
|
return dataPoint.push(d);
|
|
21156
21240
|
});
|
|
@@ -21190,25 +21274,25 @@ var _area = function area() {
|
|
|
21190
21274
|
return;
|
|
21191
21275
|
}
|
|
21192
21276
|
|
|
21193
|
-
$el.main.selectAll("." +
|
|
21277
|
+
$el.main.selectAll("." + $SHAPE.shapes).selectAll("." + $SHAPE.shape).each(function (d, i) {
|
|
21194
21278
|
var shape = (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this),
|
|
21195
21279
|
id = d.data ? d.data.id : d.id,
|
|
21196
21280
|
toggle = $$.getToggle(this, d).bind($$),
|
|
21197
21281
|
isTargetId = config.data_selection_grouped || !ids || ids.indexOf(id) >= 0,
|
|
21198
21282
|
isTargetIndex = !indices || indices.indexOf(i) >= 0,
|
|
21199
|
-
isSelected = shape.classed(
|
|
21283
|
+
isSelected = shape.classed($SELECT.SELECTED);
|
|
21200
21284
|
|
|
21201
21285
|
// line/area selection not supported yet
|
|
21202
|
-
if (shape.classed(
|
|
21286
|
+
if (shape.classed($LINE.line) || shape.classed($AREA.area)) {
|
|
21203
21287
|
return;
|
|
21204
21288
|
}
|
|
21205
21289
|
|
|
21206
21290
|
if (isTargetId && isTargetIndex) {
|
|
21207
21291
|
if (config.data_selection_isselectable.bind($$.api)(d) && !isSelected) {
|
|
21208
|
-
toggle(!0, shape.classed(
|
|
21292
|
+
toggle(!0, shape.classed($SELECT.SELECTED, !0), d, i);
|
|
21209
21293
|
}
|
|
21210
21294
|
} else if (isDefined(resetOther) && resetOther && isSelected) {
|
|
21211
|
-
toggle(!1, shape.classed(
|
|
21295
|
+
toggle(!1, shape.classed($SELECT.SELECTED, !1), d, i);
|
|
21212
21296
|
}
|
|
21213
21297
|
});
|
|
21214
21298
|
},
|
|
@@ -21239,21 +21323,21 @@ var _area = function area() {
|
|
|
21239
21323
|
return;
|
|
21240
21324
|
}
|
|
21241
21325
|
|
|
21242
|
-
$el.main.selectAll("." +
|
|
21326
|
+
$el.main.selectAll("." + $SHAPE.shapes).selectAll("." + $SHAPE.shape).each(function (d, i) {
|
|
21243
21327
|
var shape = (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this),
|
|
21244
21328
|
id = d.data ? d.data.id : d.id,
|
|
21245
21329
|
toggle = $$.getToggle(this, d).bind($$),
|
|
21246
21330
|
isTargetId = config.data_selection_grouped || !ids || ids.indexOf(id) >= 0,
|
|
21247
21331
|
isTargetIndex = !indices || indices.indexOf(i) >= 0,
|
|
21248
|
-
isSelected = shape.classed(
|
|
21332
|
+
isSelected = shape.classed($SELECT.SELECTED);
|
|
21249
21333
|
|
|
21250
21334
|
// line/area selection not supported yet
|
|
21251
|
-
if (shape.classed(
|
|
21335
|
+
if (shape.classed($LINE.line) || shape.classed($AREA.area)) {
|
|
21252
21336
|
return;
|
|
21253
21337
|
}
|
|
21254
21338
|
|
|
21255
21339
|
if (isTargetId && isTargetIndex && config.data_selection_isselectable.bind($$.api)(d) && isSelected) {
|
|
21256
|
-
toggle(!1, shape.classed(
|
|
21340
|
+
toggle(!1, shape.classed($SELECT.SELECTED, !1), d, i);
|
|
21257
21341
|
}
|
|
21258
21342
|
});
|
|
21259
21343
|
}
|
|
@@ -21296,21 +21380,25 @@ var _area = function area() {
|
|
|
21296
21380
|
show = config.subchart_show;
|
|
21297
21381
|
|
|
21298
21382
|
if (!show) {
|
|
21383
|
+
var _$target, _subchart$main2;
|
|
21384
|
+
|
|
21299
21385
|
// unbind zoom event bound to chart rect area
|
|
21300
21386
|
$$.unbindZoomEvent();
|
|
21301
21387
|
config.subchart_show = !show;
|
|
21302
21388
|
subchart.main || $$.initSubchart();
|
|
21303
|
-
var $target = subchart.main.selectAll("." +
|
|
21389
|
+
var $target = subchart.main.selectAll("." + $COMMON.target); // need to cover when new data has been loaded
|
|
21304
21390
|
|
|
21305
21391
|
if ($$.data.targets.length !== $target.size()) {
|
|
21392
|
+
var _subchart$main;
|
|
21393
|
+
|
|
21306
21394
|
$$.updateSizes();
|
|
21307
21395
|
$$.updateTargetsForSubchart($$.data.targets);
|
|
21308
|
-
$target = subchart.main.selectAll("." +
|
|
21396
|
+
$target = (_subchart$main = subchart.main) == null ? void 0 : _subchart$main.selectAll("." + $COMMON.target);
|
|
21309
21397
|
}
|
|
21310
21398
|
|
|
21311
|
-
$target.style("opacity", null);
|
|
21312
|
-
subchart.main.style("display", null);
|
|
21313
|
-
this.
|
|
21399
|
+
(_$target = $target) == null ? void 0 : _$target.style("opacity", null);
|
|
21400
|
+
(_subchart$main2 = subchart.main) == null ? void 0 : _subchart$main2.style("display", null);
|
|
21401
|
+
this.resize();
|
|
21314
21402
|
}
|
|
21315
21403
|
},
|
|
21316
21404
|
|
|
@@ -21324,14 +21412,15 @@ var _area = function area() {
|
|
|
21324
21412
|
* chart.subchart.hide();
|
|
21325
21413
|
*/
|
|
21326
21414
|
hide: function hide() {
|
|
21327
|
-
var
|
|
21328
|
-
|
|
21415
|
+
var _main,
|
|
21416
|
+
$$ = this.internal,
|
|
21417
|
+
main = $$.$el.subchart.main,
|
|
21329
21418
|
config = $$.config;
|
|
21330
21419
|
|
|
21331
|
-
if (config.subchart_show &&
|
|
21420
|
+
if (config.subchart_show && ((_main = main) == null ? void 0 : _main.style("display")) !== "none") {
|
|
21332
21421
|
config.subchart_show = !1;
|
|
21333
|
-
|
|
21334
|
-
this.
|
|
21422
|
+
main.style("display", "none");
|
|
21423
|
+
this.resize();
|
|
21335
21424
|
}
|
|
21336
21425
|
},
|
|
21337
21426
|
|
|
@@ -21645,25 +21734,25 @@ extend(zoom, {
|
|
|
21645
21734
|
minY = isSelectionGrouped ? state.margin.top : Math.min(sy, my),
|
|
21646
21735
|
maxY = isSelectionGrouped ? state.height : Math.max(sy, my);
|
|
21647
21736
|
|
|
21648
|
-
main.select("." +
|
|
21737
|
+
main.select("." + $DRAG.dragarea).attr("x", minX).attr("y", minY).attr("width", maxX - minX).attr("height", maxY - minY); // TODO: binary search when multiple xs
|
|
21649
21738
|
|
|
21650
|
-
main.selectAll("." +
|
|
21739
|
+
main.selectAll("." + $SHAPE.shapes).selectAll("." + $SHAPE.shape).filter(function (d) {
|
|
21651
21740
|
var _isSelectable;
|
|
21652
21741
|
|
|
21653
21742
|
return (_isSelectable = isSelectable) == null ? void 0 : _isSelectable.bind($$.api)(d);
|
|
21654
21743
|
}).each(function (d, i) {
|
|
21655
21744
|
var shape = (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this),
|
|
21656
|
-
isSelected = shape.classed(
|
|
21657
|
-
isIncluded = shape.classed(
|
|
21745
|
+
isSelected = shape.classed($SELECT.SELECTED),
|
|
21746
|
+
isIncluded = shape.classed($DRAG.INCLUDED),
|
|
21658
21747
|
isWithin = !1,
|
|
21659
21748
|
toggle;
|
|
21660
21749
|
|
|
21661
|
-
if (shape.classed(
|
|
21750
|
+
if (shape.classed($CIRCLE.circle)) {
|
|
21662
21751
|
var x = +shape.attr("cx") * 1,
|
|
21663
21752
|
y = +shape.attr("cy") * 1;
|
|
21664
21753
|
toggle = $$.togglePoint;
|
|
21665
21754
|
isWithin = minX < x && x < maxX && minY < y && y < maxY;
|
|
21666
|
-
} else if (shape.classed(
|
|
21755
|
+
} else if (shape.classed($BAR.bar)) {
|
|
21667
21756
|
var _getPathBox = getPathBox(this),
|
|
21668
21757
|
_x = _getPathBox.x,
|
|
21669
21758
|
y = _getPathBox.y,
|
|
@@ -21679,9 +21768,9 @@ extend(zoom, {
|
|
|
21679
21768
|
|
|
21680
21769
|
|
|
21681
21770
|
if (isWithin ^ isIncluded) {
|
|
21682
|
-
shape.classed(
|
|
21771
|
+
shape.classed($DRAG.INCLUDED, !isIncluded); // TODO: included/unincluded callback here
|
|
21683
21772
|
|
|
21684
|
-
shape.classed(
|
|
21773
|
+
shape.classed($SELECT.SELECTED, !isSelected);
|
|
21685
21774
|
toggle.call($$, !isSelected, shape, d, i);
|
|
21686
21775
|
}
|
|
21687
21776
|
});
|
|
@@ -21704,7 +21793,7 @@ extend(zoom, {
|
|
|
21704
21793
|
}
|
|
21705
21794
|
|
|
21706
21795
|
state.dragStart = mouse;
|
|
21707
|
-
main.select("." +
|
|
21796
|
+
main.select("." + $COMMON.chart).append("rect").attr("class", $DRAG.dragarea).style("opacity", "0.1");
|
|
21708
21797
|
$$.setDragStatus(!0);
|
|
21709
21798
|
},
|
|
21710
21799
|
|
|
@@ -21724,8 +21813,8 @@ extend(zoom, {
|
|
|
21724
21813
|
return;
|
|
21725
21814
|
}
|
|
21726
21815
|
|
|
21727
|
-
$T(main.select("." +
|
|
21728
|
-
main.selectAll("." +
|
|
21816
|
+
$T(main.select("." + $DRAG.dragarea)).style("opacity", "0").remove();
|
|
21817
|
+
main.selectAll("." + $SHAPE.shape).classed($DRAG.INCLUDED, !1);
|
|
21729
21818
|
$$.setDragStatus(!1);
|
|
21730
21819
|
}
|
|
21731
21820
|
});
|
|
@@ -21763,8 +21852,8 @@ function selection_objectSpread(target) { for (var i = 1, source; i < arguments.
|
|
|
21763
21852
|
r = $$.pointSelectR.bind($$);
|
|
21764
21853
|
callFn(config.data_onselected, $$.api, d, target.node()); // add selected-circle on low layer g
|
|
21765
21854
|
|
|
21766
|
-
$T(main.select("." +
|
|
21767
|
-
return $$.generateClass(
|
|
21855
|
+
$T(main.select("." + $SELECT.selectedCircles + $$.getTargetSelectorSuffix(d.id)).selectAll("." + $SELECT.selectedCircle + "-" + i).data([d]).enter().append("circle").attr("class", function () {
|
|
21856
|
+
return $$.generateClass($SELECT.selectedCircle, i);
|
|
21768
21857
|
}).attr("cx", cx).attr("cy", cy).attr("stroke", $$.color).attr("r", function (d2) {
|
|
21769
21858
|
return $$.pointSelectR(d2) * 1.4;
|
|
21770
21859
|
})).attr("r", r);
|
|
@@ -21784,7 +21873,7 @@ function selection_objectSpread(target) { for (var i = 1, source; i < arguments.
|
|
|
21784
21873
|
$T = $$.$T;
|
|
21785
21874
|
callFn(config.data_onunselected, $$.api, d, target.node()); // remove selected-circle from low layer g
|
|
21786
21875
|
|
|
21787
|
-
$T(main.select("." +
|
|
21876
|
+
$T(main.select("." + $SELECT.selectedCircles + $$.getTargetSelectorSuffix(d.id)).selectAll("." + $SELECT.selectedCircle + "-" + i)).attr("r", 0).remove();
|
|
21788
21877
|
},
|
|
21789
21878
|
|
|
21790
21879
|
/**
|
|
@@ -21867,32 +21956,33 @@ function selection_objectSpread(target) { for (var i = 1, source; i < arguments.
|
|
|
21867
21956
|
toggleShape: function toggleShape(that, d, i) {
|
|
21868
21957
|
var $$ = this,
|
|
21869
21958
|
config = $$.config,
|
|
21870
|
-
main = $$.$el.main
|
|
21871
|
-
shape = (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(that),
|
|
21872
|
-
isSelected = shape.classed(config_classes.SELECTED),
|
|
21873
|
-
toggle = $$.getToggle(that, d).bind($$),
|
|
21874
|
-
toggledShape;
|
|
21959
|
+
main = $$.$el.main;
|
|
21875
21960
|
|
|
21876
21961
|
if (config.data_selection_enabled && config.data_selection_isselectable.bind($$.api)(d)) {
|
|
21962
|
+
var shape = (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(that),
|
|
21963
|
+
isSelected = shape.classed($SELECT.SELECTED),
|
|
21964
|
+
toggle = $$.getToggle(that, d).bind($$),
|
|
21965
|
+
toggledShape;
|
|
21966
|
+
|
|
21877
21967
|
if (!config.data_selection_multiple) {
|
|
21878
|
-
var selector = "." +
|
|
21968
|
+
var selector = "." + $SHAPE.shapes;
|
|
21879
21969
|
|
|
21880
21970
|
if (config.data_selection_grouped) {
|
|
21881
21971
|
selector += $$.getTargetSelectorSuffix(d.id);
|
|
21882
21972
|
}
|
|
21883
21973
|
|
|
21884
|
-
main.selectAll(selector).selectAll("." +
|
|
21974
|
+
main.selectAll(selector).selectAll("." + $SHAPE.shape).each(function (d, i) {
|
|
21885
21975
|
var shape = (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this);
|
|
21886
21976
|
|
|
21887
|
-
if (shape.classed(
|
|
21977
|
+
if (shape.classed($SELECT.SELECTED)) {
|
|
21888
21978
|
toggledShape = shape;
|
|
21889
|
-
toggle(!1, shape.classed(
|
|
21979
|
+
toggle(!1, shape.classed($SELECT.SELECTED, !1), d, i);
|
|
21890
21980
|
}
|
|
21891
21981
|
});
|
|
21892
21982
|
}
|
|
21893
21983
|
|
|
21894
21984
|
if (!toggledShape || toggledShape.node() !== shape.node()) {
|
|
21895
|
-
shape.classed(
|
|
21985
|
+
shape.classed($SELECT.SELECTED, !isSelected);
|
|
21896
21986
|
toggle(!isSelected, shape, d, i);
|
|
21897
21987
|
}
|
|
21898
21988
|
}
|
|
@@ -21924,7 +22014,7 @@ function selection_objectSpread(target) { for (var i = 1, source; i < arguments.
|
|
|
21924
22014
|
$$.brush = (isRotated ? (0,external_commonjs_d3_brush_commonjs2_d3_brush_amd_d3_brush_root_d3_.brushY)() : (0,external_commonjs_d3_brush_commonjs2_d3_brush_amd_d3_brush_root_d3_.brushX)()).handleSize(5);
|
|
21925
22015
|
|
|
21926
22016
|
var getBrushSize = function () {
|
|
21927
|
-
var brush = $$.$el.svg.select("." +
|
|
22017
|
+
var brush = $$.$el.svg.select("." + classes.brush + " .overlay"),
|
|
21928
22018
|
brushSize = {
|
|
21929
22019
|
width: 0,
|
|
21930
22020
|
height: 0
|
|
@@ -21988,7 +22078,7 @@ function selection_objectSpread(target) { for (var i = 1, source; i < arguments.
|
|
|
21988
22078
|
}).length === 0) {
|
|
21989
22079
|
var _subchart$main;
|
|
21990
22080
|
|
|
21991
|
-
(_subchart$main = subchart.main) == null ? void 0 : _subchart$main.select("." +
|
|
22081
|
+
(_subchart$main = subchart.main) == null ? void 0 : _subchart$main.select("." + classes.brush).call(this);
|
|
21992
22082
|
}
|
|
21993
22083
|
|
|
21994
22084
|
return this;
|
|
@@ -22017,7 +22107,7 @@ function selection_objectSpread(target) { for (var i = 1, source; i < arguments.
|
|
|
22017
22107
|
|
|
22018
22108
|
$$.brush.getSelection = function () {
|
|
22019
22109
|
return (// @ts-ignore
|
|
22020
|
-
subchart.main ? subchart.main.select("." +
|
|
22110
|
+
subchart.main ? subchart.main.select("." + classes.brush) : (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)([])
|
|
22021
22111
|
);
|
|
22022
22112
|
};
|
|
22023
22113
|
},
|
|
@@ -22048,18 +22138,18 @@ function selection_objectSpread(target) { for (var i = 1, source; i < arguments.
|
|
|
22048
22138
|
clip.idSubchart = clipId;
|
|
22049
22139
|
$$.appendClip(defs, clipId);
|
|
22050
22140
|
$$.initBrush();
|
|
22051
|
-
subchart.main = svg.append("g").classed(
|
|
22141
|
+
subchart.main = svg.append("g").classed(classes.subchart, !0).attr("transform", $$.getTranslate("context"));
|
|
22052
22142
|
var main = subchart.main;
|
|
22053
22143
|
main.style("visibility", visibility); // Define g for chart area
|
|
22054
22144
|
|
|
22055
|
-
main.append("g").attr("clip-path", clipPath).attr("class",
|
|
22145
|
+
main.append("g").attr("clip-path", clipPath).attr("class", classes.chart); // Define g for chart types area
|
|
22056
22146
|
|
|
22057
22147
|
["bar", "line", "bubble", "candlestick", "scatter"].forEach(function (v) {
|
|
22058
22148
|
var type = capitalize(/^(bubble|scatter)$/.test(v) ? "circle" : v);
|
|
22059
22149
|
|
|
22060
22150
|
if ($$.hasType(v) || $$.hasTypeOf(type)) {
|
|
22061
|
-
var chart = main.select("." +
|
|
22062
|
-
chartClassName =
|
|
22151
|
+
var chart = main.select("." + classes.chart),
|
|
22152
|
+
chartClassName = classes["chart" + type + "s"];
|
|
22063
22153
|
|
|
22064
22154
|
if (chart.select("." + chartClassName).empty()) {
|
|
22065
22155
|
chart.append("g").attr("class", chartClassName);
|
|
@@ -22067,11 +22157,11 @@ function selection_objectSpread(target) { for (var i = 1, source; i < arguments.
|
|
|
22067
22157
|
}
|
|
22068
22158
|
}); // Add extent rect for Brush
|
|
22069
22159
|
|
|
22070
|
-
var brush = main.append("g").attr("clip-path", clipPath).attr("class",
|
|
22160
|
+
var brush = main.append("g").attr("clip-path", clipPath).attr("class", classes.brush).call($$.brush);
|
|
22071
22161
|
config.subchart_showHandle && $$.addBrushHandle(brush); // ATTENTION: This must be called AFTER chart added
|
|
22072
22162
|
// Add Axis
|
|
22073
22163
|
|
|
22074
|
-
axis.subX = main.append("g").attr("class",
|
|
22164
|
+
axis.subX = main.append("g").attr("class", classes.axisX).attr("transform", $$.getTranslate("subX")).attr("clip-path", config.axis_rotated ? "" : clip.pathXAxis).style("visibility", config.subchart_axis_x_show ? visibility : "hidden");
|
|
22075
22165
|
},
|
|
22076
22166
|
|
|
22077
22167
|
/**
|
|
@@ -22119,14 +22209,14 @@ function selection_objectSpread(target) { for (var i = 1, source; i < arguments.
|
|
|
22119
22209
|
name = capitalize(isPointType ? "circle" : v),
|
|
22120
22210
|
chartClass = $$.getChartClass(name, !0),
|
|
22121
22211
|
shapeClass = $$.getClass(isPointType ? "circles" : v + "s", !0),
|
|
22122
|
-
shapeChart = main.select("." +
|
|
22212
|
+
shapeChart = main.select("." + classes["chart" + (name + "s")]);
|
|
22123
22213
|
|
|
22124
22214
|
if (isPointType) {
|
|
22125
|
-
var circle = shapeChart.selectAll("." +
|
|
22215
|
+
var circle = shapeChart.selectAll("." + classes.circles).data(targets.filter($$["is" + capitalize(v) + "Type"].bind($$))).attr("class", shapeClass);
|
|
22126
22216
|
circle.exit().remove();
|
|
22127
22217
|
circle.enter().append("g").attr("class", shapeClass);
|
|
22128
22218
|
} else {
|
|
22129
|
-
var shapeUpdate = shapeChart.selectAll("." +
|
|
22219
|
+
var shapeUpdate = shapeChart.selectAll("." + classes["chart" + name]).attr("class", chartClass).data(targets.filter($$["is" + name + "Type"].bind($$))),
|
|
22130
22220
|
shapeEnter = shapeUpdate.enter().append("g").style("opacity", "0").attr("class", chartClass).append("g").attr("class", shapeClass);
|
|
22131
22221
|
shapeUpdate.exit().remove(); // Area
|
|
22132
22222
|
|
|
@@ -22134,7 +22224,7 @@ function selection_objectSpread(target) { for (var i = 1, source; i < arguments.
|
|
|
22134
22224
|
}
|
|
22135
22225
|
}); // -- Brush --//
|
|
22136
22226
|
|
|
22137
|
-
main.selectAll("." +
|
|
22227
|
+
main.selectAll("." + classes.brush + " rect").attr(config.axis_rotated ? "width" : "height", config.axis_rotated ? state.width2 : state.height2);
|
|
22138
22228
|
}
|
|
22139
22229
|
},
|
|
22140
22230
|
|
|
@@ -22216,7 +22306,7 @@ function selection_objectSpread(target) { for (var i = 1, source; i < arguments.
|
|
|
22216
22306
|
var $$ = this,
|
|
22217
22307
|
subchart = $$.$el.subchart,
|
|
22218
22308
|
$T = $$.$T,
|
|
22219
|
-
subXAxis = transitions != null && transitions.axisSubX ? transitions.axisSubX : $T(subchart.main.select("." +
|
|
22309
|
+
subXAxis = transitions != null && transitions.axisSubX ? transitions.axisSubX : $T(subchart.main.select("." + classes.axisX), withTransition);
|
|
22220
22310
|
subchart.main.attr("transform", $$.getTranslate("context"));
|
|
22221
22311
|
subXAxis.attr("transform", $$.getTranslate("subX"));
|
|
22222
22312
|
},
|
|
@@ -22536,7 +22626,7 @@ function selection_objectSpread(target) { for (var i = 1, source; i < arguments.
|
|
|
22536
22626
|
$$.unselectRect();
|
|
22537
22627
|
|
|
22538
22628
|
if (!zoomRect) {
|
|
22539
|
-
zoomRect = $$.$el.main.append("rect").attr("clip-path", state.clip.path).attr("class",
|
|
22629
|
+
zoomRect = $$.$el.main.append("rect").attr("clip-path", state.clip.path).attr("class", $ZOOM.zoomBrush).attr("width", isRotated ? state.width : 0).attr("height", isRotated ? 0 : state.height);
|
|
22540
22630
|
}
|
|
22541
22631
|
|
|
22542
22632
|
start = getPointer(event, this)[prop.index];
|
|
@@ -22579,10 +22669,10 @@ function selection_objectSpread(target) { for (var i = 1, source; i < arguments.
|
|
|
22579
22669
|
|
|
22580
22670
|
if (resetButton && config.zoom_type === "drag") {
|
|
22581
22671
|
if (!$el.zoomResetBtn) {
|
|
22582
|
-
$el.zoomResetBtn = $$.$el.chart.append("div").classed(
|
|
22672
|
+
$el.zoomResetBtn = $$.$el.chart.append("div").classed($COMMON.button, !0).append("span").on("click", function () {
|
|
22583
22673
|
isFunction(resetButton.onclick) && resetButton.onclick.bind($$.api)(this);
|
|
22584
22674
|
$$.api.unzoom();
|
|
22585
|
-
}).classed(
|
|
22675
|
+
}).classed($ZOOM.buttonZoomReset, !0).text(resetButton.text || "Reset Zoom");
|
|
22586
22676
|
} else {
|
|
22587
22677
|
$el.zoomResetBtn.style("display", null);
|
|
22588
22678
|
}
|
|
@@ -22956,7 +23046,7 @@ var _defaults = {},
|
|
|
22956
23046
|
* bb.version; // "1.0.0"
|
|
22957
23047
|
* @memberof bb
|
|
22958
23048
|
*/
|
|
22959
|
-
version: "3.
|
|
23049
|
+
version: "3.3.3",
|
|
22960
23050
|
|
|
22961
23051
|
/**
|
|
22962
23052
|
* Generate chart
|
|
@@ -23090,7 +23180,7 @@ var _defaults = {},
|
|
|
23090
23180
|
};
|
|
23091
23181
|
/**
|
|
23092
23182
|
* @namespace bb
|
|
23093
|
-
* @version 3.
|
|
23183
|
+
* @version 3.3.3
|
|
23094
23184
|
*/
|
|
23095
23185
|
;// CONCATENATED MODULE: ./src/index.ts
|
|
23096
23186
|
/**
|