billboard.js 3.7.0-next.3 → 3.7.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/dist/billboard.css +1 -1
- package/dist/billboard.js +18 -19
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +2 -2
- package/dist/billboard.pkgd.js +18 -19
- 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 +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +2 -2
- 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 +18 -20
- 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 +5 -5
- package/src/ChartInternal/ChartInternal.ts +2 -2
- package/src/ChartInternal/internals/clip.ts +12 -14
- package/src/ChartInternal/shape/treemap.ts +7 -4
package/dist/billboard.css
CHANGED
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.7.
|
|
8
|
+
* @version 3.7.1
|
|
9
9
|
*/
|
|
10
10
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
11
11
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
@@ -10368,8 +10368,8 @@ var ChartInternal = /*#__PURE__*/function () {
|
|
|
10368
10368
|
if ($$.hasPointType()) {
|
|
10369
10369
|
$$.point = $$.generatePoint();
|
|
10370
10370
|
}
|
|
10371
|
-
$$.initClip();
|
|
10372
10371
|
if (state.hasAxis) {
|
|
10372
|
+
$$.initClip();
|
|
10373
10373
|
format.extraLineClasses = $$.generateExtraLineClass();
|
|
10374
10374
|
format.dataTime = config.data_xLocaltime ? external_commonjs_d3_time_format_commonjs2_d3_time_format_amd_d3_time_format_root_d3_.timeParse : external_commonjs_d3_time_format_commonjs2_d3_time_format_amd_d3_time_format_root_d3_.utcParse;
|
|
10375
10375
|
format.axisTime = config.axis_x_localtime ? external_commonjs_d3_time_format_commonjs2_d3_time_format_amd_d3_time_format_root_d3_.timeFormat : external_commonjs_d3_time_format_commonjs2_d3_time_format_amd_d3_time_format_root_d3_.utcFormat;
|
|
@@ -15544,20 +15544,18 @@ var external_commonjs_d3_ease_commonjs2_d3_ease_amd_d3_ease_root_d3_ = __webpack
|
|
|
15544
15544
|
var $$ = this,
|
|
15545
15545
|
_$$$state = $$.state,
|
|
15546
15546
|
clip = _$$$state.clip,
|
|
15547
|
-
|
|
15547
|
+
datetimeId = _$$$state.datetimeId;
|
|
15548
15548
|
// MEMO: clipId needs to be unique because it conflicts when multiple charts exist
|
|
15549
|
-
clip.id =
|
|
15550
|
-
|
|
15551
|
-
|
|
15552
|
-
|
|
15553
|
-
clip.idGrid = clip.id + "-grid";
|
|
15549
|
+
clip.id = datetimeId + "-clip";
|
|
15550
|
+
clip.idXAxis = clip.id + "-xaxis";
|
|
15551
|
+
clip.idYAxis = clip.id + "-yaxis";
|
|
15552
|
+
clip.idGrid = clip.id + "-grid";
|
|
15554
15553
|
|
|
15555
|
-
|
|
15556
|
-
|
|
15557
|
-
|
|
15558
|
-
|
|
15559
|
-
|
|
15560
|
-
}
|
|
15554
|
+
// Define 'clip-path' attribute values
|
|
15555
|
+
clip.path = $$.getClipPath(clip.id);
|
|
15556
|
+
clip.pathXAxis = $$.getClipPath(clip.idXAxis);
|
|
15557
|
+
clip.pathYAxis = $$.getClipPath(clip.idYAxis);
|
|
15558
|
+
clip.pathGrid = $$.getClipPath(clip.idGrid);
|
|
15561
15559
|
},
|
|
15562
15560
|
getClipPath: function getClipPath(id) {
|
|
15563
15561
|
var $$ = this,
|
|
@@ -21164,7 +21162,8 @@ function convertDataToTreemapData(data) {
|
|
|
21164
21162
|
width = _$$$state$current.width,
|
|
21165
21163
|
height = _$$$state$current.height,
|
|
21166
21164
|
clip = _$$$state.clip,
|
|
21167
|
-
|
|
21165
|
+
datetimeId = _$$$state.datetimeId;
|
|
21166
|
+
clip.id = datetimeId + "-clip";
|
|
21168
21167
|
$$.treemap = (0,external_commonjs_d3_hierarchy_commonjs2_d3_hierarchy_amd_d3_hierarchy_root_d3_.treemap)().tile($$.getTreemapTile());
|
|
21169
21168
|
$$.treemapFn = function (data) {
|
|
21170
21169
|
var _this4 = this;
|
|
@@ -21176,8 +21175,8 @@ function convertDataToTreemapData(data) {
|
|
|
21176
21175
|
sortFn = $$.getSortCompareFn(!0);
|
|
21177
21176
|
return $$.treemap(sortFn ? hierarchyData.sort(sortFn) : hierarchyData);
|
|
21178
21177
|
}.bind(this);
|
|
21179
|
-
$el.defs.append("clipPath").attr("id",
|
|
21180
|
-
$el.treemap = $el.main.select("." + $COMMON.chart).attr("clip-path", "url(#" +
|
|
21178
|
+
$el.defs.append("clipPath").attr("id", clip.id).append("rect").attr("width", width).attr("height", height);
|
|
21179
|
+
$el.treemap = $el.main.select("." + $COMMON.chart).attr("clip-path", "url(#" + clip.id + ")").append("g").classed($TREEMAP.chartTreemaps, !0);
|
|
21181
21180
|
$$.bindTreemapEvent();
|
|
21182
21181
|
},
|
|
21183
21182
|
/**
|
|
@@ -24490,7 +24489,7 @@ var _defaults = {};
|
|
|
24490
24489
|
|
|
24491
24490
|
/**
|
|
24492
24491
|
* @namespace bb
|
|
24493
|
-
* @version 3.7.
|
|
24492
|
+
* @version 3.7.1
|
|
24494
24493
|
*/
|
|
24495
24494
|
var bb = {
|
|
24496
24495
|
/**
|
|
@@ -24500,7 +24499,7 @@ var bb = {
|
|
|
24500
24499
|
* bb.version; // "1.0.0"
|
|
24501
24500
|
* @memberof bb
|
|
24502
24501
|
*/
|
|
24503
|
-
version: "3.7.
|
|
24502
|
+
version: "3.7.1",
|
|
24504
24503
|
/**
|
|
24505
24504
|
* Generate chart
|
|
24506
24505
|
* - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
|
package/dist/billboard.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.7.
|
|
8
|
+
* @version 3.7.1
|
|
9
9
|
*/.bb svg{-webkit-tap-highlight-color:rgba(0,0,0,0);font:10px sans-serif}.bb line,.bb path{fill:none;stroke:#000}.bb .bb-button,.bb text{-webkit-user-select:none;-moz-user-select:none;user-select:none}.bb-bars path,.bb-event-rect,.bb-legend-item-tile,.bb-xgrid-focus,.bb-ygrid,.bb-ygrid-focus{shape-rendering:crispEdges}.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-axis{shape-rendering:crispEdges}.bb-grid{pointer-events:none}.bb-grid line{stroke:#aaa}.bb-grid text{fill:#aaa}.bb-xgrid,.bb-ygrid{stroke-dasharray:3 3}.bb-text.bb-empty{fill:grey;font-size:2em}.bb-line{stroke-width:1px}.bb-circle._expanded_{stroke-width:1px;stroke:#fff}.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}.bb-brush .extent,.bb-region,.bb-zoom-brush{fill-opacity:.1}.bb-legend-item{font-size:12px;user-select:none}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{fill:#fff;stroke:#d3d3d3;stroke-width:1;opacity:.75}.bb-title{font:14px sans-serif}.bb-chart-treemaps rect{stroke:#fff;stroke-width:1px}.bb-tooltip-container{user-select:none;z-index:10}.bb-tooltip{background-color:#fff;border-collapse:collapse;border-spacing:0;-webkit-box-shadow:7px 7px 12px -9px #777;-moz-box-shadow:7px 7px 12px -9px #777;box-shadow:7px 7px 12px -9px #777;empty-cells:show;opacity:.9}.bb-tooltip tr{border:1px solid #ccc}.bb-tooltip th{background-color:#aaa;color:#fff;font-size:14px;padding:2px 5px;text-align:left}.bb-tooltip td{background-color:#fff;border-left:1px dotted #999;font-size:13px;padding:3px 6px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;height:10px;margin-right:6px;width:10px}.bb-tooltip.value{text-align:right}.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-levels circle{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.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;font-size:11px;padding:5px}
|