billboard.js 3.13.0 → 3.14.0-next.1
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 +315 -167
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +10 -10
- package/dist/billboard.pkgd.js +538 -390
- 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 +245 -56
- 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 +8 -5
- 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 +7 -4
- package/src/ChartInternal/interactions/interaction.ts +21 -6
- package/src/ChartInternal/interactions/zoom.ts +2 -2
- package/src/ChartInternal/internals/legend.ts +4 -3
- 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/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 +12 -2
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.1
|
|
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
|
|
@@ -670,7 +670,7 @@ const $ZOOM = {
|
|
|
670
670
|
legend_usePoint: false
|
|
671
671
|
});
|
|
672
672
|
|
|
673
|
-
;//
|
|
673
|
+
;// ./src/config/Options/common/main.ts
|
|
674
674
|
/* harmony default export */ var main = ({
|
|
675
675
|
/**
|
|
676
676
|
* Specify the CSS selector or the element which the chart will be set to. D3 selection object can be specified also.<br>
|
|
@@ -820,24 +820,32 @@ const $ZOOM = {
|
|
|
820
820
|
* @memberof Options
|
|
821
821
|
* @type {object}
|
|
822
822
|
* @property {object} [resize] resize object
|
|
823
|
-
* @property {boolean} [resize.auto=true] Set chart resize automatically on viewport changes.
|
|
823
|
+
* @property {boolean|string} [resize.auto=true] Set chart resize automatically on viewport changes.
|
|
824
|
+
* - **NOTE:** Available options
|
|
825
|
+
* - true: Enables automatic resize.
|
|
826
|
+
* - false: Disables automatic resize.
|
|
827
|
+
* - "viewBox": Enables automatic resize, and size will be fixed based on the viewbox.
|
|
824
828
|
* @property {boolean|number} [resize.timer=true] Set resize timer option.
|
|
825
|
-
* - **NOTE:**
|
|
829
|
+
* - **NOTE:** Available options
|
|
826
830
|
* - The resize function will be called using:
|
|
827
831
|
* - true: `setTimeout()`
|
|
828
832
|
* - false: `requestIdleCallback()`
|
|
829
|
-
* - Given number(delay in ms) value, resize function will be triggered using `
|
|
833
|
+
* - Given number(delay in ms) value, resize function will be triggered using `setTimeout()` with given delay.
|
|
834
|
+
* @see [Demo](https://naver.github.io/billboard.js/demo/#ChartOptions.resizeViewBox)
|
|
830
835
|
* @example
|
|
831
836
|
* resize: {
|
|
832
837
|
* auto: false,
|
|
833
838
|
*
|
|
834
|
-
* // set resize
|
|
839
|
+
* // set resize based on viewBox value
|
|
840
|
+
* auto: "viewBox",
|
|
841
|
+
*
|
|
842
|
+
* // set resize function will be triggered using `setTimeout()`
|
|
835
843
|
* timer: true,
|
|
836
844
|
*
|
|
837
845
|
* // set resize function will be triggered using `requestIdleCallback()`
|
|
838
846
|
* timer: false,
|
|
839
847
|
*
|
|
840
|
-
* // set resize function will be triggered using `
|
|
848
|
+
* // set resize function will be triggered using `setTimeout()` with a delay of `100ms`.
|
|
841
849
|
* timer: 100
|
|
842
850
|
* }
|
|
843
851
|
*/
|
|
@@ -996,7 +1004,10 @@ const $ZOOM = {
|
|
|
996
1004
|
* @memberof Options
|
|
997
1005
|
* @type {object}
|
|
998
1006
|
* @property {object} [render] render object
|
|
999
|
-
* @property {boolean} [render.lazy=true] Make to not render at initialization
|
|
1007
|
+
* @property {boolean} [render.lazy=true] Make to not render at initialization.
|
|
1008
|
+
* - **NOTE**:
|
|
1009
|
+
* - Enabled by default when bind element's visibility is hidden.
|
|
1010
|
+
* - 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
1011
|
* @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
1012
|
* @see [Demo](https://naver.github.io/billboard.js/demo/#ChartOptions.LazyRender)
|
|
1002
1013
|
* @example
|
|
@@ -1064,7 +1075,7 @@ const $ZOOM = {
|
|
|
1064
1075
|
regions: []
|
|
1065
1076
|
});
|
|
1066
1077
|
|
|
1067
|
-
;//
|
|
1078
|
+
;// ./src/config/Options/common/title.ts
|
|
1068
1079
|
/* harmony default export */ var title = ({
|
|
1069
1080
|
/**
|
|
1070
1081
|
* Set title options
|
|
@@ -1105,7 +1116,7 @@ const $ZOOM = {
|
|
|
1105
1116
|
title_position: "center"
|
|
1106
1117
|
});
|
|
1107
1118
|
|
|
1108
|
-
;//
|
|
1119
|
+
;// ./src/config/Options/common/tooltip.ts
|
|
1109
1120
|
/* harmony default export */ var tooltip = ({
|
|
1110
1121
|
/**
|
|
1111
1122
|
* Tooltip options
|
|
@@ -1353,7 +1364,7 @@ const $ZOOM = {
|
|
|
1353
1364
|
tooltip_order: null
|
|
1354
1365
|
});
|
|
1355
1366
|
|
|
1356
|
-
;//
|
|
1367
|
+
;// ./src/config/Options/data/data.ts
|
|
1357
1368
|
/* harmony default export */ var data = ({
|
|
1358
1369
|
/**
|
|
1359
1370
|
* Specify the key of x values in the data.<br><br>
|
|
@@ -2210,7 +2221,7 @@ const $ZOOM = {
|
|
|
2210
2221
|
data_empty_label_text: ""
|
|
2211
2222
|
});
|
|
2212
2223
|
|
|
2213
|
-
;//
|
|
2224
|
+
;// ./src/config/Options/interaction/interaction.ts
|
|
2214
2225
|
/* harmony default export */ var interaction = ({
|
|
2215
2226
|
/**
|
|
2216
2227
|
* Interaction options
|
|
@@ -2224,6 +2235,8 @@ const $ZOOM = {
|
|
|
2224
2235
|
* @property {boolean} [interaction.inputType.mouse=true] enable or disable mouse interaction
|
|
2225
2236
|
* @property {boolean} [interaction.inputType.touch=true] enable or disable touch interaction
|
|
2226
2237
|
* @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.
|
|
2238
|
+
* @property {boolean} [interaction.onout=true] Enable or disable "onout" event.<br>
|
|
2239
|
+
* When is disabled, defocus(hiding tooltip, focused gridline, etc.) event won't work.
|
|
2227
2240
|
* @see [Demo: touch.preventDefault](https://naver.github.io/billboard.js/demo/#Interaction.PreventScrollOnTouch)
|
|
2228
2241
|
* @example
|
|
2229
2242
|
* interaction: {
|
|
@@ -2241,18 +2254,22 @@ const $ZOOM = {
|
|
|
2241
2254
|
* // or threshold pixel value (pixel moved from touchstart to touchmove)
|
|
2242
2255
|
* preventDefault: 5
|
|
2243
2256
|
* }
|
|
2244
|
-
* }
|
|
2257
|
+
* },
|
|
2258
|
+
*
|
|
2259
|
+
* // disable "onout" event
|
|
2260
|
+
* onout: false
|
|
2245
2261
|
* }
|
|
2246
2262
|
*/
|
|
2247
2263
|
interaction_enabled: true,
|
|
2248
2264
|
interaction_brighten: true,
|
|
2249
2265
|
interaction_inputType_mouse: true,
|
|
2250
|
-
interaction_inputType_touch: {}
|
|
2266
|
+
interaction_inputType_touch: {},
|
|
2267
|
+
interaction_onout: true
|
|
2251
2268
|
});
|
|
2252
2269
|
|
|
2253
2270
|
// EXTERNAL MODULE: external {"commonjs":"d3-brush","commonjs2":"d3-brush","amd":"d3-brush","root":"d3"}
|
|
2254
2271
|
var external_commonjs_d3_brush_commonjs2_d3_brush_amd_d3_brush_root_d3_ = __webpack_require__(4);
|
|
2255
|
-
;//
|
|
2272
|
+
;// ./src/module/browser.ts
|
|
2256
2273
|
function getGlobal() {
|
|
2257
2274
|
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
2275
|
}
|
|
@@ -2278,7 +2295,7 @@ const [
|
|
|
2278
2295
|
] = getFallback(win);
|
|
2279
2296
|
|
|
2280
2297
|
|
|
2281
|
-
;//
|
|
2298
|
+
;// ./src/module/util.ts
|
|
2282
2299
|
var util_defProp = Object.defineProperty;
|
|
2283
2300
|
var util_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
2284
2301
|
var util_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
@@ -2497,6 +2514,13 @@ function getScrollPosition(node) {
|
|
|
2497
2514
|
y: ((_e = (_d = win.pageYOffset) != null ? _d : win.scrollY) != null ? _e : 0) + ((_f = node.scrollTop) != null ? _f : 0)
|
|
2498
2515
|
};
|
|
2499
2516
|
}
|
|
2517
|
+
function getTransformCTM(node, x = 0, y = 0, inverse = true) {
|
|
2518
|
+
const point = new DOMPoint(x, y);
|
|
2519
|
+
const screen = node.getScreenCTM();
|
|
2520
|
+
return point.matrixTransform(
|
|
2521
|
+
inverse ? screen == null ? void 0 : screen.inverse() : screen
|
|
2522
|
+
);
|
|
2523
|
+
}
|
|
2500
2524
|
function getTranslation(node) {
|
|
2501
2525
|
const transform = node ? node.transform : null;
|
|
2502
2526
|
const baseVal = transform && transform.baseVal;
|
|
@@ -2644,12 +2668,28 @@ function parseDate(date) {
|
|
|
2644
2668
|
}
|
|
2645
2669
|
return parsedDate;
|
|
2646
2670
|
}
|
|
2671
|
+
function hasViewBox(svg) {
|
|
2672
|
+
const attr = svg.attr("viewBox");
|
|
2673
|
+
return attr ? /(\d+(\.\d+)?){3}/.test(attr) : false;
|
|
2674
|
+
}
|
|
2675
|
+
function hasStyle(node, condition, all = false) {
|
|
2676
|
+
const isD3Node = !!node.node;
|
|
2677
|
+
let has = false;
|
|
2678
|
+
for (const [key, value] of Object.entries(condition)) {
|
|
2679
|
+
has = isD3Node ? node.style(key) === value : node.style[key] === value;
|
|
2680
|
+
if (all === false && has) {
|
|
2681
|
+
break;
|
|
2682
|
+
}
|
|
2683
|
+
}
|
|
2684
|
+
return has;
|
|
2685
|
+
}
|
|
2647
2686
|
function isTabVisible() {
|
|
2648
2687
|
var _a, _b;
|
|
2649
2688
|
return ((_a = browser_doc) == null ? void 0 : _a.hidden) === false || ((_b = browser_doc) == null ? void 0 : _b.visibilityState) === "visible";
|
|
2650
2689
|
}
|
|
2651
2690
|
function convertInputType(mouse, touch) {
|
|
2652
2691
|
const { DocumentTouch, matchMedia, navigator } = win;
|
|
2692
|
+
const hasPointerCoarse = matchMedia == null ? void 0 : matchMedia("(pointer:coarse)").matches;
|
|
2653
2693
|
let hasTouch = false;
|
|
2654
2694
|
if (touch) {
|
|
2655
2695
|
if (navigator && "maxTouchPoints" in navigator) {
|
|
@@ -2657,7 +2697,7 @@ function convertInputType(mouse, touch) {
|
|
|
2657
2697
|
} else if ("ontouchmove" in win || DocumentTouch && browser_doc instanceof DocumentTouch) {
|
|
2658
2698
|
hasTouch = true;
|
|
2659
2699
|
} else {
|
|
2660
|
-
if (
|
|
2700
|
+
if (hasPointerCoarse) {
|
|
2661
2701
|
hasTouch = true;
|
|
2662
2702
|
} else {
|
|
2663
2703
|
const UA = navigator.userAgent;
|
|
@@ -2665,7 +2705,7 @@ function convertInputType(mouse, touch) {
|
|
|
2665
2705
|
}
|
|
2666
2706
|
}
|
|
2667
2707
|
}
|
|
2668
|
-
const hasMouse = mouse &&
|
|
2708
|
+
const hasMouse = mouse && !hasPointerCoarse && (matchMedia == null ? void 0 : matchMedia("(pointer:fine)").matches);
|
|
2669
2709
|
return hasMouse && "mouse" || hasTouch && "touch" || "mouse";
|
|
2670
2710
|
}
|
|
2671
2711
|
function runUntil(fn, conditionFn) {
|
|
@@ -2676,7 +2716,7 @@ function runUntil(fn, conditionFn) {
|
|
|
2676
2716
|
}
|
|
2677
2717
|
}
|
|
2678
2718
|
|
|
2679
|
-
;//
|
|
2719
|
+
;// ./src/config/Options/Options.ts
|
|
2680
2720
|
var Options_defProp = Object.defineProperty;
|
|
2681
2721
|
var Options_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
2682
2722
|
var Options_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
@@ -2725,7 +2765,7 @@ __publicField(_Options, "data", {});
|
|
|
2725
2765
|
let Options = _Options;
|
|
2726
2766
|
|
|
2727
2767
|
|
|
2728
|
-
;//
|
|
2768
|
+
;// ./src/config/Store/Element.ts
|
|
2729
2769
|
class Element {
|
|
2730
2770
|
constructor() {
|
|
2731
2771
|
const element = {
|
|
@@ -2801,7 +2841,7 @@ class Element {
|
|
|
2801
2841
|
}
|
|
2802
2842
|
}
|
|
2803
2843
|
|
|
2804
|
-
;//
|
|
2844
|
+
;// ./src/config/Store/State.ts
|
|
2805
2845
|
class State {
|
|
2806
2846
|
constructor() {
|
|
2807
2847
|
return {
|
|
@@ -2953,7 +2993,7 @@ class State {
|
|
|
2953
2993
|
}
|
|
2954
2994
|
}
|
|
2955
2995
|
|
|
2956
|
-
;//
|
|
2996
|
+
;// ./src/config/Store/Store.ts
|
|
2957
2997
|
|
|
2958
2998
|
|
|
2959
2999
|
const Store_classes = {
|
|
@@ -2971,7 +3011,7 @@ class Store {
|
|
|
2971
3011
|
}
|
|
2972
3012
|
}
|
|
2973
3013
|
|
|
2974
|
-
;//
|
|
3014
|
+
;// ./src/module/Cache.ts
|
|
2975
3015
|
var Cache_defProp = Object.defineProperty;
|
|
2976
3016
|
var Cache_defNormalProp = (obj, key, value) => key in obj ? Cache_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2977
3017
|
var Cache_publicField = (obj, key, value) => Cache_defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -3062,7 +3102,7 @@ class Cache {
|
|
|
3062
3102
|
}
|
|
3063
3103
|
}
|
|
3064
3104
|
|
|
3065
|
-
;//
|
|
3105
|
+
;// ./src/config/const.ts
|
|
3066
3106
|
const TYPE = {
|
|
3067
3107
|
AREA: "area",
|
|
3068
3108
|
AREA_LINE_RANGE: "area-line-range",
|
|
@@ -3151,7 +3191,7 @@ const TYPE_BY_CATEGORY = {
|
|
|
3151
3191
|
]
|
|
3152
3192
|
};
|
|
3153
3193
|
|
|
3154
|
-
;//
|
|
3194
|
+
;// ./src/module/error.ts
|
|
3155
3195
|
|
|
3156
3196
|
|
|
3157
3197
|
|
|
@@ -3173,26 +3213,27 @@ function checkModuleImport(ctx) {
|
|
|
3173
3213
|
}
|
|
3174
3214
|
type && logError(
|
|
3175
3215
|
`Please, make sure if %c${camelize(type)}`,
|
|
3176
|
-
"module has been imported and specified correctly."
|
|
3216
|
+
"module has been imported and specified correctly.",
|
|
3217
|
+
"https://github.com/naver/billboard.js/wiki/CHANGELOG-v2#modularization-by-its-functionality"
|
|
3177
3218
|
);
|
|
3178
3219
|
}
|
|
3179
|
-
function logError(head, tail) {
|
|
3220
|
+
function logError(head, tail, info) {
|
|
3180
3221
|
var _a;
|
|
3181
3222
|
const prefix = "[billboard.js]";
|
|
3182
|
-
const info = "https://github.com/naver/billboard.js/wiki/CHANGELOG-v2#modularization-by-its-functionality";
|
|
3183
3223
|
const hasConsole = (_a = win.console) == null ? void 0 : _a.error;
|
|
3184
3224
|
if (hasConsole) {
|
|
3225
|
+
const tailMsg = tail ? ["background:red;color:white;display:block;font-size:15px", tail] : [];
|
|
3185
3226
|
console.error(
|
|
3186
3227
|
`\u274C ${prefix} ${head}`,
|
|
3187
3228
|
"background:red;color:white;display:block;font-size:15px",
|
|
3188
|
-
|
|
3229
|
+
...tailMsg
|
|
3189
3230
|
);
|
|
3190
|
-
console.info("%c\u2139\uFE0F", "font-size:15px", info);
|
|
3231
|
+
info && console.info("%c\u2139\uFE0F", "font-size:15px", info);
|
|
3191
3232
|
}
|
|
3192
|
-
throw Error(`${prefix} ${head.replace(/\%c([a-z-]+)/i, "'$1' ")} ${tail}`);
|
|
3233
|
+
throw Error(`${prefix} ${head.replace(/\%c([a-z-]+)/i, "'$1' ")} ${tail != null ? tail : ""}`);
|
|
3193
3234
|
}
|
|
3194
3235
|
|
|
3195
|
-
;//
|
|
3236
|
+
;// ./src/module/generator.ts
|
|
3196
3237
|
|
|
3197
3238
|
|
|
3198
3239
|
const { setTimeout: generator_setTimeout, clearTimeout: generator_clearTimeout } = win;
|
|
@@ -3254,7 +3295,7 @@ function generateWait() {
|
|
|
3254
3295
|
return f;
|
|
3255
3296
|
}
|
|
3256
3297
|
|
|
3257
|
-
;//
|
|
3298
|
+
;// ./src/module/worker.ts
|
|
3258
3299
|
|
|
3259
3300
|
const blob = {};
|
|
3260
3301
|
function getObjectURL(fn, depsFn) {
|
|
@@ -3303,7 +3344,7 @@ function runWorker(useWorker = true, fn, callback, depsFn) {
|
|
|
3303
3344
|
|
|
3304
3345
|
// EXTERNAL MODULE: external {"commonjs":"d3-dsv","commonjs2":"d3-dsv","amd":"d3-dsv","root":"d3"}
|
|
3305
3346
|
var external_commonjs_d3_dsv_commonjs2_d3_dsv_amd_d3_dsv_root_d3_ = __webpack_require__(5);
|
|
3306
|
-
;//
|
|
3347
|
+
;// ./src/ChartInternal/data/convert.helper.ts
|
|
3307
3348
|
|
|
3308
3349
|
|
|
3309
3350
|
function columns(columns2) {
|
|
@@ -3436,7 +3477,7 @@ function tsv(tsv2) {
|
|
|
3436
3477
|
}, tsv2);
|
|
3437
3478
|
}
|
|
3438
3479
|
|
|
3439
|
-
;//
|
|
3480
|
+
;// ./src/ChartInternal/data/convert.ts
|
|
3440
3481
|
|
|
3441
3482
|
|
|
3442
3483
|
|
|
@@ -3590,7 +3631,7 @@ function getDataKeyForJson(keysParam, config) {
|
|
|
3590
3631
|
}
|
|
3591
3632
|
});
|
|
3592
3633
|
|
|
3593
|
-
;//
|
|
3634
|
+
;// ./src/ChartInternal/data/data.ts
|
|
3594
3635
|
|
|
3595
3636
|
|
|
3596
3637
|
|
|
@@ -4101,7 +4142,11 @@ function getDataKeyForJson(keysParam, config) {
|
|
|
4101
4142
|
*/
|
|
4102
4143
|
getDataIndexFromEvent(event) {
|
|
4103
4144
|
const $$ = this;
|
|
4104
|
-
const {
|
|
4145
|
+
const {
|
|
4146
|
+
$el,
|
|
4147
|
+
config,
|
|
4148
|
+
state: { hasRadar, inputType, eventReceiver: { coords, rect } }
|
|
4149
|
+
} = $$;
|
|
4105
4150
|
let index;
|
|
4106
4151
|
if (hasRadar) {
|
|
4107
4152
|
let target = event.target;
|
|
@@ -4114,9 +4159,15 @@ function getDataKeyForJson(keysParam, config) {
|
|
|
4114
4159
|
const isRotated = config.axis_rotated;
|
|
4115
4160
|
const scrollPos = getScrollPosition($el.chart.node());
|
|
4116
4161
|
const e = inputType === "touch" && event.changedTouches ? event.changedTouches[0] : event;
|
|
4162
|
+
let point = isRotated ? e.clientY + scrollPos.y - rect.top : e.clientX + scrollPos.x - rect.left;
|
|
4163
|
+
if (hasViewBox($el.svg)) {
|
|
4164
|
+
const pos = [point, 0];
|
|
4165
|
+
isRotated && pos.reverse();
|
|
4166
|
+
point = getTransformCTM($el.svg.node(), ...pos)[isRotated ? "y" : "x"];
|
|
4167
|
+
}
|
|
4117
4168
|
index = findIndex(
|
|
4118
4169
|
coords,
|
|
4119
|
-
|
|
4170
|
+
point,
|
|
4120
4171
|
0,
|
|
4121
4172
|
coords.length - 1,
|
|
4122
4173
|
isRotated
|
|
@@ -4391,7 +4442,7 @@ function getDataKeyForJson(keysParam, config) {
|
|
|
4391
4442
|
}
|
|
4392
4443
|
});
|
|
4393
4444
|
|
|
4394
|
-
;//
|
|
4445
|
+
;// ./src/ChartInternal/data/load.ts
|
|
4395
4446
|
|
|
4396
4447
|
|
|
4397
4448
|
function callDone(fn, resizeAfter = false) {
|
|
@@ -4459,6 +4510,8 @@ function callDone(fn, resizeAfter = false) {
|
|
|
4459
4510
|
org.xScale = zoomState.x.domain(org.xDomain);
|
|
4460
4511
|
}
|
|
4461
4512
|
$$.updateCurrentZoomTransform(zoomState.x, zoomState.currentDomain);
|
|
4513
|
+
} else if (org.xScale) {
|
|
4514
|
+
org.xScale.domain(org.xDomain);
|
|
4462
4515
|
}
|
|
4463
4516
|
$$.updateTypesElements();
|
|
4464
4517
|
callDone.call($$, args.done, args.resizeAfter);
|
|
@@ -4512,7 +4565,7 @@ function callDone(fn, resizeAfter = false) {
|
|
|
4512
4565
|
|
|
4513
4566
|
// EXTERNAL MODULE: external {"commonjs":"d3-drag","commonjs2":"d3-drag","amd":"d3-drag","root":"d3"}
|
|
4514
4567
|
var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack_require__(6);
|
|
4515
|
-
;//
|
|
4568
|
+
;// ./src/ChartInternal/interactions/interaction.ts
|
|
4516
4569
|
|
|
4517
4570
|
|
|
4518
4571
|
|
|
@@ -4648,7 +4701,7 @@ var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack
|
|
|
4648
4701
|
hasRadar,
|
|
4649
4702
|
hasTreemap
|
|
4650
4703
|
},
|
|
4651
|
-
$el: { eventRect, funnel, radar, treemap }
|
|
4704
|
+
$el: { eventRect, funnel, radar, svg, treemap }
|
|
4652
4705
|
} = $$;
|
|
4653
4706
|
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
4707
|
if (element) {
|
|
@@ -4667,8 +4720,13 @@ var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack
|
|
|
4667
4720
|
top = 0;
|
|
4668
4721
|
}
|
|
4669
4722
|
}
|
|
4670
|
-
|
|
4671
|
-
|
|
4723
|
+
let x = left + (mouse ? mouse[0] : 0) + (isMultipleX || isRotated ? 0 : width / 2);
|
|
4724
|
+
let y = top + (mouse ? mouse[1] : 0) + (isRotated ? 4 : 0);
|
|
4725
|
+
if (hasViewBox(svg)) {
|
|
4726
|
+
const ctm = getTransformCTM($$.$el.svg.node(), x, y, false);
|
|
4727
|
+
x = ctm.x;
|
|
4728
|
+
y = ctm.y;
|
|
4729
|
+
}
|
|
4672
4730
|
const params = {
|
|
4673
4731
|
screenX: x,
|
|
4674
4732
|
screenY: y,
|
|
@@ -4739,7 +4797,7 @@ var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack
|
|
|
4739
4797
|
}
|
|
4740
4798
|
});
|
|
4741
4799
|
|
|
4742
|
-
;//
|
|
4800
|
+
;// ./src/ChartInternal/internals/category.ts
|
|
4743
4801
|
/* harmony default export */ var category = ({
|
|
4744
4802
|
/**
|
|
4745
4803
|
* Category Name
|
|
@@ -4754,7 +4812,7 @@ var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack
|
|
|
4754
4812
|
}
|
|
4755
4813
|
});
|
|
4756
4814
|
|
|
4757
|
-
;//
|
|
4815
|
+
;// ./src/ChartInternal/internals/class.ts
|
|
4758
4816
|
|
|
4759
4817
|
/* harmony default export */ var internals_class = ({
|
|
4760
4818
|
generateClass(prefix, targetId) {
|
|
@@ -4841,7 +4899,7 @@ var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack
|
|
|
4841
4899
|
|
|
4842
4900
|
// EXTERNAL MODULE: external {"commonjs":"d3-scale","commonjs2":"d3-scale","amd":"d3-scale","root":"d3"}
|
|
4843
4901
|
var external_commonjs_d3_scale_commonjs2_d3_scale_amd_d3_scale_root_d3_ = __webpack_require__(7);
|
|
4844
|
-
;//
|
|
4902
|
+
;// ./src/ChartInternal/internals/color.ts
|
|
4845
4903
|
|
|
4846
4904
|
|
|
4847
4905
|
|
|
@@ -5054,7 +5112,7 @@ const schemeCategory10 = [
|
|
|
5054
5112
|
}
|
|
5055
5113
|
});
|
|
5056
5114
|
|
|
5057
|
-
;//
|
|
5115
|
+
;// ./src/ChartInternal/internals/domain.ts
|
|
5058
5116
|
|
|
5059
5117
|
|
|
5060
5118
|
/* harmony default export */ var domain = ({
|
|
@@ -5405,7 +5463,7 @@ const schemeCategory10 = [
|
|
|
5405
5463
|
}
|
|
5406
5464
|
});
|
|
5407
5465
|
|
|
5408
|
-
;//
|
|
5466
|
+
;// ./src/ChartInternal/internals/format.ts
|
|
5409
5467
|
|
|
5410
5468
|
function getFormat($$, typeValue, v) {
|
|
5411
5469
|
const { config } = $$;
|
|
@@ -5470,7 +5528,7 @@ function getFormat($$, typeValue, v) {
|
|
|
5470
5528
|
}
|
|
5471
5529
|
});
|
|
5472
5530
|
|
|
5473
|
-
;//
|
|
5531
|
+
;// ./src/ChartInternal/internals/legend.ts
|
|
5474
5532
|
|
|
5475
5533
|
|
|
5476
5534
|
|
|
@@ -5674,7 +5732,8 @@ function getFormattedText(id, formatted = true) {
|
|
|
5674
5732
|
const $$ = this;
|
|
5675
5733
|
const { current, isLegendRight, legendItemHeight, legendStep } = $$.state;
|
|
5676
5734
|
const isFitPadding = ((_a = $$.config.padding) == null ? void 0 : _a.mode) === "fit";
|
|
5677
|
-
|
|
5735
|
+
const height = $$.config.legend_show ? isLegendRight ? current.height : Math.max(isFitPadding ? 10 : 20, legendItemHeight) * (legendStep + 1) : 0;
|
|
5736
|
+
return height;
|
|
5678
5737
|
},
|
|
5679
5738
|
/**
|
|
5680
5739
|
* Get the opacity of the legend that is unfocused
|
|
@@ -6113,7 +6172,7 @@ function getFormattedText(id, formatted = true) {
|
|
|
6113
6172
|
|
|
6114
6173
|
// EXTERNAL MODULE: external {"commonjs":"d3-transition","commonjs2":"d3-transition","amd":"d3-transition","root":"d3"}
|
|
6115
6174
|
var external_commonjs_d3_transition_commonjs2_d3_transition_amd_d3_transition_root_d3_ = __webpack_require__(8);
|
|
6116
|
-
;//
|
|
6175
|
+
;// ./src/ChartInternal/internals/redraw.ts
|
|
6117
6176
|
|
|
6118
6177
|
|
|
6119
6178
|
|
|
@@ -6278,7 +6337,7 @@ var external_commonjs_d3_transition_commonjs2_d3_transition_amd_d3_transition_ro
|
|
|
6278
6337
|
}
|
|
6279
6338
|
});
|
|
6280
6339
|
|
|
6281
|
-
;//
|
|
6340
|
+
;// ./src/ChartInternal/internals/scale.ts
|
|
6282
6341
|
|
|
6283
6342
|
|
|
6284
6343
|
function getScale(type = "linear", min, max) {
|
|
@@ -6488,7 +6547,7 @@ function getScale(type = "linear", min, max) {
|
|
|
6488
6547
|
}
|
|
6489
6548
|
});
|
|
6490
6549
|
|
|
6491
|
-
;//
|
|
6550
|
+
;// ./src/ChartInternal/internals/size.ts
|
|
6492
6551
|
|
|
6493
6552
|
|
|
6494
6553
|
|
|
@@ -6583,8 +6642,12 @@ function getScale(type = "linear", min, max) {
|
|
|
6583
6642
|
},
|
|
6584
6643
|
updateSvgSize() {
|
|
6585
6644
|
const $$ = this;
|
|
6586
|
-
const { state: { clip, current, hasAxis, width, height }, $el: { svg } } = $$;
|
|
6587
|
-
|
|
6645
|
+
const { config, state: { clip, current, hasAxis, width, height }, $el: { svg } } = $$;
|
|
6646
|
+
if (config.resize_auto === "viewBox") {
|
|
6647
|
+
svg.attr("viewBox", `0 0 ${current.width} ${current.height}`);
|
|
6648
|
+
} else {
|
|
6649
|
+
svg.attr("width", current.width).attr("height", current.height);
|
|
6650
|
+
}
|
|
6588
6651
|
if (hasAxis) {
|
|
6589
6652
|
const brush = svg.select(`.${$SUBCHART.brush} .overlay`);
|
|
6590
6653
|
const brushSize = { width: 0, height: 0 };
|
|
@@ -6781,7 +6844,7 @@ function getScale(type = "linear", min, max) {
|
|
|
6781
6844
|
}
|
|
6782
6845
|
});
|
|
6783
6846
|
|
|
6784
|
-
;//
|
|
6847
|
+
;// ./src/ChartInternal/internals/style.ts
|
|
6785
6848
|
|
|
6786
6849
|
|
|
6787
6850
|
/* harmony default export */ var style = ({
|
|
@@ -6823,7 +6886,7 @@ function getScale(type = "linear", min, max) {
|
|
|
6823
6886
|
}
|
|
6824
6887
|
});
|
|
6825
6888
|
|
|
6826
|
-
;//
|
|
6889
|
+
;// ./src/ChartInternal/internals/text.ts
|
|
6827
6890
|
|
|
6828
6891
|
|
|
6829
6892
|
|
|
@@ -7283,7 +7346,7 @@ function getTextPos(d, type) {
|
|
|
7283
7346
|
}
|
|
7284
7347
|
});
|
|
7285
7348
|
|
|
7286
|
-
;//
|
|
7349
|
+
;// ./src/ChartInternal/internals/title.ts
|
|
7287
7350
|
|
|
7288
7351
|
|
|
7289
7352
|
function getTextXPos(pos = "left", width) {
|
|
@@ -7337,7 +7400,7 @@ function getTextXPos(pos = "left", width) {
|
|
|
7337
7400
|
}
|
|
7338
7401
|
});
|
|
7339
7402
|
|
|
7340
|
-
;//
|
|
7403
|
+
;// ./src/ChartInternal/internals/tooltip.ts
|
|
7341
7404
|
|
|
7342
7405
|
|
|
7343
7406
|
|
|
@@ -7535,7 +7598,7 @@ function getTextXPos(pos = "left", width) {
|
|
|
7535
7598
|
setTooltipPosition(dataToShow, eventTarget) {
|
|
7536
7599
|
var _a, _b;
|
|
7537
7600
|
const $$ = this;
|
|
7538
|
-
const { config, scale, state, $el: { eventRect, tooltip } } = $$;
|
|
7601
|
+
const { config, scale, state, $el: { eventRect, tooltip, svg } } = $$;
|
|
7539
7602
|
const { bindto } = config.tooltip_contents;
|
|
7540
7603
|
const isRotated = config.axis_rotated;
|
|
7541
7604
|
const datum = tooltip == null ? void 0 : tooltip.datum();
|
|
@@ -7564,7 +7627,7 @@ function getTextXPos(pos = "left", width) {
|
|
|
7564
7627
|
height,
|
|
7565
7628
|
eventRect == null ? void 0 : eventRect.node(),
|
|
7566
7629
|
currPos
|
|
7567
|
-
)) != null ? _b : $$.getTooltipPosition.bind($$)(width, height, currPos);
|
|
7630
|
+
)) != null ? _b : hasViewBox(svg) ? $$.getTooltipPositionViewBox.bind($$)(width, height, currPos) : $$.getTooltipPosition.bind($$)(width, height, currPos);
|
|
7568
7631
|
["top", "left"].forEach((v) => {
|
|
7569
7632
|
const value = pos[v];
|
|
7570
7633
|
tooltip.style(v, `${value}px`);
|
|
@@ -7574,6 +7637,38 @@ function getTextXPos(pos = "left", width) {
|
|
|
7574
7637
|
});
|
|
7575
7638
|
}
|
|
7576
7639
|
},
|
|
7640
|
+
getTooltipPositionViewBox(tWidth, tHeight, currPos) {
|
|
7641
|
+
var _a, _b;
|
|
7642
|
+
const $$ = this;
|
|
7643
|
+
const { $el: { eventRect, main }, config, state } = $$;
|
|
7644
|
+
const isRotated = config.axis_rotated;
|
|
7645
|
+
const hasArcType = $$.hasArcType(void 0, ["radar"]) || state.hasFunnel || state.hasTreemap;
|
|
7646
|
+
const target = (_b = (_a = state.hasRadar ? main : eventRect) == null ? void 0 : _a.node()) != null ? _b : state.event.target;
|
|
7647
|
+
const size = 38;
|
|
7648
|
+
let { x, y } = currPos;
|
|
7649
|
+
if (state.hasAxis) {
|
|
7650
|
+
x = isRotated ? x : currPos.xAxis;
|
|
7651
|
+
y = isRotated ? currPos.xAxis : y;
|
|
7652
|
+
}
|
|
7653
|
+
const ctm = getTransformCTM(target, x, y, false);
|
|
7654
|
+
let top = ctm.y;
|
|
7655
|
+
let left = ctm.x + size;
|
|
7656
|
+
if (hasArcType) {
|
|
7657
|
+
top += tHeight;
|
|
7658
|
+
left -= size;
|
|
7659
|
+
}
|
|
7660
|
+
const rect = (hasArcType ? main.node() : target).getBoundingClientRect();
|
|
7661
|
+
if (left + tWidth > rect.right) {
|
|
7662
|
+
left = rect.right - tWidth - size;
|
|
7663
|
+
}
|
|
7664
|
+
if (top + tHeight > rect.bottom) {
|
|
7665
|
+
top -= tHeight + size;
|
|
7666
|
+
}
|
|
7667
|
+
return {
|
|
7668
|
+
top,
|
|
7669
|
+
left
|
|
7670
|
+
};
|
|
7671
|
+
},
|
|
7577
7672
|
/**
|
|
7578
7673
|
* Returns the position of the tooltip
|
|
7579
7674
|
* @param {string} tWidth Width value of tooltip element
|
|
@@ -7787,7 +7882,7 @@ function getTextXPos(pos = "left", width) {
|
|
|
7787
7882
|
}
|
|
7788
7883
|
});
|
|
7789
7884
|
|
|
7790
|
-
;//
|
|
7885
|
+
;// ./src/ChartInternal/internals/transform.ts
|
|
7791
7886
|
|
|
7792
7887
|
|
|
7793
7888
|
/* harmony default export */ var transform = ({
|
|
@@ -7860,7 +7955,7 @@ function getTextXPos(pos = "left", width) {
|
|
|
7860
7955
|
}
|
|
7861
7956
|
});
|
|
7862
7957
|
|
|
7863
|
-
;//
|
|
7958
|
+
;// ./src/ChartInternal/internals/type.ts
|
|
7864
7959
|
|
|
7865
7960
|
|
|
7866
7961
|
/* harmony default export */ var type = ({
|
|
@@ -8088,7 +8183,7 @@ function getTextXPos(pos = "left", width) {
|
|
|
8088
8183
|
|
|
8089
8184
|
// EXTERNAL MODULE: external {"commonjs":"d3-shape","commonjs2":"d3-shape","amd":"d3-shape","root":"d3"}
|
|
8090
8185
|
var external_commonjs_d3_shape_commonjs2_d3_shape_amd_d3_shape_root_d3_ = __webpack_require__(9);
|
|
8091
|
-
;//
|
|
8186
|
+
;// ./src/ChartInternal/shape/shape.ts
|
|
8092
8187
|
|
|
8093
8188
|
|
|
8094
8189
|
|
|
@@ -8513,7 +8608,7 @@ function getGroupedDataPointsFn(d) {
|
|
|
8513
8608
|
}
|
|
8514
8609
|
});
|
|
8515
8610
|
|
|
8516
|
-
;//
|
|
8611
|
+
;// ./src/ChartInternal/ChartInternal.ts
|
|
8517
8612
|
var ChartInternal_defProp = Object.defineProperty;
|
|
8518
8613
|
var ChartInternal_defNormalProp = (obj, key, value) => key in obj ? ChartInternal_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8519
8614
|
var ChartInternal_publicField = (obj, key, value) => ChartInternal_defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -8686,8 +8781,8 @@ class ChartInternal {
|
|
|
8686
8781
|
initToRender(forced) {
|
|
8687
8782
|
const $$ = this;
|
|
8688
8783
|
const { config, state, $el: { chart } } = $$;
|
|
8689
|
-
const isHidden = () => chart
|
|
8690
|
-
const isLazy = config.render.lazy || isHidden();
|
|
8784
|
+
const isHidden = () => hasStyle(chart, { display: "none", visibility: "hidden" });
|
|
8785
|
+
const isLazy = config.render.lazy === false ? false : config.render.lazy || isHidden();
|
|
8691
8786
|
const MutationObserver = win.MutationObserver;
|
|
8692
8787
|
if (isLazy && MutationObserver && config.render.observe !== false && !forced) {
|
|
8693
8788
|
new MutationObserver((mutation, observer) => {
|
|
@@ -8803,7 +8898,7 @@ class ChartInternal {
|
|
|
8803
8898
|
if (hasAxis || hasColorPatterns || hasPolar || hasTreemap || labelsBGColor || ((_a = $$.hasLegendDefsPoint) == null ? void 0 : _a.call($$))) {
|
|
8804
8899
|
$el.defs = $el.svg.append("defs");
|
|
8805
8900
|
if (hasAxis) {
|
|
8806
|
-
["id", "idXAxis", "idYAxis", "idGrid"].forEach((v) => {
|
|
8901
|
+
["id", "idXAxis", "idYAxis", "idY2Axis", "idGrid"].forEach((v) => {
|
|
8807
8902
|
$$.appendClip($el.defs, state.clip[v]);
|
|
8808
8903
|
});
|
|
8809
8904
|
}
|
|
@@ -9048,7 +9143,7 @@ class ChartInternal {
|
|
|
9048
9143
|
const resizeFunction = generateResize(config.resize_timer);
|
|
9049
9144
|
const list = [];
|
|
9050
9145
|
list.push(() => callFn(config.onresize, $$.api));
|
|
9051
|
-
if (config.resize_auto) {
|
|
9146
|
+
if (config.resize_auto === true) {
|
|
9052
9147
|
list.push(() => {
|
|
9053
9148
|
state.resizing = true;
|
|
9054
9149
|
if (config.legend_show) {
|
|
@@ -9106,7 +9201,7 @@ extend(ChartInternal.prototype, [
|
|
|
9106
9201
|
type
|
|
9107
9202
|
]);
|
|
9108
9203
|
|
|
9109
|
-
;//
|
|
9204
|
+
;// ./src/config/config.ts
|
|
9110
9205
|
|
|
9111
9206
|
function loadConfig(config) {
|
|
9112
9207
|
const thisConfig = this.config;
|
|
@@ -9136,7 +9231,7 @@ function loadConfig(config) {
|
|
|
9136
9231
|
}
|
|
9137
9232
|
}
|
|
9138
9233
|
|
|
9139
|
-
;//
|
|
9234
|
+
;// ./src/Chart/api/chart.ts
|
|
9140
9235
|
|
|
9141
9236
|
|
|
9142
9237
|
/* harmony default export */ var chart = ({
|
|
@@ -9299,7 +9394,7 @@ function loadConfig(config) {
|
|
|
9299
9394
|
}
|
|
9300
9395
|
});
|
|
9301
9396
|
|
|
9302
|
-
;//
|
|
9397
|
+
;// ./src/Chart/api/color.ts
|
|
9303
9398
|
/* harmony default export */ var api_color = ({
|
|
9304
9399
|
/**
|
|
9305
9400
|
* Get the color
|
|
@@ -9316,7 +9411,7 @@ function loadConfig(config) {
|
|
|
9316
9411
|
}
|
|
9317
9412
|
});
|
|
9318
9413
|
|
|
9319
|
-
;//
|
|
9414
|
+
;// ./src/Chart/api/data.ts
|
|
9320
9415
|
|
|
9321
9416
|
const api_data_data = function(targetIds) {
|
|
9322
9417
|
const { targets } = this.internal.data;
|
|
@@ -9471,7 +9566,7 @@ extend(api_data_data, {
|
|
|
9471
9566
|
});
|
|
9472
9567
|
/* harmony default export */ var api_data = ({ data: api_data_data });
|
|
9473
9568
|
|
|
9474
|
-
;//
|
|
9569
|
+
;// ./src/Chart/api/export.ts
|
|
9475
9570
|
|
|
9476
9571
|
|
|
9477
9572
|
|
|
@@ -9667,7 +9762,7 @@ function renderText(ctx, glyph) {
|
|
|
9667
9762
|
}
|
|
9668
9763
|
});
|
|
9669
9764
|
|
|
9670
|
-
;//
|
|
9765
|
+
;// ./src/Chart/api/focus.ts
|
|
9671
9766
|
|
|
9672
9767
|
|
|
9673
9768
|
/* harmony default export */ var api_focus = ({
|
|
@@ -9774,7 +9869,7 @@ function renderText(ctx, glyph) {
|
|
|
9774
9869
|
}
|
|
9775
9870
|
});
|
|
9776
9871
|
|
|
9777
|
-
;//
|
|
9872
|
+
;// ./src/Chart/api/legend.ts
|
|
9778
9873
|
const legend_legend = {
|
|
9779
9874
|
/**
|
|
9780
9875
|
* Show legend for each target.
|
|
@@ -9828,7 +9923,7 @@ const legend_legend = {
|
|
|
9828
9923
|
};
|
|
9829
9924
|
/* harmony default export */ var api_legend = ({ legend: legend_legend });
|
|
9830
9925
|
|
|
9831
|
-
;//
|
|
9926
|
+
;// ./src/Chart/api/load.ts
|
|
9832
9927
|
|
|
9833
9928
|
|
|
9834
9929
|
|
|
@@ -10041,7 +10136,7 @@ const legend_legend = {
|
|
|
10041
10136
|
}
|
|
10042
10137
|
});
|
|
10043
10138
|
|
|
10044
|
-
;//
|
|
10139
|
+
;// ./src/Chart/api/show.ts
|
|
10045
10140
|
|
|
10046
10141
|
function showHide(show, targetIdsValue, options) {
|
|
10047
10142
|
const $$ = this.internal;
|
|
@@ -10144,7 +10239,7 @@ function showHide(show, targetIdsValue, options) {
|
|
|
10144
10239
|
}
|
|
10145
10240
|
});
|
|
10146
10241
|
|
|
10147
|
-
;//
|
|
10242
|
+
;// ./src/Chart/api/tooltip.ts
|
|
10148
10243
|
|
|
10149
10244
|
|
|
10150
10245
|
const tooltip_tooltip = {
|
|
@@ -10267,7 +10362,7 @@ const tooltip_tooltip = {
|
|
|
10267
10362
|
};
|
|
10268
10363
|
/* harmony default export */ var api_tooltip = ({ tooltip: tooltip_tooltip });
|
|
10269
10364
|
|
|
10270
|
-
;//
|
|
10365
|
+
;// ./src/Chart/Chart.ts
|
|
10271
10366
|
var Chart_defProp = Object.defineProperty;
|
|
10272
10367
|
var Chart_defNormalProp = (obj, key, value) => key in obj ? Chart_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10273
10368
|
var Chart_publicField = (obj, key, value) => Chart_defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -10322,7 +10417,7 @@ extend(Chart.prototype, [
|
|
|
10322
10417
|
api_tooltip
|
|
10323
10418
|
]);
|
|
10324
10419
|
|
|
10325
|
-
;//
|
|
10420
|
+
;// ./src/Chart/api/selection.ts
|
|
10326
10421
|
|
|
10327
10422
|
|
|
10328
10423
|
|
|
@@ -10433,7 +10528,7 @@ function setSelection(isSelection = false, ids, indices, resetOther) {
|
|
|
10433
10528
|
}
|
|
10434
10529
|
});
|
|
10435
10530
|
|
|
10436
|
-
;//
|
|
10531
|
+
;// ./src/Chart/api/subchart.ts
|
|
10437
10532
|
|
|
10438
10533
|
|
|
10439
10534
|
const subchart = function(domainValue) {
|
|
@@ -10564,7 +10659,7 @@ extend(subchart, {
|
|
|
10564
10659
|
|
|
10565
10660
|
// EXTERNAL MODULE: external {"commonjs":"d3-zoom","commonjs2":"d3-zoom","amd":"d3-zoom","root":"d3"}
|
|
10566
10661
|
var external_commonjs_d3_zoom_commonjs2_d3_zoom_amd_d3_zoom_root_d3_ = __webpack_require__(10);
|
|
10567
|
-
;//
|
|
10662
|
+
;// ./src/Chart/api/zoom.ts
|
|
10568
10663
|
|
|
10569
10664
|
|
|
10570
10665
|
const zoom = function(domainValue) {
|
|
@@ -10731,7 +10826,7 @@ extend(zoom, {
|
|
|
10731
10826
|
}
|
|
10732
10827
|
});
|
|
10733
10828
|
|
|
10734
|
-
;//
|
|
10829
|
+
;// ./src/ChartInternal/interactions/subchart.ts
|
|
10735
10830
|
|
|
10736
10831
|
|
|
10737
10832
|
|
|
@@ -10998,7 +11093,7 @@ extend(zoom, {
|
|
|
10998
11093
|
}
|
|
10999
11094
|
});
|
|
11000
11095
|
|
|
11001
|
-
;//
|
|
11096
|
+
;// ./src/ChartInternal/interactions/zoom.ts
|
|
11002
11097
|
|
|
11003
11098
|
|
|
11004
11099
|
|
|
@@ -11291,7 +11386,7 @@ extend(zoom, {
|
|
|
11291
11386
|
}
|
|
11292
11387
|
});
|
|
11293
11388
|
|
|
11294
|
-
;//
|
|
11389
|
+
;// ./src/ChartInternal/interactions/drag.ts
|
|
11295
11390
|
|
|
11296
11391
|
|
|
11297
11392
|
|
|
@@ -11377,7 +11472,7 @@ extend(zoom, {
|
|
|
11377
11472
|
}
|
|
11378
11473
|
});
|
|
11379
11474
|
|
|
11380
|
-
;//
|
|
11475
|
+
;// ./src/ChartInternal/internals/selection.ts
|
|
11381
11476
|
var selection_defProp = Object.defineProperty;
|
|
11382
11477
|
var __defProps = Object.defineProperties;
|
|
11383
11478
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -11536,7 +11631,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11536
11631
|
}
|
|
11537
11632
|
}));
|
|
11538
11633
|
|
|
11539
|
-
;//
|
|
11634
|
+
;// ./src/config/Options/data/selection.ts
|
|
11540
11635
|
/* harmony default export */ var data_selection = ({
|
|
11541
11636
|
/**
|
|
11542
11637
|
* Set data selection enabled<br><br>
|
|
@@ -11663,7 +11758,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11663
11758
|
}
|
|
11664
11759
|
});
|
|
11665
11760
|
|
|
11666
|
-
;//
|
|
11761
|
+
;// ./src/config/Options/interaction/subchart.ts
|
|
11667
11762
|
/* harmony default export */ var interaction_subchart = ({
|
|
11668
11763
|
/**
|
|
11669
11764
|
* Set subchart options.
|
|
@@ -11731,7 +11826,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11731
11826
|
}
|
|
11732
11827
|
});
|
|
11733
11828
|
|
|
11734
|
-
;//
|
|
11829
|
+
;// ./src/config/Options/interaction/zoom.ts
|
|
11735
11830
|
/* harmony default export */ var interaction_zoom = ({
|
|
11736
11831
|
/**
|
|
11737
11832
|
* Set zoom options
|
|
@@ -11812,7 +11907,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11812
11907
|
zoom_x_max: void 0
|
|
11813
11908
|
});
|
|
11814
11909
|
|
|
11815
|
-
;//
|
|
11910
|
+
;// ./src/config/resolver/interaction.ts
|
|
11816
11911
|
|
|
11817
11912
|
|
|
11818
11913
|
|
|
@@ -11846,7 +11941,7 @@ let zoomModule = () => {
|
|
|
11846
11941
|
return (zoomModule = () => true)();
|
|
11847
11942
|
};
|
|
11848
11943
|
|
|
11849
|
-
;//
|
|
11944
|
+
;// ./src/Chart/api/axis.ts
|
|
11850
11945
|
|
|
11851
11946
|
function setMinMax($$, type, value) {
|
|
11852
11947
|
const { config } = $$;
|
|
@@ -12053,7 +12148,7 @@ const axis = {
|
|
|
12053
12148
|
};
|
|
12054
12149
|
/* harmony default export */ var api_axis = ({ axis });
|
|
12055
12150
|
|
|
12056
|
-
;//
|
|
12151
|
+
;// ./src/Chart/api/category.ts
|
|
12057
12152
|
|
|
12058
12153
|
/* harmony default export */ var api_category = ({
|
|
12059
12154
|
/**
|
|
@@ -12101,7 +12196,7 @@ const axis = {
|
|
|
12101
12196
|
}
|
|
12102
12197
|
});
|
|
12103
12198
|
|
|
12104
|
-
;//
|
|
12199
|
+
;// ./src/Chart/api/flow.ts
|
|
12105
12200
|
|
|
12106
12201
|
/* harmony default export */ var flow = ({
|
|
12107
12202
|
/**
|
|
@@ -12274,7 +12369,7 @@ const axis = {
|
|
|
12274
12369
|
}
|
|
12275
12370
|
});
|
|
12276
12371
|
|
|
12277
|
-
;//
|
|
12372
|
+
;// ./src/Chart/api/grid.ts
|
|
12278
12373
|
|
|
12279
12374
|
function grid(grids, axisId) {
|
|
12280
12375
|
const $$ = this.internal;
|
|
@@ -12407,7 +12502,7 @@ extend(ygrids, {
|
|
|
12407
12502
|
});
|
|
12408
12503
|
/* harmony default export */ var api_grid = ({ xgrids, ygrids });
|
|
12409
12504
|
|
|
12410
|
-
;//
|
|
12505
|
+
;// ./src/Chart/api/group.ts
|
|
12411
12506
|
|
|
12412
12507
|
/* harmony default export */ var group = ({
|
|
12413
12508
|
/**
|
|
@@ -12435,7 +12530,7 @@ extend(ygrids, {
|
|
|
12435
12530
|
}
|
|
12436
12531
|
});
|
|
12437
12532
|
|
|
12438
|
-
;//
|
|
12533
|
+
;// ./src/Chart/api/regions.ts
|
|
12439
12534
|
|
|
12440
12535
|
|
|
12441
12536
|
function regionsFn(regions2, isAdd = false) {
|
|
@@ -12541,7 +12636,7 @@ extend(regions, {
|
|
|
12541
12636
|
});
|
|
12542
12637
|
/* harmony default export */ var api_regions = ({ regions });
|
|
12543
12638
|
|
|
12544
|
-
;//
|
|
12639
|
+
;// ./src/Chart/api/x.ts
|
|
12545
12640
|
|
|
12546
12641
|
/* harmony default export */ var x = ({
|
|
12547
12642
|
/**
|
|
@@ -12607,7 +12702,7 @@ extend(regions, {
|
|
|
12607
12702
|
|
|
12608
12703
|
// EXTERNAL MODULE: external {"commonjs":"d3-axis","commonjs2":"d3-axis","amd":"d3-axis","root":"d3"}
|
|
12609
12704
|
var external_commonjs_d3_axis_commonjs2_d3_axis_amd_d3_axis_root_d3_ = __webpack_require__(11);
|
|
12610
|
-
;//
|
|
12705
|
+
;// ./src/ChartInternal/Axis/AxisRendererHelper.ts
|
|
12611
12706
|
var AxisRendererHelper_defProp = Object.defineProperty;
|
|
12612
12707
|
var AxisRendererHelper_defNormalProp = (obj, key, value) => key in obj ? AxisRendererHelper_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
12613
12708
|
var AxisRendererHelper_publicField = (obj, key, value) => AxisRendererHelper_defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -12630,16 +12725,17 @@ class AxisRendererHelper {
|
|
|
12630
12725
|
}
|
|
12631
12726
|
/**
|
|
12632
12727
|
* Compute a character dimension
|
|
12633
|
-
* @param {d3.selection}
|
|
12728
|
+
* @param {d3.selection} text SVG text selection
|
|
12729
|
+
* @param {boolean} memoize memoize the calculated size
|
|
12634
12730
|
* @returns {{w: number, h: number}}
|
|
12635
12731
|
* @private
|
|
12636
12732
|
*/
|
|
12637
|
-
static getSizeFor1Char(
|
|
12733
|
+
static getSizeFor1Char(text, memoize = true) {
|
|
12638
12734
|
const size = {
|
|
12639
12735
|
w: 5.5,
|
|
12640
12736
|
h: 11.5
|
|
12641
12737
|
};
|
|
12642
|
-
!
|
|
12738
|
+
!text.empty() && text.text("0").call((el) => {
|
|
12643
12739
|
try {
|
|
12644
12740
|
const { width, height } = el.node().getBBox();
|
|
12645
12741
|
if (width && height) {
|
|
@@ -12650,7 +12746,9 @@ class AxisRendererHelper {
|
|
|
12650
12746
|
el.text("");
|
|
12651
12747
|
}
|
|
12652
12748
|
});
|
|
12653
|
-
|
|
12749
|
+
if (memoize) {
|
|
12750
|
+
this.getSizeFor1Char = () => size;
|
|
12751
|
+
}
|
|
12654
12752
|
return size;
|
|
12655
12753
|
}
|
|
12656
12754
|
/**
|
|
@@ -12730,7 +12828,7 @@ class AxisRendererHelper {
|
|
|
12730
12828
|
}
|
|
12731
12829
|
}
|
|
12732
12830
|
|
|
12733
|
-
;//
|
|
12831
|
+
;// ./src/ChartInternal/Axis/AxisRenderer.ts
|
|
12734
12832
|
var AxisRenderer_defProp = Object.defineProperty;
|
|
12735
12833
|
var AxisRenderer_defNormalProp = (obj, key, value) => key in obj ? AxisRenderer_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
12736
12834
|
var AxisRenderer_publicField = (obj, key, value) => AxisRenderer_defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -12792,6 +12890,7 @@ class AxisRenderer {
|
|
|
12792
12890
|
tick: axisShow ? params.config[`${prefix}_tick_show`] : false,
|
|
12793
12891
|
text: axisShow ? params.config[`${prefix}_tick_text_show`] : false
|
|
12794
12892
|
};
|
|
12893
|
+
const evalTextSize = params.config.axis_evalTextSize;
|
|
12795
12894
|
let $g;
|
|
12796
12895
|
g.each(function() {
|
|
12797
12896
|
const g2 = (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this);
|
|
@@ -12814,9 +12913,10 @@ class AxisRenderer {
|
|
|
12814
12913
|
tick = tickEnter.merge(tick);
|
|
12815
12914
|
tickShow.tick && tickEnter.append("line");
|
|
12816
12915
|
tickShow.text && tickEnter.append("text");
|
|
12817
|
-
const
|
|
12916
|
+
const tickText = tick.select("text");
|
|
12917
|
+
const sizeFor1Char = isFunction(evalTextSize) ? evalTextSize.bind(ctx.params.owner.api)(tickText.node()) : AxisRendererHelper.getSizeFor1Char(tickText, evalTextSize);
|
|
12818
12918
|
const counts = [];
|
|
12819
|
-
let tspan =
|
|
12919
|
+
let tspan = tickText.selectAll("tspan").data((d, index) => {
|
|
12820
12920
|
const split = params.tickMultiline ? splitTickText(d, scale1, ticks, isLeftRight, sizeFor1Char.w) : isArray(helper.textFormatted(d)) ? helper.textFormatted(d).concat() : [helper.textFormatted(d)];
|
|
12821
12921
|
counts[index] = split.length;
|
|
12822
12922
|
return split.map((splitted) => ({ index, splitted }));
|
|
@@ -13100,7 +13200,7 @@ class AxisRenderer {
|
|
|
13100
13200
|
}
|
|
13101
13201
|
}
|
|
13102
13202
|
|
|
13103
|
-
;//
|
|
13203
|
+
;// ./src/ChartInternal/Axis/Axis.ts
|
|
13104
13204
|
var Axis_defProp = Object.defineProperty;
|
|
13105
13205
|
var Axis_defNormalProp = (obj, key, value) => key in obj ? Axis_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13106
13206
|
var Axis_publicField = (obj, key, value) => Axis_defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -13882,7 +13982,7 @@ class Axis_Axis {
|
|
|
13882
13982
|
}
|
|
13883
13983
|
}
|
|
13884
13984
|
|
|
13885
|
-
;//
|
|
13985
|
+
;// ./src/ChartInternal/interactions/eventrect.ts
|
|
13886
13986
|
|
|
13887
13987
|
|
|
13888
13988
|
/* harmony default export */ var eventrect = ({
|
|
@@ -14148,7 +14248,7 @@ class Axis_Axis {
|
|
|
14148
14248
|
const shapeAtIndex = main.selectAll(`.${$SHAPE.shape}-${index}`).classed($COMMON.EXPANDED, true).style("cursor", isSelectable ? "pointer" : null).filter(function(d) {
|
|
14149
14249
|
return $$.isWithinShape(this, d);
|
|
14150
14250
|
});
|
|
14151
|
-
if (shapeAtIndex.empty() && !isTooltipGrouped) {
|
|
14251
|
+
if (shapeAtIndex.empty() && !isTooltipGrouped && config.interaction_onout) {
|
|
14152
14252
|
(_b = $$.hideGridFocus) == null ? void 0 : _b.call($$);
|
|
14153
14253
|
$$.hideTooltip();
|
|
14154
14254
|
!isSelectionGrouped && $$.setExpand(index);
|
|
@@ -14281,7 +14381,7 @@ class Axis_Axis {
|
|
|
14281
14381
|
$$.setOverOut(index !== -1, index);
|
|
14282
14382
|
}).on("mouseout", (event) => {
|
|
14283
14383
|
state.event = event;
|
|
14284
|
-
if (!config || $$.hasArcType() || eventReceiver.currentIdx === -1) {
|
|
14384
|
+
if (!config || $$.hasArcType() || eventReceiver.currentIdx === -1 || !config.interaction_onout) {
|
|
14285
14385
|
return;
|
|
14286
14386
|
}
|
|
14287
14387
|
$$.hideAxisGridFocus();
|
|
@@ -14316,7 +14416,7 @@ class Axis_Axis {
|
|
|
14316
14416
|
*/
|
|
14317
14417
|
generateEventRectsForMultipleXs(eventRectEnter) {
|
|
14318
14418
|
const $$ = this;
|
|
14319
|
-
const { state } = $$;
|
|
14419
|
+
const { config, state } = $$;
|
|
14320
14420
|
eventRectEnter.on("click", function(event) {
|
|
14321
14421
|
state.event = event;
|
|
14322
14422
|
$$.clickHandlerForMultipleXS.bind(this)($$);
|
|
@@ -14327,7 +14427,7 @@ class Axis_Axis {
|
|
|
14327
14427
|
$$.selectRectForMultipleXs(this);
|
|
14328
14428
|
}).on("mouseout", (event) => {
|
|
14329
14429
|
state.event = event;
|
|
14330
|
-
if (!$$.config || $$.hasArcType()) {
|
|
14430
|
+
if (!$$.config || $$.hasArcType() || !config.interaction_onout) {
|
|
14331
14431
|
return;
|
|
14332
14432
|
}
|
|
14333
14433
|
$$.unselectRect();
|
|
@@ -14361,7 +14461,7 @@ class Axis_Axis {
|
|
|
14361
14461
|
|
|
14362
14462
|
// EXTERNAL MODULE: external {"commonjs":"d3-ease","commonjs2":"d3-ease","amd":"d3-ease","root":"d3"}
|
|
14363
14463
|
var external_commonjs_d3_ease_commonjs2_d3_ease_amd_d3_ease_root_d3_ = __webpack_require__(12);
|
|
14364
|
-
;//
|
|
14464
|
+
;// ./src/ChartInternal/interactions/flow.ts
|
|
14365
14465
|
|
|
14366
14466
|
|
|
14367
14467
|
|
|
@@ -14542,7 +14642,7 @@ var external_commonjs_d3_ease_commonjs2_d3_ease_amd_d3_ease_root_d3_ = __webpack
|
|
|
14542
14642
|
}
|
|
14543
14643
|
});
|
|
14544
14644
|
|
|
14545
|
-
;//
|
|
14645
|
+
;// ./src/ChartInternal/internals/clip.ts
|
|
14546
14646
|
/* harmony default export */ var clip = ({
|
|
14547
14647
|
initClip() {
|
|
14548
14648
|
const $$ = this;
|
|
@@ -14636,7 +14736,7 @@ var external_commonjs_d3_ease_commonjs2_d3_ease_amd_d3_ease_root_d3_ = __webpack
|
|
|
14636
14736
|
}
|
|
14637
14737
|
});
|
|
14638
14738
|
|
|
14639
|
-
;//
|
|
14739
|
+
;// ./src/ChartInternal/internals/grid.ts
|
|
14640
14740
|
|
|
14641
14741
|
|
|
14642
14742
|
|
|
@@ -14981,7 +15081,7 @@ function smoothLines(el, type) {
|
|
|
14981
15081
|
}
|
|
14982
15082
|
});
|
|
14983
15083
|
|
|
14984
|
-
;//
|
|
15084
|
+
;// ./src/ChartInternal/internals/region.ts
|
|
14985
15085
|
|
|
14986
15086
|
|
|
14987
15087
|
|
|
@@ -15100,7 +15200,7 @@ function smoothLines(el, type) {
|
|
|
15100
15200
|
}
|
|
15101
15201
|
});
|
|
15102
15202
|
|
|
15103
|
-
;//
|
|
15203
|
+
;// ./src/ChartInternal/internals/size.axis.ts
|
|
15104
15204
|
|
|
15105
15205
|
/* harmony default export */ var size_axis = ({
|
|
15106
15206
|
/**
|
|
@@ -15216,7 +15316,7 @@ function smoothLines(el, type) {
|
|
|
15216
15316
|
}
|
|
15217
15317
|
});
|
|
15218
15318
|
|
|
15219
|
-
;//
|
|
15319
|
+
;// ./src/config/Options/axis/x.ts
|
|
15220
15320
|
/* harmony default export */ var axis_x = ({
|
|
15221
15321
|
/**
|
|
15222
15322
|
* Set clip-path attribute for x axis element
|
|
@@ -15928,7 +16028,7 @@ function smoothLines(el, type) {
|
|
|
15928
16028
|
axis_x_axes: []
|
|
15929
16029
|
});
|
|
15930
16030
|
|
|
15931
|
-
;//
|
|
16031
|
+
;// ./src/config/Options/axis/y.ts
|
|
15932
16032
|
/* harmony default export */ var y = ({
|
|
15933
16033
|
/**
|
|
15934
16034
|
* Set clip-path attribute for y axis element
|
|
@@ -16410,8 +16510,20 @@ function smoothLines(el, type) {
|
|
|
16410
16510
|
axis_y_axes: []
|
|
16411
16511
|
});
|
|
16412
16512
|
|
|
16413
|
-
;//
|
|
16513
|
+
;// ./src/config/Options/axis/y2.ts
|
|
16414
16514
|
/* harmony default export */ var y2 = ({
|
|
16515
|
+
/**
|
|
16516
|
+
* Set clip-path attribute for y2 axis element
|
|
16517
|
+
* - **NOTE**: `clip-path` attribute for y2 Axis is set only when `axis.y2.inner` option is true.
|
|
16518
|
+
* @name axis․y2․clipPath
|
|
16519
|
+
* @memberof Options
|
|
16520
|
+
* @type {boolean}
|
|
16521
|
+
* @default true
|
|
16522
|
+
* @example
|
|
16523
|
+
* // don't set 'clip-path' attribute
|
|
16524
|
+
* clipPath: false
|
|
16525
|
+
*/
|
|
16526
|
+
axis_y2_clipPath: true,
|
|
16415
16527
|
/**
|
|
16416
16528
|
* Show or hide y2 axis.
|
|
16417
16529
|
* - **NOTE**:
|
|
@@ -16854,7 +16966,7 @@ function smoothLines(el, type) {
|
|
|
16854
16966
|
axis_y2_axes: []
|
|
16855
16967
|
});
|
|
16856
16968
|
|
|
16857
|
-
;//
|
|
16969
|
+
;// ./src/config/Options/axis/axis.ts
|
|
16858
16970
|
var axis_defProp = Object.defineProperty;
|
|
16859
16971
|
var axis_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
16860
16972
|
var axis_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
@@ -16875,6 +16987,35 @@ var axis_spreadValues = (a, b) => {
|
|
|
16875
16987
|
|
|
16876
16988
|
|
|
16877
16989
|
/* harmony default export */ var axis_axis = (axis_spreadValues(axis_spreadValues(axis_spreadValues({
|
|
16990
|
+
/**
|
|
16991
|
+
* Setup the way to evaluate tick text size.
|
|
16992
|
+
* - **NOTE:**
|
|
16993
|
+
* - Setting `false` or custom evaluator, highly recommended to memoize evaluated text dimension value to not degrade performance.
|
|
16994
|
+
* @name axis․evalTextSize
|
|
16995
|
+
* @memberof Options
|
|
16996
|
+
* @type {boolean|Function}
|
|
16997
|
+
* @default true
|
|
16998
|
+
* @example
|
|
16999
|
+
* axis: {
|
|
17000
|
+
* // will evaluate getting text size every time.
|
|
17001
|
+
* evalTextSize: false.
|
|
17002
|
+
*
|
|
17003
|
+
* // set a custom evaluator
|
|
17004
|
+
* evalTextSize: function(textElement) {
|
|
17005
|
+
* // set some character to be evaluated
|
|
17006
|
+
* text.textContent = "0";
|
|
17007
|
+
*
|
|
17008
|
+
* // get the size
|
|
17009
|
+
* const box = text.getBBox();
|
|
17010
|
+
*
|
|
17011
|
+
* // clear text
|
|
17012
|
+
* text.textContent = "";
|
|
17013
|
+
*
|
|
17014
|
+
* return { w: 7, h: 12};
|
|
17015
|
+
* }
|
|
17016
|
+
* }
|
|
17017
|
+
*/
|
|
17018
|
+
axis_evalTextSize: true,
|
|
16878
17019
|
/**
|
|
16879
17020
|
* Switch x and y axis position.
|
|
16880
17021
|
* @name axis․rotated
|
|
@@ -16922,7 +17063,7 @@ var axis_spreadValues = (a, b) => {
|
|
|
16922
17063
|
axis_tooltip: false
|
|
16923
17064
|
}, axis_x), y), y2));
|
|
16924
17065
|
|
|
16925
|
-
;//
|
|
17066
|
+
;// ./src/config/Options/common/grid.ts
|
|
16926
17067
|
/* harmony default export */ var common_grid = ({
|
|
16927
17068
|
/**
|
|
16928
17069
|
* Set related options
|
|
@@ -16995,7 +17136,7 @@ var axis_spreadValues = (a, b) => {
|
|
|
16995
17136
|
grid_lines_front: true
|
|
16996
17137
|
});
|
|
16997
17138
|
|
|
16998
|
-
;//
|
|
17139
|
+
;// ./src/config/Options/data/axis.ts
|
|
16999
17140
|
/* harmony default export */ var data_axis = ({
|
|
17000
17141
|
/**
|
|
17001
17142
|
* Specify the keys of the x values for each data.<br><br>
|
|
@@ -17140,7 +17281,7 @@ var axis_spreadValues = (a, b) => {
|
|
|
17140
17281
|
data_stack_normalize: false
|
|
17141
17282
|
});
|
|
17142
17283
|
|
|
17143
|
-
;//
|
|
17284
|
+
;// ./src/config/resolver/axis.ts
|
|
17144
17285
|
|
|
17145
17286
|
|
|
17146
17287
|
|
|
@@ -17184,7 +17325,7 @@ const options = {
|
|
|
17184
17325
|
|
|
17185
17326
|
// EXTERNAL MODULE: external {"commonjs":"d3-interpolate","commonjs2":"d3-interpolate","amd":"d3-interpolate","root":"d3"}
|
|
17186
17327
|
var external_commonjs_d3_interpolate_commonjs2_d3_interpolate_amd_d3_interpolate_root_d3_ = __webpack_require__(13);
|
|
17187
|
-
;//
|
|
17328
|
+
;// ./src/ChartInternal/shape/arc.ts
|
|
17188
17329
|
var arc_defProp = Object.defineProperty;
|
|
17189
17330
|
var arc_defProps = Object.defineProperties;
|
|
17190
17331
|
var arc_getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -17953,7 +18094,7 @@ function getAttrTweenFn(fn) {
|
|
|
17953
18094
|
selectArc(this, arcData, id);
|
|
17954
18095
|
$$.setOverOut(true, arcData);
|
|
17955
18096
|
}).on("mouseout", (event, d) => {
|
|
17956
|
-
if (state.transiting) {
|
|
18097
|
+
if (state.transiting || !config.interaction_onout) {
|
|
17957
18098
|
return;
|
|
17958
18099
|
}
|
|
17959
18100
|
state.event = event;
|
|
@@ -18028,7 +18169,7 @@ function getAttrTweenFn(fn) {
|
|
|
18028
18169
|
}
|
|
18029
18170
|
});
|
|
18030
18171
|
|
|
18031
|
-
;//
|
|
18172
|
+
;// ./src/ChartInternal/shape/area.ts
|
|
18032
18173
|
|
|
18033
18174
|
|
|
18034
18175
|
|
|
@@ -18161,7 +18302,7 @@ function getAttrTweenFn(fn) {
|
|
|
18161
18302
|
}
|
|
18162
18303
|
});
|
|
18163
18304
|
|
|
18164
|
-
;//
|
|
18305
|
+
;// ./src/ChartInternal/shape/bar.ts
|
|
18165
18306
|
|
|
18166
18307
|
|
|
18167
18308
|
/* harmony default export */ var bar = ({
|
|
@@ -18359,7 +18500,7 @@ function getAttrTweenFn(fn) {
|
|
|
18359
18500
|
}
|
|
18360
18501
|
});
|
|
18361
18502
|
|
|
18362
|
-
;//
|
|
18503
|
+
;// ./src/ChartInternal/shape/bubble.ts
|
|
18363
18504
|
|
|
18364
18505
|
|
|
18365
18506
|
/* harmony default export */ var bubble = ({
|
|
@@ -18421,7 +18562,7 @@ function getAttrTweenFn(fn) {
|
|
|
18421
18562
|
}
|
|
18422
18563
|
});
|
|
18423
18564
|
|
|
18424
|
-
;//
|
|
18565
|
+
;// ./src/ChartInternal/shape/candlestick.ts
|
|
18425
18566
|
var candlestick_defProp = Object.defineProperty;
|
|
18426
18567
|
var candlestick_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
18427
18568
|
var candlestick_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
@@ -18617,7 +18758,7 @@ var candlestick_spreadValues = (a, b) => {
|
|
|
18617
18758
|
}
|
|
18618
18759
|
});
|
|
18619
18760
|
|
|
18620
|
-
;//
|
|
18761
|
+
;// ./src/ChartInternal/shape/funnel.ts
|
|
18621
18762
|
var funnel_defProp = Object.defineProperty;
|
|
18622
18763
|
var funnel_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
18623
18764
|
var funnel_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
@@ -18789,8 +18930,10 @@ function updateRatio(data) {
|
|
|
18789
18930
|
}
|
|
18790
18931
|
}).on(isTouch ? "touchend" : "mouseout", (event) => {
|
|
18791
18932
|
const data = getTarget(event);
|
|
18792
|
-
|
|
18793
|
-
|
|
18933
|
+
if (config.interaction_onout) {
|
|
18934
|
+
$$.hideTooltip();
|
|
18935
|
+
$$.setOverOut(false, data);
|
|
18936
|
+
}
|
|
18794
18937
|
});
|
|
18795
18938
|
}
|
|
18796
18939
|
},
|
|
@@ -18863,7 +19006,7 @@ function updateRatio(data) {
|
|
|
18863
19006
|
}
|
|
18864
19007
|
});
|
|
18865
19008
|
|
|
18866
|
-
;//
|
|
19009
|
+
;// ./src/ChartInternal/shape/gauge.ts
|
|
18867
19010
|
|
|
18868
19011
|
|
|
18869
19012
|
|
|
@@ -18941,7 +19084,7 @@ function updateRatio(data) {
|
|
|
18941
19084
|
}
|
|
18942
19085
|
});
|
|
18943
19086
|
|
|
18944
|
-
;//
|
|
19087
|
+
;// ./src/ChartInternal/shape/line.ts
|
|
18945
19088
|
|
|
18946
19089
|
|
|
18947
19090
|
|
|
@@ -19244,7 +19387,7 @@ function getRegions(d, _regions, isTimeSeries) {
|
|
|
19244
19387
|
}
|
|
19245
19388
|
});
|
|
19246
19389
|
|
|
19247
|
-
;//
|
|
19390
|
+
;// ./src/ChartInternal/shape/point.ts
|
|
19248
19391
|
|
|
19249
19392
|
|
|
19250
19393
|
|
|
@@ -19632,7 +19775,7 @@ const getTransitionName = () => getRandom();
|
|
|
19632
19775
|
}
|
|
19633
19776
|
});
|
|
19634
19777
|
|
|
19635
|
-
;//
|
|
19778
|
+
;// ./src/ChartInternal/shape/point.common.ts
|
|
19636
19779
|
|
|
19637
19780
|
|
|
19638
19781
|
|
|
@@ -19729,7 +19872,7 @@ function insertPointInfoDefs(point, id) {
|
|
|
19729
19872
|
}
|
|
19730
19873
|
});
|
|
19731
19874
|
|
|
19732
|
-
;//
|
|
19875
|
+
;// ./src/ChartInternal/shape/polar.ts
|
|
19733
19876
|
|
|
19734
19877
|
|
|
19735
19878
|
function getDataMax($$) {
|
|
@@ -19812,7 +19955,7 @@ function getDataMax($$) {
|
|
|
19812
19955
|
}
|
|
19813
19956
|
});
|
|
19814
19957
|
|
|
19815
|
-
;//
|
|
19958
|
+
;// ./src/ChartInternal/shape/radar.ts
|
|
19816
19959
|
|
|
19817
19960
|
|
|
19818
19961
|
|
|
@@ -20014,12 +20157,15 @@ const cacheKeyTextWidth = KEY.radarTextWidth;
|
|
|
20014
20157
|
},
|
|
20015
20158
|
bindRadarEvent() {
|
|
20016
20159
|
const $$ = this;
|
|
20017
|
-
const { state, $el: { radar, svg } } = $$;
|
|
20160
|
+
const { config, state, $el: { radar, svg } } = $$;
|
|
20018
20161
|
const focusOnly = $$.isPointFocusOnly();
|
|
20019
20162
|
const { inputType, transiting } = state;
|
|
20020
20163
|
const isMouse = inputType === "mouse";
|
|
20021
20164
|
const hide = (event) => {
|
|
20022
20165
|
state.event = event;
|
|
20166
|
+
if (!config.interaction_onout) {
|
|
20167
|
+
return;
|
|
20168
|
+
}
|
|
20023
20169
|
const index = $$.getDataIndexFromEvent(event);
|
|
20024
20170
|
const noIndex = isUndefined(index);
|
|
20025
20171
|
if (isMouse || noIndex) {
|
|
@@ -20077,7 +20223,7 @@ const cacheKeyTextWidth = KEY.radarTextWidth;
|
|
|
20077
20223
|
|
|
20078
20224
|
// EXTERNAL MODULE: external {"commonjs":"d3-hierarchy","commonjs2":"d3-hierarchy","amd":"d3-hierarchy","root":"d3"}
|
|
20079
20225
|
var external_commonjs_d3_hierarchy_commonjs2_d3_hierarchy_amd_d3_hierarchy_root_d3_ = __webpack_require__(14);
|
|
20080
|
-
;//
|
|
20226
|
+
;// ./src/ChartInternal/shape/treemap.ts
|
|
20081
20227
|
|
|
20082
20228
|
|
|
20083
20229
|
|
|
@@ -20155,8 +20301,10 @@ function getHierachyData(data) {
|
|
|
20155
20301
|
}
|
|
20156
20302
|
}).on(isTouch ? "touchend" : "mouseout", (event) => {
|
|
20157
20303
|
const data = getTarget(event);
|
|
20158
|
-
|
|
20159
|
-
|
|
20304
|
+
if (config.interaction_onout) {
|
|
20305
|
+
$$.hideTooltip();
|
|
20306
|
+
$$.setOverOut(false, data);
|
|
20307
|
+
}
|
|
20160
20308
|
});
|
|
20161
20309
|
}
|
|
20162
20310
|
},
|
|
@@ -20285,7 +20433,7 @@ ${percentValue}%`;
|
|
|
20285
20433
|
}
|
|
20286
20434
|
});
|
|
20287
20435
|
|
|
20288
|
-
;//
|
|
20436
|
+
;// ./src/config/Options/common/point.ts
|
|
20289
20437
|
/* harmony default export */ var common_point = ({
|
|
20290
20438
|
/**
|
|
20291
20439
|
* Set point options
|
|
@@ -20441,7 +20589,7 @@ ${percentValue}%`;
|
|
|
20441
20589
|
point_type: "circle"
|
|
20442
20590
|
});
|
|
20443
20591
|
|
|
20444
|
-
;//
|
|
20592
|
+
;// ./src/config/Options/shape/area.ts
|
|
20445
20593
|
/* harmony default export */ var Options_shape_area = ({
|
|
20446
20594
|
/**
|
|
20447
20595
|
* Set area options
|
|
@@ -20507,7 +20655,7 @@ ${percentValue}%`;
|
|
|
20507
20655
|
area_zerobased: true
|
|
20508
20656
|
});
|
|
20509
20657
|
|
|
20510
|
-
;//
|
|
20658
|
+
;// ./src/config/Options/shape/bar.ts
|
|
20511
20659
|
/* harmony default export */ var shape_bar = ({
|
|
20512
20660
|
/**
|
|
20513
20661
|
* Set bar options
|
|
@@ -20650,7 +20798,7 @@ ${percentValue}%`;
|
|
|
20650
20798
|
bar_zerobased: true
|
|
20651
20799
|
});
|
|
20652
20800
|
|
|
20653
|
-
;//
|
|
20801
|
+
;// ./src/config/Options/shape/bubble.ts
|
|
20654
20802
|
/* harmony default export */ var shape_bubble = ({
|
|
20655
20803
|
/**
|
|
20656
20804
|
* Set bubble options
|
|
@@ -20679,7 +20827,7 @@ ${percentValue}%`;
|
|
|
20679
20827
|
bubble_zerobased: false
|
|
20680
20828
|
});
|
|
20681
20829
|
|
|
20682
|
-
;//
|
|
20830
|
+
;// ./src/config/Options/shape/candlestick.ts
|
|
20683
20831
|
/* harmony default export */ var shape_candlestick = ({
|
|
20684
20832
|
/**
|
|
20685
20833
|
* Set candlestick options
|
|
@@ -20734,7 +20882,7 @@ ${percentValue}%`;
|
|
|
20734
20882
|
candlestick_color_down: "red"
|
|
20735
20883
|
});
|
|
20736
20884
|
|
|
20737
|
-
;//
|
|
20885
|
+
;// ./src/config/Options/shape/line.ts
|
|
20738
20886
|
/* harmony default export */ var shape_line = ({
|
|
20739
20887
|
/**
|
|
20740
20888
|
* Set line options
|
|
@@ -20786,7 +20934,7 @@ ${percentValue}%`;
|
|
|
20786
20934
|
line_point: true
|
|
20787
20935
|
});
|
|
20788
20936
|
|
|
20789
|
-
;//
|
|
20937
|
+
;// ./src/config/Options/shape/scatter.ts
|
|
20790
20938
|
/* harmony default export */ var scatter = ({
|
|
20791
20939
|
/**
|
|
20792
20940
|
* Set scatter options
|
|
@@ -20816,7 +20964,7 @@ ${percentValue}%`;
|
|
|
20816
20964
|
scatter_zerobased: false
|
|
20817
20965
|
});
|
|
20818
20966
|
|
|
20819
|
-
;//
|
|
20967
|
+
;// ./src/config/Options/shape/spline.ts
|
|
20820
20968
|
/* harmony default export */ var spline = ({
|
|
20821
20969
|
/**
|
|
20822
20970
|
* Set spline options
|
|
@@ -20856,7 +21004,7 @@ ${percentValue}%`;
|
|
|
20856
21004
|
spline_interpolation_type: "cardinal"
|
|
20857
21005
|
});
|
|
20858
21006
|
|
|
20859
|
-
;//
|
|
21007
|
+
;// ./src/config/Options/shape/arc.ts
|
|
20860
21008
|
/* harmony default export */ var shape_arc = ({
|
|
20861
21009
|
/**
|
|
20862
21010
|
* Set arc options
|
|
@@ -21000,7 +21148,7 @@ ${percentValue}%`;
|
|
|
21000
21148
|
arc_rangeText_position: void 0
|
|
21001
21149
|
});
|
|
21002
21150
|
|
|
21003
|
-
;//
|
|
21151
|
+
;// ./src/config/Options/shape/donut.ts
|
|
21004
21152
|
/* harmony default export */ var donut = ({
|
|
21005
21153
|
/**
|
|
21006
21154
|
* Set donut options
|
|
@@ -21081,7 +21229,7 @@ ${percentValue}%`;
|
|
|
21081
21229
|
donut_startingAngle: 0
|
|
21082
21230
|
});
|
|
21083
21231
|
|
|
21084
|
-
;//
|
|
21232
|
+
;// ./src/config/Options/shape/funnel.ts
|
|
21085
21233
|
/* harmony default export */ var shape_funnel = ({
|
|
21086
21234
|
/**
|
|
21087
21235
|
* Set funnel options
|
|
@@ -21114,7 +21262,7 @@ ${percentValue}%`;
|
|
|
21114
21262
|
funnel_neck_height: 0
|
|
21115
21263
|
});
|
|
21116
21264
|
|
|
21117
|
-
;//
|
|
21265
|
+
;// ./src/config/Options/shape/gauge.ts
|
|
21118
21266
|
/* harmony default export */ var shape_gauge = ({
|
|
21119
21267
|
/**
|
|
21120
21268
|
* Set gauge options
|
|
@@ -21258,7 +21406,7 @@ ${percentValue}%`;
|
|
|
21258
21406
|
gauge_expand_duration: 50
|
|
21259
21407
|
});
|
|
21260
21408
|
|
|
21261
|
-
;//
|
|
21409
|
+
;// ./src/config/Options/shape/pie.ts
|
|
21262
21410
|
/* harmony default export */ var pie = ({
|
|
21263
21411
|
/**
|
|
21264
21412
|
* Set pie options
|
|
@@ -21352,7 +21500,7 @@ ${percentValue}%`;
|
|
|
21352
21500
|
pie_startingAngle: 0
|
|
21353
21501
|
});
|
|
21354
21502
|
|
|
21355
|
-
;//
|
|
21503
|
+
;// ./src/config/Options/shape/polar.ts
|
|
21356
21504
|
/* harmony default export */ var shape_polar = ({
|
|
21357
21505
|
/**
|
|
21358
21506
|
* Set polar options
|
|
@@ -21428,7 +21576,7 @@ ${percentValue}%`;
|
|
|
21428
21576
|
polar_startingAngle: 0
|
|
21429
21577
|
});
|
|
21430
21578
|
|
|
21431
|
-
;//
|
|
21579
|
+
;// ./src/config/Options/shape/radar.ts
|
|
21432
21580
|
/* harmony default export */ var shape_radar = ({
|
|
21433
21581
|
/**
|
|
21434
21582
|
* Set radar options
|
|
@@ -21498,7 +21646,7 @@ ${percentValue}%`;
|
|
|
21498
21646
|
radar_direction_clockwise: false
|
|
21499
21647
|
});
|
|
21500
21648
|
|
|
21501
|
-
;//
|
|
21649
|
+
;// ./src/config/Options/shape/treemap.ts
|
|
21502
21650
|
/* harmony default export */ var shape_treemap = ({
|
|
21503
21651
|
/**
|
|
21504
21652
|
* Set treemap options
|
|
@@ -21546,7 +21694,7 @@ ${percentValue}%`;
|
|
|
21546
21694
|
treemap_label_show: true
|
|
21547
21695
|
});
|
|
21548
21696
|
|
|
21549
|
-
;//
|
|
21697
|
+
;// ./src/config/resolver/shape.ts
|
|
21550
21698
|
|
|
21551
21699
|
|
|
21552
21700
|
|
|
@@ -21629,7 +21777,7 @@ let shape_scatter = () => (extendAxis(
|
|
|
21629
21777
|
let resolver_shape_funnel = () => (extendArc([funnel], [shape_funnel]), (resolver_shape_funnel = () => TYPE.FUNNEL)());
|
|
21630
21778
|
let resolver_shape_treemap = () => (extendAxis([treemap], [shape_treemap]), (resolver_shape_treemap = () => TYPE.TREEMAP)());
|
|
21631
21779
|
|
|
21632
|
-
;//
|
|
21780
|
+
;// ./src/core.ts
|
|
21633
21781
|
|
|
21634
21782
|
|
|
21635
21783
|
let defaults = {};
|
|
@@ -21641,7 +21789,7 @@ const bb = {
|
|
|
21641
21789
|
* bb.version; // "1.0.0"
|
|
21642
21790
|
* @memberof bb
|
|
21643
21791
|
*/
|
|
21644
|
-
version: "3.
|
|
21792
|
+
version: "3.14.0-next.1",
|
|
21645
21793
|
/**
|
|
21646
21794
|
* Generate chart
|
|
21647
21795
|
* - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
|
|
@@ -21771,7 +21919,7 @@ const bb = {
|
|
|
21771
21919
|
};
|
|
21772
21920
|
|
|
21773
21921
|
|
|
21774
|
-
;//
|
|
21922
|
+
;// ./src/index.ts
|
|
21775
21923
|
|
|
21776
21924
|
|
|
21777
21925
|
Object.keys(resolver_shape_namespaceObject).forEach((v) => resolver_shape_namespaceObject[v]());
|