billboard.js 3.14.1 → 3.14.2
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 +74 -37
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +9 -9
- package/dist/billboard.pkgd.js +74 -37
- package/dist/billboard.pkgd.min.js +17 -17
- 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 +9 -3
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.js +9 -3
- package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.js +9 -3
- package/dist/plugin/billboardjs-plugin-tableview.min.js +4 -4
- package/dist/plugin/billboardjs-plugin-textoverlap.js +9 -3
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +9 -3
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +9 -3
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +7 -7
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +9 -3
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +9 -3
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +2 -2
- package/dist/theme/dark.css +1 -1
- package/dist/theme/dark.min.css +1 -1
- 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/theme/modern.css +1 -1
- package/dist/theme/modern.min.css +1 -1
- package/dist-esm/billboard.js +88 -49
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +77 -4
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +77 -4
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +77 -4
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +66 -3
- package/package.json +1 -1
- package/src/ChartInternal/Axis/Axis.ts +23 -0
- package/src/ChartInternal/data/data.ts +4 -3
- package/src/ChartInternal/interactions/subchart.ts +2 -25
- package/src/ChartInternal/interactions/zoom.ts +21 -0
- package/src/ChartInternal/internals/tooltip.ts +25 -15
- package/src/config/Options/axis/x.ts +2 -1
- package/src/module/util.ts +10 -2
- package/types/axis.d.ts +2 -2
package/dist/theme/dark.css
CHANGED
package/dist/theme/dark.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.14.
|
|
8
|
+
* @version 3.14.2
|
|
9
9
|
*/.bb-color-pattern{background-image:url(#4a7fff;#b02c2c;#1ca46c;#b47300;#49baf3;#ed7e13;#cfaa00;#a6cd19;#dccb52;#f5d194;)}.bb svg{font-size:12px;font-family:Helvetica,Arial,sans-serif,nanumgothic,Dotum;line-height:1}.bb path,.bb line{fill:none;stroke:#8d9cab}.bb text,.bb .bb-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;fill:#8d9cab;font-size:11px}.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid-focus,.bb-ygrid,.bb-line{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle{fill:#8d9cab}.bb-chart-funnels path{stroke-width:0}.bb-chart-funnels+.bb-chart-texts text{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:.9em;fill:#fff;white-space:nowrap}.bb-axis-y text,.bb-axis-y2 text{fill:#8d9cab}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:#27c9030d}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#5c666e}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#ccd9e6}.bb-text.bb-empty{fill:#8d9cab}.bb-line{stroke-width:1px}.bb-circle._expanded_{stroke-width:2px;stroke:8d9cab}rect.bb-circle._expanded_,use.bb-circle._expanded_{stroke-width:1px}.selection{stroke:none;fill:#ccd9e6}.bb-selected-circle{fill:#ccd9e6;stroke-width:2px}.bb-bar{stroke-width:.5px}.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:.5!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:.5}.bb-region.selected rect{fill:#27c903}.bb-zoom-brush{fill-opacity:.25;fill:#ccd9e6}.bb-brush .extent{fill-opacity:.5}.bb-legend-item{user-select:none}.bb-legend-item line{stroke-width:10px;stroke-dasharray:3px}.bb-legend-item text{transform:translateY(-1px)}.bb-legend-item-hidden{opacity:.5}.bb-legend-background{opacity:.75;stroke:#d3d3d3;stroke-width:1}.bb-title{font-size:14px}.bb-chart-treemaps rect{stroke:#8d9cab;stroke-width:1px}.bb-tooltip-container{z-index:10;font-family:Helvetica,Arial,sans-serif,nanumgothic,Dotum;user-select:none}.bb-tooltip{border-collapse:separate;border-spacing:0;empty-cells:show;border:1px solid #828181;border-radius:5px;background-color:#000;text-align:left;font-size:11px;color:#fff;white-space:nowrap}.bb-tooltip th{font-size:12px;padding:4px 8px;text-align:left;border-bottom:solid 1px #828181}.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{display:inline-block;width:7px;height:7px;margin:-1px 6px 0 0;vertical-align:middle}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{display:inline-block;color:#aaa;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{font-size:11px;line-height:13px;padding:4px 0 3px;color:#444;text-align:left;font-weight:400}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{padding-left:5px;font-weight:800;font-size:12px}.bb-area{stroke-width:0;opacity:.5}.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:#3f3f3f;stroke:none}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#828181;font-size:16px}.bb-chart-arcs .bb-chart-arcs-gauge-min,.bb-chart-arcs .bb-chart-arcs-gauge-max{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{font-size:16px!important;fill:#b6c2ce;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:#b6c2ce}.bb-chart-arc rect{stroke:#8d9cab;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{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{border:solid 1px #ccc;background-color:#000;color:#fff;padding:5px;border-radius:5px;cursor:pointer}
|
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.14.
|
|
8
|
+
* @version 3.14.2
|
|
9
9
|
*/.bb-color-pattern{background-image:url(#2ac4b3;#feaf29;#ff617b;#73a2ef;#b180d0;#3064cf;#d0a45f;#8aaec7;#ef65a2;#8aaec7;)}.bb svg{font-size:11px;font-family:Sans Pro,Arial,sans-serif,nanumgothic,Dotum;line-height:1}.bb path,.bb line{fill:none;stroke:#000}.bb text,.bb .bb-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-font-smoothing:antialiased;user-select:none;fill:#555;font-size:11px}.bb-chart-arcs .bb-needle{fill:#000}.bb-chart-funnels path{stroke-width:0}.bb-chart-funnels+.bb-chart-texts text{fill:#fff}.bb-axis{stroke-width:.7px}.bb-axis .bb-axis-x-tooltip,.bb-axis .bb-axis-y-tooltip,.bb-axis .bb-axis-y2-tooltip{font-size:.9em;fill:#fff;white-space:nowrap}.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:#27c9030d}.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-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-region.selected rect{fill:#27c903}.bb-zoom-brush,.bb-brush .extent{fill-opacity:.1}.bb-legend-item{user-select:none}.bb-legend-item line.bb-legend-item-tile{stroke-linecap:round;stroke-width:8px;transform:translate(7px,1px);stroke-dasharray:1 20}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1}.bb-title{font-size:14px}.bb-chart-treemaps rect{stroke:#000;stroke-width:1px}.bb-tooltip-container{z-index:10;font-family:Sans Pro,Arial,sans-serif,nanumgothic,Dotum;user-select:none}.bb-tooltip{border-collapse:separate;border-spacing:0;border-radius:2px;empty-cells:show;border:1px solid #999;background-color:#fff;text-align:left;font-size:11px;-webkit-font-smoothing:antialiased;white-space:nowrap}.bb-tooltip th{font-size:13px;padding:2px 8px;text-align:left;border-bottom:solid 2px #ff2d2d;background-color:#0b00b1;color:#fffdfd}.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{display:inline-block;width:8px;height:8px;margin-right:6px;border:solid 1px #000;border-radius:3px;vertical-align:middle}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{display:inline-block;color:#aaa;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{font-size:11px;line-height:13px;padding:4px 0 3px;color:#444;text-align:left;font-weight:400}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{padding-left:5px;font-weight:800;font-size:11px}.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-min,.bb-chart-arcs .bb-chart-arcs-gauge-max{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{font-size:18px!important;fill:#000;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-line{shape-rendering:crispEdges}.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{font-size:1.15em;cursor:default}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:.7px}.bb-button{position:absolute;top:10px;right:10px}.bb-button .bb-zoom-reset{border:solid 1px #ccc;background-color:#fff;padding:5px;border-radius:5px;cursor:pointer}
|
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.14.
|
|
8
|
+
* @version 3.14.2
|
|
9
9
|
*/.bb-color-pattern{background-image:url(#65CFC2;#D0A45F;#64A4F5;#EF65A2;#A377FE;#8AAEC7;#FF7E5A;#898EFE;#FFAC35;#70B0FF;)}.bb svg{font-size:12px;font-family:Helvetica,Apple SD Gothic Neo,Arial,sans-serif,nanumgothic,Dotum;line-height:1}.bb path,.bb line{fill:none;stroke:#8c8c8c}.bb text,.bb .bb-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;fill:#555;font-size:12px;letter-spacing:-.3px}.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid-focus,.bb-ygrid{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle{fill:#000}.bb-chart-funnels path{stroke-width:0}.bb-chart-funnels+.bb-chart-texts text{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:.9em;fill:#fff;white-space:nowrap}.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:#27c9030d}.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_{stroke-width:2px}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-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-region.selected rect{fill:#27c903}.bb-zoom-brush,.bb-brush .extent{fill-opacity:.1}.bb-legend-item{user-select:none}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1px}.bb-legend-item line{stroke-dasharray:1px}.bb-title{font-size:14px}.bb-chart-treemaps rect{stroke:#fff;stroke-width:1px}.bb-tooltip-container{z-index:10;font-family:Helvetica,Apple SD Gothic Neo,Arial,sans-serif,nanumgothic,Dotum;user-select:none}.bb-tooltip{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-collapse:separate;border-spacing:0;empty-cells:show;border:1px solid #999;border-radius:2px;background-color:#fff;text-align:left;font-size:12px;box-shadow:.5px .5px 1px #999;white-space:nowrap}.bb-tooltip th{font-size:12px;padding:4px 8px;text-align:center;border-bottom:dotted 1px #000;background-color:#efefef;color:#000}.bb-tooltip tr:last-child td{border-bottom:none}.bb-tooltip td{padding:3px 6px;background-color:#fff;border-bottom:solid 1px #eee}.bb-tooltip td:first-child{padding-left:5px;border-right:solid 1px #eee}.bb-tooltip td:last-child{padding-right:5px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;width:5px;height:12px;margin-right:6px;vertical-align:middle}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{display:inline-block;color:#aaa;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{line-height:13px;padding:4px 0 3px;color:#444;text-align:left;font-weight:400}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{padding-left:5px;font-weight:800}.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-min,.bb-chart-arcs .bb-chart-arcs-gauge-max{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{font-size:16px!important;fill:#8c8c8c;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{font-size:1.15em;font-weight:700;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{border:solid 1px #ccc;background-color:#fff;padding:5px;border-radius:5px;cursor:pointer;opacity:.8;box-shadow:1px 1px 2px #ccc}
|
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.14.
|
|
8
|
+
* @version 3.14.2
|
|
9
9
|
*/.bb-color-pattern{background-image:url(#00c73c;#fa7171;#2ad0ff;#7294ce;#e3e448;#cc7e6e;#fb6ccf;#c98dff;#4aea99;#bbbbbb;)}.bb svg{font-size:12px;font-family:sans-serif,Arial,nanumgothic,Dotum;line-height:1}.bb path,.bb line{fill:none;stroke:#c4c4c4}.bb text,.bb .bb-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;fill:#555;font-size:11px}.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid-focus,.bb-ygrid{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle{fill:#000}.bb-chart-funnels path{stroke-width:0}.bb-chart-funnels+.bb-chart-texts text{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:.9em;fill:#fff;white-space:nowrap}.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:#27c9030d}.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-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-region.selected rect{fill:#27c903}.bb-zoom-brush,.bb-brush .extent{fill-opacity:.1}.bb-legend-item{user-select:none}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1}.bb-title{font-size:14px}.bb-chart-treemaps rect{stroke:#fff;stroke-width:1px}.bb-tooltip-container{z-index:10;font-family:sans-serif,Arial,nanumgothic,Dotum;user-select:none}.bb-tooltip{border-collapse:separate;border-spacing:0;empty-cells:show;border:1px solid #999;background-color:#fff;text-align:left;font-size:11px;white-space:nowrap}.bb-tooltip th{font-size:12px;padding:4px 8px;text-align:left;border-bottom:solid 1px #eee}.bb-tooltip td{padding:4px 6px;background-color:#fff}.bb-tooltip td:first-child{padding-left:8px}.bb-tooltip td:last-child{padding-right:8px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;width:10px;height:10px;margin-right:6px;border-radius:5px;vertical-align:middle}.bb-tooltip td.value{border-left:1px solid transparent}.bb-tooltip .bb-tooltip-title{display:inline-block;color:#aaa;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{font-size:11px;line-height:13px;padding:4px 0 3px;color:#444;text-align:left;font-weight:400}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{padding-left:5px;font-weight:800;font-size:12px}.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-min,.bb-chart-arcs .bb-chart-arcs-gauge-max{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{font-size:16px!important;fill:#000;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{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{border:solid 1px #ccc;background-color:#fff;padding:5px;border-radius:5px;cursor:pointer}
|
package/dist/theme/modern.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.14.
|
|
8
|
+
* @version 3.14.2
|
|
9
9
|
*/.bb-color-pattern{background-image:url(#7ea9fa;#ffcd1e;#d33043;#41c464;#c86b74;#006bc2;#2a7e41;#f27c00;#c159ff;#bed017;)}.bb svg{font-size:12px;font-family:-apple-system,"system-ui",Noto Sans,Malgun Gothic,\b9d1\c740 \ace0\b515,helvetica,Apple SD Gothic Neo,sans-serif;line-height:1}.bb path,.bb line{fill:none;stroke:#cecece}.bb text,.bb .bb-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;fill:#555;font-size:10.5px}.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid-focus,.bb-ygrid{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle{fill:#000}.bb-chart-funnels path{stroke-width:0}.bb-chart-funnels+.bb-chart-texts text{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:.9em;fill:#fff;white-space:nowrap}.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:#27c9030d}.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:#d2bad8}.bb-text.bb-empty{fill:#767676}.bb-line{stroke-width:1px}.bb-circle._expanded_{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-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:#71808d}.bb-region rect{fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-zoom-brush{fill-opacity:.1;fill:#838181}.bb-brush .extent{fill-opacity:.1}.bb-brush .selection{fill:#838181;fill-opacity:.2}.bb-brush path{stroke:#838181}.bb-legend-item{user-select:none}.bb-legend-item line.bb-legend-item-tile{stroke-linecap:round;transform:translate(7px,1px);stroke-dasharray:1 20}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1}.bb-title{font-size:14px}.bb-chart-treemaps rect{stroke:#000;stroke-width:.5px}.bb-tooltip-container{z-index:10;font-family:-apple-system,"system-ui",Noto Sans,Malgun Gothic,\b9d1\c740 \ace0\b515,helvetica,Apple SD Gothic Neo,sans-serif;user-select:none}.bb-tooltip{border-collapse:separate;border-spacing:0;empty-cells:show;border:1px solid #999;color:#fff;border-radius:5px;background-color:#404244;text-align:left;font-size:11px;white-space:nowrap;opacity:.9}.bb-tooltip th{font-size:11px;padding:3px 6px 0;text-align:left}.bb-tooltip td{padding:3px}.bb-tooltip td:first-child{padding-left:7px}.bb-tooltip td:last-child{padding-right:8px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:5px;vertical-align:middle}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{display:inline-block;color:#aaa;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{font-size:11px;line-height:13px;padding:4px 0 3px;color:#444;text-align:left;font-weight:400}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{padding-left:5px;font-weight:800;font-size:12px}.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:#ccc}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#000;font-size:16px}.bb-chart-arcs .bb-chart-arcs-gauge-min,.bb-chart-arcs .bb-chart-arcs-gauge-max{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{font-size:1.8em;fill:#000;font-weight:600}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#cecece;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:11px}.bb-chart-radars .bb-levels polygon{fill:none;stroke:#cecece;stroke-width:.5px}.bb-chart-radars .bb-levels text{fill:#848282}.bb-chart-radars .bb-axis line{stroke:#cecece;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{border:1px solid #999;background-color:#404244;color:#fff;opacity:.9;padding:5px;border-radius:5px;cursor:pointer}
|
package/dist-esm/billboard.js
CHANGED
|
@@ -5,20 +5,20 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.14.
|
|
8
|
+
* @version 3.14.2
|
|
9
9
|
*/
|
|
10
10
|
import { pointer, select, namespaces, selectAll } from 'd3-selection';
|
|
11
11
|
import { timeParse, utcParse, timeFormat, utcFormat } from 'd3-time-format';
|
|
12
12
|
import { brushSelection, brushY, brushX } from 'd3-brush';
|
|
13
|
-
import {
|
|
13
|
+
import { csvParseRows, csvParse, tsvParseRows, tsvParse } from 'd3-dsv';
|
|
14
14
|
import { drag as drag$1 } from 'd3-drag';
|
|
15
|
-
import { scaleOrdinal, scaleLinear,
|
|
15
|
+
import { scaleOrdinal, scaleLinear, scaleSymlog, scaleLog, scaleTime, scaleUtc } from 'd3-scale';
|
|
16
16
|
import { transition } from 'd3-transition';
|
|
17
|
-
import {
|
|
17
|
+
import { curveBasis, curveBasisClosed, curveBasisOpen, curveBundle, curveCardinal, curveCardinalClosed, curveCardinalOpen, curveCatmullRom, curveCatmullRomClosed, curveCatmullRomOpen, curveMonotoneX, curveMonotoneY, curveNatural, curveLinearClosed, curveLinear, curveStep, curveStepAfter, curveStepBefore, pie as pie$1, arc, area as area$1, line as line$1 } from 'd3-shape';
|
|
18
18
|
import { axisLeft, axisBottom, axisTop, axisRight } from 'd3-axis';
|
|
19
19
|
import { easeLinear } from 'd3-ease';
|
|
20
20
|
import { interpolate } from 'd3-interpolate';
|
|
21
|
-
import {
|
|
21
|
+
import { treemap as treemap$1, treemapBinary, treemapDice, treemapSlice, treemapSliceDice, treemapSquarify, treemapResquarify, hierarchy } from 'd3-hierarchy';
|
|
22
22
|
import { zoomIdentity, zoomTransform, zoom as zoom$2 } from 'd3-zoom';
|
|
23
23
|
|
|
24
24
|
/******************************************************************************
|
|
@@ -2621,7 +2621,13 @@ function getTransformCTM(node, x, y, inverse) {
|
|
|
2621
2621
|
if (inverse === void 0) { inverse = true; }
|
|
2622
2622
|
var point = new DOMPoint(x, y);
|
|
2623
2623
|
var screen = node.getScreenCTM();
|
|
2624
|
-
|
|
2624
|
+
var res = point.matrixTransform(inverse ? screen === null || screen === void 0 ? void 0 : screen.inverse() : screen);
|
|
2625
|
+
if (inverse === false) {
|
|
2626
|
+
var rect = node.getBoundingClientRect();
|
|
2627
|
+
res.x -= rect.x;
|
|
2628
|
+
res.y -= rect.y;
|
|
2629
|
+
}
|
|
2630
|
+
return res;
|
|
2625
2631
|
}
|
|
2626
2632
|
/**
|
|
2627
2633
|
* Gets the SVGMatrix of an SVGGElement
|
|
@@ -4560,14 +4566,15 @@ var data$1 = {
|
|
|
4560
4566
|
var e = inputType === "touch" && event.changedTouches ?
|
|
4561
4567
|
event.changedTouches[0] :
|
|
4562
4568
|
event;
|
|
4563
|
-
var point = isRotated ?
|
|
4564
|
-
e.clientY + scrollPos.y - rect.top :
|
|
4565
|
-
e.clientX + scrollPos.x - rect.left;
|
|
4569
|
+
var point = isRotated ? e.clientY + scrollPos.y : e.clientX + scrollPos.x;
|
|
4566
4570
|
if (hasViewBox($el.svg)) {
|
|
4567
4571
|
var pos = [point, 0];
|
|
4568
4572
|
isRotated && pos.reverse();
|
|
4569
4573
|
point = getTransformCTM.apply(void 0, __spreadArray([$el.svg.node()], pos, false))[isRotated ? "y" : "x"];
|
|
4570
4574
|
}
|
|
4575
|
+
else {
|
|
4576
|
+
point -= isRotated ? rect.top : rect.left;
|
|
4577
|
+
}
|
|
4571
4578
|
index = findIndex(coords, point, 0, coords.length - 1, isRotated);
|
|
4572
4579
|
}
|
|
4573
4580
|
return index;
|
|
@@ -8642,34 +8649,46 @@ var tooltip$1 = {
|
|
|
8642
8649
|
});
|
|
8643
8650
|
}
|
|
8644
8651
|
},
|
|
8652
|
+
/**
|
|
8653
|
+
* Get tooltip position when svg has vieBox attribute
|
|
8654
|
+
* @param {number} tWidth Tooltip width value
|
|
8655
|
+
* @param {number} tHeight Tooltip height value
|
|
8656
|
+
* @param {object} currPos Current event position value from SVG coordinate
|
|
8657
|
+
* @returns {object} top, left value
|
|
8658
|
+
*/
|
|
8645
8659
|
getTooltipPositionViewBox: function (tWidth, tHeight, currPos) {
|
|
8646
8660
|
var _a, _b;
|
|
8647
8661
|
var $$ = this;
|
|
8648
|
-
var _c = $$.$el, eventRect = _c.eventRect,
|
|
8662
|
+
var _c = $$.$el, eventRect = _c.eventRect, svg = _c.svg, config = $$.config, state = $$.state;
|
|
8649
8663
|
var isRotated = config.axis_rotated;
|
|
8650
|
-
var hasArcType = $$.hasArcType(
|
|
8651
|
-
|
|
8652
|
-
var target = (_b = (_a = (state.hasRadar ? main : eventRect)) === null || _a === void 0 ? void 0 : _a.node()) !== null && _b !== void 0 ? _b : state.event.target;
|
|
8653
|
-
var size = 38; // getTransformCTM($el.svg.node(), 10, 0, false).x;
|
|
8664
|
+
var hasArcType = $$.hasArcType() || state.hasFunnel || state.hasTreemap;
|
|
8665
|
+
var target = (_b = (_a = (hasArcType ? svg : eventRect)) === null || _a === void 0 ? void 0 : _a.node()) !== null && _b !== void 0 ? _b : state.event.target;
|
|
8654
8666
|
var x = currPos.x, y = currPos.y;
|
|
8655
8667
|
if (state.hasAxis) {
|
|
8656
8668
|
x = isRotated ? x : currPos.xAxis;
|
|
8657
8669
|
y = isRotated ? currPos.xAxis : y;
|
|
8658
8670
|
}
|
|
8659
|
-
// currPos
|
|
8671
|
+
// currPos value based on SVG coordinate
|
|
8660
8672
|
var ctm = getTransformCTM(target, x, y, false);
|
|
8673
|
+
var rect = target.getBoundingClientRect();
|
|
8674
|
+
var size = getTransformCTM(target, 20, 0, false).x;
|
|
8661
8675
|
var top = ctm.y;
|
|
8662
|
-
var left = ctm.x + size;
|
|
8676
|
+
var left = ctm.x + (tWidth / 2) + size;
|
|
8663
8677
|
if (hasArcType) {
|
|
8664
|
-
|
|
8665
|
-
|
|
8678
|
+
if (state.hasFunnel || state.hasTreemap || state.hasRadar) {
|
|
8679
|
+
left -= (tWidth / 2) + size;
|
|
8680
|
+
top += tHeight;
|
|
8681
|
+
}
|
|
8682
|
+
else {
|
|
8683
|
+
top += rect.height / 2;
|
|
8684
|
+
left += (rect.width / 2) - (tWidth - size);
|
|
8685
|
+
}
|
|
8666
8686
|
}
|
|
8667
|
-
|
|
8668
|
-
|
|
8669
|
-
left = rect.right - tWidth - size;
|
|
8687
|
+
if (left + tWidth > rect.width) {
|
|
8688
|
+
left = rect.width - tWidth - size;
|
|
8670
8689
|
}
|
|
8671
|
-
if (top + tHeight > rect.
|
|
8672
|
-
top -= tHeight
|
|
8690
|
+
if (top + tHeight > rect.height) {
|
|
8691
|
+
top -= tHeight * 2;
|
|
8673
8692
|
}
|
|
8674
8693
|
return {
|
|
8675
8694
|
top: top,
|
|
@@ -13377,6 +13396,26 @@ var Axis = /** @class */ (function () {
|
|
|
13377
13396
|
}
|
|
13378
13397
|
return type;
|
|
13379
13398
|
};
|
|
13399
|
+
/**
|
|
13400
|
+
* Get extent value
|
|
13401
|
+
* @returns {Array} default extent
|
|
13402
|
+
* @private
|
|
13403
|
+
*/
|
|
13404
|
+
Axis.prototype.getExtent = function () {
|
|
13405
|
+
var $$ = this.owner;
|
|
13406
|
+
var config = $$.config, scale = $$.scale;
|
|
13407
|
+
var extent = config.axis_x_extent;
|
|
13408
|
+
if (extent) {
|
|
13409
|
+
if (isFunction(extent)) {
|
|
13410
|
+
extent = extent.bind($$.api)($$.getXDomain($$.data.targets), scale.subX);
|
|
13411
|
+
}
|
|
13412
|
+
else if (this.isTimeSeries() && extent.every(isNaN)) {
|
|
13413
|
+
var fn_1 = parseDate.bind($$);
|
|
13414
|
+
extent = extent.map(function (v) { return scale.subX(fn_1(v)); });
|
|
13415
|
+
}
|
|
13416
|
+
}
|
|
13417
|
+
return extent;
|
|
13418
|
+
};
|
|
13380
13419
|
Axis.prototype.init = function () {
|
|
13381
13420
|
var _this = this;
|
|
13382
13421
|
var $$ = this.owner;
|
|
@@ -13558,8 +13597,8 @@ var Axis = /** @class */ (function () {
|
|
|
13558
13597
|
.scale((isX && $$.scale.zoom) || scale)
|
|
13559
13598
|
.orient(orient);
|
|
13560
13599
|
if (isX && this.isTimeSeries() && tickValues && !isFunction(tickValues)) {
|
|
13561
|
-
var
|
|
13562
|
-
tickValues = tickValues.map(function (v) { return
|
|
13600
|
+
var fn_2 = parseDate.bind($$);
|
|
13601
|
+
tickValues = tickValues.map(function (v) { return fn_2(v); });
|
|
13563
13602
|
}
|
|
13564
13603
|
else if (!isX && this.isTimeSeriesY()) {
|
|
13565
13604
|
// https://github.com/d3/d3/blob/master/CHANGES.md#time-intervals-d3-time
|
|
@@ -16381,7 +16420,8 @@ var x = {
|
|
|
16381
16420
|
*/
|
|
16382
16421
|
axis_x_height: undefined,
|
|
16383
16422
|
/**
|
|
16384
|
-
* Set
|
|
16423
|
+
* Set extent for subchart and zoom(drag only). This can be an array or function that returns an array.
|
|
16424
|
+
* - **NOTE:** Specifying value, will limit the zoom scope selection within.
|
|
16385
16425
|
* @name axis․x․extent
|
|
16386
16426
|
* @memberof Options
|
|
16387
16427
|
* @type {Array|Function}
|
|
@@ -23421,7 +23461,7 @@ var subchart = {
|
|
|
23421
23461
|
// set the brush extent
|
|
23422
23462
|
$$.brush.scale = function (scale) {
|
|
23423
23463
|
var h = config.subchart_size_height;
|
|
23424
|
-
var extent = $$.getExtent();
|
|
23464
|
+
var extent = $$.axis.getExtent();
|
|
23425
23465
|
if (!extent && scale.range) {
|
|
23426
23466
|
extent = [[0, 0], [scale.range()[1], h]];
|
|
23427
23467
|
}
|
|
@@ -23648,26 +23688,6 @@ var subchart = {
|
|
|
23648
23688
|
$T(subchart.main.select(".".concat(CLASS.axisX)), withTransition);
|
|
23649
23689
|
subchart.main.attr("transform", $$.getTranslate("context"));
|
|
23650
23690
|
subXAxis.attr("transform", $$.getTranslate("subX"));
|
|
23651
|
-
},
|
|
23652
|
-
/**
|
|
23653
|
-
* Get extent value
|
|
23654
|
-
* @returns {Array} default extent
|
|
23655
|
-
* @private
|
|
23656
|
-
*/
|
|
23657
|
-
getExtent: function () {
|
|
23658
|
-
var $$ = this;
|
|
23659
|
-
var config = $$.config, scale = $$.scale;
|
|
23660
|
-
var extent = config.axis_x_extent;
|
|
23661
|
-
if (extent) {
|
|
23662
|
-
if (isFunction(extent)) {
|
|
23663
|
-
extent = extent.bind($$.api)($$.getXDomain($$.data.targets), scale.subX);
|
|
23664
|
-
}
|
|
23665
|
-
else if ($$.axis.isTimeSeries() && extent.every(isNaN)) {
|
|
23666
|
-
var fn_1 = parseDate.bind($$);
|
|
23667
|
-
extent = extent.map(function (v) { return scale.subX(fn_1(v)); });
|
|
23668
|
-
}
|
|
23669
|
-
}
|
|
23670
|
-
return extent;
|
|
23671
23691
|
}
|
|
23672
23692
|
};
|
|
23673
23693
|
|
|
@@ -23948,6 +23968,7 @@ var zoom = {
|
|
|
23948
23968
|
var start = 0;
|
|
23949
23969
|
var end = 0;
|
|
23950
23970
|
var zoomRect;
|
|
23971
|
+
var extent;
|
|
23951
23972
|
var prop = {
|
|
23952
23973
|
axis: isRotated ? "y" : "x",
|
|
23953
23974
|
attr: isRotated ? "height" : "width",
|
|
@@ -23956,6 +23977,8 @@ var zoom = {
|
|
|
23956
23977
|
$$.zoomBehaviour = drag$1()
|
|
23957
23978
|
.clickDistance(4)
|
|
23958
23979
|
.on("start", function (event) {
|
|
23980
|
+
// get extent at first zooming, when is zoomed do not consider
|
|
23981
|
+
extent = $$.scale.zoom ? null : $$.axis.getExtent();
|
|
23959
23982
|
state.event = event;
|
|
23960
23983
|
$$.setDragStatus(true);
|
|
23961
23984
|
$$.unselectRect();
|
|
@@ -23967,6 +23990,14 @@ var zoom = {
|
|
|
23967
23990
|
.attr("height", isRotated ? 0 : state.height);
|
|
23968
23991
|
}
|
|
23969
23992
|
start = getPointer(event, this)[prop.index];
|
|
23993
|
+
if (extent) {
|
|
23994
|
+
if (start < extent[0]) {
|
|
23995
|
+
start = extent[0];
|
|
23996
|
+
}
|
|
23997
|
+
else if (start > extent[1]) {
|
|
23998
|
+
start = extent[1];
|
|
23999
|
+
}
|
|
24000
|
+
}
|
|
23970
24001
|
end = start;
|
|
23971
24002
|
zoomRect
|
|
23972
24003
|
.attr(prop.axis, start)
|
|
@@ -23975,6 +24006,14 @@ var zoom = {
|
|
|
23975
24006
|
})
|
|
23976
24007
|
.on("drag", function (event) {
|
|
23977
24008
|
end = getPointer(event, this)[prop.index];
|
|
24009
|
+
if (extent) {
|
|
24010
|
+
if (end > extent[1]) {
|
|
24011
|
+
end = extent[1];
|
|
24012
|
+
}
|
|
24013
|
+
else if (end < extent[0]) {
|
|
24014
|
+
end = extent[0];
|
|
24015
|
+
}
|
|
24016
|
+
}
|
|
23978
24017
|
zoomRect
|
|
23979
24018
|
.attr(prop.axis, Math.min(start, end))
|
|
23980
24019
|
.attr(prop.attr, Math.abs(end - start));
|
|
@@ -24607,7 +24646,7 @@ var zoomModule = function () {
|
|
|
24607
24646
|
var defaults = {};
|
|
24608
24647
|
/**
|
|
24609
24648
|
* @namespace bb
|
|
24610
|
-
* @version 3.14.
|
|
24649
|
+
* @version 3.14.2
|
|
24611
24650
|
*/
|
|
24612
24651
|
var bb = {
|
|
24613
24652
|
/**
|
|
@@ -24617,7 +24656,7 @@ var bb = {
|
|
|
24617
24656
|
* bb.version; // "1.0.0"
|
|
24618
24657
|
* @memberof bb
|
|
24619
24658
|
*/
|
|
24620
|
-
version: "3.14.
|
|
24659
|
+
version: "3.14.2",
|
|
24621
24660
|
/**
|
|
24622
24661
|
* Generate chart
|
|
24623
24662
|
* - **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.14.
|
|
8
|
+
* @version 3.14.2
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -100,7 +100,7 @@ var Plugin = /** @class */ (function () {
|
|
|
100
100
|
delete _this[key];
|
|
101
101
|
});
|
|
102
102
|
};
|
|
103
|
-
Plugin.version = "3.14.
|
|
103
|
+
Plugin.version = "3.14.2";
|
|
104
104
|
return Plugin;
|
|
105
105
|
}());
|
|
106
106
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.14.
|
|
8
|
+
* @version 3.14.2
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -49,7 +49,17 @@ var __assign = function() {
|
|
|
49
49
|
return t;
|
|
50
50
|
};
|
|
51
51
|
return __assign.apply(this, arguments);
|
|
52
|
-
};
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
function __spreadArray(to, from, pack) {
|
|
55
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
56
|
+
if (ar || !(i in from)) {
|
|
57
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
58
|
+
ar[i] = from[i];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
62
|
+
}
|
|
53
63
|
|
|
54
64
|
/**
|
|
55
65
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
@@ -245,6 +255,50 @@ var doc = win === null || win === void 0 ? void 0 : win.document;
|
|
|
245
255
|
|
|
246
256
|
var isDefined = function (v) { return typeof v !== "undefined"; };
|
|
247
257
|
var isObjectType = function (v) { return typeof v === "object"; };
|
|
258
|
+
/**
|
|
259
|
+
* Check if is array
|
|
260
|
+
* @param {Array} arr Data to be checked
|
|
261
|
+
* @returns {boolean}
|
|
262
|
+
* @private
|
|
263
|
+
*/
|
|
264
|
+
var isArray = function (arr) { return Array.isArray(arr); };
|
|
265
|
+
/**
|
|
266
|
+
* Check if is object
|
|
267
|
+
* @param {object} obj Data to be checked
|
|
268
|
+
* @returns {boolean}
|
|
269
|
+
* @private
|
|
270
|
+
*/
|
|
271
|
+
var isObject = function (obj) { return obj && !(obj === null || obj === void 0 ? void 0 : obj.nodeType) && isObjectType(obj) && !isArray(obj); };
|
|
272
|
+
/**
|
|
273
|
+
* Merge object returning new object
|
|
274
|
+
* @param {object} target Target object
|
|
275
|
+
* @param {object} objectN Source object
|
|
276
|
+
* @returns {object} merged target object
|
|
277
|
+
* @private
|
|
278
|
+
*/
|
|
279
|
+
function mergeObj(target) {
|
|
280
|
+
var objectN = [];
|
|
281
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
282
|
+
objectN[_i - 1] = arguments[_i];
|
|
283
|
+
}
|
|
284
|
+
if (!objectN.length || (objectN.length === 1 && !objectN[0])) {
|
|
285
|
+
return target;
|
|
286
|
+
}
|
|
287
|
+
var source = objectN.shift();
|
|
288
|
+
if (isObject(target) && isObject(source)) {
|
|
289
|
+
Object.keys(source).forEach(function (key) {
|
|
290
|
+
var value = source[key];
|
|
291
|
+
if (isObject(value)) {
|
|
292
|
+
!target[key] && (target[key] = {});
|
|
293
|
+
target[key] = mergeObj(target[key], value);
|
|
294
|
+
}
|
|
295
|
+
else {
|
|
296
|
+
target[key] = isArray(value) ? value.concat() : value;
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
return mergeObj.apply(void 0, __spreadArray([target], objectN, false));
|
|
301
|
+
}
|
|
248
302
|
// emulate event
|
|
249
303
|
({
|
|
250
304
|
mouse: (function () {
|
|
@@ -275,7 +329,26 @@ var isObjectType = function (v) { return typeof v === "object"; };
|
|
|
275
329
|
el.dispatchEvent(mouseEvent);
|
|
276
330
|
};
|
|
277
331
|
}
|
|
278
|
-
})()
|
|
332
|
+
})(),
|
|
333
|
+
touch: function (el, eventType, params) {
|
|
334
|
+
var touchObj = new Touch(mergeObj({
|
|
335
|
+
identifier: Date.now(),
|
|
336
|
+
target: el,
|
|
337
|
+
radiusX: 2.5,
|
|
338
|
+
radiusY: 2.5,
|
|
339
|
+
rotationAngle: 10,
|
|
340
|
+
force: 0.5
|
|
341
|
+
}, params));
|
|
342
|
+
el.dispatchEvent(new TouchEvent(eventType, {
|
|
343
|
+
cancelable: true,
|
|
344
|
+
bubbles: true,
|
|
345
|
+
shiftKey: true,
|
|
346
|
+
touches: [touchObj],
|
|
347
|
+
targetTouches: [],
|
|
348
|
+
changedTouches: [touchObj]
|
|
349
|
+
}));
|
|
350
|
+
}
|
|
351
|
+
});
|
|
279
352
|
|
|
280
353
|
/**
|
|
281
354
|
* Load configuration option
|
|
@@ -370,7 +443,7 @@ var Plugin = /** @class */ (function () {
|
|
|
370
443
|
delete _this[key];
|
|
371
444
|
});
|
|
372
445
|
};
|
|
373
|
-
Plugin.version = "3.14.
|
|
446
|
+
Plugin.version = "3.14.2";
|
|
374
447
|
return Plugin;
|
|
375
448
|
}());
|
|
376
449
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.14.
|
|
8
|
+
* @version 3.14.2
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -55,7 +55,17 @@ var __assign = function() {
|
|
|
55
55
|
return t;
|
|
56
56
|
};
|
|
57
57
|
return __assign.apply(this, arguments);
|
|
58
|
-
};
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
function __spreadArray(to, from, pack) {
|
|
61
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
62
|
+
if (ar || !(i in from)) {
|
|
63
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
64
|
+
ar[i] = from[i];
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
68
|
+
}
|
|
59
69
|
|
|
60
70
|
/**
|
|
61
71
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
@@ -259,6 +269,50 @@ var isEmpty = function (o) { return (isUndefined(o) || o === null ||
|
|
|
259
269
|
(isString(o) && o.length === 0) ||
|
|
260
270
|
(isObjectType(o) && !(o instanceof Date) && Object.keys(o).length === 0) ||
|
|
261
271
|
(isNumber(o) && isNaN(o))); };
|
|
272
|
+
/**
|
|
273
|
+
* Check if is array
|
|
274
|
+
* @param {Array} arr Data to be checked
|
|
275
|
+
* @returns {boolean}
|
|
276
|
+
* @private
|
|
277
|
+
*/
|
|
278
|
+
var isArray = function (arr) { return Array.isArray(arr); };
|
|
279
|
+
/**
|
|
280
|
+
* Check if is object
|
|
281
|
+
* @param {object} obj Data to be checked
|
|
282
|
+
* @returns {boolean}
|
|
283
|
+
* @private
|
|
284
|
+
*/
|
|
285
|
+
var isObject = function (obj) { return obj && !(obj === null || obj === void 0 ? void 0 : obj.nodeType) && isObjectType(obj) && !isArray(obj); };
|
|
286
|
+
/**
|
|
287
|
+
* Merge object returning new object
|
|
288
|
+
* @param {object} target Target object
|
|
289
|
+
* @param {object} objectN Source object
|
|
290
|
+
* @returns {object} merged target object
|
|
291
|
+
* @private
|
|
292
|
+
*/
|
|
293
|
+
function mergeObj(target) {
|
|
294
|
+
var objectN = [];
|
|
295
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
296
|
+
objectN[_i - 1] = arguments[_i];
|
|
297
|
+
}
|
|
298
|
+
if (!objectN.length || (objectN.length === 1 && !objectN[0])) {
|
|
299
|
+
return target;
|
|
300
|
+
}
|
|
301
|
+
var source = objectN.shift();
|
|
302
|
+
if (isObject(target) && isObject(source)) {
|
|
303
|
+
Object.keys(source).forEach(function (key) {
|
|
304
|
+
var value = source[key];
|
|
305
|
+
if (isObject(value)) {
|
|
306
|
+
!target[key] && (target[key] = {});
|
|
307
|
+
target[key] = mergeObj(target[key], value);
|
|
308
|
+
}
|
|
309
|
+
else {
|
|
310
|
+
target[key] = isArray(value) ? value.concat() : value;
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
return mergeObj.apply(void 0, __spreadArray([target], objectN, false));
|
|
315
|
+
}
|
|
262
316
|
/**
|
|
263
317
|
* Get range
|
|
264
318
|
* @param {number} start Start number
|
|
@@ -305,7 +359,26 @@ var getRange = function (start, end, step) {
|
|
|
305
359
|
el.dispatchEvent(mouseEvent);
|
|
306
360
|
};
|
|
307
361
|
}
|
|
308
|
-
})()
|
|
362
|
+
})(),
|
|
363
|
+
touch: function (el, eventType, params) {
|
|
364
|
+
var touchObj = new Touch(mergeObj({
|
|
365
|
+
identifier: Date.now(),
|
|
366
|
+
target: el,
|
|
367
|
+
radiusX: 2.5,
|
|
368
|
+
radiusY: 2.5,
|
|
369
|
+
rotationAngle: 10,
|
|
370
|
+
force: 0.5
|
|
371
|
+
}, params));
|
|
372
|
+
el.dispatchEvent(new TouchEvent(eventType, {
|
|
373
|
+
cancelable: true,
|
|
374
|
+
bubbles: true,
|
|
375
|
+
shiftKey: true,
|
|
376
|
+
touches: [touchObj],
|
|
377
|
+
targetTouches: [],
|
|
378
|
+
changedTouches: [touchObj]
|
|
379
|
+
}));
|
|
380
|
+
}
|
|
381
|
+
});
|
|
309
382
|
/**
|
|
310
383
|
* Get parsed date value
|
|
311
384
|
* (It must be called in 'ChartInternal' context)
|
|
@@ -428,7 +501,7 @@ var Plugin = /** @class */ (function () {
|
|
|
428
501
|
delete _this[key];
|
|
429
502
|
});
|
|
430
503
|
};
|
|
431
|
-
Plugin.version = "3.14.
|
|
504
|
+
Plugin.version = "3.14.2";
|
|
432
505
|
return Plugin;
|
|
433
506
|
}());
|
|
434
507
|
|