billboard.js 3.13.0 → 3.14.0-next.2
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/README.md +1 -1
- package/dist/billboard.css +1 -1
- package/dist/billboard.js +349 -176
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +10 -10
- package/dist/billboard.pkgd.js +572 -399
- package/dist/billboard.pkgd.min.js +18 -18
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +7 -4
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.js +37 -11
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +3 -3
- package/dist/plugin/billboardjs-plugin-stanford.js +41 -15
- package/dist/plugin/billboardjs-plugin-stanford.min.js +3 -3
- package/dist/plugin/billboardjs-plugin-tableview.js +37 -11
- package/dist/plugin/billboardjs-plugin-tableview.min.js +6 -6
- package/dist/plugin/billboardjs-plugin-textoverlap.js +36 -10
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +3 -3
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +50 -50
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +138 -115
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +6 -6
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +178 -155
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +11 -11
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +138 -115
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +150 -127
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +7 -7
- package/dist/theme/dark.css +1 -1
- package/dist/theme/dark.min.css +1 -1
- package/dist/theme/datalab.css +1 -1
- package/dist/theme/datalab.min.css +1 -1
- package/dist/theme/graph.css +1 -1
- package/dist/theme/graph.min.css +1 -1
- package/dist/theme/insight.css +1 -1
- package/dist/theme/insight.min.css +1 -1
- package/dist/theme/modern.css +1 -1
- package/dist/theme/modern.min.css +1 -1
- package/dist-esm/billboard.js +267 -67
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +3 -3
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +3 -3
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +3 -3
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +3 -3
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +3 -3
- package/package.json +32 -31
- package/src/Chart/Chart.ts +11 -0
- package/src/ChartInternal/Axis/AxisRenderer.ts +6 -2
- package/src/ChartInternal/Axis/AxisRendererHelper.ts +13 -8
- package/src/ChartInternal/ChartInternal.ts +9 -7
- package/src/ChartInternal/data/data.ts +18 -4
- package/src/ChartInternal/data/load.ts +4 -0
- package/src/ChartInternal/interactions/eventrect.ts +11 -7
- package/src/ChartInternal/interactions/interaction.ts +21 -6
- package/src/ChartInternal/interactions/zoom.ts +11 -3
- package/src/ChartInternal/internals/legend.ts +16 -6
- package/src/ChartInternal/internals/size.ts +10 -5
- package/src/ChartInternal/internals/tooltip.ts +54 -2
- package/src/ChartInternal/internals/type.ts +2 -1
- package/src/ChartInternal/shape/arc.ts +2 -1
- package/src/ChartInternal/shape/funnel.ts +4 -2
- package/src/ChartInternal/shape/radar.ts +5 -1
- package/src/ChartInternal/shape/treemap.ts +4 -2
- package/src/config/Options/axis/axis.ts +30 -0
- package/src/config/Options/axis/y2.ts +13 -0
- package/src/config/Options/common/legend.ts +6 -3
- package/src/config/Options/common/main.ts +18 -7
- package/src/config/Options/interaction/interaction.ts +8 -2
- package/src/module/error.ts +11 -7
- package/src/module/util.ts +61 -7
- package/types/axis.d.ts +7 -0
- package/types/options.d.ts +15 -5
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.
|
|
8
|
+
* @version 3.14.0-next.2
|
|
9
9
|
*/
|
|
10
10
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
11
11
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
@@ -212,7 +212,7 @@ __webpack_require__.d(resolver_shape_namespaceObject, {
|
|
|
212
212
|
var external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_ = __webpack_require__(2);
|
|
213
213
|
// EXTERNAL MODULE: external {"commonjs":"d3-time-format","commonjs2":"d3-time-format","amd":"d3-time-format","root":"d3"}
|
|
214
214
|
var external_commonjs_d3_time_format_commonjs2_d3_time_format_amd_d3_time_format_root_d3_ = __webpack_require__(3);
|
|
215
|
-
;//
|
|
215
|
+
;// ./src/config/classes.ts
|
|
216
216
|
var __defProp = Object.defineProperty;
|
|
217
217
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
218
218
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
@@ -393,7 +393,7 @@ const $ZOOM = {
|
|
|
393
393
|
};
|
|
394
394
|
/* harmony default export */ var classes = (__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, $COMMON), $ARC), $AREA), $AXIS), $BAR), $CANDLESTICK), $CIRCLE), $COLOR), $DRAG), $GAUGE), $LEGEND), $LINE), $EVENT), $FOCUS), $FUNNEL), $GRID), $RADAR), $REGION), $SELECT), $SHAPE), $SUBCHART), $TEXT), $TOOLTIP), $TREEMAP), $ZOOM));
|
|
395
395
|
|
|
396
|
-
;//
|
|
396
|
+
;// ./src/config/Options/common/boost.ts
|
|
397
397
|
/* harmony default export */ var boost = ({
|
|
398
398
|
/**
|
|
399
399
|
* Set boost options
|
|
@@ -419,7 +419,7 @@ const $ZOOM = {
|
|
|
419
419
|
boost_useWorker: false
|
|
420
420
|
});
|
|
421
421
|
|
|
422
|
-
;//
|
|
422
|
+
;// ./src/config/Options/common/color.ts
|
|
423
423
|
/* harmony default export */ var color = ({
|
|
424
424
|
/**
|
|
425
425
|
* Set color of the data values
|
|
@@ -501,7 +501,7 @@ const $ZOOM = {
|
|
|
501
501
|
color_onover: void 0
|
|
502
502
|
});
|
|
503
503
|
|
|
504
|
-
;//
|
|
504
|
+
;// ./src/config/Options/common/legend.ts
|
|
505
505
|
/* harmony default export */ var legend = ({
|
|
506
506
|
/**
|
|
507
507
|
* Legend options
|
|
@@ -615,9 +615,12 @@ const $ZOOM = {
|
|
|
615
615
|
* }
|
|
616
616
|
*
|
|
617
617
|
* // when set below callback, will disable corresponding default interactions
|
|
618
|
-
* onclick: function(id) {
|
|
619
|
-
*
|
|
620
|
-
*
|
|
618
|
+
* onclick: function(id, visible) {
|
|
619
|
+
* // toggle based on the data visibility
|
|
620
|
+
* this[visible ? "hide" : "show"](id);
|
|
621
|
+
* },
|
|
622
|
+
* onover: function(id, visible) { ... },
|
|
623
|
+
* onout: function(id, visible) { ... },
|
|
621
624
|
*
|
|
622
625
|
* // set tile's size
|
|
623
626
|
* tile: {
|
|
@@ -670,7 +673,7 @@ const $ZOOM = {
|
|
|
670
673
|
legend_usePoint: false
|
|
671
674
|
});
|
|
672
675
|
|
|
673
|
-
;//
|
|
676
|
+
;// ./src/config/Options/common/main.ts
|
|
674
677
|
/* harmony default export */ var main = ({
|
|
675
678
|
/**
|
|
676
679
|
* Specify the CSS selector or the element which the chart will be set to. D3 selection object can be specified also.<br>
|
|
@@ -820,24 +823,32 @@ const $ZOOM = {
|
|
|
820
823
|
* @memberof Options
|
|
821
824
|
* @type {object}
|
|
822
825
|
* @property {object} [resize] resize object
|
|
823
|
-
* @property {boolean} [resize.auto=true] Set chart resize automatically on viewport changes.
|
|
826
|
+
* @property {boolean|string} [resize.auto=true] Set chart resize automatically on viewport changes.
|
|
827
|
+
* - **NOTE:** Available options
|
|
828
|
+
* - true: Enables automatic resize.
|
|
829
|
+
* - false: Disables automatic resize.
|
|
830
|
+
* - "viewBox": Enables automatic resize, and size will be fixed based on the viewbox.
|
|
824
831
|
* @property {boolean|number} [resize.timer=true] Set resize timer option.
|
|
825
|
-
* - **NOTE:**
|
|
832
|
+
* - **NOTE:** Available options
|
|
826
833
|
* - The resize function will be called using:
|
|
827
834
|
* - true: `setTimeout()`
|
|
828
835
|
* - false: `requestIdleCallback()`
|
|
829
|
-
* - Given number(delay in ms) value, resize function will be triggered using `
|
|
836
|
+
* - Given number(delay in ms) value, resize function will be triggered using `setTimeout()` with given delay.
|
|
837
|
+
* @see [Demo](https://naver.github.io/billboard.js/demo/#ChartOptions.resizeViewBox)
|
|
830
838
|
* @example
|
|
831
839
|
* resize: {
|
|
832
840
|
* auto: false,
|
|
833
841
|
*
|
|
834
|
-
* // set resize
|
|
842
|
+
* // set resize based on viewBox value
|
|
843
|
+
* auto: "viewBox",
|
|
844
|
+
*
|
|
845
|
+
* // set resize function will be triggered using `setTimeout()`
|
|
835
846
|
* timer: true,
|
|
836
847
|
*
|
|
837
848
|
* // set resize function will be triggered using `requestIdleCallback()`
|
|
838
849
|
* timer: false,
|
|
839
850
|
*
|
|
840
|
-
* // set resize function will be triggered using `
|
|
851
|
+
* // set resize function will be triggered using `setTimeout()` with a delay of `100ms`.
|
|
841
852
|
* timer: 100
|
|
842
853
|
* }
|
|
843
854
|
*/
|
|
@@ -996,7 +1007,10 @@ const $ZOOM = {
|
|
|
996
1007
|
* @memberof Options
|
|
997
1008
|
* @type {object}
|
|
998
1009
|
* @property {object} [render] render object
|
|
999
|
-
* @property {boolean} [render.lazy=true] Make to not render at initialization
|
|
1010
|
+
* @property {boolean} [render.lazy=true] Make to not render at initialization.
|
|
1011
|
+
* - **NOTE**:
|
|
1012
|
+
* - Enabled by default when bind element's visibility is hidden.
|
|
1013
|
+
* - When set to `false`, will initialize the chart regardless the bind element's visibility state, but in this case chart can't be guaranteed to be rendered properly.
|
|
1000
1014
|
* @property {boolean} [render.observe=true] Observe bind element's visibility(`display` or `visiblity` inline css property or class value) & render when is visible automatically (for IEs, only works IE11+). When set to **false**, call [`.flush()`](./Chart.html#flush) to render.
|
|
1001
1015
|
* @see [Demo](https://naver.github.io/billboard.js/demo/#ChartOptions.LazyRender)
|
|
1002
1016
|
* @example
|
|
@@ -1064,7 +1078,7 @@ const $ZOOM = {
|
|
|
1064
1078
|
regions: []
|
|
1065
1079
|
});
|
|
1066
1080
|
|
|
1067
|
-
;//
|
|
1081
|
+
;// ./src/config/Options/common/title.ts
|
|
1068
1082
|
/* harmony default export */ var title = ({
|
|
1069
1083
|
/**
|
|
1070
1084
|
* Set title options
|
|
@@ -1105,7 +1119,7 @@ const $ZOOM = {
|
|
|
1105
1119
|
title_position: "center"
|
|
1106
1120
|
});
|
|
1107
1121
|
|
|
1108
|
-
;//
|
|
1122
|
+
;// ./src/config/Options/common/tooltip.ts
|
|
1109
1123
|
/* harmony default export */ var tooltip = ({
|
|
1110
1124
|
/**
|
|
1111
1125
|
* Tooltip options
|
|
@@ -1353,7 +1367,7 @@ const $ZOOM = {
|
|
|
1353
1367
|
tooltip_order: null
|
|
1354
1368
|
});
|
|
1355
1369
|
|
|
1356
|
-
;//
|
|
1370
|
+
;// ./src/config/Options/data/data.ts
|
|
1357
1371
|
/* harmony default export */ var data = ({
|
|
1358
1372
|
/**
|
|
1359
1373
|
* Specify the key of x values in the data.<br><br>
|
|
@@ -2210,7 +2224,7 @@ const $ZOOM = {
|
|
|
2210
2224
|
data_empty_label_text: ""
|
|
2211
2225
|
});
|
|
2212
2226
|
|
|
2213
|
-
;//
|
|
2227
|
+
;// ./src/config/Options/interaction/interaction.ts
|
|
2214
2228
|
/* harmony default export */ var interaction = ({
|
|
2215
2229
|
/**
|
|
2216
2230
|
* Interaction options
|
|
@@ -2224,6 +2238,8 @@ const $ZOOM = {
|
|
|
2224
2238
|
* @property {boolean} [interaction.inputType.mouse=true] enable or disable mouse interaction
|
|
2225
2239
|
* @property {boolean} [interaction.inputType.touch=true] enable or disable touch interaction
|
|
2226
2240
|
* @property {boolean|number} [interaction.inputType.touch.preventDefault=false] enable or disable to call event.preventDefault on touchstart & touchmove event. It's usually used to prevent document scrolling.
|
|
2241
|
+
* @property {boolean} [interaction.onout=true] Enable or disable "onout" event.<br>
|
|
2242
|
+
* When is disabled, defocus(hiding tooltip, focused gridline, etc.) event won't work.
|
|
2227
2243
|
* @see [Demo: touch.preventDefault](https://naver.github.io/billboard.js/demo/#Interaction.PreventScrollOnTouch)
|
|
2228
2244
|
* @example
|
|
2229
2245
|
* interaction: {
|
|
@@ -2241,18 +2257,22 @@ const $ZOOM = {
|
|
|
2241
2257
|
* // or threshold pixel value (pixel moved from touchstart to touchmove)
|
|
2242
2258
|
* preventDefault: 5
|
|
2243
2259
|
* }
|
|
2244
|
-
* }
|
|
2260
|
+
* },
|
|
2261
|
+
*
|
|
2262
|
+
* // disable "onout" event
|
|
2263
|
+
* onout: false
|
|
2245
2264
|
* }
|
|
2246
2265
|
*/
|
|
2247
2266
|
interaction_enabled: true,
|
|
2248
2267
|
interaction_brighten: true,
|
|
2249
2268
|
interaction_inputType_mouse: true,
|
|
2250
|
-
interaction_inputType_touch: {}
|
|
2269
|
+
interaction_inputType_touch: {},
|
|
2270
|
+
interaction_onout: true
|
|
2251
2271
|
});
|
|
2252
2272
|
|
|
2253
2273
|
// EXTERNAL MODULE: external {"commonjs":"d3-brush","commonjs2":"d3-brush","amd":"d3-brush","root":"d3"}
|
|
2254
2274
|
var external_commonjs_d3_brush_commonjs2_d3_brush_amd_d3_brush_root_d3_ = __webpack_require__(4);
|
|
2255
|
-
;//
|
|
2275
|
+
;// ./src/module/browser.ts
|
|
2256
2276
|
function getGlobal() {
|
|
2257
2277
|
return typeof globalThis === "object" && globalThis !== null && globalThis.Object === Object && globalThis || typeof global === "object" && global !== null && global.Object === Object && global || typeof self === "object" && self !== null && self.Object === Object && self || Function("return this")();
|
|
2258
2278
|
}
|
|
@@ -2278,7 +2298,7 @@ const [
|
|
|
2278
2298
|
] = getFallback(win);
|
|
2279
2299
|
|
|
2280
2300
|
|
|
2281
|
-
;//
|
|
2301
|
+
;// ./src/module/util.ts
|
|
2282
2302
|
var util_defProp = Object.defineProperty;
|
|
2283
2303
|
var util_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
2284
2304
|
var util_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
@@ -2497,6 +2517,13 @@ function getScrollPosition(node) {
|
|
|
2497
2517
|
y: ((_e = (_d = win.pageYOffset) != null ? _d : win.scrollY) != null ? _e : 0) + ((_f = node.scrollTop) != null ? _f : 0)
|
|
2498
2518
|
};
|
|
2499
2519
|
}
|
|
2520
|
+
function getTransformCTM(node, x = 0, y = 0, inverse = true) {
|
|
2521
|
+
const point = new DOMPoint(x, y);
|
|
2522
|
+
const screen = node.getScreenCTM();
|
|
2523
|
+
return point.matrixTransform(
|
|
2524
|
+
inverse ? screen == null ? void 0 : screen.inverse() : screen
|
|
2525
|
+
);
|
|
2526
|
+
}
|
|
2500
2527
|
function getTranslation(node) {
|
|
2501
2528
|
const transform = node ? node.transform : null;
|
|
2502
2529
|
const baseVal = transform && transform.baseVal;
|
|
@@ -2644,12 +2671,28 @@ function parseDate(date) {
|
|
|
2644
2671
|
}
|
|
2645
2672
|
return parsedDate;
|
|
2646
2673
|
}
|
|
2674
|
+
function hasViewBox(svg) {
|
|
2675
|
+
const attr = svg.attr("viewBox");
|
|
2676
|
+
return attr ? /(\d+(\.\d+)?){3}/.test(attr) : false;
|
|
2677
|
+
}
|
|
2678
|
+
function hasStyle(node, condition, all = false) {
|
|
2679
|
+
const isD3Node = !!node.node;
|
|
2680
|
+
let has = false;
|
|
2681
|
+
for (const [key, value] of Object.entries(condition)) {
|
|
2682
|
+
has = isD3Node ? node.style(key) === value : node.style[key] === value;
|
|
2683
|
+
if (all === false && has) {
|
|
2684
|
+
break;
|
|
2685
|
+
}
|
|
2686
|
+
}
|
|
2687
|
+
return has;
|
|
2688
|
+
}
|
|
2647
2689
|
function isTabVisible() {
|
|
2648
2690
|
var _a, _b;
|
|
2649
2691
|
return ((_a = browser_doc) == null ? void 0 : _a.hidden) === false || ((_b = browser_doc) == null ? void 0 : _b.visibilityState) === "visible";
|
|
2650
2692
|
}
|
|
2651
2693
|
function convertInputType(mouse, touch) {
|
|
2652
2694
|
const { DocumentTouch, matchMedia, navigator } = win;
|
|
2695
|
+
const hasPointerCoarse = matchMedia == null ? void 0 : matchMedia("(pointer:coarse)").matches;
|
|
2653
2696
|
let hasTouch = false;
|
|
2654
2697
|
if (touch) {
|
|
2655
2698
|
if (navigator && "maxTouchPoints" in navigator) {
|
|
@@ -2657,7 +2700,7 @@ function convertInputType(mouse, touch) {
|
|
|
2657
2700
|
} else if ("ontouchmove" in win || DocumentTouch && browser_doc instanceof DocumentTouch) {
|
|
2658
2701
|
hasTouch = true;
|
|
2659
2702
|
} else {
|
|
2660
|
-
if (
|
|
2703
|
+
if (hasPointerCoarse) {
|
|
2661
2704
|
hasTouch = true;
|
|
2662
2705
|
} else {
|
|
2663
2706
|
const UA = navigator.userAgent;
|
|
@@ -2665,7 +2708,7 @@ function convertInputType(mouse, touch) {
|
|
|
2665
2708
|
}
|
|
2666
2709
|
}
|
|
2667
2710
|
}
|
|
2668
|
-
const hasMouse = mouse &&
|
|
2711
|
+
const hasMouse = mouse && !hasPointerCoarse && (matchMedia == null ? void 0 : matchMedia("(pointer:fine)").matches);
|
|
2669
2712
|
return hasMouse && "mouse" || hasTouch && "touch" || "mouse";
|
|
2670
2713
|
}
|
|
2671
2714
|
function runUntil(fn, conditionFn) {
|
|
@@ -2676,7 +2719,7 @@ function runUntil(fn, conditionFn) {
|
|
|
2676
2719
|
}
|
|
2677
2720
|
}
|
|
2678
2721
|
|
|
2679
|
-
;//
|
|
2722
|
+
;// ./src/config/Options/Options.ts
|
|
2680
2723
|
var Options_defProp = Object.defineProperty;
|
|
2681
2724
|
var Options_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
2682
2725
|
var Options_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
@@ -2725,7 +2768,7 @@ __publicField(_Options, "data", {});
|
|
|
2725
2768
|
let Options = _Options;
|
|
2726
2769
|
|
|
2727
2770
|
|
|
2728
|
-
;//
|
|
2771
|
+
;// ./src/config/Store/Element.ts
|
|
2729
2772
|
class Element {
|
|
2730
2773
|
constructor() {
|
|
2731
2774
|
const element = {
|
|
@@ -2801,7 +2844,7 @@ class Element {
|
|
|
2801
2844
|
}
|
|
2802
2845
|
}
|
|
2803
2846
|
|
|
2804
|
-
;//
|
|
2847
|
+
;// ./src/config/Store/State.ts
|
|
2805
2848
|
class State {
|
|
2806
2849
|
constructor() {
|
|
2807
2850
|
return {
|
|
@@ -2953,7 +2996,7 @@ class State {
|
|
|
2953
2996
|
}
|
|
2954
2997
|
}
|
|
2955
2998
|
|
|
2956
|
-
;//
|
|
2999
|
+
;// ./src/config/Store/Store.ts
|
|
2957
3000
|
|
|
2958
3001
|
|
|
2959
3002
|
const Store_classes = {
|
|
@@ -2971,7 +3014,7 @@ class Store {
|
|
|
2971
3014
|
}
|
|
2972
3015
|
}
|
|
2973
3016
|
|
|
2974
|
-
;//
|
|
3017
|
+
;// ./src/module/Cache.ts
|
|
2975
3018
|
var Cache_defProp = Object.defineProperty;
|
|
2976
3019
|
var Cache_defNormalProp = (obj, key, value) => key in obj ? Cache_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2977
3020
|
var Cache_publicField = (obj, key, value) => Cache_defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -3062,7 +3105,7 @@ class Cache {
|
|
|
3062
3105
|
}
|
|
3063
3106
|
}
|
|
3064
3107
|
|
|
3065
|
-
;//
|
|
3108
|
+
;// ./src/config/const.ts
|
|
3066
3109
|
const TYPE = {
|
|
3067
3110
|
AREA: "area",
|
|
3068
3111
|
AREA_LINE_RANGE: "area-line-range",
|
|
@@ -3151,7 +3194,7 @@ const TYPE_BY_CATEGORY = {
|
|
|
3151
3194
|
]
|
|
3152
3195
|
};
|
|
3153
3196
|
|
|
3154
|
-
;//
|
|
3197
|
+
;// ./src/module/error.ts
|
|
3155
3198
|
|
|
3156
3199
|
|
|
3157
3200
|
|
|
@@ -3173,26 +3216,27 @@ function checkModuleImport(ctx) {
|
|
|
3173
3216
|
}
|
|
3174
3217
|
type && logError(
|
|
3175
3218
|
`Please, make sure if %c${camelize(type)}`,
|
|
3176
|
-
"module has been imported and specified correctly."
|
|
3219
|
+
"module has been imported and specified correctly.",
|
|
3220
|
+
"https://github.com/naver/billboard.js/wiki/CHANGELOG-v2#modularization-by-its-functionality"
|
|
3177
3221
|
);
|
|
3178
3222
|
}
|
|
3179
|
-
function logError(head, tail) {
|
|
3223
|
+
function logError(head, tail, info) {
|
|
3180
3224
|
var _a;
|
|
3181
3225
|
const prefix = "[billboard.js]";
|
|
3182
|
-
const info = "https://github.com/naver/billboard.js/wiki/CHANGELOG-v2#modularization-by-its-functionality";
|
|
3183
3226
|
const hasConsole = (_a = win.console) == null ? void 0 : _a.error;
|
|
3184
3227
|
if (hasConsole) {
|
|
3228
|
+
const tailMsg = tail ? ["background:red;color:white;display:block;font-size:15px", tail] : [];
|
|
3185
3229
|
console.error(
|
|
3186
3230
|
`\u274C ${prefix} ${head}`,
|
|
3187
3231
|
"background:red;color:white;display:block;font-size:15px",
|
|
3188
|
-
|
|
3232
|
+
...tailMsg
|
|
3189
3233
|
);
|
|
3190
|
-
console.info("%c\u2139\uFE0F", "font-size:15px", info);
|
|
3234
|
+
info && console.info("%c\u2139\uFE0F", "font-size:15px", info);
|
|
3191
3235
|
}
|
|
3192
|
-
throw Error(`${prefix} ${head.replace(/\%c([a-z-]+)/i, "'$1' ")} ${tail}`);
|
|
3236
|
+
throw Error(`${prefix} ${head.replace(/\%c([a-z-]+)/i, "'$1' ")} ${tail != null ? tail : ""}`);
|
|
3193
3237
|
}
|
|
3194
3238
|
|
|
3195
|
-
;//
|
|
3239
|
+
;// ./src/module/generator.ts
|
|
3196
3240
|
|
|
3197
3241
|
|
|
3198
3242
|
const { setTimeout: generator_setTimeout, clearTimeout: generator_clearTimeout } = win;
|
|
@@ -3254,7 +3298,7 @@ function generateWait() {
|
|
|
3254
3298
|
return f;
|
|
3255
3299
|
}
|
|
3256
3300
|
|
|
3257
|
-
;//
|
|
3301
|
+
;// ./src/module/worker.ts
|
|
3258
3302
|
|
|
3259
3303
|
const blob = {};
|
|
3260
3304
|
function getObjectURL(fn, depsFn) {
|
|
@@ -3303,7 +3347,7 @@ function runWorker(useWorker = true, fn, callback, depsFn) {
|
|
|
3303
3347
|
|
|
3304
3348
|
// EXTERNAL MODULE: external {"commonjs":"d3-dsv","commonjs2":"d3-dsv","amd":"d3-dsv","root":"d3"}
|
|
3305
3349
|
var external_commonjs_d3_dsv_commonjs2_d3_dsv_amd_d3_dsv_root_d3_ = __webpack_require__(5);
|
|
3306
|
-
;//
|
|
3350
|
+
;// ./src/ChartInternal/data/convert.helper.ts
|
|
3307
3351
|
|
|
3308
3352
|
|
|
3309
3353
|
function columns(columns2) {
|
|
@@ -3436,7 +3480,7 @@ function tsv(tsv2) {
|
|
|
3436
3480
|
}, tsv2);
|
|
3437
3481
|
}
|
|
3438
3482
|
|
|
3439
|
-
;//
|
|
3483
|
+
;// ./src/ChartInternal/data/convert.ts
|
|
3440
3484
|
|
|
3441
3485
|
|
|
3442
3486
|
|
|
@@ -3590,7 +3634,7 @@ function getDataKeyForJson(keysParam, config) {
|
|
|
3590
3634
|
}
|
|
3591
3635
|
});
|
|
3592
3636
|
|
|
3593
|
-
;//
|
|
3637
|
+
;// ./src/ChartInternal/data/data.ts
|
|
3594
3638
|
|
|
3595
3639
|
|
|
3596
3640
|
|
|
@@ -4101,7 +4145,11 @@ function getDataKeyForJson(keysParam, config) {
|
|
|
4101
4145
|
*/
|
|
4102
4146
|
getDataIndexFromEvent(event) {
|
|
4103
4147
|
const $$ = this;
|
|
4104
|
-
const {
|
|
4148
|
+
const {
|
|
4149
|
+
$el,
|
|
4150
|
+
config,
|
|
4151
|
+
state: { hasRadar, inputType, eventReceiver: { coords, rect } }
|
|
4152
|
+
} = $$;
|
|
4105
4153
|
let index;
|
|
4106
4154
|
if (hasRadar) {
|
|
4107
4155
|
let target = event.target;
|
|
@@ -4114,9 +4162,15 @@ function getDataKeyForJson(keysParam, config) {
|
|
|
4114
4162
|
const isRotated = config.axis_rotated;
|
|
4115
4163
|
const scrollPos = getScrollPosition($el.chart.node());
|
|
4116
4164
|
const e = inputType === "touch" && event.changedTouches ? event.changedTouches[0] : event;
|
|
4165
|
+
let point = isRotated ? e.clientY + scrollPos.y - rect.top : e.clientX + scrollPos.x - rect.left;
|
|
4166
|
+
if (hasViewBox($el.svg)) {
|
|
4167
|
+
const pos = [point, 0];
|
|
4168
|
+
isRotated && pos.reverse();
|
|
4169
|
+
point = getTransformCTM($el.svg.node(), ...pos)[isRotated ? "y" : "x"];
|
|
4170
|
+
}
|
|
4117
4171
|
index = findIndex(
|
|
4118
4172
|
coords,
|
|
4119
|
-
|
|
4173
|
+
point,
|
|
4120
4174
|
0,
|
|
4121
4175
|
coords.length - 1,
|
|
4122
4176
|
isRotated
|
|
@@ -4391,7 +4445,7 @@ function getDataKeyForJson(keysParam, config) {
|
|
|
4391
4445
|
}
|
|
4392
4446
|
});
|
|
4393
4447
|
|
|
4394
|
-
;//
|
|
4448
|
+
;// ./src/ChartInternal/data/load.ts
|
|
4395
4449
|
|
|
4396
4450
|
|
|
4397
4451
|
function callDone(fn, resizeAfter = false) {
|
|
@@ -4459,6 +4513,8 @@ function callDone(fn, resizeAfter = false) {
|
|
|
4459
4513
|
org.xScale = zoomState.x.domain(org.xDomain);
|
|
4460
4514
|
}
|
|
4461
4515
|
$$.updateCurrentZoomTransform(zoomState.x, zoomState.currentDomain);
|
|
4516
|
+
} else if (org.xScale) {
|
|
4517
|
+
org.xScale.domain(org.xDomain);
|
|
4462
4518
|
}
|
|
4463
4519
|
$$.updateTypesElements();
|
|
4464
4520
|
callDone.call($$, args.done, args.resizeAfter);
|
|
@@ -4512,7 +4568,7 @@ function callDone(fn, resizeAfter = false) {
|
|
|
4512
4568
|
|
|
4513
4569
|
// EXTERNAL MODULE: external {"commonjs":"d3-drag","commonjs2":"d3-drag","amd":"d3-drag","root":"d3"}
|
|
4514
4570
|
var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack_require__(6);
|
|
4515
|
-
;//
|
|
4571
|
+
;// ./src/ChartInternal/interactions/interaction.ts
|
|
4516
4572
|
|
|
4517
4573
|
|
|
4518
4574
|
|
|
@@ -4648,7 +4704,7 @@ var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack
|
|
|
4648
4704
|
hasRadar,
|
|
4649
4705
|
hasTreemap
|
|
4650
4706
|
},
|
|
4651
|
-
$el: { eventRect, funnel, radar, treemap }
|
|
4707
|
+
$el: { eventRect, funnel, radar, svg, treemap }
|
|
4652
4708
|
} = $$;
|
|
4653
4709
|
let element = (_b = (hasFunnel || hasTreemap) && eventReceiver.rect || hasRadar && radar.axes.select(`.${$AXIS.axis}-${index} text`) || (eventRect || ((_a = $$.getArcElementByIdOrIndex) == null ? void 0 : _a.call($$, index)))) == null ? void 0 : _b.node();
|
|
4654
4710
|
if (element) {
|
|
@@ -4667,8 +4723,13 @@ var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack
|
|
|
4667
4723
|
top = 0;
|
|
4668
4724
|
}
|
|
4669
4725
|
}
|
|
4670
|
-
|
|
4671
|
-
|
|
4726
|
+
let x = left + (mouse ? mouse[0] : 0) + (isMultipleX || isRotated ? 0 : width / 2);
|
|
4727
|
+
let y = top + (mouse ? mouse[1] : 0) + (isRotated ? 4 : 0);
|
|
4728
|
+
if (hasViewBox(svg)) {
|
|
4729
|
+
const ctm = getTransformCTM($$.$el.svg.node(), x, y, false);
|
|
4730
|
+
x = ctm.x;
|
|
4731
|
+
y = ctm.y;
|
|
4732
|
+
}
|
|
4672
4733
|
const params = {
|
|
4673
4734
|
screenX: x,
|
|
4674
4735
|
screenY: y,
|
|
@@ -4739,7 +4800,7 @@ var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack
|
|
|
4739
4800
|
}
|
|
4740
4801
|
});
|
|
4741
4802
|
|
|
4742
|
-
;//
|
|
4803
|
+
;// ./src/ChartInternal/internals/category.ts
|
|
4743
4804
|
/* harmony default export */ var category = ({
|
|
4744
4805
|
/**
|
|
4745
4806
|
* Category Name
|
|
@@ -4754,7 +4815,7 @@ var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack
|
|
|
4754
4815
|
}
|
|
4755
4816
|
});
|
|
4756
4817
|
|
|
4757
|
-
;//
|
|
4818
|
+
;// ./src/ChartInternal/internals/class.ts
|
|
4758
4819
|
|
|
4759
4820
|
/* harmony default export */ var internals_class = ({
|
|
4760
4821
|
generateClass(prefix, targetId) {
|
|
@@ -4841,7 +4902,7 @@ var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack
|
|
|
4841
4902
|
|
|
4842
4903
|
// EXTERNAL MODULE: external {"commonjs":"d3-scale","commonjs2":"d3-scale","amd":"d3-scale","root":"d3"}
|
|
4843
4904
|
var external_commonjs_d3_scale_commonjs2_d3_scale_amd_d3_scale_root_d3_ = __webpack_require__(7);
|
|
4844
|
-
;//
|
|
4905
|
+
;// ./src/ChartInternal/internals/color.ts
|
|
4845
4906
|
|
|
4846
4907
|
|
|
4847
4908
|
|
|
@@ -5054,7 +5115,7 @@ const schemeCategory10 = [
|
|
|
5054
5115
|
}
|
|
5055
5116
|
});
|
|
5056
5117
|
|
|
5057
|
-
;//
|
|
5118
|
+
;// ./src/ChartInternal/internals/domain.ts
|
|
5058
5119
|
|
|
5059
5120
|
|
|
5060
5121
|
/* harmony default export */ var domain = ({
|
|
@@ -5405,7 +5466,7 @@ const schemeCategory10 = [
|
|
|
5405
5466
|
}
|
|
5406
5467
|
});
|
|
5407
5468
|
|
|
5408
|
-
;//
|
|
5469
|
+
;// ./src/ChartInternal/internals/format.ts
|
|
5409
5470
|
|
|
5410
5471
|
function getFormat($$, typeValue, v) {
|
|
5411
5472
|
const { config } = $$;
|
|
@@ -5470,7 +5531,7 @@ function getFormat($$, typeValue, v) {
|
|
|
5470
5531
|
}
|
|
5471
5532
|
});
|
|
5472
5533
|
|
|
5473
|
-
;//
|
|
5534
|
+
;// ./src/ChartInternal/internals/legend.ts
|
|
5474
5535
|
|
|
5475
5536
|
|
|
5476
5537
|
|
|
@@ -5674,7 +5735,8 @@ function getFormattedText(id, formatted = true) {
|
|
|
5674
5735
|
const $$ = this;
|
|
5675
5736
|
const { current, isLegendRight, legendItemHeight, legendStep } = $$.state;
|
|
5676
5737
|
const isFitPadding = ((_a = $$.config.padding) == null ? void 0 : _a.mode) === "fit";
|
|
5677
|
-
|
|
5738
|
+
const height = $$.config.legend_show ? isLegendRight ? current.height : Math.max(isFitPadding ? 10 : 20, legendItemHeight) * (legendStep + 1) : 0;
|
|
5739
|
+
return height;
|
|
5678
5740
|
},
|
|
5679
5741
|
/**
|
|
5680
5742
|
* Get the opacity of the legend that is unfocused
|
|
@@ -5796,7 +5858,12 @@ function getFormattedText(id, formatted = true) {
|
|
|
5796
5858
|
item.on(
|
|
5797
5859
|
interaction.dblclick ? "dblclick" : "click",
|
|
5798
5860
|
interaction || isFunction(config.legend_item_onclick) ? function(event, id) {
|
|
5799
|
-
if (!callFn(
|
|
5861
|
+
if (!callFn(
|
|
5862
|
+
config.legend_item_onclick,
|
|
5863
|
+
api,
|
|
5864
|
+
id,
|
|
5865
|
+
!state.hiddenTargetIds.includes(id)
|
|
5866
|
+
)) {
|
|
5800
5867
|
const { altKey, target, type } = event;
|
|
5801
5868
|
if (type === "dblclick" || altKey) {
|
|
5802
5869
|
if (state.hiddenTargetIds.length && target.parentNode.getAttribute("class").indexOf(
|
|
@@ -5816,7 +5883,12 @@ function getFormattedText(id, formatted = true) {
|
|
|
5816
5883
|
} : null
|
|
5817
5884
|
);
|
|
5818
5885
|
!isTouch && item.on("mouseout", interaction || isFunction(config.legend_item_onout) ? function(event, id) {
|
|
5819
|
-
if (!callFn(
|
|
5886
|
+
if (!callFn(
|
|
5887
|
+
config.legend_item_onout,
|
|
5888
|
+
api,
|
|
5889
|
+
id,
|
|
5890
|
+
!state.hiddenTargetIds.includes(id)
|
|
5891
|
+
)) {
|
|
5820
5892
|
(0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this).classed($FOCUS.legendItemFocused, false);
|
|
5821
5893
|
if (hasGauge) {
|
|
5822
5894
|
$$.undoMarkOverlapped($$, `.${$GAUGE.gaugeValue}`);
|
|
@@ -5824,7 +5896,12 @@ function getFormattedText(id, formatted = true) {
|
|
|
5824
5896
|
$$.api.revert();
|
|
5825
5897
|
}
|
|
5826
5898
|
} : null).on("mouseover", interaction || isFunction(config.legend_item_onover) ? function(event, id) {
|
|
5827
|
-
if (!callFn(
|
|
5899
|
+
if (!callFn(
|
|
5900
|
+
config.legend_item_onover,
|
|
5901
|
+
api,
|
|
5902
|
+
id,
|
|
5903
|
+
!state.hiddenTargetIds.includes(id)
|
|
5904
|
+
)) {
|
|
5828
5905
|
(0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this).classed($FOCUS.legendItemFocused, true);
|
|
5829
5906
|
if (hasGauge) {
|
|
5830
5907
|
$$.markOverlapped(id, $$, `.${$GAUGE.gaugeValue}`);
|
|
@@ -6113,7 +6190,7 @@ function getFormattedText(id, formatted = true) {
|
|
|
6113
6190
|
|
|
6114
6191
|
// EXTERNAL MODULE: external {"commonjs":"d3-transition","commonjs2":"d3-transition","amd":"d3-transition","root":"d3"}
|
|
6115
6192
|
var external_commonjs_d3_transition_commonjs2_d3_transition_amd_d3_transition_root_d3_ = __webpack_require__(8);
|
|
6116
|
-
;//
|
|
6193
|
+
;// ./src/ChartInternal/internals/redraw.ts
|
|
6117
6194
|
|
|
6118
6195
|
|
|
6119
6196
|
|
|
@@ -6278,7 +6355,7 @@ var external_commonjs_d3_transition_commonjs2_d3_transition_amd_d3_transition_ro
|
|
|
6278
6355
|
}
|
|
6279
6356
|
});
|
|
6280
6357
|
|
|
6281
|
-
;//
|
|
6358
|
+
;// ./src/ChartInternal/internals/scale.ts
|
|
6282
6359
|
|
|
6283
6360
|
|
|
6284
6361
|
function getScale(type = "linear", min, max) {
|
|
@@ -6488,7 +6565,7 @@ function getScale(type = "linear", min, max) {
|
|
|
6488
6565
|
}
|
|
6489
6566
|
});
|
|
6490
6567
|
|
|
6491
|
-
;//
|
|
6568
|
+
;// ./src/ChartInternal/internals/size.ts
|
|
6492
6569
|
|
|
6493
6570
|
|
|
6494
6571
|
|
|
@@ -6583,8 +6660,12 @@ function getScale(type = "linear", min, max) {
|
|
|
6583
6660
|
},
|
|
6584
6661
|
updateSvgSize() {
|
|
6585
6662
|
const $$ = this;
|
|
6586
|
-
const { state: { clip, current, hasAxis, width, height }, $el: { svg } } = $$;
|
|
6587
|
-
|
|
6663
|
+
const { config, state: { clip, current, hasAxis, width, height }, $el: { svg } } = $$;
|
|
6664
|
+
if (config.resize_auto === "viewBox") {
|
|
6665
|
+
svg.attr("viewBox", `0 0 ${current.width} ${current.height}`);
|
|
6666
|
+
} else {
|
|
6667
|
+
svg.attr("width", current.width).attr("height", current.height);
|
|
6668
|
+
}
|
|
6588
6669
|
if (hasAxis) {
|
|
6589
6670
|
const brush = svg.select(`.${$SUBCHART.brush} .overlay`);
|
|
6590
6671
|
const brushSize = { width: 0, height: 0 };
|
|
@@ -6781,7 +6862,7 @@ function getScale(type = "linear", min, max) {
|
|
|
6781
6862
|
}
|
|
6782
6863
|
});
|
|
6783
6864
|
|
|
6784
|
-
;//
|
|
6865
|
+
;// ./src/ChartInternal/internals/style.ts
|
|
6785
6866
|
|
|
6786
6867
|
|
|
6787
6868
|
/* harmony default export */ var style = ({
|
|
@@ -6823,7 +6904,7 @@ function getScale(type = "linear", min, max) {
|
|
|
6823
6904
|
}
|
|
6824
6905
|
});
|
|
6825
6906
|
|
|
6826
|
-
;//
|
|
6907
|
+
;// ./src/ChartInternal/internals/text.ts
|
|
6827
6908
|
|
|
6828
6909
|
|
|
6829
6910
|
|
|
@@ -7283,7 +7364,7 @@ function getTextPos(d, type) {
|
|
|
7283
7364
|
}
|
|
7284
7365
|
});
|
|
7285
7366
|
|
|
7286
|
-
;//
|
|
7367
|
+
;// ./src/ChartInternal/internals/title.ts
|
|
7287
7368
|
|
|
7288
7369
|
|
|
7289
7370
|
function getTextXPos(pos = "left", width) {
|
|
@@ -7337,7 +7418,7 @@ function getTextXPos(pos = "left", width) {
|
|
|
7337
7418
|
}
|
|
7338
7419
|
});
|
|
7339
7420
|
|
|
7340
|
-
;//
|
|
7421
|
+
;// ./src/ChartInternal/internals/tooltip.ts
|
|
7341
7422
|
|
|
7342
7423
|
|
|
7343
7424
|
|
|
@@ -7535,7 +7616,7 @@ function getTextXPos(pos = "left", width) {
|
|
|
7535
7616
|
setTooltipPosition(dataToShow, eventTarget) {
|
|
7536
7617
|
var _a, _b;
|
|
7537
7618
|
const $$ = this;
|
|
7538
|
-
const { config, scale, state, $el: { eventRect, tooltip } } = $$;
|
|
7619
|
+
const { config, scale, state, $el: { eventRect, tooltip, svg } } = $$;
|
|
7539
7620
|
const { bindto } = config.tooltip_contents;
|
|
7540
7621
|
const isRotated = config.axis_rotated;
|
|
7541
7622
|
const datum = tooltip == null ? void 0 : tooltip.datum();
|
|
@@ -7564,7 +7645,7 @@ function getTextXPos(pos = "left", width) {
|
|
|
7564
7645
|
height,
|
|
7565
7646
|
eventRect == null ? void 0 : eventRect.node(),
|
|
7566
7647
|
currPos
|
|
7567
|
-
)) != null ? _b : $$.getTooltipPosition.bind($$)(width, height, currPos);
|
|
7648
|
+
)) != null ? _b : hasViewBox(svg) ? $$.getTooltipPositionViewBox.bind($$)(width, height, currPos) : $$.getTooltipPosition.bind($$)(width, height, currPos);
|
|
7568
7649
|
["top", "left"].forEach((v) => {
|
|
7569
7650
|
const value = pos[v];
|
|
7570
7651
|
tooltip.style(v, `${value}px`);
|
|
@@ -7574,6 +7655,38 @@ function getTextXPos(pos = "left", width) {
|
|
|
7574
7655
|
});
|
|
7575
7656
|
}
|
|
7576
7657
|
},
|
|
7658
|
+
getTooltipPositionViewBox(tWidth, tHeight, currPos) {
|
|
7659
|
+
var _a, _b;
|
|
7660
|
+
const $$ = this;
|
|
7661
|
+
const { $el: { eventRect, main }, config, state } = $$;
|
|
7662
|
+
const isRotated = config.axis_rotated;
|
|
7663
|
+
const hasArcType = $$.hasArcType(void 0, ["radar"]) || state.hasFunnel || state.hasTreemap;
|
|
7664
|
+
const target = (_b = (_a = state.hasRadar ? main : eventRect) == null ? void 0 : _a.node()) != null ? _b : state.event.target;
|
|
7665
|
+
const size = 38;
|
|
7666
|
+
let { x, y } = currPos;
|
|
7667
|
+
if (state.hasAxis) {
|
|
7668
|
+
x = isRotated ? x : currPos.xAxis;
|
|
7669
|
+
y = isRotated ? currPos.xAxis : y;
|
|
7670
|
+
}
|
|
7671
|
+
const ctm = getTransformCTM(target, x, y, false);
|
|
7672
|
+
let top = ctm.y;
|
|
7673
|
+
let left = ctm.x + size;
|
|
7674
|
+
if (hasArcType) {
|
|
7675
|
+
top += tHeight;
|
|
7676
|
+
left -= size;
|
|
7677
|
+
}
|
|
7678
|
+
const rect = (hasArcType ? main.node() : target).getBoundingClientRect();
|
|
7679
|
+
if (left + tWidth > rect.right) {
|
|
7680
|
+
left = rect.right - tWidth - size;
|
|
7681
|
+
}
|
|
7682
|
+
if (top + tHeight > rect.bottom) {
|
|
7683
|
+
top -= tHeight + size;
|
|
7684
|
+
}
|
|
7685
|
+
return {
|
|
7686
|
+
top,
|
|
7687
|
+
left
|
|
7688
|
+
};
|
|
7689
|
+
},
|
|
7577
7690
|
/**
|
|
7578
7691
|
* Returns the position of the tooltip
|
|
7579
7692
|
* @param {string} tWidth Width value of tooltip element
|
|
@@ -7787,7 +7900,7 @@ function getTextXPos(pos = "left", width) {
|
|
|
7787
7900
|
}
|
|
7788
7901
|
});
|
|
7789
7902
|
|
|
7790
|
-
;//
|
|
7903
|
+
;// ./src/ChartInternal/internals/transform.ts
|
|
7791
7904
|
|
|
7792
7905
|
|
|
7793
7906
|
/* harmony default export */ var transform = ({
|
|
@@ -7860,7 +7973,7 @@ function getTextXPos(pos = "left", width) {
|
|
|
7860
7973
|
}
|
|
7861
7974
|
});
|
|
7862
7975
|
|
|
7863
|
-
;//
|
|
7976
|
+
;// ./src/ChartInternal/internals/type.ts
|
|
7864
7977
|
|
|
7865
7978
|
|
|
7866
7979
|
/* harmony default export */ var type = ({
|
|
@@ -8088,7 +8201,7 @@ function getTextXPos(pos = "left", width) {
|
|
|
8088
8201
|
|
|
8089
8202
|
// EXTERNAL MODULE: external {"commonjs":"d3-shape","commonjs2":"d3-shape","amd":"d3-shape","root":"d3"}
|
|
8090
8203
|
var external_commonjs_d3_shape_commonjs2_d3_shape_amd_d3_shape_root_d3_ = __webpack_require__(9);
|
|
8091
|
-
;//
|
|
8204
|
+
;// ./src/ChartInternal/shape/shape.ts
|
|
8092
8205
|
|
|
8093
8206
|
|
|
8094
8207
|
|
|
@@ -8513,7 +8626,7 @@ function getGroupedDataPointsFn(d) {
|
|
|
8513
8626
|
}
|
|
8514
8627
|
});
|
|
8515
8628
|
|
|
8516
|
-
;//
|
|
8629
|
+
;// ./src/ChartInternal/ChartInternal.ts
|
|
8517
8630
|
var ChartInternal_defProp = Object.defineProperty;
|
|
8518
8631
|
var ChartInternal_defNormalProp = (obj, key, value) => key in obj ? ChartInternal_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8519
8632
|
var ChartInternal_publicField = (obj, key, value) => ChartInternal_defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -8686,8 +8799,8 @@ class ChartInternal {
|
|
|
8686
8799
|
initToRender(forced) {
|
|
8687
8800
|
const $$ = this;
|
|
8688
8801
|
const { config, state, $el: { chart } } = $$;
|
|
8689
|
-
const isHidden = () => chart
|
|
8690
|
-
const isLazy = config.render.lazy || isHidden();
|
|
8802
|
+
const isHidden = () => hasStyle(chart, { display: "none", visibility: "hidden" });
|
|
8803
|
+
const isLazy = config.render.lazy === false ? false : config.render.lazy || isHidden();
|
|
8691
8804
|
const MutationObserver = win.MutationObserver;
|
|
8692
8805
|
if (isLazy && MutationObserver && config.render.observe !== false && !forced) {
|
|
8693
8806
|
new MutationObserver((mutation, observer) => {
|
|
@@ -8803,7 +8916,7 @@ class ChartInternal {
|
|
|
8803
8916
|
if (hasAxis || hasColorPatterns || hasPolar || hasTreemap || labelsBGColor || ((_a = $$.hasLegendDefsPoint) == null ? void 0 : _a.call($$))) {
|
|
8804
8917
|
$el.defs = $el.svg.append("defs");
|
|
8805
8918
|
if (hasAxis) {
|
|
8806
|
-
["id", "idXAxis", "idYAxis", "idGrid"].forEach((v) => {
|
|
8919
|
+
["id", "idXAxis", "idYAxis", "idY2Axis", "idGrid"].forEach((v) => {
|
|
8807
8920
|
$$.appendClip($el.defs, state.clip[v]);
|
|
8808
8921
|
});
|
|
8809
8922
|
}
|
|
@@ -9048,7 +9161,7 @@ class ChartInternal {
|
|
|
9048
9161
|
const resizeFunction = generateResize(config.resize_timer);
|
|
9049
9162
|
const list = [];
|
|
9050
9163
|
list.push(() => callFn(config.onresize, $$.api));
|
|
9051
|
-
if (config.resize_auto) {
|
|
9164
|
+
if (config.resize_auto === true) {
|
|
9052
9165
|
list.push(() => {
|
|
9053
9166
|
state.resizing = true;
|
|
9054
9167
|
if (config.legend_show) {
|
|
@@ -9106,7 +9219,7 @@ extend(ChartInternal.prototype, [
|
|
|
9106
9219
|
type
|
|
9107
9220
|
]);
|
|
9108
9221
|
|
|
9109
|
-
;//
|
|
9222
|
+
;// ./src/config/config.ts
|
|
9110
9223
|
|
|
9111
9224
|
function loadConfig(config) {
|
|
9112
9225
|
const thisConfig = this.config;
|
|
@@ -9136,7 +9249,7 @@ function loadConfig(config) {
|
|
|
9136
9249
|
}
|
|
9137
9250
|
}
|
|
9138
9251
|
|
|
9139
|
-
;//
|
|
9252
|
+
;// ./src/Chart/api/chart.ts
|
|
9140
9253
|
|
|
9141
9254
|
|
|
9142
9255
|
/* harmony default export */ var chart = ({
|
|
@@ -9299,7 +9412,7 @@ function loadConfig(config) {
|
|
|
9299
9412
|
}
|
|
9300
9413
|
});
|
|
9301
9414
|
|
|
9302
|
-
;//
|
|
9415
|
+
;// ./src/Chart/api/color.ts
|
|
9303
9416
|
/* harmony default export */ var api_color = ({
|
|
9304
9417
|
/**
|
|
9305
9418
|
* Get the color
|
|
@@ -9316,7 +9429,7 @@ function loadConfig(config) {
|
|
|
9316
9429
|
}
|
|
9317
9430
|
});
|
|
9318
9431
|
|
|
9319
|
-
;//
|
|
9432
|
+
;// ./src/Chart/api/data.ts
|
|
9320
9433
|
|
|
9321
9434
|
const api_data_data = function(targetIds) {
|
|
9322
9435
|
const { targets } = this.internal.data;
|
|
@@ -9471,7 +9584,7 @@ extend(api_data_data, {
|
|
|
9471
9584
|
});
|
|
9472
9585
|
/* harmony default export */ var api_data = ({ data: api_data_data });
|
|
9473
9586
|
|
|
9474
|
-
;//
|
|
9587
|
+
;// ./src/Chart/api/export.ts
|
|
9475
9588
|
|
|
9476
9589
|
|
|
9477
9590
|
|
|
@@ -9667,7 +9780,7 @@ function renderText(ctx, glyph) {
|
|
|
9667
9780
|
}
|
|
9668
9781
|
});
|
|
9669
9782
|
|
|
9670
|
-
;//
|
|
9783
|
+
;// ./src/Chart/api/focus.ts
|
|
9671
9784
|
|
|
9672
9785
|
|
|
9673
9786
|
/* harmony default export */ var api_focus = ({
|
|
@@ -9774,7 +9887,7 @@ function renderText(ctx, glyph) {
|
|
|
9774
9887
|
}
|
|
9775
9888
|
});
|
|
9776
9889
|
|
|
9777
|
-
;//
|
|
9890
|
+
;// ./src/Chart/api/legend.ts
|
|
9778
9891
|
const legend_legend = {
|
|
9779
9892
|
/**
|
|
9780
9893
|
* Show legend for each target.
|
|
@@ -9828,7 +9941,7 @@ const legend_legend = {
|
|
|
9828
9941
|
};
|
|
9829
9942
|
/* harmony default export */ var api_legend = ({ legend: legend_legend });
|
|
9830
9943
|
|
|
9831
|
-
;//
|
|
9944
|
+
;// ./src/Chart/api/load.ts
|
|
9832
9945
|
|
|
9833
9946
|
|
|
9834
9947
|
|
|
@@ -10041,7 +10154,7 @@ const legend_legend = {
|
|
|
10041
10154
|
}
|
|
10042
10155
|
});
|
|
10043
10156
|
|
|
10044
|
-
;//
|
|
10157
|
+
;// ./src/Chart/api/show.ts
|
|
10045
10158
|
|
|
10046
10159
|
function showHide(show, targetIdsValue, options) {
|
|
10047
10160
|
const $$ = this.internal;
|
|
@@ -10144,7 +10257,7 @@ function showHide(show, targetIdsValue, options) {
|
|
|
10144
10257
|
}
|
|
10145
10258
|
});
|
|
10146
10259
|
|
|
10147
|
-
;//
|
|
10260
|
+
;// ./src/Chart/api/tooltip.ts
|
|
10148
10261
|
|
|
10149
10262
|
|
|
10150
10263
|
const tooltip_tooltip = {
|
|
@@ -10267,7 +10380,7 @@ const tooltip_tooltip = {
|
|
|
10267
10380
|
};
|
|
10268
10381
|
/* harmony default export */ var api_tooltip = ({ tooltip: tooltip_tooltip });
|
|
10269
10382
|
|
|
10270
|
-
;//
|
|
10383
|
+
;// ./src/Chart/Chart.ts
|
|
10271
10384
|
var Chart_defProp = Object.defineProperty;
|
|
10272
10385
|
var Chart_defNormalProp = (obj, key, value) => key in obj ? Chart_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10273
10386
|
var Chart_publicField = (obj, key, value) => Chart_defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -10322,7 +10435,7 @@ extend(Chart.prototype, [
|
|
|
10322
10435
|
api_tooltip
|
|
10323
10436
|
]);
|
|
10324
10437
|
|
|
10325
|
-
;//
|
|
10438
|
+
;// ./src/Chart/api/selection.ts
|
|
10326
10439
|
|
|
10327
10440
|
|
|
10328
10441
|
|
|
@@ -10433,7 +10546,7 @@ function setSelection(isSelection = false, ids, indices, resetOther) {
|
|
|
10433
10546
|
}
|
|
10434
10547
|
});
|
|
10435
10548
|
|
|
10436
|
-
;//
|
|
10549
|
+
;// ./src/Chart/api/subchart.ts
|
|
10437
10550
|
|
|
10438
10551
|
|
|
10439
10552
|
const subchart = function(domainValue) {
|
|
@@ -10564,7 +10677,7 @@ extend(subchart, {
|
|
|
10564
10677
|
|
|
10565
10678
|
// EXTERNAL MODULE: external {"commonjs":"d3-zoom","commonjs2":"d3-zoom","amd":"d3-zoom","root":"d3"}
|
|
10566
10679
|
var external_commonjs_d3_zoom_commonjs2_d3_zoom_amd_d3_zoom_root_d3_ = __webpack_require__(10);
|
|
10567
|
-
;//
|
|
10680
|
+
;// ./src/Chart/api/zoom.ts
|
|
10568
10681
|
|
|
10569
10682
|
|
|
10570
10683
|
const zoom = function(domainValue) {
|
|
@@ -10731,7 +10844,7 @@ extend(zoom, {
|
|
|
10731
10844
|
}
|
|
10732
10845
|
});
|
|
10733
10846
|
|
|
10734
|
-
;//
|
|
10847
|
+
;// ./src/ChartInternal/interactions/subchart.ts
|
|
10735
10848
|
|
|
10736
10849
|
|
|
10737
10850
|
|
|
@@ -10998,7 +11111,7 @@ extend(zoom, {
|
|
|
10998
11111
|
}
|
|
10999
11112
|
});
|
|
11000
11113
|
|
|
11001
|
-
;//
|
|
11114
|
+
;// ./src/ChartInternal/interactions/zoom.ts
|
|
11002
11115
|
|
|
11003
11116
|
|
|
11004
11117
|
|
|
@@ -11013,7 +11126,7 @@ extend(zoom, {
|
|
|
11013
11126
|
const $$ = this;
|
|
11014
11127
|
$$.scale.zoom = null;
|
|
11015
11128
|
$$.generateZoom();
|
|
11016
|
-
$$.initZoomBehaviour();
|
|
11129
|
+
$$.config.zoom_type === "drag" && $$.initZoomBehaviour();
|
|
11017
11130
|
},
|
|
11018
11131
|
/**
|
|
11019
11132
|
* Bind zoom event
|
|
@@ -11054,6 +11167,9 @@ extend(zoom, {
|
|
|
11054
11167
|
const isRotated = config.axis_rotated;
|
|
11055
11168
|
(_a = org.xScale) == null ? void 0 : _a.range(scale.x.range());
|
|
11056
11169
|
const newScale = transform[isRotated ? "rescaleY" : "rescaleX"](org.xScale || scale.x);
|
|
11170
|
+
if (newScale.domain().some((v) => /(Invalid Date|NaN)/.test(v.toString()))) {
|
|
11171
|
+
return;
|
|
11172
|
+
}
|
|
11057
11173
|
const domain = $$.trimXDomain(newScale.domain());
|
|
11058
11174
|
const rescale = config.zoom_rescale;
|
|
11059
11175
|
newScale.domain(domain, org.xDomain);
|
|
@@ -11291,7 +11407,7 @@ extend(zoom, {
|
|
|
11291
11407
|
}
|
|
11292
11408
|
});
|
|
11293
11409
|
|
|
11294
|
-
;//
|
|
11410
|
+
;// ./src/ChartInternal/interactions/drag.ts
|
|
11295
11411
|
|
|
11296
11412
|
|
|
11297
11413
|
|
|
@@ -11377,7 +11493,7 @@ extend(zoom, {
|
|
|
11377
11493
|
}
|
|
11378
11494
|
});
|
|
11379
11495
|
|
|
11380
|
-
;//
|
|
11496
|
+
;// ./src/ChartInternal/internals/selection.ts
|
|
11381
11497
|
var selection_defProp = Object.defineProperty;
|
|
11382
11498
|
var __defProps = Object.defineProperties;
|
|
11383
11499
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -11536,7 +11652,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11536
11652
|
}
|
|
11537
11653
|
}));
|
|
11538
11654
|
|
|
11539
|
-
;//
|
|
11655
|
+
;// ./src/config/Options/data/selection.ts
|
|
11540
11656
|
/* harmony default export */ var data_selection = ({
|
|
11541
11657
|
/**
|
|
11542
11658
|
* Set data selection enabled<br><br>
|
|
@@ -11663,7 +11779,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11663
11779
|
}
|
|
11664
11780
|
});
|
|
11665
11781
|
|
|
11666
|
-
;//
|
|
11782
|
+
;// ./src/config/Options/interaction/subchart.ts
|
|
11667
11783
|
/* harmony default export */ var interaction_subchart = ({
|
|
11668
11784
|
/**
|
|
11669
11785
|
* Set subchart options.
|
|
@@ -11731,7 +11847,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11731
11847
|
}
|
|
11732
11848
|
});
|
|
11733
11849
|
|
|
11734
|
-
;//
|
|
11850
|
+
;// ./src/config/Options/interaction/zoom.ts
|
|
11735
11851
|
/* harmony default export */ var interaction_zoom = ({
|
|
11736
11852
|
/**
|
|
11737
11853
|
* Set zoom options
|
|
@@ -11812,7 +11928,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11812
11928
|
zoom_x_max: void 0
|
|
11813
11929
|
});
|
|
11814
11930
|
|
|
11815
|
-
;//
|
|
11931
|
+
;// ./src/config/resolver/interaction.ts
|
|
11816
11932
|
|
|
11817
11933
|
|
|
11818
11934
|
|
|
@@ -11846,7 +11962,7 @@ let zoomModule = () => {
|
|
|
11846
11962
|
return (zoomModule = () => true)();
|
|
11847
11963
|
};
|
|
11848
11964
|
|
|
11849
|
-
;//
|
|
11965
|
+
;// ./src/Chart/api/axis.ts
|
|
11850
11966
|
|
|
11851
11967
|
function setMinMax($$, type, value) {
|
|
11852
11968
|
const { config } = $$;
|
|
@@ -12053,7 +12169,7 @@ const axis = {
|
|
|
12053
12169
|
};
|
|
12054
12170
|
/* harmony default export */ var api_axis = ({ axis });
|
|
12055
12171
|
|
|
12056
|
-
;//
|
|
12172
|
+
;// ./src/Chart/api/category.ts
|
|
12057
12173
|
|
|
12058
12174
|
/* harmony default export */ var api_category = ({
|
|
12059
12175
|
/**
|
|
@@ -12101,7 +12217,7 @@ const axis = {
|
|
|
12101
12217
|
}
|
|
12102
12218
|
});
|
|
12103
12219
|
|
|
12104
|
-
;//
|
|
12220
|
+
;// ./src/Chart/api/flow.ts
|
|
12105
12221
|
|
|
12106
12222
|
/* harmony default export */ var flow = ({
|
|
12107
12223
|
/**
|
|
@@ -12274,7 +12390,7 @@ const axis = {
|
|
|
12274
12390
|
}
|
|
12275
12391
|
});
|
|
12276
12392
|
|
|
12277
|
-
;//
|
|
12393
|
+
;// ./src/Chart/api/grid.ts
|
|
12278
12394
|
|
|
12279
12395
|
function grid(grids, axisId) {
|
|
12280
12396
|
const $$ = this.internal;
|
|
@@ -12407,7 +12523,7 @@ extend(ygrids, {
|
|
|
12407
12523
|
});
|
|
12408
12524
|
/* harmony default export */ var api_grid = ({ xgrids, ygrids });
|
|
12409
12525
|
|
|
12410
|
-
;//
|
|
12526
|
+
;// ./src/Chart/api/group.ts
|
|
12411
12527
|
|
|
12412
12528
|
/* harmony default export */ var group = ({
|
|
12413
12529
|
/**
|
|
@@ -12435,7 +12551,7 @@ extend(ygrids, {
|
|
|
12435
12551
|
}
|
|
12436
12552
|
});
|
|
12437
12553
|
|
|
12438
|
-
;//
|
|
12554
|
+
;// ./src/Chart/api/regions.ts
|
|
12439
12555
|
|
|
12440
12556
|
|
|
12441
12557
|
function regionsFn(regions2, isAdd = false) {
|
|
@@ -12541,7 +12657,7 @@ extend(regions, {
|
|
|
12541
12657
|
});
|
|
12542
12658
|
/* harmony default export */ var api_regions = ({ regions });
|
|
12543
12659
|
|
|
12544
|
-
;//
|
|
12660
|
+
;// ./src/Chart/api/x.ts
|
|
12545
12661
|
|
|
12546
12662
|
/* harmony default export */ var x = ({
|
|
12547
12663
|
/**
|
|
@@ -12607,7 +12723,7 @@ extend(regions, {
|
|
|
12607
12723
|
|
|
12608
12724
|
// EXTERNAL MODULE: external {"commonjs":"d3-axis","commonjs2":"d3-axis","amd":"d3-axis","root":"d3"}
|
|
12609
12725
|
var external_commonjs_d3_axis_commonjs2_d3_axis_amd_d3_axis_root_d3_ = __webpack_require__(11);
|
|
12610
|
-
;//
|
|
12726
|
+
;// ./src/ChartInternal/Axis/AxisRendererHelper.ts
|
|
12611
12727
|
var AxisRendererHelper_defProp = Object.defineProperty;
|
|
12612
12728
|
var AxisRendererHelper_defNormalProp = (obj, key, value) => key in obj ? AxisRendererHelper_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
12613
12729
|
var AxisRendererHelper_publicField = (obj, key, value) => AxisRendererHelper_defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -12630,16 +12746,17 @@ class AxisRendererHelper {
|
|
|
12630
12746
|
}
|
|
12631
12747
|
/**
|
|
12632
12748
|
* Compute a character dimension
|
|
12633
|
-
* @param {d3.selection}
|
|
12749
|
+
* @param {d3.selection} text SVG text selection
|
|
12750
|
+
* @param {boolean} memoize memoize the calculated size
|
|
12634
12751
|
* @returns {{w: number, h: number}}
|
|
12635
12752
|
* @private
|
|
12636
12753
|
*/
|
|
12637
|
-
static getSizeFor1Char(
|
|
12754
|
+
static getSizeFor1Char(text, memoize = true) {
|
|
12638
12755
|
const size = {
|
|
12639
12756
|
w: 5.5,
|
|
12640
12757
|
h: 11.5
|
|
12641
12758
|
};
|
|
12642
|
-
!
|
|
12759
|
+
!text.empty() && text.text("0").call((el) => {
|
|
12643
12760
|
try {
|
|
12644
12761
|
const { width, height } = el.node().getBBox();
|
|
12645
12762
|
if (width && height) {
|
|
@@ -12650,7 +12767,9 @@ class AxisRendererHelper {
|
|
|
12650
12767
|
el.text("");
|
|
12651
12768
|
}
|
|
12652
12769
|
});
|
|
12653
|
-
|
|
12770
|
+
if (memoize) {
|
|
12771
|
+
this.getSizeFor1Char = () => size;
|
|
12772
|
+
}
|
|
12654
12773
|
return size;
|
|
12655
12774
|
}
|
|
12656
12775
|
/**
|
|
@@ -12663,7 +12782,10 @@ class AxisRendererHelper {
|
|
|
12663
12782
|
const { config } = this;
|
|
12664
12783
|
const fn = id === "x" ? (value) => `translate(${value + config.tickOffset},0)` : (value) => `translate(0,${value})`;
|
|
12665
12784
|
return (selection, scale) => {
|
|
12666
|
-
selection.attr("transform", (d) =>
|
|
12785
|
+
selection.attr("transform", (d) => {
|
|
12786
|
+
const x = scale(d);
|
|
12787
|
+
return isValue(d) ? fn(Math.ceil(x)) : null;
|
|
12788
|
+
});
|
|
12667
12789
|
};
|
|
12668
12790
|
}
|
|
12669
12791
|
scaleExtent(domain) {
|
|
@@ -12730,7 +12852,7 @@ class AxisRendererHelper {
|
|
|
12730
12852
|
}
|
|
12731
12853
|
}
|
|
12732
12854
|
|
|
12733
|
-
;//
|
|
12855
|
+
;// ./src/ChartInternal/Axis/AxisRenderer.ts
|
|
12734
12856
|
var AxisRenderer_defProp = Object.defineProperty;
|
|
12735
12857
|
var AxisRenderer_defNormalProp = (obj, key, value) => key in obj ? AxisRenderer_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
12736
12858
|
var AxisRenderer_publicField = (obj, key, value) => AxisRenderer_defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -12792,6 +12914,7 @@ class AxisRenderer {
|
|
|
12792
12914
|
tick: axisShow ? params.config[`${prefix}_tick_show`] : false,
|
|
12793
12915
|
text: axisShow ? params.config[`${prefix}_tick_text_show`] : false
|
|
12794
12916
|
};
|
|
12917
|
+
const evalTextSize = params.config.axis_evalTextSize;
|
|
12795
12918
|
let $g;
|
|
12796
12919
|
g.each(function() {
|
|
12797
12920
|
const g2 = (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this);
|
|
@@ -12814,9 +12937,10 @@ class AxisRenderer {
|
|
|
12814
12937
|
tick = tickEnter.merge(tick);
|
|
12815
12938
|
tickShow.tick && tickEnter.append("line");
|
|
12816
12939
|
tickShow.text && tickEnter.append("text");
|
|
12817
|
-
const
|
|
12940
|
+
const tickText = tick.select("text");
|
|
12941
|
+
const sizeFor1Char = isFunction(evalTextSize) ? evalTextSize.bind(ctx.params.owner.api)(tickText.node()) : AxisRendererHelper.getSizeFor1Char(tickText, evalTextSize);
|
|
12818
12942
|
const counts = [];
|
|
12819
|
-
let tspan =
|
|
12943
|
+
let tspan = tickText.selectAll("tspan").data((d, index) => {
|
|
12820
12944
|
const split = params.tickMultiline ? splitTickText(d, scale1, ticks, isLeftRight, sizeFor1Char.w) : isArray(helper.textFormatted(d)) ? helper.textFormatted(d).concat() : [helper.textFormatted(d)];
|
|
12821
12945
|
counts[index] = split.length;
|
|
12822
12946
|
return split.map((splitted) => ({ index, splitted }));
|
|
@@ -13100,7 +13224,7 @@ class AxisRenderer {
|
|
|
13100
13224
|
}
|
|
13101
13225
|
}
|
|
13102
13226
|
|
|
13103
|
-
;//
|
|
13227
|
+
;// ./src/ChartInternal/Axis/Axis.ts
|
|
13104
13228
|
var Axis_defProp = Object.defineProperty;
|
|
13105
13229
|
var Axis_defNormalProp = (obj, key, value) => key in obj ? Axis_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13106
13230
|
var Axis_publicField = (obj, key, value) => Axis_defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -13882,7 +14006,7 @@ class Axis_Axis {
|
|
|
13882
14006
|
}
|
|
13883
14007
|
}
|
|
13884
14008
|
|
|
13885
|
-
;//
|
|
14009
|
+
;// ./src/ChartInternal/interactions/eventrect.ts
|
|
13886
14010
|
|
|
13887
14011
|
|
|
13888
14012
|
/* harmony default export */ var eventrect = ({
|
|
@@ -14148,7 +14272,7 @@ class Axis_Axis {
|
|
|
14148
14272
|
const shapeAtIndex = main.selectAll(`.${$SHAPE.shape}-${index}`).classed($COMMON.EXPANDED, true).style("cursor", isSelectable ? "pointer" : null).filter(function(d) {
|
|
14149
14273
|
return $$.isWithinShape(this, d);
|
|
14150
14274
|
});
|
|
14151
|
-
if (shapeAtIndex.empty() && !isTooltipGrouped) {
|
|
14275
|
+
if (shapeAtIndex.empty() && !isTooltipGrouped && config.interaction_onout) {
|
|
14152
14276
|
(_b = $$.hideGridFocus) == null ? void 0 : _b.call($$);
|
|
14153
14277
|
$$.hideTooltip();
|
|
14154
14278
|
!isSelectionGrouped && $$.setExpand(index);
|
|
@@ -14281,7 +14405,7 @@ class Axis_Axis {
|
|
|
14281
14405
|
$$.setOverOut(index !== -1, index);
|
|
14282
14406
|
}).on("mouseout", (event) => {
|
|
14283
14407
|
state.event = event;
|
|
14284
|
-
if (!config || $$.hasArcType() || eventReceiver.currentIdx === -1) {
|
|
14408
|
+
if (!config || $$.hasArcType() || eventReceiver.currentIdx === -1 || !config.interaction_onout) {
|
|
14285
14409
|
return;
|
|
14286
14410
|
}
|
|
14287
14411
|
$$.hideAxisGridFocus();
|
|
@@ -14316,7 +14440,7 @@ class Axis_Axis {
|
|
|
14316
14440
|
*/
|
|
14317
14441
|
generateEventRectsForMultipleXs(eventRectEnter) {
|
|
14318
14442
|
const $$ = this;
|
|
14319
|
-
const { state } = $$;
|
|
14443
|
+
const { config, state } = $$;
|
|
14320
14444
|
eventRectEnter.on("click", function(event) {
|
|
14321
14445
|
state.event = event;
|
|
14322
14446
|
$$.clickHandlerForMultipleXS.bind(this)($$);
|
|
@@ -14327,7 +14451,7 @@ class Axis_Axis {
|
|
|
14327
14451
|
$$.selectRectForMultipleXs(this);
|
|
14328
14452
|
}).on("mouseout", (event) => {
|
|
14329
14453
|
state.event = event;
|
|
14330
|
-
if (!$$.config || $$.hasArcType()) {
|
|
14454
|
+
if (!$$.config || $$.hasArcType() || !config.interaction_onout) {
|
|
14331
14455
|
return;
|
|
14332
14456
|
}
|
|
14333
14457
|
$$.unselectRect();
|
|
@@ -14337,13 +14461,14 @@ class Axis_Axis {
|
|
|
14337
14461
|
clickHandlerForMultipleXS(ctx) {
|
|
14338
14462
|
const $$ = ctx;
|
|
14339
14463
|
const { config, state } = $$;
|
|
14464
|
+
const pointSensitivity = config.point_sensitivity;
|
|
14340
14465
|
const targetsToShow = $$.filterTargetsToShow($$.data.targets);
|
|
14341
14466
|
if ($$.hasArcType(targetsToShow)) {
|
|
14342
14467
|
return;
|
|
14343
14468
|
}
|
|
14344
14469
|
const mouse = getPointer(state.event, this);
|
|
14345
14470
|
const closest = $$.findClosestFromTargets(targetsToShow, mouse);
|
|
14346
|
-
const sensitivity =
|
|
14471
|
+
const sensitivity = pointSensitivity === "radius" ? closest == null ? void 0 : closest.r : isFunction(pointSensitivity) ? closest && pointSensitivity(closest) : pointSensitivity;
|
|
14347
14472
|
if (!closest) {
|
|
14348
14473
|
return;
|
|
14349
14474
|
}
|
|
@@ -14361,7 +14486,7 @@ class Axis_Axis {
|
|
|
14361
14486
|
|
|
14362
14487
|
// EXTERNAL MODULE: external {"commonjs":"d3-ease","commonjs2":"d3-ease","amd":"d3-ease","root":"d3"}
|
|
14363
14488
|
var external_commonjs_d3_ease_commonjs2_d3_ease_amd_d3_ease_root_d3_ = __webpack_require__(12);
|
|
14364
|
-
;//
|
|
14489
|
+
;// ./src/ChartInternal/interactions/flow.ts
|
|
14365
14490
|
|
|
14366
14491
|
|
|
14367
14492
|
|
|
@@ -14542,7 +14667,7 @@ var external_commonjs_d3_ease_commonjs2_d3_ease_amd_d3_ease_root_d3_ = __webpack
|
|
|
14542
14667
|
}
|
|
14543
14668
|
});
|
|
14544
14669
|
|
|
14545
|
-
;//
|
|
14670
|
+
;// ./src/ChartInternal/internals/clip.ts
|
|
14546
14671
|
/* harmony default export */ var clip = ({
|
|
14547
14672
|
initClip() {
|
|
14548
14673
|
const $$ = this;
|
|
@@ -14636,7 +14761,7 @@ var external_commonjs_d3_ease_commonjs2_d3_ease_amd_d3_ease_root_d3_ = __webpack
|
|
|
14636
14761
|
}
|
|
14637
14762
|
});
|
|
14638
14763
|
|
|
14639
|
-
;//
|
|
14764
|
+
;// ./src/ChartInternal/internals/grid.ts
|
|
14640
14765
|
|
|
14641
14766
|
|
|
14642
14767
|
|
|
@@ -14981,7 +15106,7 @@ function smoothLines(el, type) {
|
|
|
14981
15106
|
}
|
|
14982
15107
|
});
|
|
14983
15108
|
|
|
14984
|
-
;//
|
|
15109
|
+
;// ./src/ChartInternal/internals/region.ts
|
|
14985
15110
|
|
|
14986
15111
|
|
|
14987
15112
|
|
|
@@ -15100,7 +15225,7 @@ function smoothLines(el, type) {
|
|
|
15100
15225
|
}
|
|
15101
15226
|
});
|
|
15102
15227
|
|
|
15103
|
-
;//
|
|
15228
|
+
;// ./src/ChartInternal/internals/size.axis.ts
|
|
15104
15229
|
|
|
15105
15230
|
/* harmony default export */ var size_axis = ({
|
|
15106
15231
|
/**
|
|
@@ -15216,7 +15341,7 @@ function smoothLines(el, type) {
|
|
|
15216
15341
|
}
|
|
15217
15342
|
});
|
|
15218
15343
|
|
|
15219
|
-
;//
|
|
15344
|
+
;// ./src/config/Options/axis/x.ts
|
|
15220
15345
|
/* harmony default export */ var axis_x = ({
|
|
15221
15346
|
/**
|
|
15222
15347
|
* Set clip-path attribute for x axis element
|
|
@@ -15928,7 +16053,7 @@ function smoothLines(el, type) {
|
|
|
15928
16053
|
axis_x_axes: []
|
|
15929
16054
|
});
|
|
15930
16055
|
|
|
15931
|
-
;//
|
|
16056
|
+
;// ./src/config/Options/axis/y.ts
|
|
15932
16057
|
/* harmony default export */ var y = ({
|
|
15933
16058
|
/**
|
|
15934
16059
|
* Set clip-path attribute for y axis element
|
|
@@ -16410,8 +16535,20 @@ function smoothLines(el, type) {
|
|
|
16410
16535
|
axis_y_axes: []
|
|
16411
16536
|
});
|
|
16412
16537
|
|
|
16413
|
-
;//
|
|
16538
|
+
;// ./src/config/Options/axis/y2.ts
|
|
16414
16539
|
/* harmony default export */ var y2 = ({
|
|
16540
|
+
/**
|
|
16541
|
+
* Set clip-path attribute for y2 axis element
|
|
16542
|
+
* - **NOTE**: `clip-path` attribute for y2 Axis is set only when `axis.y2.inner` option is true.
|
|
16543
|
+
* @name axis․y2․clipPath
|
|
16544
|
+
* @memberof Options
|
|
16545
|
+
* @type {boolean}
|
|
16546
|
+
* @default true
|
|
16547
|
+
* @example
|
|
16548
|
+
* // don't set 'clip-path' attribute
|
|
16549
|
+
* clipPath: false
|
|
16550
|
+
*/
|
|
16551
|
+
axis_y2_clipPath: true,
|
|
16415
16552
|
/**
|
|
16416
16553
|
* Show or hide y2 axis.
|
|
16417
16554
|
* - **NOTE**:
|
|
@@ -16854,7 +16991,7 @@ function smoothLines(el, type) {
|
|
|
16854
16991
|
axis_y2_axes: []
|
|
16855
16992
|
});
|
|
16856
16993
|
|
|
16857
|
-
;//
|
|
16994
|
+
;// ./src/config/Options/axis/axis.ts
|
|
16858
16995
|
var axis_defProp = Object.defineProperty;
|
|
16859
16996
|
var axis_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
16860
16997
|
var axis_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
@@ -16875,6 +17012,35 @@ var axis_spreadValues = (a, b) => {
|
|
|
16875
17012
|
|
|
16876
17013
|
|
|
16877
17014
|
/* harmony default export */ var axis_axis = (axis_spreadValues(axis_spreadValues(axis_spreadValues({
|
|
17015
|
+
/**
|
|
17016
|
+
* Setup the way to evaluate tick text size.
|
|
17017
|
+
* - **NOTE:**
|
|
17018
|
+
* - Setting `false` or custom evaluator, highly recommended to memoize evaluated text dimension value to not degrade performance.
|
|
17019
|
+
* @name axis․evalTextSize
|
|
17020
|
+
* @memberof Options
|
|
17021
|
+
* @type {boolean|Function}
|
|
17022
|
+
* @default true
|
|
17023
|
+
* @example
|
|
17024
|
+
* axis: {
|
|
17025
|
+
* // will evaluate getting text size every time.
|
|
17026
|
+
* evalTextSize: false.
|
|
17027
|
+
*
|
|
17028
|
+
* // set a custom evaluator
|
|
17029
|
+
* evalTextSize: function(textElement) {
|
|
17030
|
+
* // set some character to be evaluated
|
|
17031
|
+
* text.textContent = "0";
|
|
17032
|
+
*
|
|
17033
|
+
* // get the size
|
|
17034
|
+
* const box = text.getBBox();
|
|
17035
|
+
*
|
|
17036
|
+
* // clear text
|
|
17037
|
+
* text.textContent = "";
|
|
17038
|
+
*
|
|
17039
|
+
* return { w: 7, h: 12};
|
|
17040
|
+
* }
|
|
17041
|
+
* }
|
|
17042
|
+
*/
|
|
17043
|
+
axis_evalTextSize: true,
|
|
16878
17044
|
/**
|
|
16879
17045
|
* Switch x and y axis position.
|
|
16880
17046
|
* @name axis․rotated
|
|
@@ -16922,7 +17088,7 @@ var axis_spreadValues = (a, b) => {
|
|
|
16922
17088
|
axis_tooltip: false
|
|
16923
17089
|
}, axis_x), y), y2));
|
|
16924
17090
|
|
|
16925
|
-
;//
|
|
17091
|
+
;// ./src/config/Options/common/grid.ts
|
|
16926
17092
|
/* harmony default export */ var common_grid = ({
|
|
16927
17093
|
/**
|
|
16928
17094
|
* Set related options
|
|
@@ -16995,7 +17161,7 @@ var axis_spreadValues = (a, b) => {
|
|
|
16995
17161
|
grid_lines_front: true
|
|
16996
17162
|
});
|
|
16997
17163
|
|
|
16998
|
-
;//
|
|
17164
|
+
;// ./src/config/Options/data/axis.ts
|
|
16999
17165
|
/* harmony default export */ var data_axis = ({
|
|
17000
17166
|
/**
|
|
17001
17167
|
* Specify the keys of the x values for each data.<br><br>
|
|
@@ -17140,7 +17306,7 @@ var axis_spreadValues = (a, b) => {
|
|
|
17140
17306
|
data_stack_normalize: false
|
|
17141
17307
|
});
|
|
17142
17308
|
|
|
17143
|
-
;//
|
|
17309
|
+
;// ./src/config/resolver/axis.ts
|
|
17144
17310
|
|
|
17145
17311
|
|
|
17146
17312
|
|
|
@@ -17184,7 +17350,7 @@ const options = {
|
|
|
17184
17350
|
|
|
17185
17351
|
// EXTERNAL MODULE: external {"commonjs":"d3-interpolate","commonjs2":"d3-interpolate","amd":"d3-interpolate","root":"d3"}
|
|
17186
17352
|
var external_commonjs_d3_interpolate_commonjs2_d3_interpolate_amd_d3_interpolate_root_d3_ = __webpack_require__(13);
|
|
17187
|
-
;//
|
|
17353
|
+
;// ./src/ChartInternal/shape/arc.ts
|
|
17188
17354
|
var arc_defProp = Object.defineProperty;
|
|
17189
17355
|
var arc_defProps = Object.defineProperties;
|
|
17190
17356
|
var arc_getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -17953,7 +18119,7 @@ function getAttrTweenFn(fn) {
|
|
|
17953
18119
|
selectArc(this, arcData, id);
|
|
17954
18120
|
$$.setOverOut(true, arcData);
|
|
17955
18121
|
}).on("mouseout", (event, d) => {
|
|
17956
|
-
if (state.transiting) {
|
|
18122
|
+
if (state.transiting || !config.interaction_onout) {
|
|
17957
18123
|
return;
|
|
17958
18124
|
}
|
|
17959
18125
|
state.event = event;
|
|
@@ -18028,7 +18194,7 @@ function getAttrTweenFn(fn) {
|
|
|
18028
18194
|
}
|
|
18029
18195
|
});
|
|
18030
18196
|
|
|
18031
|
-
;//
|
|
18197
|
+
;// ./src/ChartInternal/shape/area.ts
|
|
18032
18198
|
|
|
18033
18199
|
|
|
18034
18200
|
|
|
@@ -18161,7 +18327,7 @@ function getAttrTweenFn(fn) {
|
|
|
18161
18327
|
}
|
|
18162
18328
|
});
|
|
18163
18329
|
|
|
18164
|
-
;//
|
|
18330
|
+
;// ./src/ChartInternal/shape/bar.ts
|
|
18165
18331
|
|
|
18166
18332
|
|
|
18167
18333
|
/* harmony default export */ var bar = ({
|
|
@@ -18359,7 +18525,7 @@ function getAttrTweenFn(fn) {
|
|
|
18359
18525
|
}
|
|
18360
18526
|
});
|
|
18361
18527
|
|
|
18362
|
-
;//
|
|
18528
|
+
;// ./src/ChartInternal/shape/bubble.ts
|
|
18363
18529
|
|
|
18364
18530
|
|
|
18365
18531
|
/* harmony default export */ var bubble = ({
|
|
@@ -18421,7 +18587,7 @@ function getAttrTweenFn(fn) {
|
|
|
18421
18587
|
}
|
|
18422
18588
|
});
|
|
18423
18589
|
|
|
18424
|
-
;//
|
|
18590
|
+
;// ./src/ChartInternal/shape/candlestick.ts
|
|
18425
18591
|
var candlestick_defProp = Object.defineProperty;
|
|
18426
18592
|
var candlestick_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
18427
18593
|
var candlestick_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
@@ -18617,7 +18783,7 @@ var candlestick_spreadValues = (a, b) => {
|
|
|
18617
18783
|
}
|
|
18618
18784
|
});
|
|
18619
18785
|
|
|
18620
|
-
;//
|
|
18786
|
+
;// ./src/ChartInternal/shape/funnel.ts
|
|
18621
18787
|
var funnel_defProp = Object.defineProperty;
|
|
18622
18788
|
var funnel_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
18623
18789
|
var funnel_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
@@ -18789,8 +18955,10 @@ function updateRatio(data) {
|
|
|
18789
18955
|
}
|
|
18790
18956
|
}).on(isTouch ? "touchend" : "mouseout", (event) => {
|
|
18791
18957
|
const data = getTarget(event);
|
|
18792
|
-
|
|
18793
|
-
|
|
18958
|
+
if (config.interaction_onout) {
|
|
18959
|
+
$$.hideTooltip();
|
|
18960
|
+
$$.setOverOut(false, data);
|
|
18961
|
+
}
|
|
18794
18962
|
});
|
|
18795
18963
|
}
|
|
18796
18964
|
},
|
|
@@ -18863,7 +19031,7 @@ function updateRatio(data) {
|
|
|
18863
19031
|
}
|
|
18864
19032
|
});
|
|
18865
19033
|
|
|
18866
|
-
;//
|
|
19034
|
+
;// ./src/ChartInternal/shape/gauge.ts
|
|
18867
19035
|
|
|
18868
19036
|
|
|
18869
19037
|
|
|
@@ -18941,7 +19109,7 @@ function updateRatio(data) {
|
|
|
18941
19109
|
}
|
|
18942
19110
|
});
|
|
18943
19111
|
|
|
18944
|
-
;//
|
|
19112
|
+
;// ./src/ChartInternal/shape/line.ts
|
|
18945
19113
|
|
|
18946
19114
|
|
|
18947
19115
|
|
|
@@ -19244,7 +19412,7 @@ function getRegions(d, _regions, isTimeSeries) {
|
|
|
19244
19412
|
}
|
|
19245
19413
|
});
|
|
19246
19414
|
|
|
19247
|
-
;//
|
|
19415
|
+
;// ./src/ChartInternal/shape/point.ts
|
|
19248
19416
|
|
|
19249
19417
|
|
|
19250
19418
|
|
|
@@ -19632,7 +19800,7 @@ const getTransitionName = () => getRandom();
|
|
|
19632
19800
|
}
|
|
19633
19801
|
});
|
|
19634
19802
|
|
|
19635
|
-
;//
|
|
19803
|
+
;// ./src/ChartInternal/shape/point.common.ts
|
|
19636
19804
|
|
|
19637
19805
|
|
|
19638
19806
|
|
|
@@ -19729,7 +19897,7 @@ function insertPointInfoDefs(point, id) {
|
|
|
19729
19897
|
}
|
|
19730
19898
|
});
|
|
19731
19899
|
|
|
19732
|
-
;//
|
|
19900
|
+
;// ./src/ChartInternal/shape/polar.ts
|
|
19733
19901
|
|
|
19734
19902
|
|
|
19735
19903
|
function getDataMax($$) {
|
|
@@ -19812,7 +19980,7 @@ function getDataMax($$) {
|
|
|
19812
19980
|
}
|
|
19813
19981
|
});
|
|
19814
19982
|
|
|
19815
|
-
;//
|
|
19983
|
+
;// ./src/ChartInternal/shape/radar.ts
|
|
19816
19984
|
|
|
19817
19985
|
|
|
19818
19986
|
|
|
@@ -20014,12 +20182,15 @@ const cacheKeyTextWidth = KEY.radarTextWidth;
|
|
|
20014
20182
|
},
|
|
20015
20183
|
bindRadarEvent() {
|
|
20016
20184
|
const $$ = this;
|
|
20017
|
-
const { state, $el: { radar, svg } } = $$;
|
|
20185
|
+
const { config, state, $el: { radar, svg } } = $$;
|
|
20018
20186
|
const focusOnly = $$.isPointFocusOnly();
|
|
20019
20187
|
const { inputType, transiting } = state;
|
|
20020
20188
|
const isMouse = inputType === "mouse";
|
|
20021
20189
|
const hide = (event) => {
|
|
20022
20190
|
state.event = event;
|
|
20191
|
+
if (!config.interaction_onout) {
|
|
20192
|
+
return;
|
|
20193
|
+
}
|
|
20023
20194
|
const index = $$.getDataIndexFromEvent(event);
|
|
20024
20195
|
const noIndex = isUndefined(index);
|
|
20025
20196
|
if (isMouse || noIndex) {
|
|
@@ -20077,7 +20248,7 @@ const cacheKeyTextWidth = KEY.radarTextWidth;
|
|
|
20077
20248
|
|
|
20078
20249
|
// EXTERNAL MODULE: external {"commonjs":"d3-hierarchy","commonjs2":"d3-hierarchy","amd":"d3-hierarchy","root":"d3"}
|
|
20079
20250
|
var external_commonjs_d3_hierarchy_commonjs2_d3_hierarchy_amd_d3_hierarchy_root_d3_ = __webpack_require__(14);
|
|
20080
|
-
;//
|
|
20251
|
+
;// ./src/ChartInternal/shape/treemap.ts
|
|
20081
20252
|
|
|
20082
20253
|
|
|
20083
20254
|
|
|
@@ -20155,8 +20326,10 @@ function getHierachyData(data) {
|
|
|
20155
20326
|
}
|
|
20156
20327
|
}).on(isTouch ? "touchend" : "mouseout", (event) => {
|
|
20157
20328
|
const data = getTarget(event);
|
|
20158
|
-
|
|
20159
|
-
|
|
20329
|
+
if (config.interaction_onout) {
|
|
20330
|
+
$$.hideTooltip();
|
|
20331
|
+
$$.setOverOut(false, data);
|
|
20332
|
+
}
|
|
20160
20333
|
});
|
|
20161
20334
|
}
|
|
20162
20335
|
},
|
|
@@ -20285,7 +20458,7 @@ ${percentValue}%`;
|
|
|
20285
20458
|
}
|
|
20286
20459
|
});
|
|
20287
20460
|
|
|
20288
|
-
;//
|
|
20461
|
+
;// ./src/config/Options/common/point.ts
|
|
20289
20462
|
/* harmony default export */ var common_point = ({
|
|
20290
20463
|
/**
|
|
20291
20464
|
* Set point options
|
|
@@ -20441,7 +20614,7 @@ ${percentValue}%`;
|
|
|
20441
20614
|
point_type: "circle"
|
|
20442
20615
|
});
|
|
20443
20616
|
|
|
20444
|
-
;//
|
|
20617
|
+
;// ./src/config/Options/shape/area.ts
|
|
20445
20618
|
/* harmony default export */ var Options_shape_area = ({
|
|
20446
20619
|
/**
|
|
20447
20620
|
* Set area options
|
|
@@ -20507,7 +20680,7 @@ ${percentValue}%`;
|
|
|
20507
20680
|
area_zerobased: true
|
|
20508
20681
|
});
|
|
20509
20682
|
|
|
20510
|
-
;//
|
|
20683
|
+
;// ./src/config/Options/shape/bar.ts
|
|
20511
20684
|
/* harmony default export */ var shape_bar = ({
|
|
20512
20685
|
/**
|
|
20513
20686
|
* Set bar options
|
|
@@ -20650,7 +20823,7 @@ ${percentValue}%`;
|
|
|
20650
20823
|
bar_zerobased: true
|
|
20651
20824
|
});
|
|
20652
20825
|
|
|
20653
|
-
;//
|
|
20826
|
+
;// ./src/config/Options/shape/bubble.ts
|
|
20654
20827
|
/* harmony default export */ var shape_bubble = ({
|
|
20655
20828
|
/**
|
|
20656
20829
|
* Set bubble options
|
|
@@ -20679,7 +20852,7 @@ ${percentValue}%`;
|
|
|
20679
20852
|
bubble_zerobased: false
|
|
20680
20853
|
});
|
|
20681
20854
|
|
|
20682
|
-
;//
|
|
20855
|
+
;// ./src/config/Options/shape/candlestick.ts
|
|
20683
20856
|
/* harmony default export */ var shape_candlestick = ({
|
|
20684
20857
|
/**
|
|
20685
20858
|
* Set candlestick options
|
|
@@ -20734,7 +20907,7 @@ ${percentValue}%`;
|
|
|
20734
20907
|
candlestick_color_down: "red"
|
|
20735
20908
|
});
|
|
20736
20909
|
|
|
20737
|
-
;//
|
|
20910
|
+
;// ./src/config/Options/shape/line.ts
|
|
20738
20911
|
/* harmony default export */ var shape_line = ({
|
|
20739
20912
|
/**
|
|
20740
20913
|
* Set line options
|
|
@@ -20786,7 +20959,7 @@ ${percentValue}%`;
|
|
|
20786
20959
|
line_point: true
|
|
20787
20960
|
});
|
|
20788
20961
|
|
|
20789
|
-
;//
|
|
20962
|
+
;// ./src/config/Options/shape/scatter.ts
|
|
20790
20963
|
/* harmony default export */ var scatter = ({
|
|
20791
20964
|
/**
|
|
20792
20965
|
* Set scatter options
|
|
@@ -20816,7 +20989,7 @@ ${percentValue}%`;
|
|
|
20816
20989
|
scatter_zerobased: false
|
|
20817
20990
|
});
|
|
20818
20991
|
|
|
20819
|
-
;//
|
|
20992
|
+
;// ./src/config/Options/shape/spline.ts
|
|
20820
20993
|
/* harmony default export */ var spline = ({
|
|
20821
20994
|
/**
|
|
20822
20995
|
* Set spline options
|
|
@@ -20856,7 +21029,7 @@ ${percentValue}%`;
|
|
|
20856
21029
|
spline_interpolation_type: "cardinal"
|
|
20857
21030
|
});
|
|
20858
21031
|
|
|
20859
|
-
;//
|
|
21032
|
+
;// ./src/config/Options/shape/arc.ts
|
|
20860
21033
|
/* harmony default export */ var shape_arc = ({
|
|
20861
21034
|
/**
|
|
20862
21035
|
* Set arc options
|
|
@@ -21000,7 +21173,7 @@ ${percentValue}%`;
|
|
|
21000
21173
|
arc_rangeText_position: void 0
|
|
21001
21174
|
});
|
|
21002
21175
|
|
|
21003
|
-
;//
|
|
21176
|
+
;// ./src/config/Options/shape/donut.ts
|
|
21004
21177
|
/* harmony default export */ var donut = ({
|
|
21005
21178
|
/**
|
|
21006
21179
|
* Set donut options
|
|
@@ -21081,7 +21254,7 @@ ${percentValue}%`;
|
|
|
21081
21254
|
donut_startingAngle: 0
|
|
21082
21255
|
});
|
|
21083
21256
|
|
|
21084
|
-
;//
|
|
21257
|
+
;// ./src/config/Options/shape/funnel.ts
|
|
21085
21258
|
/* harmony default export */ var shape_funnel = ({
|
|
21086
21259
|
/**
|
|
21087
21260
|
* Set funnel options
|
|
@@ -21114,7 +21287,7 @@ ${percentValue}%`;
|
|
|
21114
21287
|
funnel_neck_height: 0
|
|
21115
21288
|
});
|
|
21116
21289
|
|
|
21117
|
-
;//
|
|
21290
|
+
;// ./src/config/Options/shape/gauge.ts
|
|
21118
21291
|
/* harmony default export */ var shape_gauge = ({
|
|
21119
21292
|
/**
|
|
21120
21293
|
* Set gauge options
|
|
@@ -21258,7 +21431,7 @@ ${percentValue}%`;
|
|
|
21258
21431
|
gauge_expand_duration: 50
|
|
21259
21432
|
});
|
|
21260
21433
|
|
|
21261
|
-
;//
|
|
21434
|
+
;// ./src/config/Options/shape/pie.ts
|
|
21262
21435
|
/* harmony default export */ var pie = ({
|
|
21263
21436
|
/**
|
|
21264
21437
|
* Set pie options
|
|
@@ -21352,7 +21525,7 @@ ${percentValue}%`;
|
|
|
21352
21525
|
pie_startingAngle: 0
|
|
21353
21526
|
});
|
|
21354
21527
|
|
|
21355
|
-
;//
|
|
21528
|
+
;// ./src/config/Options/shape/polar.ts
|
|
21356
21529
|
/* harmony default export */ var shape_polar = ({
|
|
21357
21530
|
/**
|
|
21358
21531
|
* Set polar options
|
|
@@ -21428,7 +21601,7 @@ ${percentValue}%`;
|
|
|
21428
21601
|
polar_startingAngle: 0
|
|
21429
21602
|
});
|
|
21430
21603
|
|
|
21431
|
-
;//
|
|
21604
|
+
;// ./src/config/Options/shape/radar.ts
|
|
21432
21605
|
/* harmony default export */ var shape_radar = ({
|
|
21433
21606
|
/**
|
|
21434
21607
|
* Set radar options
|
|
@@ -21498,7 +21671,7 @@ ${percentValue}%`;
|
|
|
21498
21671
|
radar_direction_clockwise: false
|
|
21499
21672
|
});
|
|
21500
21673
|
|
|
21501
|
-
;//
|
|
21674
|
+
;// ./src/config/Options/shape/treemap.ts
|
|
21502
21675
|
/* harmony default export */ var shape_treemap = ({
|
|
21503
21676
|
/**
|
|
21504
21677
|
* Set treemap options
|
|
@@ -21546,7 +21719,7 @@ ${percentValue}%`;
|
|
|
21546
21719
|
treemap_label_show: true
|
|
21547
21720
|
});
|
|
21548
21721
|
|
|
21549
|
-
;//
|
|
21722
|
+
;// ./src/config/resolver/shape.ts
|
|
21550
21723
|
|
|
21551
21724
|
|
|
21552
21725
|
|
|
@@ -21629,7 +21802,7 @@ let shape_scatter = () => (extendAxis(
|
|
|
21629
21802
|
let resolver_shape_funnel = () => (extendArc([funnel], [shape_funnel]), (resolver_shape_funnel = () => TYPE.FUNNEL)());
|
|
21630
21803
|
let resolver_shape_treemap = () => (extendAxis([treemap], [shape_treemap]), (resolver_shape_treemap = () => TYPE.TREEMAP)());
|
|
21631
21804
|
|
|
21632
|
-
;//
|
|
21805
|
+
;// ./src/core.ts
|
|
21633
21806
|
|
|
21634
21807
|
|
|
21635
21808
|
let defaults = {};
|
|
@@ -21641,7 +21814,7 @@ const bb = {
|
|
|
21641
21814
|
* bb.version; // "1.0.0"
|
|
21642
21815
|
* @memberof bb
|
|
21643
21816
|
*/
|
|
21644
|
-
version: "3.
|
|
21817
|
+
version: "3.14.0-next.2",
|
|
21645
21818
|
/**
|
|
21646
21819
|
* Generate chart
|
|
21647
21820
|
* - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
|
|
@@ -21771,7 +21944,7 @@ const bb = {
|
|
|
21771
21944
|
};
|
|
21772
21945
|
|
|
21773
21946
|
|
|
21774
|
-
;//
|
|
21947
|
+
;// ./src/index.ts
|
|
21775
21948
|
|
|
21776
21949
|
|
|
21777
21950
|
Object.keys(resolver_shape_namespaceObject).forEach((v) => resolver_shape_namespaceObject[v]());
|