billboard.js 2.2.7 → 2.2.8-a
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/CHANGELOG.md +1 -1
- package/dist/billboard.css +1 -1
- package/dist/billboard.js +3 -3
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +2 -2
- package/dist/{billboard.esm.js → billboard.mjs} +3 -3
- package/dist/billboard.pkgd.js +1693 -1286
- 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-bubblecompare.esm.js → billboardjs-plugin-bubblecompare.mjs} +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-stanford.esm.js → billboardjs-plugin-stanford.mjs} +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/{billboardjs-plugin-textoverlap.esm.js → billboardjs-plugin-textoverlap.mjs} +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/package.json +2 -2
- package/src/.DS_Store +0 -0
- package/src/ChartInternal/.DS_Store +0 -0
- package/src/ChartInternal/shape/.DS_Store +0 -0
- package/src/Plugin/.DS_Store +0 -0
- package/src/config/.DS_Store +0 -0
- package/src/config/Options/.DS_Store +0 -0
- package/src/config/Store/.DS_Store +0 -0
- package/types/.DS_Store +0 -0
- package/types/plugin/.DS_Store +0 -0
- package/dist/billboard.js.map +0 -1
- package/dist/package.json +0 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 2.2.
|
|
8
|
+
* @version 2.2.8a
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -167,7 +167,7 @@ var Plugin = /*#__PURE__*/function () {
|
|
|
167
167
|
});
|
|
168
168
|
}, Plugin;
|
|
169
169
|
}();
|
|
170
|
-
Plugin.version = "2.2.
|
|
170
|
+
Plugin.version = "2.2.8a";
|
|
171
171
|
|
|
172
172
|
;// CONCATENATED MODULE: ./src/Plugin/bubblecompare/index.ts
|
|
173
173
|
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 2.2.
|
|
8
|
+
* @version 2.2.8a
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
12
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("d3-selection")):"function"==typeof define&&define.amd?define("bb",["d3-selection"],e):"object"==typeof exports?exports.bb=e(require("d3-selection")):(t.bb=t.bb||{},t.bb.plugin=t.bb.plugin||{},t.bb.plugin.bubblecompare=e(t.d3))}(this,(function(t){return function(){"use strict";var e=[,function(e){e.exports=t}],n={};function i(t){var r=n[t];if(void 0!==r)return r.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,i),o.exports}i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var r={};return function(){function t(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function e(t,n){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},e(t,n)}i.d(r,{default:function(){return u}});var n=i(1),o=function(){function t(t){void 0===t&&(t={}),this.$$=void 0,this.options=void 0,this.options=t}var e=t.prototype;return e.$beforeInit=function(){},e.$init=function(){},e.$afterInit=function(){},e.$redraw=function(){},e.$willDestroy=function(){var t=this;Object.keys(this).forEach((function(e){t[e]=null,delete t[e]}))},t}();o.version="2.2.
|
|
12
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("d3-selection")):"function"==typeof define&&define.amd?define("bb",["d3-selection"],e):"object"==typeof exports?exports.bb=e(require("d3-selection")):(t.bb=t.bb||{},t.bb.plugin=t.bb.plugin||{},t.bb.plugin.bubblecompare=e(t.d3))}(this,(function(t){return function(){"use strict";var e=[,function(e){e.exports=t}],n={};function i(t){var r=n[t];if(void 0!==r)return r.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,i),o.exports}i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var r={};return function(){function t(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function e(t,n){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},e(t,n)}i.d(r,{default:function(){return u}});var n=i(1),o=function(){function t(t){void 0===t&&(t={}),this.$$=void 0,this.options=void 0,this.options=t}var e=t.prototype;return e.$beforeInit=function(){},e.$init=function(){},e.$afterInit=function(){},e.$redraw=function(){},e.$willDestroy=function(){var t=this;Object.keys(this).forEach((function(e){t[e]=null,delete t[e]}))},t}();o.version="2.2.8a";var u=function(i){function r(e){var n;return(n=i.call(this,e)||this).$$=void 0,t(n)||t(n)}var o,u;u=i,(o=r).prototype=Object.create(u.prototype),o.prototype.constructor=o,e(o,u);var s=r.prototype;return s.$init=function(){var t=this.$$;t.findClosest=this.findClosest.bind(this),t.getBubbleR=this.getBubbleR.bind(this),t.pointExpandedR=this.pointExpandedR.bind(this)},s.pointExpandedR=function(t){var e=this.getBubbleR(t),n=this.options.expandScale,i=void 0===n?1:n;return r.raiseFocusedBubbleLayer(t),this.changeCursorPoint(),e*i},r.raiseFocusedBubbleLayer=function(t){t.raise&&(0,n.select)(t.node().parentNode.parentNode).raise()},s.changeCursorPoint=function(){this.$$.$el.svg.select(".bb-event-rect").style("cursor","pointer")},s.findClosest=function(t,e){var n=this,i=this.$$;return t.filter((function(t){return t&&!i.isBarType(t.id)})).reduce((function(t,r){return i.dist(r,e)<n.getBubbleR(r)?r:t}),0)},s.getBubbleR=function(t){var e=this,n=this.options,i=n.minR,r=n.maxR,o=this.getZData(t);if(!o)return i;var u=this.$$.data.targets.reduce((function(t,n){var i=t[0],r=t[1],o=e.getZData(n.values[0]);return[Math.min(i,o),Math.max(r,o)]}),[1e4,0]),s=u[0],a=u[1],c=s>0&&a===s?0:o/a;return Math.abs(c)*(r-i)+i},s.getZData=function(t){return this.$$.isBubbleZType(t)?this.$$.getBubbleZData(t.value,"z"):t.value},r}(o);u.version="0.0.1"}(),r=r.default}()}));
|
package/dist/plugin/{billboardjs-plugin-bubblecompare.esm.js → billboardjs-plugin-bubblecompare.mjs}
RENAMED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 2.2.
|
|
8
|
+
* @version 2.2.8a
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -113,7 +113,7 @@ var Plugin = /*#__PURE__*/function () {
|
|
|
113
113
|
});
|
|
114
114
|
}, Plugin;
|
|
115
115
|
}();
|
|
116
|
-
Plugin.version = "#2.2.
|
|
116
|
+
Plugin.version = "#2.2.8a#";
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
119
|
* Bubble compare diagram plugin.<br>
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 2.2.
|
|
8
|
+
* @version 2.2.8a
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -978,7 +978,7 @@ var Plugin = /*#__PURE__*/function () {
|
|
|
978
978
|
});
|
|
979
979
|
}, Plugin;
|
|
980
980
|
}();
|
|
981
|
-
Plugin.version = "2.2.
|
|
981
|
+
Plugin.version = "2.2.8a";
|
|
982
982
|
|
|
983
983
|
;// CONCATENATED MODULE: ./src/Plugin/stanford/Options.ts
|
|
984
984
|
/**
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 2.2.
|
|
8
|
+
* @version 2.2.8a
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
12
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("d3-interpolate"),require("d3-color"),require("d3-scale"),require("d3-selection"),require("d3-brush"),require("d3-axis"),require("d3-format")):"function"==typeof define&&define.amd?define("bb",["d3-interpolate","d3-color","d3-scale","d3-selection","d3-brush","d3-axis","d3-format"],e):"object"==typeof exports?exports.bb=e(require("d3-interpolate"),require("d3-color"),require("d3-scale"),require("d3-selection"),require("d3-brush"),require("d3-axis"),require("d3-format")):(t.bb=t.bb||{},t.bb.plugin=t.bb.plugin||{},t.bb.plugin.stanford=e(t.d3,t.d3,t.d3,t.d3,t.d3,t.d3,t.d3))}(this,(function(t,e,n,r,o,a,i){return function(){"use strict";var s=[,function(t){t.exports=r},,function(e){e.exports=t},function(t){t.exports=e},function(t){t.exports=n},function(t){t.exports=o},function(t){t.exports=a},function(t){t.exports=i}],c={};function l(t){var e=c[t];if(void 0!==e)return e.exports;var n=c[t]={exports:{}};return s[t](n,n.exports,l),n.exports}l.d=function(t,e){for(var n in e)l.o(e,n)&&!l.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},l.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var b={};return function(){function t(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function e(t,n){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},e(t,n)}l.d(b,{default:function(){return L}});var n=l(3),r=l(4),o=l(5),a={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcs:"bb-arcs",area:"bb-area",areas:"bb-areas",axis:"bb-axis",axisX:"bb-axis-x",axisXLabel:"bb-axis-x-label",axisY:"bb-axis-y",axisY2:"bb-axis-y2",axisY2Label:"bb-axis-y2-label",axisYLabel:"bb-axis-y-label",bar:"bb-bar",bars:"bb-bars",brush:"bb-brush",button:"bb-button",buttonZoomReset:"bb-zoom-reset",chart:"bb-chart",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsTitle:"bb-chart-arcs-title",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars",chartCircles:"bb-chart-circles",chartLine:"bb-chart-line",chartLines:"bb-chart-lines",chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars",chartText:"bb-chart-text",chartTexts:"bb-chart-texts",circle:"bb-circle",circles:"bb-circles",colorPattern:"bb-color-pattern",colorScale:"bb-colorscale",defocused:"bb-defocused",dragarea:"bb-dragarea",empty:"bb-empty",eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single",focused:"bb-focused",gaugeValue:"bb-gauge-value",grid:"bb-grid",gridLines:"bb-grid-lines",legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemFocused:"bb-legend-item-focused",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile",level:"bb-level",levels:"bb-levels",line:"bb-line",lines:"bb-lines",main:"bb-main",region:"bb-region",regions:"bb-regions",selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",shape:"bb-shape",shapes:"bb-shapes",stanfordElements:"bb-stanford-elements",stanfordLine:"bb-stanford-line",stanfordLines:"bb-stanford-lines",stanfordRegion:"bb-stanford-region",stanfordRegions:"bb-stanford-regions",subchart:"bb-subchart",target:"bb-target",text:"bb-text",texts:"bb-texts",title:"bb-title",tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name",xgrid:"bb-xgrid",xgridFocus:"bb-xgrid-focus",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridFocus:"bb-ygrid-focus",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids",zoomBrush:"bb-zoom-brush",EXPANDED:"_expanded_",SELECTED:"_selected_",INCLUDED:"_included_",TextOverlapping:"text-overlapping"};l(1),l(6);var i="object"==typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis||"object"==typeof global&&null!==global&&global.Object===Object&&global||"object"==typeof self&&null!==self&&self.Object===Object&&self||Function("return this")(),s=i&&i.document;var c=function(t){return"function"==typeof t},d=function(t){return"string"==typeof t},u=function(t){return"number"==typeof t},f=function(t){return void 0!==t},h=function(t){return"object"==typeof t},p=function(t){return void 0===t||null===t||d(t)&&0===t.length||h(t)&&!(t instanceof Date)&&0===Object.keys(t).length||u(t)&&isNaN(t)};!function(){try{new MouseEvent("t")}catch(t){return function(t,e,n){void 0===n&&(n={bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});var r=s.createEvent("MouseEvent");r.initMouseEvent(e,n.bubbles,n.cancelable,i,0,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),t.dispatchEvent(r)}}}();function g(t){var e;if(t instanceof Date)e=t;else if(d(t)){var n=this.config;e=this.format.dataTime(n.data_xFormat)(t)}else u(t)&&!isNaN(t)&&(e=new Date(+t));return(!e||isNaN(+e))&&console&&console.error&&console.error("Failed to parse x '"+t+"' to Date object"),e}function x(t){var e,n,r,o=this.config,a=function(){var t=n.shift();return t&&e&&h(e)&&t in e?(e=e[t],a()):t?void 0:e};Object.keys(o).forEach((function(i){e=t,n=i.split("_"),r=a(),f(r)&&(o[i]=r)}))}var v=function(){function t(t){void 0===t&&(t={}),this.$$=void 0,this.options=void 0,this.options=t}var e=t.prototype;return e.$beforeInit=function(){},e.$init=function(){},e.$afterInit=function(){},e.$redraw=function(){},e.$willDestroy=function(){var t=this;Object.keys(this).forEach((function(e){t[e]=null,delete t[e]}))},t}();v.version="2.2.7";var m=function(){return{colors:void 0,epochs:[],lines:[],scale_min:void 0,scale_max:void 0,scale_width:20,scale_format:void 0,padding_top:0,padding_right:0,padding_bottom:0,padding_left:0,regions:[]}},y={colorScale:"bb-colorscale",stanfordElements:"bb-stanford-elements",stanfordLine:"bb-stanford-line",stanfordLines:"bb-stanford-lines",stanfordRegion:"bb-stanford-region",stanfordRegions:"bb-stanford-regions"};function S(t,e){return t.epochs<e.epochs?-1:t.epochs>e.epochs?1:0}function _(t){for(var e,n=function(t){for(var e,n,r=0,o=0,a=t.length,i=a-1;o<a;i=o,o++)e=t[o],n=t[i],r+=e.x*n.y,r-=e.y*n.x;return r/2}(t),r=0,o=0,a=0,i=t.length,s=i-1;a<i;s=a,a++){var c=t[a],l=t[s];e=c.x*l.y-l.x*c.y,r+=(c.x+l.x)*e,o+=(c.y+l.y)*e}return{x:r/(e=6*n),y:o/e}}var w=function(){function t(t){this.owner=void 0,this.owner=t;var e=t.$$.$el.main.select(".bb-chart").append("g").attr("class",y.stanfordElements);e.append("g").attr("class",y.stanfordLines),e.append("g").attr("class",y.stanfordRegions)}var e=t.prototype;return e.updateStanfordLines=function(t){var e=this.owner.$$,n=e.config,r=e.$el.main,o=n.axis_rotated,a=this.xvCustom.bind(e),i=this.yvCustom.bind(e),s=r.select("."+y.stanfordLines).style("shape-rendering","geometricprecision").selectAll("."+y.stanfordLine).data(this.owner.config.lines);s.exit().transition().duration(t).style("opacity","0").remove();var c=s.enter().append("g");c.append("line").style("opacity","0"),c.merge(s).attr("class",(function(t){return y.stanfordLine+(t.class?" "+t.class:"")})).select("line").transition().duration(t).attr("x1",(function(t){return o?i(t,"y1"):a(t,"x1")})).attr("x2",(function(t){return o?i(t,"y2"):a(t,"x2")})).attr("y1",(function(t){return o?a(t,"x1"):i(t,"y1")})).attr("y2",(function(t){return o?a(t,"x2"):i(t,"y2")})).transition().style("opacity","1")},e.updateStanfordRegions=function(t){var e=this.owner.$$,n=e.config,r=e.$el.main,o=n.axis_rotated,a=this.xvCustom.bind(e),i=this.yvCustom.bind(e),s=this.owner.countEpochsInRegion.bind(e),c=r.select("."+y.stanfordRegions).selectAll("."+y.stanfordRegion).data(this.owner.config.regions);c.exit().transition().duration(t).style("opacity","0").remove();var l=c.enter().append("g");l.append("polygon").style("opacity","0"),l.append("text").attr("transform",o?"rotate(-90)":"").style("opacity","0"),(c=l.merge(c)).attr("class",(function(t){return y.stanfordRegion+(t.class?" "+t.class:"")})).select("polygon").transition().duration(t).attr("points",(function(t){return t.points.map((function(t){return[o?i(t,"y"):a(t,"x"),o?a(t,"x"):i(t,"y")].join(",")})).join(" ")})).transition().style("opacity",(function(t){return(t.opacity?t.opacity:.2)+""})),c.select("text").transition().duration(t).attr("x",(function(t){return o?i(_(t.points),"y"):a(_(t.points),"x")})).attr("y",(function(t){return o?a(_(t.points),"x"):i(_(t.points),"y")})).text((function(t){if(t.text){var e=s(t.points),n=e.value,r=e.percentage;return t.text(n,r)}return""})).attr("text-anchor","middle").attr("dominant-baseline","middle").transition().style("opacity","1")},e.updateStanfordElements=function(t){void 0===t&&(t=0),this.updateStanfordLines(t),this.updateStanfordRegions(t)},e.xvCustom=function(t,e){var n=this,r=n.axis,o=n.config,a=e?t[e]:n.getBaseValue(t);return r.isTimeSeries()?a=g.call(n,a):r.isCategorized()&&d(a)&&(a=o.axis_x_categories.indexOf(t.value)),Math.ceil(n.scale.x(a))},e.yvCustom=function(t,e){var n=this,r=t.axis&&"y2"===t.axis?n.scale.y2:n.scale.y,o=e?t[e]:n.getBaseValue(t);return Math.ceil(r(o))},t}(),E=l(7),$=l(8),C=function(){function t(t){this.owner=void 0,this.colorScale=void 0,this.owner=t}var e=t.prototype;return e.drawColorScale=function(){var t=this.owner,e=t.$$,n=t.config,r=e.data.targets[0],a=e.state.height-n.padding_bottom-n.padding_top,i=n.scale_width,s=function(t,e,n){void 0===n&&(n=1);for(var r=[],o=0|Math.max(0,Math.ceil((e-t)/n)),a=t;a<o;a++)r.push(t+a*n);return r}(n.padding_bottom,a,5),l=(0,o.scaleSequential)(r.colors).domain([s[s.length-1],s[0]]);this.colorScale&&this.colorScale.remove(),this.colorScale=e.$el.svg.append("g").attr("width",50).attr("height",a).attr("class",y.colorScale),this.colorScale.append("g").attr("transform","translate(0, "+n.padding_top+")").selectAll("bars").data(s).enter().append("rect").attr("y",(function(t,e){return 5*e})).attr("x",0).attr("width",i).attr("height",5).attr("fill",(function(t){return l(t)}));var b=(0,o.scaleLog)().domain([r.minEpochs,r.maxEpochs]).range([s[0]+n.padding_top+s[s.length-1]+5-1,s[0]+n.padding_top]),d=(0,E.axisRight)(b),u=n.scale_format;"pow10"===u?d.tickValues([1,10,100,1e3,1e4,1e5,1e6,1e7]):c(u)?d.tickFormat(u):d.tickFormat((0,$.format)("d"));var f=this.colorScale.append("g").attr("class","legend axis").attr("transform","translate("+i+",0)").call(d);"pow10"===u&&f.selectAll(".tick text").text(null).filter((function(t){return t/Math.pow(10,Math.ceil(Math.log(t)/Math.LN10-1e-12))==1})).text(10).append("tspan").attr("dy","-.7em").text((function(t){return Math.round(Math.log(t)/Math.LN10)})),this.colorScale.attr("transform","translate("+(e.state.current.width-this.xForColorScale())+", 0)")},e.xForColorScale=function(){return this.owner.config.padding_right+this.colorScale.node().getBBox().width},e.getColorScalePadding=function(){return this.xForColorScale()+this.owner.config.padding_left+20},t}(),L=function(i){function s(e){var n;return(n=i.call(this,e)||this).config=void 0,n.colorScale=void 0,n.elements=void 0,n.config=new m,t(n)||t(n)}var l,b;b=i,(l=s).prototype=Object.create(b.prototype),l.prototype.constructor=l,e(l,b);var u=s.prototype;return u.$beforeInit=function(){var t=this,e=this.$$;e.config.data_xSort=!1,e.isMultipleX=function(){return!0},e.showGridFocus=function(){},e.labelishData=function(t){return t.values},e.opacityForCircle=function(){return 1};var n=e.getCurrentPaddingRight.bind(e);e.getCurrentPaddingRight=function(){return n()+(t.colorScale?t.colorScale.getColorScalePadding():0)}},u.$init=function(){var t=this.$$;x.call(this,this.options),t.color=this.getStanfordPointColor.bind(t),this.colorScale=new C(this),this.elements=new w(this),this.convertData(),this.initStanfordData(),this.setStanfordTooltip(),this.colorScale.drawColorScale(),this.$redraw()},u.$redraw=function(t){this.colorScale&&this.colorScale.drawColorScale(),this.elements&&this.elements.updateStanfordElements(t)},u.getOptions=function(){return new m},u.convertData=function(){var t=this.$$.data.targets,e=this.options.epochs;t.forEach((function(t){t.values.forEach((function(t,n){t.epochs=e[n]})),t.minEpochs=void 0,t.maxEpochs=void 0,t.colors=void 0,t.colorscale=void 0}))},u.xvCustom=function(t,e){var n=this,r=n.axis,o=n.config,a=e?t[e]:n.getBaseValue(t);return r.isTimeSeries()?a=g.call(n,a):r.isCategorized()&&d(a)&&(a=o.axis_x_categories.indexOf(t.value)),Math.ceil(n.scale.x(a))},u.yvCustom=function(t,e){var n=this.scale,r=t.axis&&"y2"===t.axis?n.y2:n.y,o=e?t[e]:this.getBaseValue(t);return Math.ceil(r(o))},u.initStanfordData=function(){var t=this.config,e=this.$$.data.targets[0];e.values.sort(S);var a=e.values.map((function(t){return t.epochs}));e.minEpochs=isNaN(t.scale_min)?Math.min.apply(Math,a):t.scale_min,e.maxEpochs=isNaN(t.scale_max)?Math.max.apply(Math,a):t.scale_max,e.colors=c(t.colors)?t.colors:(0,n.interpolateHslLong)((0,r.hsl)(250,1,.5),(0,r.hsl)(0,1,.5)),e.colorscale=(0,o.scaleSequentialLog)(e.colors).domain([e.minEpochs,e.maxEpochs])},u.getStanfordPointColor=function(t){return this.data.targets[0].colorscale(t.epochs)},u.setStanfordTooltip=function(){var t=this.$$.config;p(t.tooltip_contents)&&(t.tooltip_contents=function(e,n,r,o){var i='<table class="'+a.tooltip+'"><tbody>';return e.forEach((function(e){i+="<tr>\n\t\t\t\t\t\t\t<th>"+n(t.data_x)+'</th>\n\t\t\t\t\t\t\t<th class="value">'+r(e.x)+"</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th>"+n(e.id)+'</th>\n\t\t\t\t\t\t\t<th class="value">'+r(e.value)+'</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr class="'+a.tooltipName+"-"+e.id+'">\n\t\t\t\t\t\t\t<td class="name"><span style="background-color:'+o(e)+'"></span>'+n("Epochs")+'</td>\n\t\t\t\t\t\t\t<td class="value">'+r(e.epochs)+"</td>\n\t\t\t\t\t\t</tr>"})),i+"</tbody></table>"})},u.countEpochsInRegion=function(t){var e=this.data.targets[0],n=e.values.reduce((function(t,e){return t+ +e.epochs}),0),r=e.values.reduce((function(e,n){return function(t,e){for(var n=t.x,r=t.value,o=!1,a=0,i=e.length-1;a<e.length;i=a++){var s=e[a].x,c=e[a].y,l=e[i].x,b=e[i].y;c>r!=b>r&&n<(l-s)*(r-c)/(b-c)+s&&(o=!o)}return o}(n,t)?e+ +n.epochs:e}),0);return{value:r,percentage:0===r?0:+(r/n*100).toFixed(1)}},s}(v)}(),b=b.default}()}));
|
|
12
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("d3-interpolate"),require("d3-color"),require("d3-scale"),require("d3-selection"),require("d3-brush"),require("d3-axis"),require("d3-format")):"function"==typeof define&&define.amd?define("bb",["d3-interpolate","d3-color","d3-scale","d3-selection","d3-brush","d3-axis","d3-format"],e):"object"==typeof exports?exports.bb=e(require("d3-interpolate"),require("d3-color"),require("d3-scale"),require("d3-selection"),require("d3-brush"),require("d3-axis"),require("d3-format")):(t.bb=t.bb||{},t.bb.plugin=t.bb.plugin||{},t.bb.plugin.stanford=e(t.d3,t.d3,t.d3,t.d3,t.d3,t.d3,t.d3))}(this,(function(t,e,n,r,o,a,i){return function(){"use strict";var s=[,function(t){t.exports=r},,function(e){e.exports=t},function(t){t.exports=e},function(t){t.exports=n},function(t){t.exports=o},function(t){t.exports=a},function(t){t.exports=i}],c={};function l(t){var e=c[t];if(void 0!==e)return e.exports;var n=c[t]={exports:{}};return s[t](n,n.exports,l),n.exports}l.d=function(t,e){for(var n in e)l.o(e,n)&&!l.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},l.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var b={};return function(){function t(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function e(t,n){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},e(t,n)}l.d(b,{default:function(){return q}});var n=l(3),r=l(4),o=l(5),a={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcs:"bb-arcs",area:"bb-area",areas:"bb-areas",axis:"bb-axis",axisX:"bb-axis-x",axisXLabel:"bb-axis-x-label",axisY:"bb-axis-y",axisY2:"bb-axis-y2",axisY2Label:"bb-axis-y2-label",axisYLabel:"bb-axis-y-label",bar:"bb-bar",bars:"bb-bars",brush:"bb-brush",button:"bb-button",buttonZoomReset:"bb-zoom-reset",chart:"bb-chart",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsTitle:"bb-chart-arcs-title",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars",chartCircles:"bb-chart-circles",chartLine:"bb-chart-line",chartLines:"bb-chart-lines",chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars",chartText:"bb-chart-text",chartTexts:"bb-chart-texts",circle:"bb-circle",circles:"bb-circles",colorPattern:"bb-color-pattern",colorScale:"bb-colorscale",defocused:"bb-defocused",dragarea:"bb-dragarea",empty:"bb-empty",eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single",focused:"bb-focused",gaugeValue:"bb-gauge-value",grid:"bb-grid",gridLines:"bb-grid-lines",legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemFocused:"bb-legend-item-focused",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile",level:"bb-level",levels:"bb-levels",line:"bb-line",lines:"bb-lines",main:"bb-main",region:"bb-region",regions:"bb-regions",selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",shape:"bb-shape",shapes:"bb-shapes",stanfordElements:"bb-stanford-elements",stanfordLine:"bb-stanford-line",stanfordLines:"bb-stanford-lines",stanfordRegion:"bb-stanford-region",stanfordRegions:"bb-stanford-regions",subchart:"bb-subchart",target:"bb-target",text:"bb-text",texts:"bb-texts",title:"bb-title",tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name",xgrid:"bb-xgrid",xgridFocus:"bb-xgrid-focus",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridFocus:"bb-ygrid-focus",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids",zoomBrush:"bb-zoom-brush",EXPANDED:"_expanded_",SELECTED:"_selected_",INCLUDED:"_included_",TextOverlapping:"text-overlapping"};l(1),l(6);var i="object"==typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis||"object"==typeof global&&null!==global&&global.Object===Object&&global||"object"==typeof self&&null!==self&&self.Object===Object&&self||Function("return this")(),s=i&&i.document;var c=function(t){return"function"==typeof t},u=function(t){return"string"==typeof t},d=function(t){return"number"==typeof t},h=function(t){return void 0!==t},f=function(t){return"object"==typeof t},p=function(t){return void 0===t||null===t||u(t)&&0===t.length||f(t)&&!(t instanceof Date)&&0===Object.keys(t).length||d(t)&&isNaN(t)};!function(){try{return new MouseEvent("t"),function(t,e,n){void 0===n&&(n={bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0}),t.dispatchEvent(new MouseEvent(e,n))}}catch(t){return function(t,e,n){void 0===n&&(n={bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});var r=s.createEvent("MouseEvent");r.initMouseEvent(e,n.bubbles,n.cancelable,i,0,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),t.dispatchEvent(r)}}}();function g(t){var e;if(t instanceof Date)e=t;else if(u(t)){var n=this.config;e=this.format.dataTime(n.data_xFormat)(t)}else d(t)&&!isNaN(t)&&(e=new Date(+t));return(!e||isNaN(+e))&&console&&console.error&&console.error("Failed to parse x '"+t+"' to Date object"),e}function x(t){var e,n,r,o=this.config,a=function(){var t=n.shift();return t&&e&&f(e)&&t in e?(e=e[t],a()):t?void 0:e};Object.keys(o).forEach((function(i){e=t,n=i.split("_"),r=a(),h(r)&&(o[i]=r)}))}var v=function(){function t(t){void 0===t&&(t={}),this.$$=void 0,this.options=void 0,this.options=t}var e=t.prototype;return e.$beforeInit=function(){},e.$init=function(){},e.$afterInit=function(){},e.$redraw=function(){},e.$willDestroy=function(){var t=this;Object.keys(this).forEach((function(e){t[e]=null,delete t[e]}))},t}();v.version="2.2.8a";var m=function(){return{colors:void 0,epochs:[],lines:[],scale_min:void 0,scale_max:void 0,scale_width:20,scale_format:void 0,padding_top:0,padding_right:0,padding_bottom:0,padding_left:0,regions:[]}},y="bb-colorscale",_="bb-stanford-elements",S="bb-stanford-line",w="bb-stanford-lines",E="bb-stanford-region",$="bb-stanford-regions";function C(t,e){return t.epochs<e.epochs?-1:t.epochs>e.epochs?1:0}function M(t){for(var e,n=function(t){for(var e,n,r=0,o=0,a=t.length,i=a-1;o<a;i=o,o++)e=t[o],n=t[i],r+=e.x*n.y,r-=e.y*n.x;return r/2}(t),r=0,o=0,a=0,i=t.length,s=i-1;a<i;s=a,a++){var c=t[a],l=t[s];e=c.x*l.y-l.x*c.y,r+=(c.x+l.x)*e,o+=(c.y+l.y)*e}return{x:r/(e=6*n),y:o/e}}var j=function(){function t(t){this.owner=void 0,this.owner=t;var e=t.$$.$el.main.select(".bb-chart").append("g").attr("class",_);e.append("g").attr("class",w),e.append("g").attr("class",$)}var e=t.prototype;return e.updateStanfordLines=function(t){var e=this.owner.$$,n=e.config,r=e.$el.main,o=n.axis_rotated,a=this.xvCustom.bind(e),i=this.yvCustom.bind(e),s=r.select("."+w).style("shape-rendering","geometricprecision").selectAll("."+S).data(this.owner.config.lines);s.exit().transition().duration(t).style("opacity","0").remove();var c=s.enter().append("g");c.append("line").style("opacity","0"),c.merge(s).attr("class",(function(t){return S+(t.class?" "+t.class:"")})).select("line").transition().duration(t).attr("x1",(function(t){return o?i(t,"y1"):a(t,"x1")})).attr("x2",(function(t){return o?i(t,"y2"):a(t,"x2")})).attr("y1",(function(t){return o?a(t,"x1"):i(t,"y1")})).attr("y2",(function(t){return o?a(t,"x2"):i(t,"y2")})).transition().style("opacity","1")},e.updateStanfordRegions=function(t){var e=this.owner.$$,n=e.config,r=e.$el.main,o=n.axis_rotated,a=this.xvCustom.bind(e),i=this.yvCustom.bind(e),s=this.owner.countEpochsInRegion.bind(e),c=r.select("."+$).selectAll("."+E).data(this.owner.config.regions);c.exit().transition().duration(t).style("opacity","0").remove();var l=c.enter().append("g");l.append("polygon").style("opacity","0"),l.append("text").attr("transform",o?"rotate(-90)":"").style("opacity","0"),(c=l.merge(c)).attr("class",(function(t){return E+(t.class?" "+t.class:"")})).select("polygon").transition().duration(t).attr("points",(function(t){return t.points.map((function(t){return[o?i(t,"y"):a(t,"x"),o?a(t,"x"):i(t,"y")].join(",")})).join(" ")})).transition().style("opacity",(function(t){return(t.opacity?t.opacity:.2)+""})),c.select("text").transition().duration(t).attr("x",(function(t){return o?i(M(t.points),"y"):a(M(t.points),"x")})).attr("y",(function(t){return o?a(M(t.points),"x"):i(M(t.points),"y")})).text((function(t){if(t.text){var e=s(t.points),n=e.value,r=e.percentage;return t.text(n,r)}return""})).attr("text-anchor","middle").attr("dominant-baseline","middle").transition().style("opacity","1")},e.updateStanfordElements=function(t){void 0===t&&(t=0),this.updateStanfordLines(t),this.updateStanfordRegions(t)},e.xvCustom=function(t,e){var n=this,r=n.axis,o=n.config,a=e?t[e]:n.getBaseValue(t);return r.isTimeSeries()?a=g.call(n,a):r.isCategorized()&&u(a)&&(a=o.axis_x_categories.indexOf(t.value)),Math.ceil(n.scale.x(a))},e.yvCustom=function(t,e){var n=this,r=t.axis&&"y2"===t.axis?n.scale.y2:n.scale.y,o=e?t[e]:n.getBaseValue(t);return Math.ceil(r(o))},t}(),L=l(7),O=l(8),R=function(){function t(t){this.owner=void 0,this.colorScale=void 0,this.owner=t}var e=t.prototype;return e.drawColorScale=function(){var t=this.owner,e=t.$$,n=t.config,r=e.data.targets[0],a=e.state.height-n.padding_bottom-n.padding_top,i=n.scale_width,s=function(t,e,n){void 0===n&&(n=1);for(var r=[],o=0|Math.max(0,Math.ceil((e-t)/n)),a=t;a<o;a++)r.push(t+a*n);return r}(n.padding_bottom,a,5),l=(0,o.scaleSequential)(r.colors).domain([s[s.length-1],s[0]]);this.colorScale&&this.colorScale.remove(),this.colorScale=e.$el.svg.append("g").attr("width",50).attr("height",a).attr("class",y),this.colorScale.append("g").attr("transform","translate(0, "+n.padding_top+")").selectAll("bars").data(s).enter().append("rect").attr("y",(function(t,e){return 5*e})).attr("x",0).attr("width",i).attr("height",5).attr("fill",(function(t){return l(t)}));var b=(0,o.scaleLog)().domain([r.minEpochs,r.maxEpochs]).range([s[0]+n.padding_top+s[s.length-1]+5-1,s[0]+n.padding_top]),u=(0,L.axisRight)(b),d=n.scale_format;"pow10"===d?u.tickValues([1,10,100,1e3,1e4,1e5,1e6,1e7]):c(d)?u.tickFormat(d):u.tickFormat((0,O.format)("d"));var h=this.colorScale.append("g").attr("class","legend axis").attr("transform","translate("+i+",0)").call(u);"pow10"===d&&h.selectAll(".tick text").text(null).filter((function(t){return t/Math.pow(10,Math.ceil(Math.log(t)/Math.LN10-1e-12))==1})).text(10).append("tspan").attr("dy","-.7em").text((function(t){return Math.round(Math.log(t)/Math.LN10)})),this.colorScale.attr("transform","translate("+(e.state.current.width-this.xForColorScale())+", 0)")},e.xForColorScale=function(){return this.owner.config.padding_right+this.colorScale.node().getBBox().width},e.getColorScalePadding=function(){return this.xForColorScale()+this.owner.config.padding_left+20},t}(),q=function(i){function s(e){var n;return(n=i.call(this,e)||this).config=void 0,n.colorScale=void 0,n.elements=void 0,n.config=new m,t(n)||t(n)}var l,b;b=i,(l=s).prototype=Object.create(b.prototype),l.prototype.constructor=l,e(l,b);var d=s.prototype;return d.$beforeInit=function(){var t=this,e=this.$$;e.config.data_xSort=!1,e.isMultipleX=function(){return!0},e.showGridFocus=function(){},e.labelishData=function(t){return t.values},e.opacityForCircle=function(){return 1};var n=e.getCurrentPaddingRight.bind(e);e.getCurrentPaddingRight=function(){return n()+(t.colorScale?t.colorScale.getColorScalePadding():0)}},d.$init=function(){var t=this.$$;x.call(this,this.options),t.color=this.getStanfordPointColor.bind(t),this.colorScale=new R(this),this.elements=new j(this),this.convertData(),this.initStanfordData(),this.setStanfordTooltip(),this.colorScale.drawColorScale(),this.$redraw()},d.$redraw=function(t){this.colorScale&&this.colorScale.drawColorScale(),this.elements&&this.elements.updateStanfordElements(t)},d.getOptions=function(){return new m},d.convertData=function(){var t=this.$$.data.targets,e=this.options.epochs;t.forEach((function(t){t.values.forEach((function(t,n){t.epochs=e[n]})),t.minEpochs=void 0,t.maxEpochs=void 0,t.colors=void 0,t.colorscale=void 0}))},d.xvCustom=function(t,e){var n=this,r=n.axis,o=n.config,a=e?t[e]:n.getBaseValue(t);return r.isTimeSeries()?a=g.call(n,a):r.isCategorized()&&u(a)&&(a=o.axis_x_categories.indexOf(t.value)),Math.ceil(n.scale.x(a))},d.yvCustom=function(t,e){var n=this.scale,r=t.axis&&"y2"===t.axis?n.y2:n.y,o=e?t[e]:this.getBaseValue(t);return Math.ceil(r(o))},d.initStanfordData=function(){var t=this.config,e=this.$$.data.targets[0];e.values.sort(C);var a=e.values.map((function(t){return t.epochs}));e.minEpochs=isNaN(t.scale_min)?Math.min.apply(Math,a):t.scale_min,e.maxEpochs=isNaN(t.scale_max)?Math.max.apply(Math,a):t.scale_max,e.colors=c(t.colors)?t.colors:(0,n.interpolateHslLong)((0,r.hsl)(250,1,.5),(0,r.hsl)(0,1,.5)),e.colorscale=(0,o.scaleSequentialLog)(e.colors).domain([e.minEpochs,e.maxEpochs])},d.getStanfordPointColor=function(t){return this.data.targets[0].colorscale(t.epochs)},d.setStanfordTooltip=function(){var t=this.$$.config;p(t.tooltip_contents)&&(t.tooltip_contents=function(e,n,r,o){var i='<table class="'+a.tooltip+'"><tbody>';return e.forEach((function(e){i+="<tr>\n\t\t\t\t\t\t\t<th>"+n(t.data_x)+'</th>\n\t\t\t\t\t\t\t<th class="value">'+r(e.x)+"</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th>"+n(e.id)+'</th>\n\t\t\t\t\t\t\t<th class="value">'+r(e.value)+'</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr class="'+a.tooltipName+"-"+e.id+'">\n\t\t\t\t\t\t\t<td class="name"><span style="background-color:'+o(e)+'"></span>'+n("Epochs")+'</td>\n\t\t\t\t\t\t\t<td class="value">'+r(e.epochs)+"</td>\n\t\t\t\t\t\t</tr>"})),i+"</tbody></table>"})},d.countEpochsInRegion=function(t){var e=this.data.targets[0],n=e.values.reduce((function(t,e){return t+ +e.epochs}),0),r=e.values.reduce((function(e,n){return function(t,e){for(var n=t.x,r=t.value,o=!1,a=0,i=e.length-1;a<e.length;i=a++){var s=e[a].x,c=e[a].y,l=e[i].x,b=e[i].y;c>r!=b>r&&n<(l-s)*(r-c)/(b-c)+s&&(o=!o)}return o}(n,t)?e+ +n.epochs:e}),0);return{value:r,percentage:0===r?0:+(r/n*100).toFixed(1)}},s}(v)}(),b=b.default}()}));
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 2.2.
|
|
8
|
+
* @version 2.2.8a
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -422,7 +422,7 @@ var Plugin = /*#__PURE__*/function () {
|
|
|
422
422
|
});
|
|
423
423
|
}, Plugin;
|
|
424
424
|
}();
|
|
425
|
-
Plugin.version = "#2.2.
|
|
425
|
+
Plugin.version = "#2.2.8a#";
|
|
426
426
|
|
|
427
427
|
/**
|
|
428
428
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 2.2.
|
|
8
|
+
* @version 2.2.8a
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -964,7 +964,7 @@ var Plugin = /*#__PURE__*/function () {
|
|
|
964
964
|
});
|
|
965
965
|
}, Plugin;
|
|
966
966
|
}();
|
|
967
|
-
Plugin.version = "2.2.
|
|
967
|
+
Plugin.version = "2.2.8a";
|
|
968
968
|
|
|
969
969
|
;// CONCATENATED MODULE: ./src/Plugin/textoverlap/Options.ts
|
|
970
970
|
/**
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 2.2.
|
|
8
|
+
* @version 2.2.8a
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
12
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("d3-voronoi"),require("d3-polygon"),require("d3-selection"),require("d3-brush")):"function"==typeof define&&define.amd?define("bb",["d3-voronoi","d3-polygon","d3-selection","d3-brush"],e):"object"==typeof exports?exports.bb=e(require("d3-voronoi"),require("d3-polygon"),require("d3-selection"),require("d3-brush")):(t.bb=t.bb||{},t.bb.plugin=t.bb.plugin||{},t.bb.plugin.textoverlap=e(t.d3,t.d3,t.d3,t.d3))}(this,(function(t,e,n,o){return function(){"use strict";var r=[,function(t){t.exports=n},,,,,function(t){t.exports=o},,,,function(e){e.exports=t},function(t){t.exports=e}],i={};function c(t){var e=i[t];if(void 0!==e)return e.exports;var n=i[t]={exports:{}};return r[t](n,n.exports,c),n.exports}c.d=function(t,e){for(var n in e)c.o(e,n)&&!c.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},c.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var u={};return function(){function t(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function e(t,n){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},e(t,n)}c.d(u,{default:function(){return d}});var n=c(10),o=c(11),r=c(1);c(6);var i="object"==typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis||"object"==typeof global&&null!==global&&global.Object===Object&&global||"object"==typeof self&&null!==self&&self.Object===Object&&self||Function("return this")(),a=i&&i.document;var l=function(t){return void 0!==t},s=function(t){return"object"==typeof t};!function(){try{new MouseEvent("t")}catch(t){return function(t,e,n){void 0===n&&(n={bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});var o=a.createEvent("MouseEvent");o.initMouseEvent(e,n.bubbles,n.cancelable,i,0,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),t.dispatchEvent(o)}}}();function f(t){var e,n,o,r=this.config,i=function(){var t=n.shift();return t&&e&&s(e)&&t in e?(e=e[t],i()):t?void 0:e};Object.keys(r).forEach((function(c){e=t,n=c.split("_"),o=i(),l(o)&&(r[c]=o)}))}var b=function(){function t(t){void 0===t&&(t={}),this.$$=void 0,this.options=void 0,this.options=t}var e=t.prototype;return e.$beforeInit=function(){},e.$init=function(){},e.$afterInit=function(){},e.$redraw=function(){},e.$willDestroy=function(){var t=this;Object.keys(this).forEach((function(e){t[e]=null,delete t[e]}))},t}();b.version="2.2.
|
|
12
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("d3-voronoi"),require("d3-polygon"),require("d3-selection"),require("d3-brush")):"function"==typeof define&&define.amd?define("bb",["d3-voronoi","d3-polygon","d3-selection","d3-brush"],e):"object"==typeof exports?exports.bb=e(require("d3-voronoi"),require("d3-polygon"),require("d3-selection"),require("d3-brush")):(t.bb=t.bb||{},t.bb.plugin=t.bb.plugin||{},t.bb.plugin.textoverlap=e(t.d3,t.d3,t.d3,t.d3))}(this,(function(t,e,n,o){return function(){"use strict";var r=[,function(t){t.exports=n},,,,,function(t){t.exports=o},,,,function(e){e.exports=t},function(t){t.exports=e}],i={};function c(t){var e=i[t];if(void 0!==e)return e.exports;var n=i[t]={exports:{}};return r[t](n,n.exports,c),n.exports}c.d=function(t,e){for(var n in e)c.o(e,n)&&!c.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},c.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var u={};return function(){function t(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function e(t,n){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},e(t,n)}c.d(u,{default:function(){return d}});var n=c(10),o=c(11),r=c(1);c(6);var i="object"==typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis||"object"==typeof global&&null!==global&&global.Object===Object&&global||"object"==typeof self&&null!==self&&self.Object===Object&&self||Function("return this")(),a=i&&i.document;var l=function(t){return void 0!==t},s=function(t){return"object"==typeof t};!function(){try{return new MouseEvent("t"),function(t,e,n){void 0===n&&(n={bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0}),t.dispatchEvent(new MouseEvent(e,n))}}catch(t){return function(t,e,n){void 0===n&&(n={bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});var o=a.createEvent("MouseEvent");o.initMouseEvent(e,n.bubbles,n.cancelable,i,0,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),t.dispatchEvent(o)}}}();function f(t){var e,n,o,r=this.config,i=function(){var t=n.shift();return t&&e&&s(e)&&t in e?(e=e[t],i()):t?void 0:e};Object.keys(r).forEach((function(c){e=t,n=c.split("_"),o=i(),l(o)&&(r[c]=o)}))}var b=function(){function t(t){void 0===t&&(t={}),this.$$=void 0,this.options=void 0,this.options=t}var e=t.prototype;return e.$beforeInit=function(){},e.$init=function(){},e.$afterInit=function(){},e.$redraw=function(){},e.$willDestroy=function(){var t=this;Object.keys(this).forEach((function(e){t[e]=null,delete t[e]}))},t}();b.version="2.2.8a";var p=function(){return{selector:".bb-texts text",extent:1,area:0}},d=function(i){function c(e){var n;return(n=i.call(this,e)||this).config=void 0,n.config=new p,t(n)||t(n)}var u,a;a=i,(u=c).prototype=Object.create(a.prototype),u.prototype.constructor=u,e(u,a);var l=c.prototype;return l.$init=function(){f.call(this,this.options)},l.$redraw=function(){var t=(0,r.selectAll)(this.config.selector);t.empty()||this.preventLabelOverlap(t)},l.generateVoronoi=function(t){var e=this.$$.scale,o=["x","y"].map((function(t){return e[t].domain()})),r=o[0],i=o[1],c=[i[0],r[1]];return r[1]=c[0],i[0]=c[1],(0,n.voronoi)().extent([r,i]).polygons(t)},l.preventLabelOverlap=function(t){var e=this.config,n=e.extent,i=e.area,c=this.generateVoronoi(t.data().map((function(t){return[t.x,t.value]}))),u=0;t.each((function(){var t=c[u++];if(t&&this){var e=t.data,a=e[0],l=e[1],s=(0,o.polygonCentroid)(t),f=s[0],b=s[1],p=Math.round(Math.atan2(b-l,f-a)/Math.PI*2),d=n*(0===p?1:-1),v=-1===p?-n:n+5,h=1===Math.abs(p)?"middle":0===p?"start":"end";(0,r.select)(this).attr("display",(0,o.polygonArea)(t)<i?"none":null).attr("text-anchor",h).attr("dy","0."+(1===p?71:35)+"em").attr("transform","translate("+d+", "+v+")")}}))},c}(b)}(),u=u.default}()}));
|
package/dist/plugin/{billboardjs-plugin-textoverlap.esm.js → billboardjs-plugin-textoverlap.mjs}
RENAMED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 2.2.
|
|
8
|
+
* @version 2.2.8a
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -261,7 +261,7 @@ var Plugin = /*#__PURE__*/function () {
|
|
|
261
261
|
});
|
|
262
262
|
}, Plugin;
|
|
263
263
|
}();
|
|
264
|
-
Plugin.version = "#2.2.
|
|
264
|
+
Plugin.version = "#2.2.8a#";
|
|
265
265
|
|
|
266
266
|
/**
|
|
267
267
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
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 2.2.
|
|
8
|
+
* @version 2.2.8a
|
|
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 line,.bb path{fill:none;stroke:#000}.bb .bb-button,.bb text{-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-axis{stroke-width:.7px}.bb-axis-y2 text,.bb-axis-y 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:rgba(39,201,3,.05)}.tick._active_ text{fill:#00c83c!important}.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}path.bb-bar{stroke-width:1px;stroke:#000}path.bb-bar._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;fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-brush .extent,.bb-zoom-brush{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-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}.bb-tooltip th{font-size:13px;padding:2px 8px;text-align:left;border-bottom:2px solid #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:1px solid #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}.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-max,.bb-chart-arcs .bb-chart-arcs-gauge-min{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-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:1px solid #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 2.2.
|
|
8
|
+
* @version 2.2.8a
|
|
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 line,.bb path{fill:none;stroke:#8c8c8c}.bb .bb-button,.bb text{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;fill:#555;font-size:12px;letter-spacing:-.3px}.bb-axis,.bb-bars path,.bb-event-rect,.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid,.bb-ygrid-focus{shape-rendering:crispEdges}.bb-axis-y2 text,.bb-axis-y 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:rgba(39,201,3,.05)}.tick._active_ text{fill:#00c83c!important}.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_,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-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;fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-brush .extent,.bb-zoom-brush{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-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}.bb-tooltip th{font-size:12px;padding:4px 8px;text-align:center;border-bottom:1px dotted #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:1px solid #eee}.bb-tooltip td:first-child{padding-left:5px;border-right:1px solid #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}.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-chart-arcs-title{font-size:16px!important;fill:#8c8c8c;font-style:italic}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.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:1px solid #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 2.2.
|
|
8
|
+
* @version 2.2.8a
|
|
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 line,.bb path{fill:none;stroke:#c4c4c4}.bb .bb-button,.bb text{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;fill:#555;font-size:11px}.bb-axis,.bb-bars path,.bb-event-rect,.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid,.bb-ygrid-focus{shape-rendering:crispEdges}.bb-axis-y2 text,.bb-axis-y 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:rgba(39,201,3,.05)}.tick._active_ text{fill:#00c83c!important}.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-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;fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-brush .extent,.bb-zoom-brush{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-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}.bb-tooltip th{font-size:12px;padding:4px 8px;text-align:left;border-bottom:1px solid #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}.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-max,.bb-chart-arcs .bb-chart-arcs-gauge-min{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-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:1px solid #ccc;background-color:#fff;padding:5px;border-radius:5px;cursor:pointer}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "billboard.js",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.8a",
|
|
4
4
|
"description": "Re-usable easy interface JavaScript chart library, based on D3 v4+",
|
|
5
5
|
"homepage": "https://naver.github.io/billboard.js/",
|
|
6
6
|
"main": "dist/billboard.js",
|
|
7
|
-
"module": "dist/billboard.
|
|
7
|
+
"module": "dist/billboard.mjs",
|
|
8
8
|
"types": "types/index.d.ts",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"start": "webpack-dev-server --open",
|
package/src/.DS_Store
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/types/.DS_Store
ADDED
|
Binary file
|
|
Binary file
|
package/dist/billboard.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"billboard.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACvGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACpFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACPA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACNA;;;;;;;;;;;;;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AC1BA;AACA;AACA;AACA;AACA;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://billboard.js/webpack/universalModuleDefinition","webpack://billboard.js/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://billboard.js/./node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://billboard.js/./node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://billboard.js/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://billboard.js/./node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://billboard.js/./node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://billboard.js/./src/scss/billboard.scss","webpack://billboard.js/./node_modules/css-loader/dist/runtime/sourceMaps.js","webpack://billboard.js/./node_modules/css-loader/dist/runtime/api.js","webpack://billboard.js/webpack/bootstrap","webpack://billboard.js/webpack/runtime/compat get default export","webpack://billboard.js/webpack/runtime/define property getters","webpack://billboard.js/webpack/runtime/hasOwnProperty shorthand","webpack://billboard.js/webpack/runtime/make namespace object","webpack://billboard.js/webpack/runtime/nonce","webpack://billboard.js/./src/scss/billboard.scss?1b5d","webpack://billboard.js/./node_modules/@babel/runtime/helpers/esm/newArrowCheck.js","webpack://billboard.js/./src/index.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse {\n\t\tvar a = factory();\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})(this, function() {\nreturn ","\"use strict\";\n\nvar stylesInDOM = [];\n\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n\n return result;\n}\n\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n\n identifiers.push(identifier);\n }\n\n return identifiers;\n}\n\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n\n return updater;\n}\n\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n\n var newLastIdentifiers = modulesToDom(newList, options);\n\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n\n var _index = getIndexByIdentifier(_identifier);\n\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n\n stylesInDOM.splice(_index, 1);\n }\n }\n\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n\n var needLayer = typeof obj.layer !== \"undefined\";\n\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n\n css += obj.css;\n\n if (needLayer) {\n css += \"}\";\n }\n\n if (obj.media) {\n css += \"}\";\n }\n\n if (obj.supports) {\n css += \"}\";\n }\n\n var sourceMap = obj.sourceMap;\n\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n } // For old IE\n\n /* istanbul ignore if */\n\n\n options.styleTagTransform(css, styleElement, options.options);\n}\n\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n\n styleElement.parentNode.removeChild(styleElement);\n}\n/* istanbul ignore next */\n\n\nfunction domAPI(options) {\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\n\nmodule.exports = domAPI;","\"use strict\";\n\nvar memo = {};\n/* istanbul ignore next */\n\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself\n\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n\n memo[target] = styleTarget;\n }\n\n return memo[target];\n}\n/* istanbul ignore next */\n\n\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n\n target.appendChild(style);\n}\n\nmodule.exports = insertBySelector;","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\n\nmodule.exports = setAttributesWithoutAttributes;","\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\n\nmodule.exports = insertStyleElement;","\"use strict\";\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n\n styleElement.appendChild(document.createTextNode(css));\n }\n}\n\nmodule.exports = styleTagTransform;","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"/*-- Chart --*/\\n.bb svg {\\n font: 10px sans-serif;\\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }\\n\\n.bb path, .bb line {\\n fill: none;\\n stroke: #000; }\\n\\n.bb text, .bb .bb-button {\\n -webkit-user-select: none;\\n -moz-user-select: none;\\n user-select: none; }\\n\\n.bb-legend-item-tile,\\n.bb-xgrid-focus,\\n.bb-ygrid-focus,\\n.bb-ygrid,\\n.bb-event-rect,\\n.bb-bars path {\\n shape-rendering: crispEdges; }\\n\\n.bb-chart-arc .bb-gauge-value {\\n fill: #000; }\\n\\n.bb-chart-arc path {\\n stroke: #fff; }\\n\\n.bb-chart-arc rect {\\n stroke: #fff;\\n stroke-width: 1; }\\n\\n.bb-chart-arc text {\\n fill: #fff;\\n font-size: 13px; }\\n\\n/*-- Axis --*/\\n.bb-axis {\\n shape-rendering: crispEdges; }\\n\\n/*-- Grid --*/\\n.bb-grid {\\n pointer-events: none; }\\n .bb-grid line {\\n stroke: #aaa; }\\n .bb-grid text {\\n fill: #aaa; }\\n\\n.bb-xgrid, .bb-ygrid {\\n stroke-dasharray: 3 3; }\\n\\n/*-- Text on Chart --*/\\n.bb-text.bb-empty {\\n fill: #808080;\\n font-size: 2em; }\\n\\n/*-- Line --*/\\n.bb-line {\\n stroke-width: 1px; }\\n\\n/*-- Point --*/\\n.bb-circle._expanded_ {\\n stroke-width: 1px;\\n stroke: white; }\\n\\n.bb-selected-circle {\\n fill: white;\\n stroke-width: 2px; }\\n\\n/*-- Bar --*/\\n.bb-bar {\\n stroke-width: 0; }\\n .bb-bar._expanded_ {\\n fill-opacity: 0.75; }\\n\\n/*-- Candlestick --*/\\n.bb-candlestick {\\n stroke-width: 1px; }\\n .bb-candlestick._expanded_ {\\n fill-opacity: 0.75; }\\n\\n/*-- Focus --*/\\n.bb-target.bb-focused, .bb-circles.bb-focused {\\n opacity: 1; }\\n\\n.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 {\\n stroke-width: 2px; }\\n\\n.bb-target.bb-defocused, .bb-circles.bb-defocused {\\n opacity: 0.3 !important; }\\n .bb-target.bb-defocused .text-overlapping, .bb-circles.bb-defocused .text-overlapping {\\n opacity: .05 !important; }\\n\\n/*-- Region --*/\\n.bb-region {\\n fill: steelblue;\\n fill-opacity: .1; }\\n\\n/*-- Zoom region --*/\\n.bb-zoom-brush {\\n fill-opacity: .1; }\\n\\n/*-- Brush --*/\\n.bb-brush .extent {\\n fill-opacity: .1; }\\n\\n/*-- Legend --*/\\n.bb-legend-item {\\n font-size: 12px;\\n user-select: none; }\\n\\n.bb-legend-item-hidden {\\n opacity: 0.15; }\\n\\n.bb-legend-background {\\n opacity: 0.75;\\n fill: white;\\n stroke: lightgray;\\n stroke-width: 1; }\\n\\n/*-- Title --*/\\n.bb-title {\\n font: 14px sans-serif; }\\n\\n/*-- Treemap --*/\\n.bb-chart-treemaps rect {\\n stroke: #fff;\\n stroke-width: 1px; }\\n\\n/*-- Tooltip --*/\\n.bb-tooltip-container {\\n z-index: 10;\\n user-select: none; }\\n\\n.bb-tooltip {\\n border-collapse: collapse;\\n border-spacing: 0;\\n background-color: #fff;\\n empty-cells: show;\\n opacity: 0.9;\\n -webkit-box-shadow: 7px 7px 12px -9px #777777;\\n -moz-box-shadow: 7px 7px 12px -9px #777777;\\n box-shadow: 7px 7px 12px -9px #777777; }\\n .bb-tooltip tr {\\n border: 1px solid #CCC; }\\n .bb-tooltip th {\\n background-color: #aaa;\\n font-size: 14px;\\n padding: 2px 5px;\\n text-align: left;\\n color: #FFF; }\\n .bb-tooltip td {\\n font-size: 13px;\\n padding: 3px 6px;\\n background-color: #fff;\\n border-left: 1px dotted #999; }\\n .bb-tooltip td > span, .bb-tooltip td > svg {\\n display: inline-block;\\n width: 10px;\\n height: 10px;\\n margin-right: 6px; }\\n .bb-tooltip.value {\\n text-align: right; }\\n\\n/*-- Area --*/\\n.bb-area {\\n stroke-width: 0;\\n opacity: 0.2; }\\n\\n/*-- Arc --*/\\n.bb-chart-arcs-title {\\n dominant-baseline: middle;\\n font-size: 1.3em; }\\n\\ntext.bb-chart-arcs-gauge-title {\\n dominant-baseline: middle;\\n font-size: 2.7em; }\\n\\n.bb-chart-arcs {\\n /*-- Polar --*/ }\\n .bb-chart-arcs .bb-chart-arcs-background {\\n fill: #e0e0e0;\\n stroke: #fff; }\\n .bb-chart-arcs .bb-chart-arcs-gauge-unit {\\n fill: #000;\\n font-size: 16px; }\\n .bb-chart-arcs .bb-chart-arcs-gauge-max {\\n fill: #777; }\\n .bb-chart-arcs .bb-chart-arcs-gauge-min {\\n fill: #777; }\\n .bb-chart-arcs .bb-levels circle {\\n fill: none;\\n stroke: #848282;\\n stroke-width: .5px; }\\n .bb-chart-arcs .bb-levels text {\\n fill: #848282; }\\n\\n/*-- Radar --*/\\n.bb-chart-radars .bb-levels polygon {\\n fill: none;\\n stroke: #848282;\\n stroke-width: .5px; }\\n\\n.bb-chart-radars .bb-levels text {\\n fill: #848282; }\\n\\n.bb-chart-radars .bb-axis line {\\n stroke: #848282;\\n stroke-width: .5px; }\\n\\n.bb-chart-radars .bb-axis text {\\n font-size: 1.15em;\\n cursor: default; }\\n\\n.bb-chart-radars .bb-shapes polygon {\\n fill-opacity: .2;\\n stroke-width: 1px; }\\n\\n/*-- Button --*/\\n.bb-button {\\n position: absolute;\\n top: 10px;\\n right: 10px; }\\n .bb-button .bb-zoom-reset {\\n font-size: 11px;\\n border: solid 1px #ccc;\\n background-color: #fff;\\n padding: 5px;\\n border-radius: 5px;\\n cursor: pointer; }\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/scss/billboard.scss\"],\"names\":[],\"mappings\":\"AAAA,cAAA;AACA;EAEE,qBAAqB;EACrB,6CAA0C,EAAA;;AAH5C;EAOE,UAAU;EACV,YAAY,EAAA;;AARd;EAYE,yBAAyB;EACzB,sBAAsB;EACtB,iBAAiB,EAAA;;AAInB;;;;;;EAMC,2BAA2B,EAAA;;AAG5B;EAEE,UAAU,EAAA;;AAFZ;EAME,YAAY,EAAA;;AANd;EAUE,YAAY;EACZ,eAAe,EAAA;;AAXjB;EAeE,UAAU;EACV,eAAe,EAAA;;AAIjB,aAAA;AACA;EACC,2BAA2B,EAAA;;AAG5B,aAAA;AACA;EACC,oBAAoB,EAAA;EADrB;IAIE,YAAY,EAAA;EAJd;IAQE,UAAU,EAAA;;AAIZ;EACC,qBAAqB,EAAA;;AAGtB,sBAAA;AACA;EAEE,aAAa;EACb,cAAc,EAAA;;AAIhB,aAAA;AACA;EACC,iBAAiB,EAAA;;AAGlB,cAAA;AACA;EACC,iBAAiB;EACjB,aAAa,EAAA;;AAGd;EACC,WAAW;EACX,iBAAiB,EAAA;;AAGlB,YAAA;AACA;EACC,eAAe,EAAA;EADhB;IAIE,kBAAkB,EAAA;;AAIpB,oBAAA;AACA;EACC,iBAAiB,EAAA;EADlB;IAIE,kBAAkB,EAAA;;AAIpB,cAAA;AACA;EAEE,UAAU,EAAA;;AAFZ;EAOG,iBAAiB,EAAA;;AAPpB;EAYE,uBAAuB,EAAA;EAZzB;IAeG,uBAAuB,EAAA;;AAI1B,eAAA;AACA;EACC,eAAe;EACf,gBAAgB,EAAA;;AAGjB,oBAAA;AACA;EACC,gBAAgB,EAAA;;AAGjB,cAAA;AACA;EACC,gBAAgB,EAAA;;AAGjB,eAAA;AACA;EACC,eAAe;EACf,iBAAiB,EAAA;;AAGlB;EACC,aAAa,EAAA;;AAGd;EACC,aAAa;EACb,WAAW;EACX,iBAAiB;EACjB,eAAe,EAAA;;AAGhB,cAAA;AACA;EACC,qBAAqB,EAAA;;AAGtB,gBAAA;AACA;EACI,YAAY;EACZ,iBAAiB,EAAA;;AAGrB,gBAAA;AACA;EACC,WAAW;EACX,iBAAiB,EAAA;;AAGlB;EACC,yBAAwB;EACxB,iBAAgB;EAChB,sBAAqB;EACrB,iBAAgB;EAChB,YAAY;EACZ,6CAAsD;EACtD,0CAAmD;EACnD,qCAA8C,EAAA;EAR/C;IAWE,sBAAqB,EAAA;EAXvB;IAeE,sBAAsB;IACtB,eAAc;IACd,gBAAe;IACf,gBAAe;IACf,WAAU,EAAA;EAnBZ;IAuBE,eAAc;IACd,gBAAgB;IAChB,sBAAqB;IACrB,4BAA2B,EAAA;IA1B7B;MA6BG,qBAAqB;MACrB,WAAW;MACX,YAAY;MACZ,iBAAiB,EAAA;EAhCpB;IAqCE,iBAAiB,EAAA;;AAInB,aAAA;AACA;EACC,eAAe;EACf,YAAY,EAAA;;AAGb,YAAA;AACA;EACC,yBAAyB;EACzB,gBAAgB,EAAA;;AAGjB;EACC,yBAAyB;EACzB,gBAAgB,EAAA;;AAGjB;EAmBC,cAAA,EAAe;EAnBhB;IAEE,aAAa;IACb,YAAY,EAAA;EAHd;IAOE,UAAU;IACV,eAAe,EAAA;EARjB;IAYE,UAAU,EAAA;EAZZ;IAgBE,UAAU,EAAA;EAhBZ;IAsBG,UAAU;IACV,eAAe;IACf,kBAAkB,EAAA;EAxBrB;IA4BG,aAAa,EAAA;;AAKhB,cAAA;AACA;EAGG,UAAU;EACV,eAAe;EACf,kBAAkB,EAAA;;AALrB;EASG,aAAa,EAAA;;AAThB;EAeG,eAAe;EACf,kBAAkB,EAAA;;AAhBrB;EAoBG,iBAAiB;EACjB,eAAe,EAAA;;AArBlB;EA2BG,gBAAgB;EAChB,iBAAiB,EAAA;;AAKpB,eAAA;AACA;EACC,kBAAkB;EAClB,SAAS;EACT,WAAW,EAAA;EAHZ;IAME,eAAe;IACf,sBAAsB;IACtB,sBAAsB;IACtB,YAAY;IACZ,kBAAkB;IAClB,eAAe,EAAA\",\"sourcesContent\":[\"/*-- Chart --*/\\n.bb {\\n\\tsvg {\\n\\t\\tfont: 10px sans-serif;\\n\\t\\t-webkit-tap-highlight-color: rgba(0,0,0,0);\\n\\t}\\n\\n\\tpath, line {\\n\\t\\tfill: none;\\n\\t\\tstroke: #000;\\n\\t}\\n\\n\\ttext, .bb-button {\\n\\t\\t-webkit-user-select: none;\\n\\t\\t-moz-user-select: none;\\n\\t\\tuser-select: none;\\n\\t}\\n}\\n\\n.bb-legend-item-tile,\\n.bb-xgrid-focus,\\n.bb-ygrid-focus,\\n.bb-ygrid,\\n.bb-event-rect,\\n.bb-bars path {\\n\\tshape-rendering: crispEdges;\\n}\\n\\n.bb-chart-arc {\\n\\t.bb-gauge-value {\\n\\t\\tfill: #000;\\n\\t}\\n\\n\\tpath {\\n\\t\\tstroke: #fff;\\n\\t}\\n\\n\\trect {\\n\\t\\tstroke: #fff;\\n\\t\\tstroke-width: 1;\\n\\t}\\n\\n\\ttext {\\n\\t\\tfill: #fff;\\n\\t\\tfont-size: 13px;\\n\\t}\\n}\\n\\n/*-- Axis --*/\\n.bb-axis {\\n\\tshape-rendering: crispEdges;\\n}\\n\\n/*-- Grid --*/\\n.bb-grid {\\n\\tpointer-events: none;\\n\\n\\tline {\\n\\t\\tstroke: #aaa;\\n\\t}\\n\\n\\ttext {\\n\\t\\tfill: #aaa;\\n\\t}\\n}\\n\\n.bb-xgrid, .bb-ygrid {\\n\\tstroke-dasharray: 3 3;\\n}\\n\\n/*-- Text on Chart --*/\\n.bb-text {\\n\\t&.bb-empty {\\n\\t\\tfill: #808080;\\n\\t\\tfont-size: 2em;\\n\\t}\\n}\\n\\n/*-- Line --*/\\n.bb-line {\\n\\tstroke-width: 1px;\\n}\\n\\n/*-- Point --*/\\n.bb-circle._expanded_ {\\n\\tstroke-width: 1px;\\n\\tstroke: white;\\n}\\n\\n.bb-selected-circle {\\n\\tfill: white;\\n\\tstroke-width: 2px;\\n}\\n\\n/*-- Bar --*/\\n.bb-bar {\\n\\tstroke-width: 0;\\n\\n\\t&._expanded_ {\\n\\t\\tfill-opacity: 0.75;\\n\\t}\\n}\\n\\n/*-- Candlestick --*/\\n.bb-candlestick {\\n\\tstroke-width: 1px;\\n\\n\\t&._expanded_ {\\n\\t\\tfill-opacity: 0.75;\\n\\t}\\n}\\n\\n/*-- Focus --*/\\n.bb-target, .bb-circles {\\n\\t&.bb-focused {\\n\\t\\topacity: 1;\\n\\t}\\n\\n\\t&.bb-focused {\\n\\t\\tpath.bb-line, path.bb-step {\\n\\t\\t\\tstroke-width: 2px;\\n\\t\\t}\\n\\t}\\n\\n\\t&.bb-defocused {\\n\\t\\topacity: 0.3 !important;\\n\\n\\t\\t.text-overlapping {\\n\\t\\t\\topacity: .05 !important;\\n\\t\\t}\\n\\t}\\n}\\n/*-- Region --*/\\n.bb-region {\\n\\tfill: steelblue;\\n\\tfill-opacity: .1;\\n}\\n\\n/*-- Zoom region --*/\\n.bb-zoom-brush {\\n\\tfill-opacity: .1;\\n}\\n\\n/*-- Brush --*/\\n.bb-brush .extent {\\n\\tfill-opacity: .1;\\n}\\n\\n/*-- Legend --*/\\n.bb-legend-item {\\n\\tfont-size: 12px;\\n\\tuser-select: none;\\n}\\n\\n.bb-legend-item-hidden {\\n\\topacity: 0.15;\\n}\\n\\n.bb-legend-background {\\n\\topacity: 0.75;\\n\\tfill: white;\\n\\tstroke: lightgray;\\n\\tstroke-width: 1;\\n}\\n\\n/*-- Title --*/\\n.bb-title {\\n\\tfont: 14px sans-serif;\\n}\\n\\n/*-- Treemap --*/\\n.bb-chart-treemaps rect {\\n stroke: #fff;\\n stroke-width: 1px;\\n}\\n\\n/*-- Tooltip --*/\\n.bb-tooltip-container {\\n\\tz-index: 10;\\n\\tuser-select: none;\\n}\\n\\n.bb-tooltip {\\n\\tborder-collapse:collapse;\\n\\tborder-spacing:0;\\n\\tbackground-color:#fff;\\n\\tempty-cells:show;\\n\\topacity: 0.9;\\n\\t-webkit-box-shadow: 7px 7px 12px -9px rgb(119,119,119);\\n\\t-moz-box-shadow: 7px 7px 12px -9px rgb(119,119,119);\\n\\tbox-shadow: 7px 7px 12px -9px rgb(119,119,119);\\n\\n\\ttr {\\n\\t\\tborder:1px solid #CCC;\\n\\t}\\n\\n\\tth {\\n\\t\\tbackground-color: #aaa;\\n\\t\\tfont-size:14px;\\n\\t\\tpadding:2px 5px;\\n\\t\\ttext-align:left;\\n\\t\\tcolor:#FFF;\\n\\t}\\n\\n\\ttd {\\n\\t\\tfont-size:13px;\\n\\t\\tpadding: 3px 6px;\\n\\t\\tbackground-color:#fff;\\n\\t\\tborder-left:1px dotted #999;\\n\\n\\t\\t> span, > svg {\\n\\t\\t\\tdisplay: inline-block;\\n\\t\\t\\twidth: 10px;\\n\\t\\t\\theight: 10px;\\n\\t\\t\\tmargin-right: 6px;\\n\\t\\t}\\n\\t}\\n\\n\\t&.value {\\n\\t\\ttext-align: right;\\n\\t}\\n}\\n\\n/*-- Area --*/\\n.bb-area {\\n\\tstroke-width: 0;\\n\\topacity: 0.2;\\n}\\n\\n/*-- Arc --*/\\n.bb-chart-arcs-title {\\n\\tdominant-baseline: middle;\\n\\tfont-size: 1.3em;\\n}\\n\\ntext.bb-chart-arcs-gauge-title {\\n\\tdominant-baseline: middle;\\n\\tfont-size: 2.7em;\\n}\\n\\n.bb-chart-arcs {\\n\\t.bb-chart-arcs-background {\\n\\t\\tfill: #e0e0e0;\\n\\t\\tstroke: #fff;\\n\\t}\\n\\n\\t.bb-chart-arcs-gauge-unit {\\n\\t\\tfill: #000;\\n\\t\\tfont-size: 16px;\\n\\t}\\n\\n\\t.bb-chart-arcs-gauge-max {\\n\\t\\tfill: #777;\\n\\t}\\n\\n\\t.bb-chart-arcs-gauge-min {\\n\\t\\tfill: #777;\\n\\t}\\n\\n\\t/*-- Polar --*/\\n\\t.bb-levels {\\n\\t\\tcircle {\\n\\t\\t\\tfill: none;\\n\\t\\t\\tstroke: #848282;\\n\\t\\t\\tstroke-width: .5px;\\n\\t\\t}\\n\\n\\t\\ttext {\\n\\t\\t\\tfill: #848282;\\n\\t\\t}\\n\\t}\\n}\\n\\n/*-- Radar --*/\\n.bb-chart-radars {\\n\\t.bb-levels {\\n\\t\\tpolygon {\\n\\t\\t\\tfill: none;\\n\\t\\t\\tstroke: #848282;\\n\\t\\t\\tstroke-width: .5px;\\n\\t\\t}\\n\\n\\t\\ttext {\\n\\t\\t\\tfill: #848282;\\n\\t\\t}\\n\\t}\\n\\n\\t.bb-axis {\\n\\t\\tline {\\n\\t\\t\\tstroke: #848282;\\n\\t\\t\\tstroke-width: .5px;\\n\\t\\t}\\n\\n\\t\\ttext {\\n\\t\\t\\tfont-size: 1.15em;\\n\\t\\t\\tcursor: default;\\n\\t\\t}\\n\\t}\\n\\n\\t.bb-shapes {\\n\\t\\tpolygon {\\n\\t\\t\\tfill-opacity: .2;\\n\\t\\t\\tstroke-width: 1px;\\n\\t\\t}\\n\\t}\\n}\\n\\n/*-- Button --*/\\n.bb-button {\\n\\tposition: absolute;\\n\\ttop: 10px;\\n\\tright: 10px;\\n\\n\\t.bb-zoom-reset {\\n\\t\\tfont-size: 11px;\\n\\t\\tborder: solid 1px #ccc;\\n\\t\\tbackground-color: #fff;\\n\\t\\tpadding: 5px;\\n\\t\\tborder-radius: 5px;\\n\\t\\tcursor: pointer;\\n\\t}\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\nmodule.exports = function (item) {\n var content = item[1];\n var cssMapping = item[3];\n if (!cssMapping) {\n return content;\n }\n if (typeof btoa === \"function\") {\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n var sourceMapping = \"/*# \".concat(data, \" */\");\n return [content].concat([sourceMapping]).join(\"\\n\");\n }\n return [content].join(\"\\n\");\n};","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nc = undefined;","\n import API from \"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./billboard.scss\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./billboard.scss\";\n export default content && content.locals ? content.locals : undefined;\n","export default function _newArrowCheck(innerThis, boundThis) {\n if (innerThis !== boundThis) {\n throw new TypeError(\"Cannot instantiate an arrow function\");\n }\n}","import _newArrowCheck from \"@babel/runtime/helpers/esm/newArrowCheck\";\nvar _this = this;\n/**\n * Copyright (c) 2017 ~ present NAVER Corp.\n * billboard project is licensed under the MIT license\n */\nimport * as shape from \"./config/resolver/shape.js\";\nimport * as interaction from \"./config/resolver/interaction.js\";\n// extends shape modules\nObject.keys(shape).forEach(function (v) {\n _newArrowCheck(this, _this);\n return shape[v]();\n}.bind(this));\n// extends interaction modules\nObject.keys(interaction).forEach(function (v) {\n _newArrowCheck(this, _this);\n return interaction[v]();\n}.bind(this));\nexport { default, bb } from \"./core.js\";\n"],"names":[],"sourceRoot":""}
|
package/dist/package.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type":"commonjs"}
|