billboard.js 3.4.0 → 3.4.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.
Files changed (37) hide show
  1. package/README.md +7 -3
  2. package/dist/billboard.css +1 -1
  3. package/dist/billboard.js +8 -8
  4. package/dist/billboard.min.css +1 -1
  5. package/dist/billboard.min.js +2 -2
  6. package/dist/billboard.pkgd.js +32 -17
  7. package/dist/billboard.pkgd.min.js +2 -2
  8. package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  9. package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
  10. package/dist/plugin/billboardjs-plugin-sparkline.js +5 -4
  11. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  12. package/dist/plugin/billboardjs-plugin-stanford.js +5 -4
  13. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  14. package/dist/plugin/billboardjs-plugin-tableview.js +5 -4
  15. package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
  16. package/dist/plugin/billboardjs-plugin-textoverlap.js +5 -4
  17. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  18. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +2 -2
  19. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +5 -4
  20. package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +27 -11
  21. package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +5 -4
  22. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +5 -4
  23. package/dist/theme/datalab.css +1 -1
  24. package/dist/theme/datalab.min.css +1 -1
  25. package/dist/theme/graph.css +1 -1
  26. package/dist/theme/graph.min.css +1 -1
  27. package/dist/theme/insight.css +1 -1
  28. package/dist/theme/insight.min.css +1 -1
  29. package/dist-esm/billboard.js +7 -6
  30. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  31. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
  32. package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
  33. package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
  34. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
  35. package/package.json +14 -14
  36. package/src/ChartInternal/shape/point.ts +3 -1
  37. package/src/module/util.ts +2 -1
package/README.md CHANGED
@@ -40,7 +40,7 @@ If you have any questions, checkout the previous posts or create a new one at:
40
40
  - [Issue with 'question' label](https://github.com/naver/billboard.js/issues?utf8=%E2%9C%93&q=label%3Aquestion)
41
41
 
42
42
  ## Supported chart types
43
- <img src="https://naver.github.io/billboard.js/img/chart-types.png?v=9" width=800>
43
+ <img src="https://naver.github.io/billboard.js/img/chart-types.png?v=10" width=800>
44
44
 
45
45
  ## Download and Installation
46
46
 
@@ -147,11 +147,15 @@ If you want to use 'billboard.js' without installation, load files directly from
147
147
 
148
148
  ## Supported Browsers
149
149
 
150
- > Basically will work on all SVG supported browsers.
150
+ > - Basically will work on all SVG supported browsers.
151
+ > - <sup>*</sup>Notes for legacy browsers:
152
+ > - Recommended to use `packaged` build or construct your own build following [`How to bundle for legacy browsers?`](https://github.com/naver/billboard.js/wiki/How-to-bundle-for-legacy-browsers%3F) instruction.
153
+ > - D3.js dropped the support of legacy browsers since [v6](https://observablehq.com/@d3/d3v6-migration-guide).
154
+ > - The support isn't fully guaranteed.
151
155
 
152
156
  |Internet Explorer|Chrome|Firefox|Safari|iOS|Android|
153
157
  |---|---|---|---|---|---|
154
- |9+|Latest|Latest|Latest|8+|4+|
158
+ |9+<sup>*</sup>|Latest|Latest|Latest|8+|4+|
155
159
 
156
160
 
157
161
  ## Dependency by version
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.4.0
8
+ * @version 3.4.1
9
9
  */
10
10
  /*-- Chart --*/
11
11
  .bb svg {
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.4.0
8
+ * @version 3.4.1
9
9
  */
10
10
  (function webpackUniversalModuleDefinition(root, factory) {
11
11
  if(typeof exports === 'object' && typeof module === 'object')
@@ -1153,8 +1153,9 @@ function convertInputType(mouse, touch) {
1153
1153
 
1154
1154
  var hasMouse = mouse && ["any-hover:hover", "any-pointer:fine"].some(function (v) {
1155
1155
  return matchMedia == null ? void 0 : matchMedia("(" + v + ")").matches;
1156
- });
1157
- return hasMouse && "mouse" || hasTouch && "touch" || null;
1156
+ }); // fallback to 'mouse' if no input type is detected.
1157
+
1158
+ return hasMouse && "mouse" || hasTouch && "touch" || "mouse";
1158
1159
  }
1159
1160
  ;// CONCATENATED MODULE: ./src/module/error.ts
1160
1161
 
@@ -19560,10 +19561,9 @@ var getTransitionName = function () {
19560
19561
  enterNode.append("g").attr("class", classCircles).style("cursor", function (d) {
19561
19562
  return isFunction(isSelectable) && isSelectable(d) ? "pointer" : null;
19562
19563
  }).style("opacity", function () {
19563
- var _this$parentNode;
19564
+ var parent = (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this.parentNode); // if the parent node is .bb-chart-circles (bubble, scatter), initialize <g bb-circles> with opacity "0"
19564
19565
 
19565
- // if the parent node is .bb-chart-circles (bubble, scatter), initialize <g bb-circles> with opacity "0"
19566
- return (_this$parentNode = this.parentNode) != null && _this$parentNode.classList.contains("bb-chart-circles") ? "0" : null;
19566
+ return parent.attr("class").indexOf($CIRCLE.chartCircles) > -1 ? "0" : null;
19567
19567
  }); // Update date for selected circles
19568
19568
 
19569
19569
  selectionEnabled && targets.forEach(function (t) {
@@ -23437,7 +23437,7 @@ var _defaults = {},
23437
23437
  * bb.version; // "1.0.0"
23438
23438
  * @memberof bb
23439
23439
  */
23440
- version: "3.4.0",
23440
+ version: "3.4.1",
23441
23441
 
23442
23442
  /**
23443
23443
  * Generate chart
@@ -23572,7 +23572,7 @@ var _defaults = {},
23572
23572
  };
23573
23573
  /**
23574
23574
  * @namespace bb
23575
- * @version 3.4.0
23575
+ * @version 3.4.1
23576
23576
  */
23577
23577
  ;// CONCATENATED MODULE: ./src/index.ts
23578
23578
  /**
@@ -5,5 +5,5 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.4.0
8
+ * @version 3.4.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-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}