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.
Files changed (37) hide show
  1. package/dist/billboard.css +1 -1
  2. package/dist/billboard.js +18 -19
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +2 -2
  5. package/dist/billboard.pkgd.js +18 -19
  6. package/dist/billboard.pkgd.min.js +2 -2
  7. package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  8. package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
  9. package/dist/plugin/billboardjs-plugin-sparkline.js +2 -2
  10. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  11. package/dist/plugin/billboardjs-plugin-stanford.js +2 -2
  12. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  13. package/dist/plugin/billboardjs-plugin-tableview.js +2 -2
  14. package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
  15. package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -2
  16. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  17. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +2 -2
  18. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +2 -2
  19. package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +2 -2
  20. package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +2 -2
  21. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +2 -2
  22. package/dist/theme/datalab.css +1 -1
  23. package/dist/theme/datalab.min.css +1 -1
  24. package/dist/theme/graph.css +1 -1
  25. package/dist/theme/graph.min.css +1 -1
  26. package/dist/theme/insight.css +1 -1
  27. package/dist/theme/insight.min.css +1 -1
  28. package/dist-esm/billboard.js +18 -20
  29. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  30. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
  31. package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
  32. package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
  33. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
  34. package/package.json +5 -5
  35. package/src/ChartInternal/ChartInternal.ts +2 -2
  36. package/src/ChartInternal/internals/clip.ts +12 -14
  37. package/src/ChartInternal/shape/treemap.ts +7 -4
@@ -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.0-next.3
8
+ * @version 3.7.1
9
9
  *
10
10
  * All-in-one packaged file for ease use of 'billboard.js' with dependant d3.js modules & polyfills.
11
11
  * - @types/d3-selection ^3.0.4
@@ -34792,8 +34792,8 @@ var ChartInternal = /*#__PURE__*/function () {
34792
34792
  if ($$.hasPointType()) {
34793
34793
  $$.point = $$.generatePoint();
34794
34794
  }
34795
- $$.initClip();
34796
34795
  if (state.hasAxis) {
34796
+ $$.initClip();
34797
34797
  format.extraLineClasses = $$.generateExtraLineClass();
34798
34798
  format.dataTime = config.data_xLocaltime ? timeParse : utcParse;
34799
34799
  format.axisTime = config.axis_x_localtime ? timeFormat : utcFormat;
@@ -40107,20 +40107,18 @@ var src_linear_linear = function (t) {
40107
40107
  var $$ = this,
40108
40108
  _$$$state = $$.state,
40109
40109
  clip = _$$$state.clip,
40110
- hasAxis = _$$$state.hasAxis;
40110
+ datetimeId = _$$$state.datetimeId;
40111
40111
  // MEMO: clipId needs to be unique because it conflicts when multiple charts exist
40112
- clip.id = $$.state.datetimeId + "-clip";
40113
- if (hasAxis) {
40114
- clip.idXAxis = clip.id + "-xaxis";
40115
- clip.idYAxis = clip.id + "-yaxis";
40116
- clip.idGrid = clip.id + "-grid";
40112
+ clip.id = datetimeId + "-clip";
40113
+ clip.idXAxis = clip.id + "-xaxis";
40114
+ clip.idYAxis = clip.id + "-yaxis";
40115
+ clip.idGrid = clip.id + "-grid";
40117
40116
 
40118
- // Define 'clip-path' attribute values
40119
- clip.path = $$.getClipPath(clip.id);
40120
- clip.pathXAxis = $$.getClipPath(clip.idXAxis);
40121
- clip.pathYAxis = $$.getClipPath(clip.idYAxis);
40122
- clip.pathGrid = $$.getClipPath(clip.idGrid);
40123
- }
40117
+ // Define 'clip-path' attribute values
40118
+ clip.path = $$.getClipPath(clip.id);
40119
+ clip.pathXAxis = $$.getClipPath(clip.idXAxis);
40120
+ clip.pathYAxis = $$.getClipPath(clip.idYAxis);
40121
+ clip.pathGrid = $$.getClipPath(clip.idGrid);
40124
40122
  },
40125
40123
  getClipPath: function getClipPath(id) {
40126
40124
  var $$ = this,
@@ -46953,7 +46951,8 @@ function convertDataToTreemapData(data) {
46953
46951
  width = _$$$state$current.width,
46954
46952
  height = _$$$state$current.height,
46955
46953
  clip = _$$$state.clip,
46956
- clipId = clip.id;
46954
+ datetimeId = _$$$state.datetimeId;
46955
+ clip.id = datetimeId + "-clip";
46957
46956
  $$.treemap = treemap().tile($$.getTreemapTile());
46958
46957
  $$.treemapFn = function (data) {
46959
46958
  var _this4 = this;
@@ -46965,8 +46964,8 @@ function convertDataToTreemapData(data) {
46965
46964
  sortFn = $$.getSortCompareFn(!0);
46966
46965
  return $$.treemap(sortFn ? hierarchyData.sort(sortFn) : hierarchyData);
46967
46966
  }.bind(this);
46968
- $el.defs.append("clipPath").attr("id", clipId).append("rect").attr("width", width).attr("height", height);
46969
- $el.treemap = $el.main.select("." + $COMMON.chart).attr("clip-path", "url(#" + clipId + ")").append("g").classed($TREEMAP.chartTreemaps, !0);
46967
+ $el.defs.append("clipPath").attr("id", clip.id).append("rect").attr("width", width).attr("height", height);
46968
+ $el.treemap = $el.main.select("." + $COMMON.chart).attr("clip-path", "url(#" + clip.id + ")").append("g").classed($TREEMAP.chartTreemaps, !0);
46970
46969
  $$.bindTreemapEvent();
46971
46970
  },
46972
46971
  /**
@@ -50842,7 +50841,7 @@ var _defaults = {};
50842
50841
 
50843
50842
  /**
50844
50843
  * @namespace bb
50845
- * @version 3.7.0-next.3
50844
+ * @version 3.7.1
50846
50845
  */
50847
50846
  var bb = {
50848
50847
  /**
@@ -50852,7 +50851,7 @@ var bb = {
50852
50851
  * bb.version; // "1.0.0"
50853
50852
  * @memberof bb
50854
50853
  */
50855
- version: "3.7.0-next.3",
50854
+ version: "3.7.1",
50856
50855
  /**
50857
50856
  * Generate chart
50858
50857
  * - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when: