billboard.js 3.5.0-next.2 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/billboard.css +1 -1
- package/dist/billboard.js +116 -91
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +2 -2
- package/dist/billboard.pkgd.js +124 -96
- package/dist/billboard.pkgd.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +10 -7
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +10 -7
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +10 -7
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +10 -7
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +10 -7
- 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-esm/billboard.js +86 -60
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
- package/package.json +14 -14
- package/src/ChartInternal/ChartInternal.ts +2 -11
- package/src/ChartInternal/internals/class.ts +1 -1
- package/src/ChartInternal/internals/color.ts +1 -25
- package/src/ChartInternal/internals/legend.ts +21 -6
- package/src/ChartInternal/internals/style.ts +54 -0
- package/src/ChartInternal/internals/text.ts +3 -4
- package/src/ChartInternal/shape/arc.ts +4 -3
- package/src/ChartInternal/shape/bar.ts +6 -5
- package/src/ChartInternal/shape/line.ts +3 -2
- package/src/ChartInternal/shape/point.ts +8 -6
- package/src/config/Store/State.ts +1 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.5.0
|
|
8
|
+
* @version 3.5.0
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -1114,10 +1114,10 @@ var store = __webpack_require__(35);
|
|
|
1114
1114
|
(module.exports = function (key, value) {
|
|
1115
1115
|
return store[key] || (store[key] = value !== undefined ? value : {});
|
|
1116
1116
|
})('versions', []).push({
|
|
1117
|
-
version: '3.23.
|
|
1117
|
+
version: '3.23.3',
|
|
1118
1118
|
mode: IS_PURE ? 'pure' : 'global',
|
|
1119
1119
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
1120
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.23.
|
|
1120
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE',
|
|
1121
1121
|
source: 'https://github.com/zloirock/core-js'
|
|
1122
1122
|
});
|
|
1123
1123
|
|
|
@@ -1357,8 +1357,10 @@ module.exports = function (O, key, value, options) {
|
|
|
1357
1357
|
if (simple) O[key] = value;
|
|
1358
1358
|
else defineGlobalProperty(key, value);
|
|
1359
1359
|
} else {
|
|
1360
|
-
|
|
1361
|
-
|
|
1360
|
+
try {
|
|
1361
|
+
if (!options.unsafe) delete O[key];
|
|
1362
|
+
else if (O[key]) simple = true;
|
|
1363
|
+
} catch (error) { /* empty */ }
|
|
1362
1364
|
if (simple) O[key] = value;
|
|
1363
1365
|
else definePropertyModule.f(O, key, {
|
|
1364
1366
|
value: value,
|
|
@@ -1400,7 +1402,8 @@ var makeBuiltIn = module.exports = function (value, name, options) {
|
|
|
1400
1402
|
if (options && options.getter) name = 'get ' + name;
|
|
1401
1403
|
if (options && options.setter) name = 'set ' + name;
|
|
1402
1404
|
if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
1403
|
-
defineProperty(value, 'name', { value: name, configurable: true });
|
|
1405
|
+
if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
|
|
1406
|
+
else value.name = name;
|
|
1404
1407
|
}
|
|
1405
1408
|
if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
|
|
1406
1409
|
defineProperty(value, 'length', { value: options.arity });
|
|
@@ -26563,7 +26566,7 @@ var Plugin = /*#__PURE__*/function () {
|
|
|
26563
26566
|
return Plugin;
|
|
26564
26567
|
}();
|
|
26565
26568
|
|
|
26566
|
-
Plugin.version = "3.5.0
|
|
26569
|
+
Plugin.version = "3.5.0";
|
|
26567
26570
|
|
|
26568
26571
|
;// CONCATENATED MODULE: ./src/Plugin/textoverlap/Options.ts
|
|
26569
26572
|
/**
|
package/dist/theme/datalab.css
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.5.0
|
|
8
|
+
* @version 3.5.0
|
|
9
9
|
*/.bb-color-pattern{background-image:url(#2ac4b3;#feaf29;#ff617b;#73a2ef;#b180d0;#3064cf;#d0a45f;#8aaec7;#ef65a2;#8aaec7;)}.bb svg{font-family:Sans Pro,Arial,sans-serif,nanumgothic,Dotum;font-size:11px;line-height:1}.bb line,.bb path{fill:none;stroke:#000}.bb .bb-button,.bb text{-webkit-font-smoothing:antialiased;fill:#555;font-size:11px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bb-axis{stroke-width:.7px}.bb-axis-y text,.bb-axis-y2 text{fill:#737373}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:rgba(39,201,3,.05)}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#f1f1f1}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#ddd}.bb-text.bb-empty{fill:#767676}.bb-line{stroke-width:.7px}.bb-circle{fill:#fff!important}.bb-circle._expanded_{stroke-width:2px}.bb-selected-circle{fill:#fff;stroke-width:2px}.bb-bar{stroke-width:1px}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-circles.bb-focused,.bb-target.bb-focused{opacity:1}.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step,.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step{stroke-width:2px}.bb-circles.bb-defocused,.bb-target.bb-defocused{opacity:.3!important}.bb-circles.bb-defocused .text-overlapping,.bb-target.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4;fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-brush .extent,.bb-zoom-brush{fill-opacity:.1}.bb-legend-item{user-select:none}.bb-legend-item line.bb-legend-item-tile{stroke-linecap:round;stroke-width:8px;stroke-dasharray:1 20;transform:translate(7px,1px)}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{fill:#fff;stroke:#d3d3d3;stroke-width:1;opacity:.75}.bb-title{font-size:14px}.bb-tooltip-container{font-family:Sans Pro,Arial,sans-serif,nanumgothic,Dotum;user-select:none;z-index:10}.bb-tooltip{-webkit-font-smoothing:antialiased;background-color:#fff;border:1px solid #999;border-collapse:separate;border-radius:2px;border-spacing:0;empty-cells:show;font-size:11px;text-align:left}.bb-tooltip th{background-color:#0b00b1;border-bottom:2px solid #ff2d2d;color:#fffdfd;font-size:13px;padding:2px 8px;text-align:left}.bb-tooltip td{padding:4px 6px}.bb-tooltip td:first-child{padding-left:8px}.bb-tooltip td:last-child{padding-right:8px}.bb-tooltip td>span,.bb-tooltip td>svg{border:1px solid #000;border-radius:3px;display:inline-block;height:8px;margin-right:6px;vertical-align:middle;width:8px}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{color:#aaa;display:inline-block;line-height:20px}.bb-tooltip .bb-tooltip-detail table{border-collapse:collapse;border-spacing:0}.bb-tooltip .bb-tooltip-detail .bb-tooltip-name,.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{color:#444;font-size:11px;font-weight:400;line-height:13px;padding:4px 0 3px;text-align:left}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{font-size:11px;font-weight:800;padding-left:5px}.bb-area{stroke-width:0;opacity:.2}.bb-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}text.bb-chart-arcs-gauge-title{dominant-baseline:middle;font-size:2.7em}.bb-chart-arcs .bb-chart-arcs-background{fill:#e0e0e0;stroke:none}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#000;font-size:18px}.bb-chart-arcs .bb-chart-arcs-gauge-max,.bb-chart-arcs .bb-chart-arcs-gauge-min{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{fill:#000;font-size:18px!important;font-weight:600}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.bb-chart-arc .bb-gauge-value{fill:#3b6969}.bb-chart-arc path{stroke:#000;stroke-width:.5px}.bb-chart-arc rect{stroke:#fff;stroke-width:1}.bb-chart-arc text{fill:#fff;font-size:14px}.bb-chart-radars .bb-levels polygon{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-levels text{fill:#848282}.bb-chart-radars .bb-axis line{stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-axis text{cursor:default;font-size:1.15em}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:.7px}.bb-button{position:absolute;right:10px;top:10px}.bb-button .bb-zoom-reset{background-color:#fff;border:1px solid #ccc;border-radius:5px;cursor:pointer;padding:5px}
|
package/dist/theme/graph.css
CHANGED
package/dist/theme/graph.min.css
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.5.0
|
|
8
|
+
* @version 3.5.0
|
|
9
9
|
*/.bb-color-pattern{background-image:url(#65CFC2;#D0A45F;#64A4F5;#EF65A2;#A377FE;#8AAEC7;#FF7E5A;#898EFE;#FFAC35;#70B0FF;)}.bb svg{font-family:Helvetica,Apple SD Gothic Neo,Arial,sans-serif,nanumgothic,Dotum;font-size:12px;line-height:1}.bb line,.bb path{fill:none;stroke:#8c8c8c}.bb .bb-button,.bb text{fill:#555;font-size:12px;letter-spacing:-.3px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bb-axis,.bb-bars path,.bb-event-rect,.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid,.bb-ygrid-focus{shape-rendering:crispEdges}.bb-axis-y text,.bb-axis-y2 text{fill:#8c8c8c}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:rgba(39,201,3,.05)}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#f1f1f1}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#ffb6b6;stroke-dasharray:3px}.bb-text.bb-empty{fill:#767676}.bb-line{stroke-width:1px}.bb-circle._expanded_,rect.bb-circle._expanded_,use.bb-circle._expanded_{stroke-width:2px}.bb-selected-circle{fill:#fff;stroke-width:2px}.bb-bar{stroke-width:0}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-circles.bb-focused,.bb-target.bb-focused{opacity:1}.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step,.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step{stroke-width:2px}.bb-circles.bb-defocused,.bb-target.bb-defocused{opacity:.3!important}.bb-circles.bb-defocused .text-overlapping,.bb-target.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4;fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-brush .extent,.bb-zoom-brush{fill-opacity:.1}.bb-legend-item{user-select:none}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{fill:#fff;stroke:#d3d3d3;stroke-width:1px;opacity:.75}.bb-legend-item line{stroke-dasharray:1px}.bb-title{font-size:14px}.bb-tooltip-container{font-family:Helvetica,Apple SD Gothic Neo,Arial,sans-serif,nanumgothic,Dotum;user-select:none;z-index:10}.bb-tooltip{background-color:#fff;border:1px solid #999;border-collapse:separate;border-radius:2px;border-spacing:0;box-shadow:.5px .5px 1px #999;empty-cells:show;font-size:12px;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bb-tooltip th{background-color:#efefef;border-bottom:1px dotted #000;color:#000;font-size:12px;padding:4px 8px;text-align:center}.bb-tooltip tr:last-child td{border-bottom:none}.bb-tooltip td{background-color:#fff;border-bottom:1px solid #eee;padding:3px 6px}.bb-tooltip td:first-child{border-right:1px solid #eee;padding-left:5px}.bb-tooltip td:last-child{padding-right:5px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;height:12px;margin-right:6px;vertical-align:middle;width:5px}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{color:#aaa;display:inline-block;line-height:20px}.bb-tooltip .bb-tooltip-detail table{border-collapse:collapse;border-spacing:1px;font-size:12px}.bb-tooltip .bb-tooltip-detail .bb-tooltip-name,.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{color:#444;font-weight:400;line-height:13px;padding:4px 0 3px;text-align:left}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{font-weight:800;padding-left:5px}.bb-area{stroke-width:0;opacity:.2}.bb-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}text.bb-chart-arcs-gauge-title{dominant-baseline:middle;font-size:2.7em}.bb-chart-arcs .bb-chart-arcs-background{fill:#e0e0e0;stroke:#fff}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#000;font-size:16px}.bb-chart-arcs .bb-chart-arcs-gauge-max,.bb-chart-arcs .bb-chart-arcs-gauge-min{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{fill:#8c8c8c;font-size:16px!important;font-style:italic}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.bb-chart-arc .bb-gauge-value{fill:#8c8c8c;font-style:italic}.bb-chart-arc path{stroke:#fff}.bb-chart-arc rect{stroke:#fff;stroke-width:1}.bb-chart-arc text{fill:#fff;font-size:13px;font-weight:700}.bb-chart-radars .bb-levels polygon{fill:none;stroke:#8c8c8c;stroke-width:.5px}.bb-chart-radars .bb-levels text{fill:#8c8c8c}.bb-chart-radars .bb-axis line{stroke:#8c8c8c;stroke-width:.5px}.bb-chart-radars .bb-axis text{cursor:default;font-size:1.15em;font-weight:700}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;right:10px;top:10px}.bb-button .bb-zoom-reset{background-color:#fff;border:1px solid #ccc;border-radius:5px;box-shadow:1px 1px 2px #ccc;cursor:pointer;opacity:.8;padding:5px}
|
package/dist/theme/insight.css
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.5.0
|
|
8
|
+
* @version 3.5.0
|
|
9
9
|
*/.bb-color-pattern{background-image:url(#00c73c;#fa7171;#2ad0ff;#7294ce;#e3e448;#cc7e6e;#fb6ccf;#c98dff;#4aea99;#bbbbbb;)}.bb svg{font-family:sans-serif,Arial,nanumgothic,Dotum;font-size:12px;line-height:1}.bb line,.bb path{fill:none;stroke:#c4c4c4}.bb .bb-button,.bb text{fill:#555;font-size:11px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bb-axis,.bb-bars path,.bb-event-rect,.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid,.bb-ygrid-focus{shape-rendering:crispEdges}.bb-axis-y text,.bb-axis-y2 text{fill:#737373}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:rgba(39,201,3,.05)}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#f1f1f1}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#ddd}.bb-text.bb-empty{fill:#767676}.bb-line{stroke-width:1px}.bb-circle._expanded_{fill:#fff!important;stroke-width:2px;stroke:red}rect.bb-circle._expanded_,use.bb-circle._expanded_{stroke-width:1px}.bb-selected-circle{fill:#fff;stroke-width:2px}.bb-bar{stroke-width:0}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-circles.bb-focused,.bb-target.bb-focused{opacity:1}.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step,.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step{stroke-width:2px}.bb-circles.bb-defocused,.bb-target.bb-defocused{opacity:.3!important}.bb-circles.bb-defocused .text-overlapping,.bb-target.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4;fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-brush .extent,.bb-zoom-brush{fill-opacity:.1}.bb-legend-item{user-select:none}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{fill:#fff;stroke:#d3d3d3;stroke-width:1;opacity:.75}.bb-title{font-size:14px}.bb-tooltip-container{font-family:sans-serif,Arial,nanumgothic,Dotum;user-select:none;z-index:10}.bb-tooltip{background-color:#fff;border:1px solid #999;border-collapse:separate;border-spacing:0;empty-cells:show;font-size:11px;text-align:left}.bb-tooltip th{border-bottom:1px solid #eee;font-size:12px;padding:4px 8px;text-align:left}.bb-tooltip td{background-color:#fff;padding:4px 6px}.bb-tooltip td:first-child{padding-left:8px}.bb-tooltip td:last-child{padding-right:8px}.bb-tooltip td>span,.bb-tooltip td>svg{border-radius:5px;display:inline-block;height:10px;margin-right:6px;vertical-align:middle;width:10px}.bb-tooltip td.value{border-left:1px solid transparent}.bb-tooltip .bb-tooltip-title{color:#aaa;display:inline-block;line-height:20px}.bb-tooltip .bb-tooltip-detail table{border-collapse:collapse;border-spacing:0}.bb-tooltip .bb-tooltip-detail .bb-tooltip-name,.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{color:#444;font-size:11px;font-weight:400;line-height:13px;padding:4px 0 3px;text-align:left}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{font-size:12px;font-weight:800;padding-left:5px}.bb-area{stroke-width:0;opacity:.2}.bb-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}text.bb-chart-arcs-gauge-title{dominant-baseline:middle;font-size:2.7em}.bb-chart-arcs .bb-chart-arcs-background{fill:#e0e0e0;stroke:none}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#000;font-size:16px}.bb-chart-arcs .bb-chart-arcs-gauge-max,.bb-chart-arcs .bb-chart-arcs-gauge-min{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{fill:#000;font-size:16px!important;font-weight:600}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.bb-chart-arc .bb-gauge-value{fill:#000}.bb-chart-arc path{stroke:#fff}.bb-chart-arc rect{stroke:#fff;stroke-width:1}.bb-chart-arc text{fill:#fff;font-size:13px}.bb-chart-radars .bb-levels polygon{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-levels text{fill:#848282}.bb-chart-radars .bb-axis line{stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-axis text{cursor:default;font-size:1.15em}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;right:10px;top:10px}.bb-button .bb-zoom-reset{background-color:#fff;border:1px solid #ccc;border-radius:5px;cursor:pointer;padding:5px}
|
package/dist-esm/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.5.0
|
|
8
|
+
* @version 3.5.0
|
|
9
9
|
*/
|
|
10
10
|
import { timeParse, utcParse, timeFormat, utcFormat } from 'd3-time-format';
|
|
11
11
|
import { pointer, select, namespaces, selectAll } from 'd3-selection';
|
|
@@ -1205,7 +1205,7 @@ var State = /** @class */ (function () {
|
|
|
1205
1205
|
hasAxis: false,
|
|
1206
1206
|
hasRadar: false,
|
|
1207
1207
|
// for data CSS rule index (used when boost.useCssRule is true)
|
|
1208
|
-
|
|
1208
|
+
cssRule: {},
|
|
1209
1209
|
current: {
|
|
1210
1210
|
// chart whole dimension
|
|
1211
1211
|
width: 0,
|
|
@@ -4940,27 +4940,6 @@ function getColorFromCss(element) {
|
|
|
4940
4940
|
// Contained differently depend on d3 version: v4(d3-scale), v5(d3-scale-chromatic)
|
|
4941
4941
|
var schemeCategory10 = ["#1f77b4", "#ff7f0e", "#2ca02c", "#d62728", "#9467bd", "#8c564b", "#e377c2", "#7f7f7f", "#bcbd22", "#17becf"];
|
|
4942
4942
|
var color = {
|
|
4943
|
-
/**
|
|
4944
|
-
* Add props color css rule to given selector
|
|
4945
|
-
* @param {Function} fn Color function
|
|
4946
|
-
* @param {string} selector CSS selector
|
|
4947
|
-
* @param {Array} props CSS props list
|
|
4948
|
-
* @returns {Function}
|
|
4949
|
-
* @private
|
|
4950
|
-
*/
|
|
4951
|
-
setColorByRule: function (fn, selector, props) {
|
|
4952
|
-
var $$ = this;
|
|
4953
|
-
var config = $$.config, _a = $$.state, colorRule = _a.colorRule, style = _a.style;
|
|
4954
|
-
var colorFn = fn || $$.color;
|
|
4955
|
-
return config.boost_useCssRule ? function (selection) {
|
|
4956
|
-
selection.each(function (d) {
|
|
4957
|
-
var color = colorFn.call($$, d);
|
|
4958
|
-
var shapeSelector = "".concat($SHAPE.shapes).concat($$.getTargetSelectorSuffix(d.id), " .").concat(selector);
|
|
4959
|
-
(shapeSelector in colorRule) && style.sheet.deleteRule(colorRule[shapeSelector]);
|
|
4960
|
-
$$.state.colorRule[shapeSelector] = addCssRules(style, shapeSelector, props.map(function (v) { return "".concat(v, ": ").concat(color); }));
|
|
4961
|
-
});
|
|
4962
|
-
} : function () { };
|
|
4963
|
-
},
|
|
4964
4943
|
generateColor: function () {
|
|
4965
4944
|
var $$ = this;
|
|
4966
4945
|
var $el = $$.$el, config = $$.config;
|
|
@@ -5778,9 +5757,10 @@ var legend$1 = {
|
|
|
5778
5757
|
*/
|
|
5779
5758
|
setLegendItem: function (item) {
|
|
5780
5759
|
var $$ = this;
|
|
5781
|
-
var api = $$.api, config = $$.config, state = $$.state;
|
|
5760
|
+
var $el = $$.$el, api = $$.api, config = $$.config, state = $$.state;
|
|
5782
5761
|
var isTouch = state.inputType === "touch";
|
|
5783
5762
|
var hasGauge = $$.hasType("gauge");
|
|
5763
|
+
var useCssRule = config.boost_useCssRule;
|
|
5784
5764
|
item
|
|
5785
5765
|
.attr("class", function (id) {
|
|
5786
5766
|
var node = select(this);
|
|
@@ -5789,8 +5769,20 @@ var legend$1 = {
|
|
|
5789
5769
|
})
|
|
5790
5770
|
.style("visibility", function (id) { return ($$.isLegendToShow(id) ? null : "hidden"); });
|
|
5791
5771
|
if (config.interaction_enabled) {
|
|
5772
|
+
if (useCssRule) {
|
|
5773
|
+
[
|
|
5774
|
+
[".".concat($LEGEND.legendItem), "cursor:pointer"],
|
|
5775
|
+
[".".concat($LEGEND.legendItem, " text"), "pointer-events:none"],
|
|
5776
|
+
[".".concat($LEGEND.legendItemPoint, " text"), "pointer-events:none"],
|
|
5777
|
+
[".".concat($LEGEND.legendItemTile), "pointer-events:none"],
|
|
5778
|
+
[".".concat($LEGEND.legendItemEvent), "fill-opacity:0"]
|
|
5779
|
+
].forEach(function (v) {
|
|
5780
|
+
var selector = v[0], props = v[1];
|
|
5781
|
+
$$.setCssRule(false, selector, [props])($el.legend);
|
|
5782
|
+
});
|
|
5783
|
+
}
|
|
5792
5784
|
item
|
|
5793
|
-
.style("cursor", "pointer")
|
|
5785
|
+
.style("cursor", $$.getStylePropValue("pointer"))
|
|
5794
5786
|
.on("click", function (event, id) {
|
|
5795
5787
|
if (!callFn(config.legend_item_onclick, api, id)) {
|
|
5796
5788
|
if (event.altKey) {
|
|
@@ -5957,12 +5949,12 @@ var legend$1 = {
|
|
|
5957
5949
|
.each(function (id, i) {
|
|
5958
5950
|
updatePositions(this, id, i);
|
|
5959
5951
|
})
|
|
5960
|
-
.style("pointer-events", "none")
|
|
5952
|
+
.style("pointer-events", $$.getStylePropValue("none"))
|
|
5961
5953
|
.attr("x", isLegendRightOrInset ? xForLegendText : pos)
|
|
5962
5954
|
.attr("y", isLegendRightOrInset ? pos : yForLegendText);
|
|
5963
5955
|
l.append("rect")
|
|
5964
5956
|
.attr("class", $LEGEND.legendItemEvent)
|
|
5965
|
-
.style("fill-opacity", "0")
|
|
5957
|
+
.style("fill-opacity", $$.getStylePropValue("0"))
|
|
5966
5958
|
.attr("x", isLegendRightOrInset ? xForLegendRect : pos)
|
|
5967
5959
|
.attr("y", isLegendRightOrInset ? pos : yForLegendRect);
|
|
5968
5960
|
var getColor = function (id) {
|
|
@@ -5986,7 +5978,7 @@ var legend$1 = {
|
|
|
5986
5978
|
})
|
|
5987
5979
|
.attr("class", $LEGEND.legendItemPoint)
|
|
5988
5980
|
.style("fill", getColor)
|
|
5989
|
-
.style("pointer-events", "none")
|
|
5981
|
+
.style("pointer-events", $$.getStylePropValue("none"))
|
|
5990
5982
|
.attr("href", function (data, idx, selection) {
|
|
5991
5983
|
var node = selection[idx];
|
|
5992
5984
|
var nodeName = node.nodeName.toLowerCase();
|
|
@@ -5998,7 +5990,7 @@ var legend$1 = {
|
|
|
5998
5990
|
l.append("line")
|
|
5999
5991
|
.attr("class", $LEGEND.legendItemTile)
|
|
6000
5992
|
.style("stroke", getColor)
|
|
6001
|
-
.style("pointer-events", "none")
|
|
5993
|
+
.style("pointer-events", $$.getStylePropValue("none"))
|
|
6002
5994
|
.attr("x1", isLegendRightOrInset ? x1ForLegendTile : pos)
|
|
6003
5995
|
.attr("y1", isLegendRightOrInset ? pos : yForLegendTile)
|
|
6004
5996
|
.attr("x2", isLegendRightOrInset ? x2ForLegendTile : pos)
|
|
@@ -7199,6 +7191,44 @@ var size = {
|
|
|
7199
7191
|
}
|
|
7200
7192
|
};
|
|
7201
7193
|
|
|
7194
|
+
/**
|
|
7195
|
+
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
7196
|
+
* billboard.js project is licensed under the MIT license
|
|
7197
|
+
*/
|
|
7198
|
+
var style = {
|
|
7199
|
+
/**
|
|
7200
|
+
* Add props color css rule to given selector
|
|
7201
|
+
* @param {boolean} withShape Set shpes' prefix class
|
|
7202
|
+
* @param {string} selector CSS selector
|
|
7203
|
+
* @param {Array} props CSS props list
|
|
7204
|
+
* @param {Function} propsFn Function to retrieve value or determine for props
|
|
7205
|
+
* @returns {Function}
|
|
7206
|
+
* @private
|
|
7207
|
+
*/
|
|
7208
|
+
setCssRule: function (withShape, selector, props, propsFn) {
|
|
7209
|
+
var $$ = this;
|
|
7210
|
+
var config = $$.config, _a = $$.state, cssRule = _a.cssRule, style = _a.style;
|
|
7211
|
+
return config.boost_useCssRule ? function (selection) {
|
|
7212
|
+
selection.each(function (d) {
|
|
7213
|
+
var res = propsFn && (propsFn === null || propsFn === void 0 ? void 0 : propsFn.call($$, d));
|
|
7214
|
+
var shapeSelector = "".concat(withShape ? ".".concat($SHAPE.shapes + $$.getTargetSelectorSuffix(d.id)) : "").concat(selector);
|
|
7215
|
+
(selector in cssRule) && style.sheet.deleteRule(cssRule[shapeSelector]);
|
|
7216
|
+
$$.state.cssRule[shapeSelector] = addCssRules(style, shapeSelector, props.filter(Boolean).map(function (v) { return (isString(res) && v.indexOf(":") === -1 ? "".concat(v, ": ").concat(res) : (v || "")); }));
|
|
7217
|
+
});
|
|
7218
|
+
} : function () { };
|
|
7219
|
+
},
|
|
7220
|
+
/**
|
|
7221
|
+
* Get style prop value
|
|
7222
|
+
* @param {Function|string} v Value
|
|
7223
|
+
* @returns {string|null}
|
|
7224
|
+
* @private
|
|
7225
|
+
*/
|
|
7226
|
+
getStylePropValue: function (v) {
|
|
7227
|
+
var useCssRule = this.config.boost_useCssRule;
|
|
7228
|
+
return useCssRule ? null : isFunction(v) ? v.bind(this) : v;
|
|
7229
|
+
}
|
|
7230
|
+
};
|
|
7231
|
+
|
|
7202
7232
|
/**
|
|
7203
7233
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
7204
7234
|
* billboard.js project is licensed under the MIT license
|
|
@@ -7302,8 +7332,7 @@ var text = {
|
|
|
7302
7332
|
var mainTextEnter = mainTextUpdate.enter().append("g")
|
|
7303
7333
|
.style("opacity", "0")
|
|
7304
7334
|
.attr("class", classChartText)
|
|
7305
|
-
.call($$.
|
|
7306
|
-
.style("pointer-events", "none");
|
|
7335
|
+
.call($$.setCssRule(true, " .".concat($TEXT.text), ["fill", "pointer-events:none"], $$.updateTextColor));
|
|
7307
7336
|
mainTextEnter.append("g")
|
|
7308
7337
|
.attr("class", classTexts);
|
|
7309
7338
|
},
|
|
@@ -7334,7 +7363,7 @@ var text = {
|
|
|
7334
7363
|
}
|
|
7335
7364
|
return (config.axis_rotated ? (isEndAnchor ? "end" : "start") : "middle");
|
|
7336
7365
|
})
|
|
7337
|
-
.style("fill", $$.
|
|
7366
|
+
.style("fill", $$.getStylePropValue($$.updateTextColor))
|
|
7338
7367
|
.style("fill-opacity", "0")
|
|
7339
7368
|
.each(function (d, i, texts) {
|
|
7340
7369
|
var node = select(this);
|
|
@@ -7420,7 +7449,7 @@ var text = {
|
|
|
7420
7449
|
var anchorString = getRotateAnchor(angle);
|
|
7421
7450
|
var rotateString = angle ? "rotate(".concat(angle, ")") : "";
|
|
7422
7451
|
$$.$el.text
|
|
7423
|
-
.style("fill", $$.
|
|
7452
|
+
.style("fill", $$.getStylePropValue($$.updateTextColor))
|
|
7424
7453
|
.attr("filter", $$.updateTextBacgroundColor.bind($$))
|
|
7425
7454
|
.style("fill-opacity", forFlow ? 0 : $$.opacityForText.bind($$))
|
|
7426
7455
|
.each(function (d, i) {
|
|
@@ -8704,18 +8733,9 @@ var ChartInternal = /** @class */ (function () {
|
|
|
8704
8733
|
var $$ = this;
|
|
8705
8734
|
var config = $$.config, format = $$.format, state = $$.state;
|
|
8706
8735
|
var isRotated = config.axis_rotated;
|
|
8707
|
-
var useCssRule = config.boost_useCssRule;
|
|
8708
8736
|
// color settings
|
|
8709
8737
|
$$.color = $$.generateColor();
|
|
8710
|
-
$$.colorByRule = $$.color;
|
|
8711
|
-
$$.colorTextByRule = $$.updateTextColor.bind($$);
|
|
8712
8738
|
$$.levelColor = $$.generateLevelColor();
|
|
8713
|
-
if (useCssRule) {
|
|
8714
|
-
state.colorRule = {};
|
|
8715
|
-
// to not apply inline color setting
|
|
8716
|
-
$$.colorByRule = null;
|
|
8717
|
-
$$.colorTextByRule = null;
|
|
8718
|
-
}
|
|
8719
8739
|
// when 'padding=false' is set, disable axes and subchart. Because they are useless.
|
|
8720
8740
|
if (config.padding === false) {
|
|
8721
8741
|
config.axis_x_show = false;
|
|
@@ -9137,6 +9157,7 @@ extend(ChartInternal.prototype, [
|
|
|
9137
9157
|
scale,
|
|
9138
9158
|
shape,
|
|
9139
9159
|
size,
|
|
9160
|
+
style,
|
|
9140
9161
|
text,
|
|
9141
9162
|
title,
|
|
9142
9163
|
tooltip$1,
|
|
@@ -16276,15 +16297,16 @@ var shapeArc = {
|
|
|
16276
16297
|
.data($$.pie(targets))
|
|
16277
16298
|
.attr("class", function (d) { return classChartArc(d) + classFocus(d.data); });
|
|
16278
16299
|
var mainPieEnter = mainPieUpdate.enter().append("g")
|
|
16279
|
-
.attr("class", classChartArc)
|
|
16300
|
+
.attr("class", classChartArc)
|
|
16301
|
+
.call(this.setCssRule(false, ".".concat($ARC.chartArcs, " text"), ["pointer-events:none", "text-anchor:middle"]));
|
|
16280
16302
|
mainPieEnter.append("g")
|
|
16281
16303
|
.attr("class", classArcs)
|
|
16282
16304
|
.merge(mainPieUpdate);
|
|
16283
16305
|
mainPieEnter.append("text")
|
|
16284
16306
|
.attr("dy", hasGauge && !$$.hasMultiTargets() ? "-.1em" : ".35em")
|
|
16285
16307
|
.style("opacity", "0")
|
|
16286
|
-
.style("text-anchor", "middle")
|
|
16287
|
-
.style("pointer-events", "none");
|
|
16308
|
+
.style("text-anchor", $$.getStylePropValue("middle"))
|
|
16309
|
+
.style("pointer-events", $$.getStylePropValue("none"));
|
|
16288
16310
|
$el.text = chartArcs.selectAll(".".concat($COMMON.target, " text"));
|
|
16289
16311
|
// MEMO: can not keep same color..., but not bad to update color in redraw
|
|
16290
16312
|
// mainPieUpdate.exit().remove();
|
|
@@ -16756,7 +16778,8 @@ var shapeBar = {
|
|
|
16756
16778
|
$el.bar = $el.main.select(".".concat($COMMON.chart))
|
|
16757
16779
|
// should positioned at the beginning of the shape node to not overlap others
|
|
16758
16780
|
.insert("g", ":first-child")
|
|
16759
|
-
.attr("class", $BAR.chartBars)
|
|
16781
|
+
.attr("class", $BAR.chartBars)
|
|
16782
|
+
.call(this.setCssRule(false, ".".concat($BAR.chartBars), ["pointer-events:none"]));
|
|
16760
16783
|
// set clip-path attribute when condition meet
|
|
16761
16784
|
// https://github.com/naver/billboard.js/issues/2421
|
|
16762
16785
|
if (config.clipPath === false && (config.bar_radius || config.bar_radius_ratio)) {
|
|
@@ -16782,12 +16805,12 @@ var shapeBar = {
|
|
|
16782
16805
|
var mainBarEnter = mainBarUpdate.enter().append("g")
|
|
16783
16806
|
.attr("class", classChartBar)
|
|
16784
16807
|
.style("opacity", "0")
|
|
16785
|
-
.style("pointer-events", "none");
|
|
16808
|
+
.style("pointer-events", $$.getStylePropValue("none"));
|
|
16786
16809
|
// Bars for each data
|
|
16787
16810
|
mainBarEnter.append("g")
|
|
16788
16811
|
.attr("class", classBars)
|
|
16789
16812
|
.style("cursor", function (d) { var _a; return (((_a = isSelectable === null || isSelectable === void 0 ? void 0 : isSelectable.bind) === null || _a === void 0 ? void 0 : _a.call(isSelectable, $$.api)(d)) ? "pointer" : null); })
|
|
16790
|
-
.call($$.
|
|
16813
|
+
.call($$.setCssRule(true, " .".concat($BAR.bar), ["fill"], $$.color));
|
|
16791
16814
|
},
|
|
16792
16815
|
/**
|
|
16793
16816
|
* Generate/Update elements
|
|
@@ -16810,7 +16833,7 @@ var shapeBar = {
|
|
|
16810
16833
|
.remove();
|
|
16811
16834
|
$root.bar = bar.enter().append("path")
|
|
16812
16835
|
.attr("class", classBar)
|
|
16813
|
-
.style("fill", $$.
|
|
16836
|
+
.style("fill", $$.getStylePropValue($$.color))
|
|
16814
16837
|
.merge(bar)
|
|
16815
16838
|
.style("opacity", initialOpacity);
|
|
16816
16839
|
},
|
|
@@ -16828,7 +16851,7 @@ var shapeBar = {
|
|
|
16828
16851
|
return [
|
|
16829
16852
|
$$.$T(bar, withTransition, getRandom())
|
|
16830
16853
|
.attr("d", function (d) { return (isNumber(d.value) || $$.isBarRangeType(d)) && drawFn(d); })
|
|
16831
|
-
.style("fill", $$.
|
|
16854
|
+
.style("fill", $$.getStylePropValue($$.color))
|
|
16832
16855
|
.style("opacity", null)
|
|
16833
16856
|
];
|
|
16834
16857
|
},
|
|
@@ -17344,7 +17367,8 @@ var shapeLine = {
|
|
|
17344
17367
|
initLine: function () {
|
|
17345
17368
|
var $el = this.$el;
|
|
17346
17369
|
$el.line = $el.main.select(".".concat($COMMON.chart)).append("g")
|
|
17347
|
-
.attr("class", $LINE.chartLines)
|
|
17370
|
+
.attr("class", $LINE.chartLines)
|
|
17371
|
+
.call(this.setCssRule(false, ".".concat($LINE.chartLines), ["pointer-events:none"]));
|
|
17348
17372
|
},
|
|
17349
17373
|
updateTargetsForLine: function (t) {
|
|
17350
17374
|
var $$ = this;
|
|
@@ -17363,7 +17387,7 @@ var shapeLine = {
|
|
|
17363
17387
|
var mainLineEnter = mainLineUpdate.enter().append("g")
|
|
17364
17388
|
.attr("class", classChartLine)
|
|
17365
17389
|
.style("opacity", "0")
|
|
17366
|
-
.style("pointer-events", "none");
|
|
17390
|
+
.style("pointer-events", $$.getStylePropValue("none"));
|
|
17367
17391
|
// Lines for each data
|
|
17368
17392
|
mainLineEnter.append("g")
|
|
17369
17393
|
.attr("class", classLines);
|
|
@@ -17666,8 +17690,10 @@ var shapePoint = {
|
|
|
17666
17690
|
.attr("class", function (d) { return $$.generateClass($SELECT.selectedCircles, d.id); });
|
|
17667
17691
|
enterNode.append("g")
|
|
17668
17692
|
.attr("class", classCircles)
|
|
17669
|
-
.
|
|
17670
|
-
|
|
17693
|
+
.call(function (selection) {
|
|
17694
|
+
$$.setCssRule(true, ".".concat($CIRCLE.circles), ["cursor:pointer"], isSelectable)(selection);
|
|
17695
|
+
$$.setCssRule(true, " .".concat($CIRCLE.circle), ["fill", "stroke"], $$.color)(selection);
|
|
17696
|
+
})
|
|
17671
17697
|
.style("opacity", function () {
|
|
17672
17698
|
var parent = select(this.parentNode);
|
|
17673
17699
|
// if the parent node is .bb-chart-circles (bubble, scatter), initialize <g bb-circles> with opacity "0"
|
|
@@ -17697,9 +17723,9 @@ var shapePoint = {
|
|
|
17697
17723
|
circles.exit().remove();
|
|
17698
17724
|
circles.enter()
|
|
17699
17725
|
.filter(Boolean)
|
|
17700
|
-
.append($$.point("create", this, $$.pointR.bind($$), $$.
|
|
17726
|
+
.append($$.point("create", this, $$.pointR.bind($$), $$.getStylePropValue($$.color)));
|
|
17701
17727
|
$root.circle = $root.main.selectAll(".".concat($CIRCLE.circles, " .").concat($CIRCLE.circle))
|
|
17702
|
-
.style("stroke", $$.
|
|
17728
|
+
.style("stroke", $$.getStylePropValue($$.color))
|
|
17703
17729
|
.style("opacity", $$.initialOpacityForCircle.bind($$));
|
|
17704
17730
|
}
|
|
17705
17731
|
},
|
|
@@ -17712,7 +17738,7 @@ var shapePoint = {
|
|
|
17712
17738
|
if (!$$.config.point_show) {
|
|
17713
17739
|
return [];
|
|
17714
17740
|
}
|
|
17715
|
-
var fn = $$.point("update", $$, cx, cy, $$.
|
|
17741
|
+
var fn = $$.point("update", $$, cx, cy, $$.getStylePropValue($$.color), withTransition, flow, selectedCircles);
|
|
17716
17742
|
var posAttr = $$.isCirclePoint() ? "c" : "";
|
|
17717
17743
|
var t = getRandom();
|
|
17718
17744
|
var opacityStyleFn = $$.opacityForCircle.bind($$);
|
|
@@ -17743,7 +17769,7 @@ var shapePoint = {
|
|
|
17743
17769
|
var cx = (hasRadar ? $$.radarCircleX : $$.circleX).bind($$);
|
|
17744
17770
|
var cy = (hasRadar ? $$.radarCircleY : $$.circleY).bind($$);
|
|
17745
17771
|
var withTransition = toggling || isUndefined(d);
|
|
17746
|
-
var fn_1 = $$.point("update", $$, cx, cy, $$.
|
|
17772
|
+
var fn_1 = $$.point("update", $$, cx, cy, $$.getStylePropValue($$.color), resizing ? false : withTransition);
|
|
17747
17773
|
if (d) {
|
|
17748
17774
|
circle = circle
|
|
17749
17775
|
.filter(function (t) {
|
|
@@ -21146,7 +21172,7 @@ var zoomModule = function () {
|
|
|
21146
21172
|
var defaults = {};
|
|
21147
21173
|
/**
|
|
21148
21174
|
* @namespace bb
|
|
21149
|
-
* @version 3.5.0
|
|
21175
|
+
* @version 3.5.0
|
|
21150
21176
|
*/
|
|
21151
21177
|
var bb = {
|
|
21152
21178
|
/**
|
|
@@ -21156,7 +21182,7 @@ var bb = {
|
|
|
21156
21182
|
* bb.version; // "1.0.0"
|
|
21157
21183
|
* @memberof bb
|
|
21158
21184
|
*/
|
|
21159
|
-
version: "3.5.0
|
|
21185
|
+
version: "3.5.0",
|
|
21160
21186
|
/**
|
|
21161
21187
|
* Generate chart
|
|
21162
21188
|
* - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.5.0
|
|
8
|
+
* @version 3.5.0
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -111,7 +111,7 @@ var Plugin = /** @class */ (function () {
|
|
|
111
111
|
delete _this[key];
|
|
112
112
|
});
|
|
113
113
|
};
|
|
114
|
-
Plugin.version = "3.5.0
|
|
114
|
+
Plugin.version = "3.5.0";
|
|
115
115
|
return Plugin;
|
|
116
116
|
}());
|
|
117
117
|
var Plugin$1 = Plugin;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.5.0
|
|
8
|
+
* @version 3.5.0
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -286,7 +286,7 @@ var Plugin = /** @class */ (function () {
|
|
|
286
286
|
delete _this[key];
|
|
287
287
|
});
|
|
288
288
|
};
|
|
289
|
-
Plugin.version = "3.5.0
|
|
289
|
+
Plugin.version = "3.5.0";
|
|
290
290
|
return Plugin;
|
|
291
291
|
}());
|
|
292
292
|
var Plugin$1 = Plugin;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.5.0
|
|
8
|
+
* @version 3.5.0
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -490,7 +490,7 @@ var Plugin = /** @class */ (function () {
|
|
|
490
490
|
delete _this[key];
|
|
491
491
|
});
|
|
492
492
|
};
|
|
493
|
-
Plugin.version = "3.5.0
|
|
493
|
+
Plugin.version = "3.5.0";
|
|
494
494
|
return Plugin;
|
|
495
495
|
}());
|
|
496
496
|
var Plugin$1 = Plugin;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.5.0
|
|
8
|
+
* @version 3.5.0
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -134,7 +134,7 @@ var Plugin = /** @class */ (function () {
|
|
|
134
134
|
delete _this[key];
|
|
135
135
|
});
|
|
136
136
|
};
|
|
137
|
-
Plugin.version = "3.5.0
|
|
137
|
+
Plugin.version = "3.5.0";
|
|
138
138
|
return Plugin;
|
|
139
139
|
}());
|
|
140
140
|
var Plugin$1 = Plugin;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.5.0
|
|
8
|
+
* @version 3.5.0
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -266,7 +266,7 @@ var Plugin = /** @class */ (function () {
|
|
|
266
266
|
delete _this[key];
|
|
267
267
|
});
|
|
268
268
|
};
|
|
269
|
-
Plugin.version = "3.5.0
|
|
269
|
+
Plugin.version = "3.5.0";
|
|
270
270
|
return Plugin;
|
|
271
271
|
}());
|
|
272
272
|
var Plugin$1 = Plugin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "billboard.js",
|
|
3
|
-
"version": "3.5.0
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "Re-usable easy interface JavaScript chart library, based on D3 v4+",
|
|
5
5
|
"homepage": "https://naver.github.io/billboard.js/",
|
|
6
6
|
"main": "dist/billboard.js",
|
|
@@ -95,16 +95,16 @@
|
|
|
95
95
|
"d3-zoom": "^3.0.0"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
|
-
"@babel/core": "^7.18.
|
|
98
|
+
"@babel/core": "^7.18.6",
|
|
99
99
|
"@babel/eslint-parser": "^7.17.0",
|
|
100
|
-
"@babel/plugin-proposal-class-properties": "^7.
|
|
101
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.18.
|
|
102
|
-
"@babel/plugin-transform-runtime": "^7.18.
|
|
103
|
-
"@babel/preset-env": "^7.18.
|
|
104
|
-
"@babel/preset-typescript": "^7.
|
|
105
|
-
"@babel/runtime": "^7.18.
|
|
100
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
101
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.18.6",
|
|
102
|
+
"@babel/plugin-transform-runtime": "^7.18.6",
|
|
103
|
+
"@babel/preset-env": "^7.18.6",
|
|
104
|
+
"@babel/preset-typescript": "^7.18.6",
|
|
105
|
+
"@babel/runtime": "^7.18.6",
|
|
106
106
|
"@commitlint/cli": "^15.0.0",
|
|
107
|
-
"@commitlint/config-conventional": "^17.0.
|
|
107
|
+
"@commitlint/config-conventional": "^17.0.3",
|
|
108
108
|
"@rollup/plugin-babel": "^5.3.1",
|
|
109
109
|
"@rollup/plugin-node-resolve": "^13.2.1",
|
|
110
110
|
"@rollup/plugin-replace": "^4.0.0",
|
|
@@ -119,8 +119,8 @@
|
|
|
119
119
|
"@types/d3": "^7.4.0",
|
|
120
120
|
"@types/mocha": "^9.1.1",
|
|
121
121
|
"@types/sinon": "^10.0.11",
|
|
122
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
123
|
-
"@typescript-eslint/parser": "^5.
|
|
122
|
+
"@typescript-eslint/eslint-plugin": "^5.30.0",
|
|
123
|
+
"@typescript-eslint/parser": "^5.30.0",
|
|
124
124
|
"babel-helper-modules": "^6.0.0",
|
|
125
125
|
"babel-loader": "^8.2.5",
|
|
126
126
|
"babel-plugin-add-module-exports": "^1.0.4",
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"chai": "^4.3.4",
|
|
137
137
|
"clean-webpack-plugin": "^4.0.0",
|
|
138
138
|
"cloc": "^2.9.0",
|
|
139
|
-
"core-js": "^3.23.
|
|
139
|
+
"core-js": "^3.23.3",
|
|
140
140
|
"coveralls": "^3.1.1",
|
|
141
141
|
"cross-env": "^7.0.3",
|
|
142
142
|
"css-loader": "^6.7.1",
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
"eslint-config-naver": "^2.1.0",
|
|
152
152
|
"eslint-plugin-import": "^2.26.0",
|
|
153
153
|
"eslint-plugin-jsdoc": "^39.3.3",
|
|
154
|
-
"eslint-webpack-plugin": "^3.
|
|
154
|
+
"eslint-webpack-plugin": "^3.2.0",
|
|
155
155
|
"exports-loader": "^4.0.0",
|
|
156
156
|
"hammer-simulator": "0.0.1",
|
|
157
157
|
"husky": "^8.0.1",
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
"regenerator-runtime": "^0.13.7",
|
|
176
176
|
"rollup": "^2.75.7",
|
|
177
177
|
"rollup-plugin-delete": "^2.0.0",
|
|
178
|
-
"sass-loader": "^13.0.
|
|
178
|
+
"sass-loader": "^13.0.2",
|
|
179
179
|
"semantic-release": "^19.0.3",
|
|
180
180
|
"simulant": "^0.2.2",
|
|
181
181
|
"sinon": "^14.0.0",
|