billboard.js 3.13.0-next.2 → 3.13.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.
Files changed (53) hide show
  1. package/dist/billboard.css +1 -1
  2. package/dist/billboard.js +5 -17
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +5 -5
  5. package/dist/billboard.pkgd.js +144 -58
  6. package/dist/billboard.pkgd.min.js +17 -17
  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.pkgd.js +139 -41
  18. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +5 -5
  19. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +139 -41
  20. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +6 -6
  21. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +139 -41
  22. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +8 -8
  23. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +139 -41
  24. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +7 -7
  25. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +139 -41
  26. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +6 -6
  27. package/dist/theme/dark.css +1 -1
  28. package/dist/theme/dark.min.css +1 -1
  29. package/dist/theme/datalab.css +1 -1
  30. package/dist/theme/datalab.min.css +1 -1
  31. package/dist/theme/graph.css +1 -1
  32. package/dist/theme/graph.min.css +1 -1
  33. package/dist/theme/insight.css +1 -1
  34. package/dist/theme/insight.min.css +1 -1
  35. package/dist/theme/modern.css +1 -1
  36. package/dist/theme/modern.min.css +1 -1
  37. package/dist-esm/billboard.js +14 -26
  38. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  39. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +3 -3
  40. package/dist-esm/plugin/billboardjs-plugin-stanford.js +3 -3
  41. package/dist-esm/plugin/billboardjs-plugin-tableview.js +3 -3
  42. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +3 -3
  43. package/package.json +18 -18
  44. package/src/ChartInternal/Axis/AxisRendererHelper.ts +1 -2
  45. package/src/ChartInternal/ChartInternal.ts +1 -1
  46. package/src/ChartInternal/data/IData.ts +1 -1
  47. package/src/ChartInternal/interactions/zoom.ts +2 -1
  48. package/src/ChartInternal/internals/size.ts +1 -1
  49. package/src/ChartInternal/internals/tooltip.ts +1 -1
  50. package/src/config/Options/axis/y2.ts +0 -13
  51. package/src/config/Options/interaction/zoom.ts +2 -2
  52. package/src/module/generator.ts +1 -1
  53. package/src/module/util.ts +2 -2
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.13.0-next.2
8
+ * @version 3.13.0
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.13.0-next.2
8
+ * @version 3.13.0
9
9
  */
10
10
  (function webpackUniversalModuleDefinition(root, factory) {
11
11
  if(typeof exports === 'object' && typeof module === 'object')
@@ -8803,7 +8803,7 @@ class ChartInternal {
8803
8803
  if (hasAxis || hasColorPatterns || hasPolar || hasTreemap || labelsBGColor || ((_a = $$.hasLegendDefsPoint) == null ? void 0 : _a.call($$))) {
8804
8804
  $el.defs = $el.svg.append("defs");
8805
8805
  if (hasAxis) {
8806
- ["id", "idXAxis", "idYAxis", "idY2Axis", "idGrid"].forEach((v) => {
8806
+ ["id", "idXAxis", "idYAxis", "idGrid"].forEach((v) => {
8807
8807
  $$.appendClip($el.defs, state.clip[v]);
8808
8808
  });
8809
8809
  }
@@ -11212,10 +11212,11 @@ extend(zoom, {
11212
11212
  * @private
11213
11213
  */
11214
11214
  bindZoomOnEventRect() {
11215
+ var _a;
11215
11216
  const $$ = this;
11216
11217
  const { config, $el: { eventRect, svg } } = $$;
11217
11218
  const behaviour = config.zoom_type === "drag" ? $$.zoomBehaviour : $$.zoom;
11218
- if (win.GestureEvent && /^((?!chrome|android|mobile).)*safari/i.test(navigator.userAgent)) {
11219
+ if (win.GestureEvent && /^((?!chrome|android|mobile).)*safari/i.test((_a = win.navigator) == null ? void 0 : _a.userAgent)) {
11219
11220
  svg.on("wheel", () => {
11220
11221
  });
11221
11222
  }
@@ -12645,7 +12646,6 @@ class AxisRendererHelper {
12645
12646
  size.w = width;
12646
12647
  size.h = height;
12647
12648
  }
12648
- } catch (e) {
12649
12649
  } finally {
12650
12650
  el.text("");
12651
12651
  }
@@ -16412,18 +16412,6 @@ function smoothLines(el, type) {
16412
16412
 
16413
16413
  ;// CONCATENATED MODULE: ./src/config/Options/axis/y2.ts
16414
16414
  /* harmony default export */ var y2 = ({
16415
- /**
16416
- * Set clip-path attribute for y2 axis element
16417
- * - **NOTE**: `clip-path` attribute for y2 Axis is set only when `axis.y2.inner` option is true.
16418
- * @name axis․y2․clipPath
16419
- * @memberof Options
16420
- * @type {boolean}
16421
- * @default true
16422
- * @example
16423
- * // don't set 'clip-path' attribute
16424
- * clipPath: false
16425
- */
16426
- axis_y2_clipPath: true,
16427
16415
  /**
16428
16416
  * Show or hide y2 axis.
16429
16417
  * - **NOTE**:
@@ -21653,7 +21641,7 @@ const bb = {
21653
21641
  * bb.version; // "1.0.0"
21654
21642
  * @memberof bb
21655
21643
  */
21656
- version: "3.13.0-next.2",
21644
+ version: "3.13.0",
21657
21645
  /**
21658
21646
  * Generate chart
21659
21647
  * - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
@@ -5,5 +5,5 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.13.0-next.2
8
+ * @version 3.13.0
9
9
  */.bb svg{font:10px sans-serif;-webkit-tap-highlight-color:rgba(0,0,0,0)}.bb path,.bb line{fill:none;stroke:#000}.bb text,.bb .bb-button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.bb-legend-item-tile,.bb-xgrid-focus,.bb-ygrid-focus,.bb-ygrid{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle,.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-funnels path{stroke-width:0}.bb-chart-funnels+.bb-chart-texts text{font-size:13px;fill:#fff}.bb-axis{shape-rendering:crispEdges}.bb-axis .bb-axis-x-tooltip,.bb-axis .bb-axis-y-tooltip,.bb-axis .bb-axis-y2-tooltip{font-size:1em;fill:#fff;white-space:nowrap}.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:gray;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-target.bb-focused,.bb-circles.bb-focused{opacity:1}.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step,.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step{stroke-width:2px}.bb-target.bb-defocused,.bb-circles.bb-defocused{opacity:.3!important}.bb-target.bb-defocused .text-overlapping,.bb-circles.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4}.bb-region rect{fill-opacity:.1}.bb-zoom-brush,.bb-brush .extent{fill-opacity:.1}.bb-legend-item{font-size:12px;user-select:none}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1}.bb-title{font:14px sans-serif}.bb-chart-treemaps rect{stroke:#fff;stroke-width:1px}.bb-tooltip-container{z-index:10;user-select:none}.bb-tooltip{border-collapse:collapse;border-spacing:0;background-color:#fff;empty-cells:show;opacity:.9;box-shadow:7px 7px 12px -9px #777;white-space:nowrap}.bb-tooltip tr{border:1px solid #CCC}.bb-tooltip th{background-color:#aaa;font-size:14px;padding:2px 5px;text-align:left;color:#fff}.bb-tooltip td{font-size:13px;padding:3px 6px;background-color:#fff;border-left:1px dotted #999}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;width:10px;height:10px;margin-right:6px}.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{font-size:1.15em;cursor:default}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;top:10px;right:10px}.bb-button .bb-zoom-reset{font-size:11px;border:solid 1px #ccc;background-color:#fff;padding:5px;border-radius:5px;cursor:pointer}