billboard.js 4.1.0 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/billboard.css +1 -1
- package/dist/billboard.js +4 -3
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +16 -16
- package/dist/billboard.pkgd.js +5 -4
- package/dist/billboard.pkgd.min.js +4 -4
- package/dist/billboard.react.js +1 -1
- package/dist/billboard.react.min.js +1 -1
- package/dist/billboard.worker.js +1 -1
- 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 +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +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-tableview.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -2
- 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 +8 -8
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +9 -9
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +9 -9
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +10 -10
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +8 -8
- 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/Chart/Chart.js +1 -1
- package/dist-esm/Chart/api/axis.js +1 -1
- package/dist-esm/Chart/api/category.js +1 -1
- package/dist-esm/Chart/api/chart.js +1 -1
- package/dist-esm/Chart/api/color.js +1 -1
- package/dist-esm/Chart/api/data.js +1 -1
- package/dist-esm/Chart/api/export.js +1 -1
- package/dist-esm/Chart/api/flow.js +1 -1
- package/dist-esm/Chart/api/focus.js +1 -1
- package/dist-esm/Chart/api/grid.js +1 -1
- package/dist-esm/Chart/api/group.js +1 -1
- package/dist-esm/Chart/api/legend.js +1 -1
- package/dist-esm/Chart/api/load.js +1 -1
- package/dist-esm/Chart/api/regions.js +1 -1
- package/dist-esm/Chart/api/selection.js +1 -1
- package/dist-esm/Chart/api/show.js +1 -1
- package/dist-esm/Chart/api/stubs.js +1 -1
- package/dist-esm/Chart/api/subchart.js +1 -1
- package/dist-esm/Chart/api/tooltip.js +1 -1
- package/dist-esm/Chart/api/x.js +1 -1
- package/dist-esm/Chart/api/zoom.js +1 -1
- package/dist-esm/ChartInternal/Axis/Axis.js +1 -1
- package/dist-esm/ChartInternal/Axis/AxisRenderer.js +1 -1
- package/dist-esm/ChartInternal/Axis/AxisRendererHelper.js +1 -1
- package/dist-esm/ChartInternal/ChartInternal.js +1 -1
- package/dist-esm/ChartInternal/data/convert.helper.js +1 -1
- package/dist-esm/ChartInternal/data/convert.js +1 -1
- package/dist-esm/ChartInternal/data/data.js +1 -1
- package/dist-esm/ChartInternal/data/load.js +1 -1
- package/dist-esm/ChartInternal/interactions/drag.js +1 -1
- package/dist-esm/ChartInternal/interactions/eventrect.js +1 -1
- package/dist-esm/ChartInternal/interactions/flow.js +1 -1
- package/dist-esm/ChartInternal/interactions/interaction.js +1 -1
- package/dist-esm/ChartInternal/interactions/subchart.js +1 -1
- package/dist-esm/ChartInternal/interactions/zoom.js +1 -1
- package/dist-esm/ChartInternal/internals/category.js +1 -1
- package/dist-esm/ChartInternal/internals/class.js +1 -1
- package/dist-esm/ChartInternal/internals/clip.js +1 -1
- package/dist-esm/ChartInternal/internals/color.js +1 -1
- package/dist-esm/ChartInternal/internals/domain.js +1 -1
- package/dist-esm/ChartInternal/internals/format.js +1 -1
- package/dist-esm/ChartInternal/internals/grid.js +3 -2
- package/dist-esm/ChartInternal/internals/legend.js +1 -1
- package/dist-esm/ChartInternal/internals/redraw.js +1 -1
- package/dist-esm/ChartInternal/internals/region.js +1 -1
- package/dist-esm/ChartInternal/internals/scale.js +1 -1
- package/dist-esm/ChartInternal/internals/selection.js +1 -1
- package/dist-esm/ChartInternal/internals/size.axis.js +1 -1
- package/dist-esm/ChartInternal/internals/size.js +1 -1
- package/dist-esm/ChartInternal/internals/style.js +1 -1
- package/dist-esm/ChartInternal/internals/subchart.util.js +1 -1
- package/dist-esm/ChartInternal/internals/text.arc.js +1 -1
- package/dist-esm/ChartInternal/internals/text.js +1 -1
- package/dist-esm/ChartInternal/internals/text.util.js +1 -1
- package/dist-esm/ChartInternal/internals/title.js +1 -1
- package/dist-esm/ChartInternal/internals/tooltip.js +1 -1
- package/dist-esm/ChartInternal/internals/transform.js +1 -1
- package/dist-esm/ChartInternal/internals/type.js +1 -1
- package/dist-esm/ChartInternal/shape/arc.js +1 -1
- package/dist-esm/ChartInternal/shape/area.js +1 -1
- package/dist-esm/ChartInternal/shape/bar.js +1 -1
- package/dist-esm/ChartInternal/shape/bubble.js +1 -1
- package/dist-esm/ChartInternal/shape/candlestick.js +1 -1
- package/dist-esm/ChartInternal/shape/core/barRadius.js +1 -1
- package/dist-esm/ChartInternal/shape/core/bubble.js +1 -1
- package/dist-esm/ChartInternal/shape/core/candlestick.js +1 -1
- package/dist-esm/ChartInternal/shape/core/dataRegion.js +1 -1
- package/dist-esm/ChartInternal/shape/core/geometry.js +1 -1
- package/dist-esm/ChartInternal/shape/core/path.js +1 -1
- package/dist-esm/ChartInternal/shape/core/point.js +1 -1
- package/dist-esm/ChartInternal/shape/core/treemap.js +1 -1
- package/dist-esm/ChartInternal/shape/funnel.js +1 -1
- package/dist-esm/ChartInternal/shape/gauge.js +1 -1
- package/dist-esm/ChartInternal/shape/line.js +1 -1
- package/dist-esm/ChartInternal/shape/point.js +1 -1
- package/dist-esm/ChartInternal/shape/polar.js +1 -1
- package/dist-esm/ChartInternal/shape/radar.js +2 -3
- package/dist-esm/ChartInternal/shape/shape.js +1 -1
- package/dist-esm/ChartInternal/shape/treemap.js +1 -1
- package/dist-esm/canvas/CanvasAxisRenderer.js +1 -1
- package/dist-esm/canvas/CanvasEngine.js +1 -1
- package/dist-esm/canvas/CanvasPainter.js +1 -1
- package/dist-esm/canvas/CanvasRenderer.js +1 -1
- package/dist-esm/canvas/CanvasTheme.js +1 -1
- package/dist-esm/canvas/HitDetector.js +1 -1
- package/dist-esm/canvas/axisTicks.js +1 -1
- package/dist-esm/canvas/classes.js +1 -1
- package/dist-esm/canvas/color.js +1 -1
- package/dist-esm/canvas/geometry.js +1 -1
- package/dist-esm/canvas/labels.js +1 -1
- package/dist-esm/canvas/pointPattern.js +1 -1
- package/dist-esm/canvas/util.js +1 -1
- package/dist-esm/config/Options/Options.js +1 -1
- package/dist-esm/config/Options/axis/axis.js +1 -1
- package/dist-esm/config/Options/axis/x.js +1 -1
- package/dist-esm/config/Options/axis/y.js +1 -1
- package/dist-esm/config/Options/axis/y2.js +1 -1
- package/dist-esm/config/Options/common/boost.js +1 -1
- package/dist-esm/config/Options/common/color.js +1 -1
- package/dist-esm/config/Options/common/grid.js +1 -1
- package/dist-esm/config/Options/common/legend.js +1 -1
- package/dist-esm/config/Options/common/main.js +1 -1
- package/dist-esm/config/Options/common/point.js +1 -1
- package/dist-esm/config/Options/common/title.js +1 -1
- package/dist-esm/config/Options/common/tooltip.js +1 -1
- package/dist-esm/config/Options/data/axis.js +1 -1
- package/dist-esm/config/Options/data/data.js +1 -1
- package/dist-esm/config/Options/data/selection.js +1 -1
- package/dist-esm/config/Options/interaction/interaction.js +1 -1
- package/dist-esm/config/Options/interaction/subchart.js +1 -1
- package/dist-esm/config/Options/interaction/zoom.js +1 -1
- package/dist-esm/config/Options/shape/arc.js +1 -1
- package/dist-esm/config/Options/shape/area.js +1 -1
- package/dist-esm/config/Options/shape/bar.js +1 -1
- package/dist-esm/config/Options/shape/bubble.js +1 -1
- package/dist-esm/config/Options/shape/candlestick.js +1 -1
- package/dist-esm/config/Options/shape/donut.js +1 -1
- package/dist-esm/config/Options/shape/funnel.js +1 -1
- package/dist-esm/config/Options/shape/gauge.js +1 -1
- package/dist-esm/config/Options/shape/line.js +1 -1
- package/dist-esm/config/Options/shape/pie.js +1 -1
- package/dist-esm/config/Options/shape/polar.js +1 -1
- package/dist-esm/config/Options/shape/radar.js +1 -1
- package/dist-esm/config/Options/shape/scatter.js +1 -1
- package/dist-esm/config/Options/shape/spline.js +1 -1
- package/dist-esm/config/Options/shape/treemap.js +1 -1
- package/dist-esm/config/Store/Element.js +1 -1
- package/dist-esm/config/Store/State.js +1 -1
- package/dist-esm/config/Store/Store.js +1 -1
- package/dist-esm/config/classes.js +1 -1
- package/dist-esm/config/config.js +1 -1
- package/dist-esm/config/const.js +1 -1
- package/dist-esm/config/resolver/axis.core.js +1 -1
- package/dist-esm/config/resolver/axis.js +1 -1
- package/dist-esm/config/resolver/canvas.js +1 -1
- package/dist-esm/config/resolver/canvasShape.js +1 -1
- package/dist-esm/config/resolver/category.js +1 -1
- package/dist-esm/config/resolver/export.js +1 -1
- package/dist-esm/config/resolver/flow.js +1 -1
- package/dist-esm/config/resolver/grid.js +1 -1
- package/dist-esm/config/resolver/interaction/selection.js +1 -1
- package/dist-esm/config/resolver/interaction/subchart.js +1 -1
- package/dist-esm/config/resolver/interaction/zoom.js +1 -1
- package/dist-esm/config/resolver/regions.js +1 -1
- package/dist-esm/config/resolver/shape/arc.helpers.js +1 -1
- package/dist-esm/config/resolver/shape/area.js +1 -1
- package/dist-esm/config/resolver/shape/axis.helpers.js +1 -1
- package/dist-esm/config/resolver/shape/bar.js +1 -1
- package/dist-esm/config/resolver/shape/bubble.js +1 -1
- package/dist-esm/config/resolver/shape/candlestick.js +1 -1
- package/dist-esm/config/resolver/shape/donut.js +1 -1
- package/dist-esm/config/resolver/shape/funnel.js +1 -1
- package/dist-esm/config/resolver/shape/gauge.js +1 -1
- package/dist-esm/config/resolver/shape/line.js +1 -1
- package/dist-esm/config/resolver/shape/pie.js +1 -1
- package/dist-esm/config/resolver/shape/polar.js +1 -1
- package/dist-esm/config/resolver/shape/radar.js +1 -1
- package/dist-esm/config/resolver/shape/scatter.js +1 -1
- package/dist-esm/config/resolver/shape/treemap.js +1 -1
- package/dist-esm/core.js +3 -3
- package/dist-esm/index.canvas.js +1 -1
- package/dist-esm/index.esm.js +1 -1
- package/dist-esm/module/Cache.js +1 -1
- package/dist-esm/module/browser.js +1 -1
- package/dist-esm/module/dsv.js +1 -1
- package/dist-esm/module/error.js +1 -1
- package/dist-esm/module/generator.js +1 -1
- package/dist-esm/module/sanitize.js +1 -1
- package/dist-esm/module/util/brush.js +1 -1
- package/dist-esm/module/util/dom.js +1 -1
- package/dist-esm/module/util/object.js +1 -1
- package/dist-esm/module/util/type-checks.js +1 -1
- package/dist-esm/module/worker.js +1 -1
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
- package/dist-esm/react/index.js +1 -1
- package/package.json +19 -19
- package/src/ChartInternal/internals/grid.ts +3 -2
package/dist/billboard.react.js
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.1.
|
|
8
|
+
* @version 4.1.1
|
|
9
9
|
*/(function(c,f){typeof exports=="object"&&typeof module=="object"?module.exports=f(require("react")):typeof define=="function"&&define.amd?define(["react"],f):typeof exports=="object"?exports.BillboardReact=f(require("react")):c.BillboardReact=f(c.React)})(this,function(d){return(function(){var c={13:(function(e){"use strict";e.exports=d})},f={};function i(e){var a=f[e];if(a!==void 0)return a.exports;var u=f[e]={exports:{}};return c[e](u,u.exports,i),u.exports}i.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(a,{a}),a},i.d=function(e,a){for(var u in a)i.o(a,u)&&!i.o(e,u)&&Object.defineProperty(e,u,{enumerable:!0,get:a[u]})},i.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},i.r=function(e){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var _={};return(function(){"use strict";i.r(_),i.d(_,{Chart:function(){return y}});var e=i(13),a=i.n(e),u=Object.defineProperty,E=Object.defineProperties,R=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,O=(r,t,n)=>t in r?u(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n,s=(r,t)=>{for(var n in t||(t={}))v.call(t,n)&&O(r,n,t[n]);if(l)for(var n of l(t))b.call(t,n)&&O(r,n,t[n]);return r},P=(r,t)=>E(r,R(t)),x=(r,t)=>{var n={};for(var o in r)v.call(r,o)&&t.indexOf(o)<0&&(n[o]=r[o]);if(r!=null&&l)for(var o of l(r))t.indexOf(o)<0&&b.call(r,o)&&(n[o]=r[o]);return n};function M(r){return typeof r=="function"?r():r}function D(r,t){const n=M(t);return s(s({},r),n?{data:P(s({},r.data),{type:n})}:{})}const y=(0,e.forwardRef)((r,t)=>{const n=(0,e.useRef)(null),o=(0,e.useRef)(null),m=r,{bb:g,options:w,type:S,modules:j}=m,T=x(m,["bb","options","type","modules"]);return(0,e.useEffect)(()=>{if(!g||!w){console.warn("Required props('bb' or 'options') are not defined.");return}j==null||j.forEach(p=>p());const h=D(w,S);return h.bindto=n.current,o.current=g.generate(h),()=>{var p;(p=o.current)==null||p.destroy(),o.current=null}},[]),(0,e.useImperativeHandle)(t,()=>({get instance(){return o.current}}),[]),(0,e.createElement)("div",P(s({},T),{ref:n}))});_.default=y})(),_})()});
|
package/dist/billboard.worker.js
CHANGED
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.1.
|
|
8
|
+
* @version 4.1.1
|
|
9
9
|
*/
|
|
10
10
|
var bbWorker=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){let t=[];return e.forEach(function(e,n){let r=e[0];e.forEach(function(e,i){if(i>0){if(t[i-1]===void 0&&(t[i-1]={}),e===void 0)throw Error(`Source data is missing a component at (${n}, ${i})!`);t[i-1][r]=e}})}),t}function n(e){let t=e[0],n=[];return e.forEach(function(e,r){if(r>0){let i={};e.forEach(function(e,n){if(e===void 0)throw Error(`Source data is missing a component at (${r}, ${n})!`);i[t[n]]=e}),n.push(i)}}),n}function r(e,r){let i=[],a,o;if(Array.isArray(e)){let t=function(e,t){if(e[t]!==void 0)return e[t];let n=t.replace(/\[(\w+)\]/g,`.$1`).replace(/^\./,``).split(`.`),r=e;return n.some(function(e){return!(r=r&&typeof r==`object`&&e in r?r[e]:void 0)}),r};a=r.x?r.value.concat(r.x):r.value,i.push(a),e.forEach(function(e){let n=a.map(function(n){let r=t(e,n);return r===void 0&&(r=null),r});i.push(n)}),o=n(i)}else Object.keys(e).forEach(function(t){let n=[].concat(e[t]);n.unshift?.(t),i.push(n)}),o=t(i);return o}let i={columns:t,json:r,rows:n},a=self;function o({data:e}){let{args:t,id:n,op:r}=e;try{let e=i[r];if(!e)throw Error(`Unknown worker op: ${r}`);a.postMessage({id:n,result:e(...t)})}catch(e){a.postMessage({id:n,error:e&&(e.message||e.name)||String(e)})}}return typeof window>`u`&&(a.onmessage=o),e.handleMessage=o,e.ops=i,e})({});
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.1.
|
|
8
|
+
* @version 4.1.1
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -198,7 +198,7 @@ class Plugin {
|
|
|
198
198
|
});
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
__publicField(Plugin, "version", "4.1.
|
|
201
|
+
__publicField(Plugin, "version", "4.1.1");
|
|
202
202
|
|
|
203
203
|
;// ./src/Plugin/bubblecompare/index.ts
|
|
204
204
|
var bubblecompare_defProp = Object.defineProperty;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.1.
|
|
8
|
+
* @version 4.1.1
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
|
-
*/(function(u,b){typeof exports=="object"&&typeof module=="object"?module.exports=b(require("d3-selection")):typeof define=="function"&&define.amd?define("bb",["d3-selection"],b):typeof exports=="object"?exports.bb=b(require("d3-selection")):(u.bb=u.bb||{},u.bb.plugin=u.bb.plugin||{},u.bb.plugin.bubblecompare=b(u.d3))})(this,function(_){return(function(){var u={747:(function(i){"use strict";i.exports=_})},b={};function p(i){var o=b[i];if(o!==void 0)return o.exports;var a=b[i]={exports:{}};return u[i](a,a.exports,p),a.exports}p.d=function(i,o){for(var a in o)p.o(o,a)&&!p.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:o[a]})},p.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)};var f={};return(function(){"use strict";p.d(f,{default:function(){return F}});var i=p(747);const o=e=>e||e===0,a=e=>typeof e=="function",x=e=>typeof e=="string",v=e=>typeof e=="number",B=e=>typeof e=="undefined",P=e=>typeof e!="undefined",z=e=>typeof e=="boolean",L=e=>Math.ceil(e/10)*10,S=e=>Math.ceil(e)+.5,U=e=>e[1]-e[0],h=e=>typeof e=="object",C=e=>{for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},O=e=>B(e)||e===null||x(e)&&e.length===0||h(e)&&!(e instanceof Date)&&C(e)||v(e)&&isNaN(e),V=e=>!O(e),R=e=>Array.isArray(e),H=e=>e&&!(e!=null&&e.nodeType)&&h(e)&&!R(e);function w(e){const t=this.config;let n,c,s;const l=()=>{const r=c.shift();if(r&&n&&h(n)&&r in n)return n=n[r],l();if(!r)return n};Object.keys(t).forEach(r=>{n=e,c=r.split("_"),s=l(),P(s)&&(t[r]=s)}),this.api&&(this.state.orgConfig=e)}var D=Object.defineProperty,E=(e,t,n)=>t in e?D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t,n)=>E(e,typeof t!="symbol"?t+"":t,n);class m{constructor(t={}){d(this,"$$"),d(this,"options"),d(this,"config"),this.options=t}loadConfig(){w.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(t=>{this[t]=null,delete this[t]})}}d(m,"version","4.1.
|
|
11
|
+
*/(function(u,b){typeof exports=="object"&&typeof module=="object"?module.exports=b(require("d3-selection")):typeof define=="function"&&define.amd?define("bb",["d3-selection"],b):typeof exports=="object"?exports.bb=b(require("d3-selection")):(u.bb=u.bb||{},u.bb.plugin=u.bb.plugin||{},u.bb.plugin.bubblecompare=b(u.d3))})(this,function(_){return(function(){var u={747:(function(i){"use strict";i.exports=_})},b={};function p(i){var o=b[i];if(o!==void 0)return o.exports;var a=b[i]={exports:{}};return u[i](a,a.exports,p),a.exports}p.d=function(i,o){for(var a in o)p.o(o,a)&&!p.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:o[a]})},p.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)};var f={};return(function(){"use strict";p.d(f,{default:function(){return F}});var i=p(747);const o=e=>e||e===0,a=e=>typeof e=="function",x=e=>typeof e=="string",v=e=>typeof e=="number",B=e=>typeof e=="undefined",P=e=>typeof e!="undefined",z=e=>typeof e=="boolean",L=e=>Math.ceil(e/10)*10,S=e=>Math.ceil(e)+.5,U=e=>e[1]-e[0],h=e=>typeof e=="object",C=e=>{for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},O=e=>B(e)||e===null||x(e)&&e.length===0||h(e)&&!(e instanceof Date)&&C(e)||v(e)&&isNaN(e),V=e=>!O(e),R=e=>Array.isArray(e),H=e=>e&&!(e!=null&&e.nodeType)&&h(e)&&!R(e);function w(e){const t=this.config;let n,c,s;const l=()=>{const r=c.shift();if(r&&n&&h(n)&&r in n)return n=n[r],l();if(!r)return n};Object.keys(t).forEach(r=>{n=e,c=r.split("_"),s=l(),P(s)&&(t[r]=s)}),this.api&&(this.state.orgConfig=e)}var D=Object.defineProperty,E=(e,t,n)=>t in e?D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t,n)=>E(e,typeof t!="symbol"?t+"":t,n);class m{constructor(t={}){d(this,"$$"),d(this,"options"),d(this,"config"),this.options=t}loadConfig(){w.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(t=>{this[t]=null,delete this[t]})}}d(m,"version","4.1.1");var j=Object.defineProperty,M=(e,t,n)=>t in e?j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N=(e,t,n)=>M(e,typeof t!="symbol"?t+"":t,n);const g=class $ extends m{constructor(t){return super(t),this}$init(){const{$$:t}=this;t.findClosest=this.findClosest.bind(this),t.getBubbleR=this.getBubbleR.bind(this),t.pointExpandedR=this.pointExpandedR.bind(this)}pointExpandedR(t){const n=this.getBubbleR(t),{expandScale:c=1}=this.options;return $.raiseFocusedBubbleLayer(t),this.changeCursorPoint(),n*c}static raiseFocusedBubbleLayer(t){t.raise&&(0,i.select)(t.node().parentNode.parentNode).raise()}changeCursorPoint(){this.$$.$el.eventRect.style("cursor","pointer")}findClosest(t,n){const{$$:c}=this;return t.filter(s=>s&&!c.isBarType(s.id)).reduce((s,l)=>c.dist(l,n)<this.getBubbleR(l)?l:s,0)}getBubbleR(t){const{minR:n,maxR:c}=this.options,s=this.getZData(t);if(!s)return n;const[l,r]=this.$$.data.targets.reduce(([T,q],A)=>{const y=this.getZData(A.values[0]);return[Math.min(T,y),Math.max(q,y)]},[1e4,0]),Z=l>0&&r===l?0:s/r;return Math.abs(Z)*(c-n)+n}getZData(t){return this.$$.isBubbleZType(t)?this.$$.getBubbleZData(t.value,"z"):t.value}};N(g,"version","0.0.1");let F=g})(),f=f.default,f})()});
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.1.
|
|
8
|
+
* @version 4.1.1
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -1217,7 +1217,7 @@ class Plugin {
|
|
|
1217
1217
|
});
|
|
1218
1218
|
}
|
|
1219
1219
|
}
|
|
1220
|
-
__publicField(Plugin, "version", "4.1.
|
|
1220
|
+
__publicField(Plugin, "version", "4.1.1");
|
|
1221
1221
|
|
|
1222
1222
|
;// ./src/Plugin/sparkline/Options.ts
|
|
1223
1223
|
class Options {
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.1.
|
|
8
|
+
* @version 4.1.1
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/(function(p,g){typeof exports=="object"&&typeof module=="object"?module.exports=g(require("d3-selection")):typeof define=="function"&&define.amd?define("bb",["d3-selection"],g):typeof exports=="object"?exports.bb=g(require("d3-selection")):(p.bb=p.bb||{},p.bb.plugin=p.bb.plugin||{},p.bb.plugin.sparkline=g(p.d3))})(this,function(P){return(function(){var p={747:(function(u){"use strict";u.exports=P})},g={};function m(u){var b=g[u];if(b!==void 0)return b.exports;var f=g[u]={exports:{}};return p[u](f,f.exports,m),f.exports}m.d=function(u,b){for(var f in b)m.o(b,f)&&!m.o(u,f)&&Object.defineProperty(u,f,{enumerable:!0,get:b[f]})},m.o=function(u,b){return Object.prototype.hasOwnProperty.call(u,b)};var _={};return(function(){"use strict";m.d(_,{default:function(){return Y}});var u=Object.defineProperty,b=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,R=(e,t,n)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c=(e,t)=>{for(var n in t||(t={}))f.call(t,n)&&R(e,n,t[n]);if(b)for(var n of b(t))V.call(t,n)&&R(e,n,t[n]);return e};const I={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_",dummy:"_dummy_"},G={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcLabelLineText:"bb-arc-label-line-text",arcRange:"bb-arc-range",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title",needle:"bb-needle"},z={area:"bb-area",areas:"bb-areas"},W={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",axisXTooltip:"bb-axis-x-tooltip",axisYTooltip:"bb-axis-y-tooltip",axisY2Tooltip:"bb-axis-y2-tooltip",axisTooltipX:"bb-axis-tooltip-x",axisTooltipY:"bb-axis-tooltip-y"},K={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars",barConnectLine:"bb-bar-connectLine"},Z={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},J={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},Q={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},ee={dragarea:"bb-dragarea",INCLUDED:"_included_"},te={funnel:"bb-funnel",chartFunnel:"bb-chart-funnel",chartFunnels:"bb-chart-funnels",funnelBackground:"bb-funnel-background"},ne={chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"},re={legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"},ie={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},oe={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},se={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",xgridFocusContinuous:"bb-xgrid-focus-continuous",ygridFocus:"bb-ygrid-focus"},ce={grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"},le={level:"bb-level",levels:"bb-levels"},ae={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},ue={region:"bb-region",regions:"bb-regions"},be={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},fe={shape:"bb-shape",shapes:"bb-shapes"},de={brush:"bb-brush",subchart:"bb-subchart"},he={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",textBorderRect:"bb-text-border",textLabelImage:"bb-text-label-image",TextOverlapping:"text-overlapping"},pe={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},ge={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},me={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"};var Qe=c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c({},I),G),z),W),K),Z),J),Q),ee),ne),re),ie),oe),se),te),ce),le),ae),ue),be),fe),de),he),pe),ge),me),et=m(747);function ve(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function _e(e){const t=typeof(e==null?void 0:e.requestAnimationFrame)=="function"&&typeof(e==null?void 0:e.cancelAnimationFrame)=="function",n=typeof(e==null?void 0:e.requestIdleCallback)=="function"&&typeof(e==null?void 0:e.cancelIdleCallback)=="function",r=o=>setTimeout(o,1),i=o=>clearTimeout(o);return[t?e.requestAnimationFrame:r,t?e.cancelAnimationFrame:i,n?e.requestIdleCallback:r,n?e.cancelIdleCallback:i]}const x=ve(),xe=x==null?void 0:x.document,[tt,nt,rt,it]=_e(x),ot=e=>e||e===0,st=e=>typeof e=="function",ye=e=>typeof e=="string",$e=e=>typeof e=="number",Ee=e=>typeof e=="undefined",Oe=e=>typeof e!="undefined",ct=e=>typeof e=="boolean",lt=e=>Math.ceil(e/10)*10,at=e=>Math.ceil(e)+.5,ut=e=>e[1]-e[0],$=e=>typeof e=="object",Te=e=>{for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},we=e=>Ee(e)||e===null||ye(e)&&e.length===0||$(e)&&!(e instanceof Date)&&Te(e)||$e(e)&&isNaN(e),bt=e=>!we(e),S=e=>Array.isArray(e),E=e=>e&&!(e!=null&&e.nodeType)&&$(e)&&!S(e);var Ce,Ae,j,Pe,D,L,Re,F,O,Ie=Object.defineProperty,M=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,B=(e,t,n)=>t in e?Ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N=(e,t)=>{for(var n in t||(t={}))Se.call(t,n)&&B(e,n,t[n]);if(M)for(var n of M(t))je.call(t,n)&&B(e,n,t[n]);return e};function q(e,t){for(let n=0;n<e.length;n++){const r=e[n];r!==null&&j(r)&&t(r,n)}}function ft(e,t,n){return j(e[t])?e[t]:n}function dt(e,t){for(const n in e)if(e[n]===t)return!0;return!1}function ht(e,t,...n){const r=Pe(e);return r&&e.call(t,...n),r}function pt(e,t){let n=0;const r=function(...i){!--n&&t.apply(this,i)};"duration"in e?e.each(()=>++n).on("end",r):(++n,e.call(r))}const gt=e=>e.charAt(0).toUpperCase()+e.slice(1);function mt(e,t="-"){return e.split(t).map((n,r)=>r?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()).join("")}const vt=e=>[].slice.call(e);function _t(...e){const t=n=>{if(D(n))return n.map(t);if(L(n)&&n.constructor){const r=new n.constructor;for(const i in n)r[i]=t(n[i]);return r}return n};return e.map(n=>t(n)).reduce((n,r)=>N(N({},n),r))}function De(e={},t){D(t)&&t.forEach(n=>De(e,n));for(const n in t)/^\d+$/.test(n)||n in e||(e[n]=t[n]);return e}function xt(e){const t=e[0]instanceof Date,n=Array.from(new Set(t?e.map(Number):e));return t?n.map(r=>new Date(r)):n}function yt(e){return e&&e.length?e.reduce((t,n)=>t.concat(n)):[]}function T(e,...t){if(!t.length||t.length===1&&!t[0])return e;const n=t.shift();return E(e)&&E(n)&&Object.keys(n).forEach(r=>{if(!/^(__proto__|constructor|prototype)$/i.test(r)){const i=n[r];i instanceof Date?e[r]=new Date(i.getTime()):E(i)?(!e[r]&&(e[r]={}),e[r]=T(e[r],i)):e[r]=S(i)?i.concat():i}}),T(e,...t)}function Le(e,t=!0){let n;return e[0]instanceof Date?n=t?(r,i)=>r-i:(r,i)=>i-r:t&&!e.every(isNaN)?n=(r,i)=>r-i:t||(n=(r,i)=>r>i&&-1||r<i&&1||r===i&&0),e.concat().sort(n)}function $t(e,t){let n=t.filter(r=>Re(r));if(n.length)if(F(n[0])){let r=e==="min"?1/0:-1/0;for(const i of n)(e==="min"?i<r:i>r)&&(r=i);n=r}else n[0]instanceof Date&&(n=Le(n,e==="min")[0]);else n=void 0;return n}const Et=(e,t,n=1)=>{const r=[],i=Math.max(0,Math.ceil((t-e)/n))|0;for(let o=0;o<i;o++)r.push(e+o*n);return r};let Fe=0;function Ot(e=!0){const t=++Fe;return e?String(t):t}function H(e,t,n,r,i){if(n>r)return-1;const o=Math.floor((n+r)/2);let{x:s,w:l=0}=e[o];return i&&(s=e[o].y,l=e[o].h),t>=s&&t<=s+l?o:t<s?H(e,t,n,o-1,i):H(e,t,o+1,r,i)}function Tt(e,t){return Ae(e.replace(/\{=([^}]+)\}/g,(n,r)=>{var i;return(i=t[r])!=null?i:""}))}function wt(e){var t;let n;if(e instanceof Date)n=e;else if(O(e)){const{config:r,format:i}=this;n=(t=i.dataTime(r.data_xFormat)(e))!=null?t:new Date(e)}else F(e)&&!isNaN(e)&&(n=new Date(+e));return(!n||isNaN(+n))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),n}function Ct(e){if(L(e)&&!O(e)){const s=e;return{top:s.top||0,right:s.right||0,bottom:s.bottom||0,left:s.left||0}}const t=(O(e)?e.trim().split(/\s+/):[e]).map(s=>+s||0),[n,r=n,i=n,o=r]=t;return{top:n,right:r,bottom:i,left:o}}function Me(e,t){t()===!1?Ce(()=>Me(e,t)):e()}function At(e,t=(n=>n)){const n=new Set;return q(e,(r,i)=>{n.add(t(r,i))}),n}function Pt(e,t,n=(r=>r)){const r=new Map;return q(e,(i,o)=>{r.set(t(i,o),n(i,o))}),r}var Be,d,w,Ne,qe;const He=/\s?(bb-)/g,ke=/\.+/g;function Xe(e){return e.replace(He,".$1").replace(ke,".")}function k(e,t,n=!1){const r=o=>o[e?"getBoundingClientRect":"getBBox"](),i=e?"rectClient":"rectBBox";return n?r(t):!(i in t)||t.hasAttribute("width")&&t[i].width!==+(t.getAttribute("width")||0)?t[i]=r(t):t[i]}function Rt(e,t,n=[-1,1],r=!1){if(!(!e||!qe(t)))if(t.indexOf(`
|
|
12
12
|
`)===-1)e.text(t);else{const i=[e.text(),t].map(o=>o.replace(/[\s\n]/g,""));if(i[0]!==i[1]){const o=t.split(`
|
|
13
|
-
`),s=r?o.length-1:1;e.html(""),o.forEach((l,a)=>{e.append("tspan").attr("x",0).attr("dy",`${a===0?n[0]*s:n[1]}em`).text(l)})}}}function Ue(e){const{x:t,y:n,width:r,height:i}=Ye(e,!0);return[{x:t,y:n+i},{x:t,y:n},{x:t+r,y:n},{x:t+r,y:n+i}]}function It(e){const{width:t,height:n}=C(e),r=Ue(e),i=r[0].x,o=Math.min(r[0].y,r[1].y);return{x:i,y:o,width:t,height:n}}function St(e,t){var n;const r=e&&((n=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:n[0]);let i=[0,0];try{i=Be(r||e,t)}catch(o){}return i.map(o=>isNaN(o)?0:o)}function C(e,t=!1){return k(!0,e,t)}function Ye(e,t=!1){return k(!1,e,t)}function jt(e,t,n){const{rootSelector:r="",sheet:i}=e,o=`${r} ${Xe(t)} {${n.join(";")}}`;return i[i.insertRule?"insertRule":"addRule"](o,i.cssRules.length)}function Dt(e){let t=[];return e.forEach(n=>{var r;try{n.cssRules&&n.cssRules.length&&(t=t.concat(Ne(n.cssRules)))}catch(i){(r=d.console)==null||r.warn(`Error while reading rules from ${n.href}: ${String(i)}`)}}),t}function Lt(e){var t,n,r,i,o,s;return{x:((n=(t=d.pageXOffset)!=null?t:d.scrollX)!=null?n:0)+((r=e.scrollLeft)!=null?r:0),y:((o=(i=d.pageYOffset)!=null?i:d.scrollY)!=null?o:0)+((s=e.scrollTop)!=null?s:0)}}function Ft(e,t=0,n=0,r=!0){const i=new DOMPoint(t,n),o=e.getScreenCTM(),s=i.matrixTransform(r?o==null?void 0:o.inverse():o);if(r===!1){const l=C(e);s.x-=l.x,s.y-=l.y}return s}function Ve(e){const t=e?e.transform:null,n=t&&t.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Mt(e,t){var n;const r=(n=e==null?void 0:e.getAttribute)==null?void 0:n.call(e,t);if(r)return parseFloat(r);const i=Ve(e);return t==="x"?i.e:i.f}function Bt(e){const t=e.attr("viewBox");return t?t.trim().split(/[\s,]+/).length===4:!1}function Nt(e,t,n=!1){const r=!!e.node;let i=!1;for(const[o,s]of Object.entries(t))if(i=r?e.style(o)===s:e.style[o]===s,n?!i:i)break;return i}function qt(){var e,t;return((e=w)==null?void 0:e.hidden)===!1||((t=w)==null?void 0:t.visibilityState)==="visible"}function Ht(e,t){const{DocumentTouch:n,matchMedia:r,navigator:i}=d,o=r==null?void 0:r("(pointer:coarse)").matches;let s=!1;if(t)if(i&&"maxTouchPoints"in i)s=i.maxTouchPoints>0;else if("ontouchmove"in d||n&&w instanceof n)s=!0;else if(o)s=!0;else{const a=i.userAgent;s=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(a)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(a)}return e&&!o&&(r==null?void 0:r("(pointer:fine)").matches)&&"mouse"||s&&"touch"||"mouse"}function kt(e,t){e.pendingRaf!==null?(d.cancelAnimationFrame(e.pendingRaf),e.pendingRaf=d.requestAnimationFrame(()=>{e.pendingRaf=null,t()})):(e.pendingRaf=d.requestAnimationFrame(()=>{e.pendingRaf=null}),t())}const Xt={mouse:(()=>{const e=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(t,n,r=e())=>{t.dispatchEvent(new MouseEvent(n,r))}}catch(t){return(n,r,i=e())=>{const o=xe.createEvent("MouseEvent");o.initMouseEvent(r,i.bubbles,i.cancelable,x,0,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(o)}}})(),touch:(e,t,n)=>{const r=new Touch(T({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));e.dispatchEvent(new TouchEvent(t,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[r],targetTouches:[],changedTouches:[r]}))}};function Ge(e){const t=this.config;let n,r,i;const o=()=>{const s=r.shift();if(s&&n&&$(n)&&s in n)return n=n[s],o();if(!s)return n};Object.keys(t).forEach(s=>{n=e,r=s.split("_"),i=o(),Oe(i)&&(t[s]=i)}),this.api&&(this.state.orgConfig=e)}var ze=Object.defineProperty,We=(e,t,n)=>t in e?ze(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t,n)=>We(e,typeof t!="symbol"?t+"":t,n);class X{constructor(t={}){y(this,"$$"),y(this,"options"),y(this,"config"),this.options=t}loadConfig(){Ge.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(t=>{this[t]=null,delete this[t]})}}y(X,"version","4.1.
|
|
13
|
+
`),s=r?o.length-1:1;e.html(""),o.forEach((l,a)=>{e.append("tspan").attr("x",0).attr("dy",`${a===0?n[0]*s:n[1]}em`).text(l)})}}}function Ue(e){const{x:t,y:n,width:r,height:i}=Ye(e,!0);return[{x:t,y:n+i},{x:t,y:n},{x:t+r,y:n},{x:t+r,y:n+i}]}function It(e){const{width:t,height:n}=C(e),r=Ue(e),i=r[0].x,o=Math.min(r[0].y,r[1].y);return{x:i,y:o,width:t,height:n}}function St(e,t){var n;const r=e&&((n=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:n[0]);let i=[0,0];try{i=Be(r||e,t)}catch(o){}return i.map(o=>isNaN(o)?0:o)}function C(e,t=!1){return k(!0,e,t)}function Ye(e,t=!1){return k(!1,e,t)}function jt(e,t,n){const{rootSelector:r="",sheet:i}=e,o=`${r} ${Xe(t)} {${n.join(";")}}`;return i[i.insertRule?"insertRule":"addRule"](o,i.cssRules.length)}function Dt(e){let t=[];return e.forEach(n=>{var r;try{n.cssRules&&n.cssRules.length&&(t=t.concat(Ne(n.cssRules)))}catch(i){(r=d.console)==null||r.warn(`Error while reading rules from ${n.href}: ${String(i)}`)}}),t}function Lt(e){var t,n,r,i,o,s;return{x:((n=(t=d.pageXOffset)!=null?t:d.scrollX)!=null?n:0)+((r=e.scrollLeft)!=null?r:0),y:((o=(i=d.pageYOffset)!=null?i:d.scrollY)!=null?o:0)+((s=e.scrollTop)!=null?s:0)}}function Ft(e,t=0,n=0,r=!0){const i=new DOMPoint(t,n),o=e.getScreenCTM(),s=i.matrixTransform(r?o==null?void 0:o.inverse():o);if(r===!1){const l=C(e);s.x-=l.x,s.y-=l.y}return s}function Ve(e){const t=e?e.transform:null,n=t&&t.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Mt(e,t){var n;const r=(n=e==null?void 0:e.getAttribute)==null?void 0:n.call(e,t);if(r)return parseFloat(r);const i=Ve(e);return t==="x"?i.e:i.f}function Bt(e){const t=e.attr("viewBox");return t?t.trim().split(/[\s,]+/).length===4:!1}function Nt(e,t,n=!1){const r=!!e.node;let i=!1;for(const[o,s]of Object.entries(t))if(i=r?e.style(o)===s:e.style[o]===s,n?!i:i)break;return i}function qt(){var e,t;return((e=w)==null?void 0:e.hidden)===!1||((t=w)==null?void 0:t.visibilityState)==="visible"}function Ht(e,t){const{DocumentTouch:n,matchMedia:r,navigator:i}=d,o=r==null?void 0:r("(pointer:coarse)").matches;let s=!1;if(t)if(i&&"maxTouchPoints"in i)s=i.maxTouchPoints>0;else if("ontouchmove"in d||n&&w instanceof n)s=!0;else if(o)s=!0;else{const a=i.userAgent;s=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(a)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(a)}return e&&!o&&(r==null?void 0:r("(pointer:fine)").matches)&&"mouse"||s&&"touch"||"mouse"}function kt(e,t){e.pendingRaf!==null?(d.cancelAnimationFrame(e.pendingRaf),e.pendingRaf=d.requestAnimationFrame(()=>{e.pendingRaf=null,t()})):(e.pendingRaf=d.requestAnimationFrame(()=>{e.pendingRaf=null}),t())}const Xt={mouse:(()=>{const e=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(t,n,r=e())=>{t.dispatchEvent(new MouseEvent(n,r))}}catch(t){return(n,r,i=e())=>{const o=xe.createEvent("MouseEvent");o.initMouseEvent(r,i.bubbles,i.cancelable,x,0,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(o)}}})(),touch:(e,t,n)=>{const r=new Touch(T({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));e.dispatchEvent(new TouchEvent(t,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[r],targetTouches:[],changedTouches:[r]}))}};function Ge(e){const t=this.config;let n,r,i;const o=()=>{const s=r.shift();if(s&&n&&$(n)&&s in n)return n=n[s],o();if(!s)return n};Object.keys(t).forEach(s=>{n=e,r=s.split("_"),i=o(),Oe(i)&&(t[s]=i)}),this.api&&(this.state.orgConfig=e)}var ze=Object.defineProperty,We=(e,t,n)=>t in e?ze(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t,n)=>We(e,typeof t!="symbol"?t+"":t,n);class X{constructor(t={}){y(this,"$$"),y(this,"options"),y(this,"config"),this.options=t}loadConfig(){Ge.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(t=>{this[t]=null,delete this[t]})}}y(X,"version","4.1.1");class Ke{constructor(){return{selector:void 0}}}var Ze=Object.defineProperty,Je=(e,t,n)=>t in e?Ze(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,U=(e,t,n)=>Je(e,typeof t!="symbol"?t+"":t,n);class Y extends X{constructor(t){return super(t),U(this,"element"),this.config=new Ke,this}$beforeInit(){this.loadConfig(),this.validate(),this.element=[].slice.call(document.querySelectorAll(this.config.selector)),this.overrideInternals(),this.overrideOptions(),this.overHandler=this.overHandler.bind(this),this.moveHandler=this.moveHandler.bind(this),this.outHandler=this.outHandler.bind(this)}validate(){const{$$:t,config:n}=this;let r="";if((!n.selector||!document.querySelector(n.selector))&&(r="No holder elements found from given selector option."),(t.hasType("bubble")||t.hasType("scatter")||t.hasArcType(t.data.targets))&&(r="Contains non supported chart types."),r)throw new Error(`[Sparkline plugin] ${r}`)}overrideInternals(){const{$$:t}=this,{getBarW:n,getIndices:r}=t;t.getIndices=function(i,o,s){return s==="getShapeX"?{}:r.call(this,i,o)},t.getBarW=function(i,o){return n.call(this,i,o,1)}}overrideOptions(){const{config:t}=this.$$;if(t.legend_show=!1,t.resize_auto=!1,t.axis_x_show=!1,t.padding!==!1){const n=r=>Object.keys(r||{}).length>0;n(t.axis_x_padding)&&(t.axis_x_padding={left:15,right:15,unit:"px"}),n(t.axis_y_padding)&&(t.axis_y_padding=5)}t.axis_y_show=!1,t.tooltip_position||(t.tooltip_position=function(n,r,i){const{internal:{state:{event:o}}}=this;let s=o.pageY-i*1.35,l=o.pageX-r/2;return s<0&&(s=0),l<0&&(l=0),{top:s,left:l}})}$init(){var t;const{$$:{$el:n}}=this;n.chart.style("width","0").style("height","0").style("pointer-events","none"),(t=n.tooltip)!=null&&t.node()&&document.body.appendChild(n.tooltip.node())}$afterInit(){const{$$:t}=this;t.$el.svg.attr("style",null).style("width","0").style("height","0"),this.bindEvents(!0)}bindEvents(t=!0){const{$$:{config:n}}=this;if(n.interaction_enabled&&n.tooltip_show){const r=`${t?"add":"remove"}EventListener`;this.element.forEach(i=>{const o=i.querySelector("svg");o[r]("mouseover",this.overHandler),o[r]("mousemove",this.moveHandler),o[r]("mouseout",this.outHandler)})}}overHandler(t){const{$$:n}=this,{state:{eventReceiver:r}}=n;r.rect=C(t.target,!0)}moveHandler(t){var n,r,i,o;const{$$:s}=this,l=s.getDataIndexFromEvent(t),a=(n=s.api.data(t.target.__id))==null?void 0:n[0],h=(r=a==null?void 0:a.values)==null?void 0:r[l];h&&!h.name&&(h.name=h.id),s.state.event=t,(i=s.isPointFocusOnly)!=null&&i.call(s)&&h&&((o=s.showCircleFocus)==null||o.call(s,[h])),s.setExpand(l,a.id,!0),s.showTooltip([h],t.target)}outHandler(t){const{$$:n}=this;n.state.event=t,n.isPointFocusOnly()?n.hideCircleFocus():n.unexpandCircles(),n.hideTooltip()}$redraw(){var t;const{$$:n}=this,{$el:r}=n;let i=this.element;const o=n.api.data(),s=(t=r.chart.html().match(/<svg[^>]*>/))==null?void 0:t[0];if(i.length<o.length){const l=r.chart.node();for(let a=o.length-i.length;a>0;a--)l.parentNode.insertBefore(i[0].cloneNode(),l.nextSibling);this.element=document.querySelectorAll(this.config.selector),i=this.element}o.map(l=>l.id).forEach((l,a)=>{const h=`.${I.target}-${l}`,A=r.main.selectAll(h);let v=i[a].querySelector("svg");v||(i[a].innerHTML=`${s}</svg>`,v=i[a].querySelector("svg"),v.__id=l),v.querySelector(h)||A.style("opacity",null),A.style("fill","none").style("opacity",null),v.innerHTML="",v.appendChild(A.node())})}$willDestroy(){this.bindEvents(!1),this.element.forEach(t=>{t.innerHTML=""})}}U(Y,"version","0.0.1")})(),_=_.default,_})()});
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.1.
|
|
8
|
+
* @version 4.1.1
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -412,7 +412,7 @@ class Plugin {
|
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
__publicField(Plugin, "version", "4.1.
|
|
415
|
+
__publicField(Plugin, "version", "4.1.1");
|
|
416
416
|
|
|
417
417
|
// EXTERNAL MODULE: external {"commonjs":"d3-axis","commonjs2":"d3-axis","amd":"d3-axis","root":"d3"}
|
|
418
418
|
var external_commonjs_d3_axis_commonjs2_d3_axis_amd_d3_axis_root_d3_ = __webpack_require__(6);
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.1.
|
|
8
|
+
* @version 4.1.1
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
|
-
*/(function(h,$){typeof exports=="object"&&typeof module=="object"?module.exports=$(require("d3-axis"),require("d3-interpolate"),require("d3-scale"),require("d3-selection")):typeof define=="function"&&define.amd?define("bb",["d3-axis","d3-interpolate","d3-scale","d3-selection"],$):typeof exports=="object"?exports.bb=$(require("d3-axis"),require("d3-interpolate"),require("d3-scale"),require("d3-selection")):(h.bb=h.bb||{},h.bb.plugin=h.bb.plugin||{},h.bb.plugin.stanford=$(h.d3,h.d3,h.d3,h.d3))})(this,function(j,h,$,rt){return(function(){var st={996:(function(f){"use strict";f.exports=j}),798:(function(f){"use strict";f.exports=h}),455:(function(f){"use strict";f.exports=$}),747:(function(f){"use strict";f.exports=rt})},I={};function g(f){var p=I[f];if(p!==void 0)return p.exports;var m=I[f]={exports:{}};return st[f](m,m.exports,g),m.exports}g.d=function(f,p){for(var m in p)g.o(p,m)&&!g.o(f,m)&&Object.defineProperty(f,m,{enumerable:!0,get:p[m]})},g.o=function(f,p){return Object.prototype.hasOwnProperty.call(f,p)};var E={};return(function(){"use strict";g.d(E,{default:function(){return Se}});var f=g(798),p=g(455),m=Object.defineProperty,D=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,F=(t,e,n)=>e in t?m(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,u=(t,e)=>{for(var n in e||(e={}))it.call(e,n)&&F(t,n,e[n]);if(D)for(var n of D(e))at.call(e,n)&&F(t,n,e[n]);return t};const ct={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_",dummy:"_dummy_"},lt={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcLabelLineText:"bb-arc-label-line-text",arcRange:"bb-arc-range",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title",needle:"bb-needle"},ut={area:"bb-area",areas:"bb-areas"},bt={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",axisXTooltip:"bb-axis-x-tooltip",axisYTooltip:"bb-axis-y-tooltip",axisY2Tooltip:"bb-axis-y2-tooltip",axisTooltipX:"bb-axis-tooltip-x",axisTooltipY:"bb-axis-tooltip-y"},dt={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars",barConnectLine:"bb-bar-connectLine"},ft={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},pt={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},ht={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},gt={dragarea:"bb-dragarea",INCLUDED:"_included_"},mt={funnel:"bb-funnel",chartFunnel:"bb-chart-funnel",chartFunnels:"bb-chart-funnels",funnelBackground:"bb-funnel-background"},xt={chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"},_t={legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"},yt={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},vt={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},$t={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",xgridFocusContinuous:"bb-xgrid-focus-continuous",ygridFocus:"bb-ygrid-focus"},Et={grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"},St={level:"bb-level",levels:"bb-levels"},Ct={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},wt={region:"bb-region",regions:"bb-regions"},Pt={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},Rt={shape:"bb-shape",shapes:"bb-shapes"},Ot={brush:"bb-brush",subchart:"bb-subchart"},At={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",textBorderRect:"bb-text-border",textLabelImage:"bb-text-label-image",TextOverlapping:"text-overlapping"},P={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},Tt={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},Lt={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"};var we=u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u({},ct),lt),ut),bt),dt),ft),pt),ht),gt),xt),_t),yt),vt),$t),mt),Et),St),Ct),wt),Pt),Rt),Ot),At),P),Tt),Lt);const Pe=t=>t||t===0,M=t=>typeof t=="function",R=t=>typeof t=="string",N=t=>typeof t=="number",jt=t=>typeof t=="undefined",It=t=>typeof t!="undefined",Re=t=>typeof t=="boolean",Oe=t=>Math.ceil(t/10)*10,Ae=t=>Math.ceil(t)+.5,Te=t=>t[1]-t[0],O=t=>typeof t=="object",Dt=t=>{for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0},B=t=>jt(t)||t===null||R(t)&&t.length===0||O(t)&&!(t instanceof Date)&&Dt(t)||N(t)&&isNaN(t),Le=t=>!B(t),q=t=>Array.isArray(t),A=t=>t&&!(t!=null&&t.nodeType)&&O(t)&&!q(t);function Ft(t){const e=this.config;let n,o,r;const s=()=>{const i=o.shift();if(i&&n&&O(n)&&i in n)return n=n[i],s();if(!i)return n};Object.keys(e).forEach(i=>{n=t,o=i.split("_"),r=s(),It(r)&&(e[i]=r)}),this.api&&(this.state.orgConfig=t)}var Mt=Object.defineProperty,Nt=(t,e,n)=>e in t?Mt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,S=(t,e,n)=>Nt(t,typeof e!="symbol"?e+"":e,n);class U{constructor(e={}){S(this,"$$"),S(this,"options"),S(this,"config"),this.options=e}loadConfig(){Ft.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(e=>{this[e]=null,delete this[e]})}}S(U,"version","4.1.0");var Bt=g(996),x={colorScale:"bb-colorscale",stanfordElements:"bb-stanford-elements",stanfordLine:"bb-stanford-line",stanfordLines:"bb-stanford-lines",stanfordRegion:"bb-stanford-region",stanfordRegions:"bb-stanford-regions"},qt,Ut,X,Xt,Y,G,Yt,Gt,V,Vt=Object.defineProperty,k=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable,z=(t,e,n)=>e in t?Vt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,H=(t,e)=>{for(var n in e||(e={}))kt.call(e,n)&&z(t,n,e[n]);if(k)for(var n of k(e))zt.call(e,n)&&z(t,n,e[n]);return t};function K(t,e){for(let n=0;n<t.length;n++){const o=t[n];o!==null&&X(o)&&e(o,n)}}function je(t,e,n){return X(t[e])?t[e]:n}function Ie(t,e){for(const n in t)if(t[n]===e)return!0;return!1}function De(t,e,...n){const o=Xt(t);return o&&t.call(e,...n),o}function Fe(t,e){let n=0;const o=function(...r){!--n&&e.apply(this,r)};"duration"in t?t.each(()=>++n).on("end",o):(++n,t.call(o))}const Me=t=>t.charAt(0).toUpperCase()+t.slice(1);function Ne(t,e="-"){return t.split(e).map((n,o)=>o?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()).join("")}const Be=t=>[].slice.call(t);function qe(...t){const e=n=>{if(Y(n))return n.map(e);if(G(n)&&n.constructor){const o=new n.constructor;for(const r in n)o[r]=e(n[r]);return o}return n};return t.map(n=>e(n)).reduce((n,o)=>H(H({},n),o))}function Ht(t={},e){Y(e)&&e.forEach(n=>Ht(t,n));for(const n in e)/^\d+$/.test(n)||n in t||(t[n]=e[n]);return t}function Ue(t){const e=t[0]instanceof Date,n=Array.from(new Set(e?t.map(Number):t));return e?n.map(o=>new Date(o)):n}function Xe(t){return t&&t.length?t.reduce((e,n)=>e.concat(n)):[]}function T(t,...e){if(!e.length||e.length===1&&!e[0])return t;const n=e.shift();return A(t)&&A(n)&&Object.keys(n).forEach(o=>{if(!/^(__proto__|constructor|prototype)$/i.test(o)){const r=n[o];r instanceof Date?t[o]=new Date(r.getTime()):A(r)?(!t[o]&&(t[o]={}),t[o]=T(t[o],r)):t[o]=q(r)?r.concat():r}}),T(t,...e)}function Kt(t,e=!0){let n;return t[0]instanceof Date?n=e?(o,r)=>o-r:(o,r)=>r-o:e&&!t.every(isNaN)?n=(o,r)=>o-r:e||(n=(o,r)=>o>r&&-1||o<r&&1||o===r&&0),t.concat().sort(n)}function Ye(t,e){let n=e.filter(o=>Yt(o));if(n.length)if(Gt(n[0])){let o=t==="min"?1/0:-1/0;for(const r of n)(t==="min"?r<o:r>o)&&(o=r);n=o}else n[0]instanceof Date&&(n=Kt(n,t==="min")[0]);else n=void 0;return n}const Wt=(t,e,n=1)=>{const o=[],r=Math.max(0,Math.ceil((e-t)/n))|0;for(let s=0;s<r;s++)o.push(t+s*n);return o};let Zt=0;function Ge(t=!0){const e=++Zt;return t?String(e):e}function W(t,e,n,o,r){if(n>o)return-1;const s=Math.floor((n+o)/2);let{x:i,w:a=0}=t[s];return r&&(i=t[s].y,a=t[s].h),e>=i&&e<=i+a?s:e<i?W(t,e,n,s-1,r):W(t,e,s+1,o,r)}function Ve(t,e){return Ut(t.replace(/\{=([^}]+)\}/g,(n,o)=>{var r;return(r=e[o])!=null?r:""}))}function Jt(t){var e;let n;if(t instanceof Date)n=t;else if(R(t)){const{config:o,format:r}=this;n=(e=r.dataTime(o.data_xFormat)(t))!=null?e:new Date(t)}else N(t)&&!isNaN(t)&&(n=new Date(+t));return(!n||isNaN(+n))&&console&&console.error&&console.error(`Failed to parse x '${t}' to Date object`),n}function ke(t){if(G(t)&&!V(t)){const i=t;return{top:i.top||0,right:i.right||0,bottom:i.bottom||0,left:i.left||0}}const e=(V(t)?t.trim().split(/\s+/):[t]).map(i=>+i||0),[n,o=n,r=n,s=o]=e;return{top:n,right:o,bottom:r,left:s}}function Qt(t,e){e()===!1?qt(()=>Qt(t,e)):t()}function ze(t,e=(n=>n)){const n=new Set;return K(t,(o,r)=>{n.add(e(o,r))}),n}function He(t,e,n=(o=>o)){const o=new Map;return K(t,(r,s)=>{o.set(e(r,s),n(r,s))}),o}var Ke=g(747);function te(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function ee(t){const e=typeof(t==null?void 0:t.requestAnimationFrame)=="function"&&typeof(t==null?void 0:t.cancelAnimationFrame)=="function",n=typeof(t==null?void 0:t.requestIdleCallback)=="function"&&typeof(t==null?void 0:t.cancelIdleCallback)=="function",o=s=>setTimeout(s,1),r=s=>clearTimeout(s);return[e?t.requestAnimationFrame:o,e?t.cancelAnimationFrame:r,n?t.requestIdleCallback:o,n?t.cancelIdleCallback:r]}const C=te(),ne=C==null?void 0:C.document,[We,Ze,Je,Qe]=ee(C);var oe,_,L,re,se;const ie=/\s?(bb-)/g,ae=/\.+/g;function ce(t){return t.replace(ie,".$1").replace(ae,".")}function Z(t,e,n=!1){const o=s=>s[t?"getBoundingClientRect":"getBBox"](),r=t?"rectClient":"rectBBox";return n?o(e):!(r in e)||e.hasAttribute("width")&&e[r].width!==+(e.getAttribute("width")||0)?e[r]=o(e):e[r]}function tn(t,e,n=[-1,1],o=!1){if(!(!t||!se(e)))if(e.indexOf(`
|
|
11
|
+
*/(function(h,$){typeof exports=="object"&&typeof module=="object"?module.exports=$(require("d3-axis"),require("d3-interpolate"),require("d3-scale"),require("d3-selection")):typeof define=="function"&&define.amd?define("bb",["d3-axis","d3-interpolate","d3-scale","d3-selection"],$):typeof exports=="object"?exports.bb=$(require("d3-axis"),require("d3-interpolate"),require("d3-scale"),require("d3-selection")):(h.bb=h.bb||{},h.bb.plugin=h.bb.plugin||{},h.bb.plugin.stanford=$(h.d3,h.d3,h.d3,h.d3))})(this,function(j,h,$,rt){return(function(){var st={996:(function(f){"use strict";f.exports=j}),798:(function(f){"use strict";f.exports=h}),455:(function(f){"use strict";f.exports=$}),747:(function(f){"use strict";f.exports=rt})},I={};function g(f){var p=I[f];if(p!==void 0)return p.exports;var m=I[f]={exports:{}};return st[f](m,m.exports,g),m.exports}g.d=function(f,p){for(var m in p)g.o(p,m)&&!g.o(f,m)&&Object.defineProperty(f,m,{enumerable:!0,get:p[m]})},g.o=function(f,p){return Object.prototype.hasOwnProperty.call(f,p)};var E={};return(function(){"use strict";g.d(E,{default:function(){return Se}});var f=g(798),p=g(455),m=Object.defineProperty,D=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,F=(t,e,n)=>e in t?m(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,u=(t,e)=>{for(var n in e||(e={}))it.call(e,n)&&F(t,n,e[n]);if(D)for(var n of D(e))at.call(e,n)&&F(t,n,e[n]);return t};const ct={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_",dummy:"_dummy_"},lt={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcLabelLineText:"bb-arc-label-line-text",arcRange:"bb-arc-range",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title",needle:"bb-needle"},ut={area:"bb-area",areas:"bb-areas"},bt={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",axisXTooltip:"bb-axis-x-tooltip",axisYTooltip:"bb-axis-y-tooltip",axisY2Tooltip:"bb-axis-y2-tooltip",axisTooltipX:"bb-axis-tooltip-x",axisTooltipY:"bb-axis-tooltip-y"},dt={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars",barConnectLine:"bb-bar-connectLine"},ft={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},pt={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},ht={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},gt={dragarea:"bb-dragarea",INCLUDED:"_included_"},mt={funnel:"bb-funnel",chartFunnel:"bb-chart-funnel",chartFunnels:"bb-chart-funnels",funnelBackground:"bb-funnel-background"},xt={chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"},_t={legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"},yt={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},vt={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},$t={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",xgridFocusContinuous:"bb-xgrid-focus-continuous",ygridFocus:"bb-ygrid-focus"},Et={grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"},St={level:"bb-level",levels:"bb-levels"},Ct={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},wt={region:"bb-region",regions:"bb-regions"},Pt={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},Rt={shape:"bb-shape",shapes:"bb-shapes"},Ot={brush:"bb-brush",subchart:"bb-subchart"},At={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",textBorderRect:"bb-text-border",textLabelImage:"bb-text-label-image",TextOverlapping:"text-overlapping"},P={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},Tt={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},Lt={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"};var we=u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u({},ct),lt),ut),bt),dt),ft),pt),ht),gt),xt),_t),yt),vt),$t),mt),Et),St),Ct),wt),Pt),Rt),Ot),At),P),Tt),Lt);const Pe=t=>t||t===0,M=t=>typeof t=="function",R=t=>typeof t=="string",N=t=>typeof t=="number",jt=t=>typeof t=="undefined",It=t=>typeof t!="undefined",Re=t=>typeof t=="boolean",Oe=t=>Math.ceil(t/10)*10,Ae=t=>Math.ceil(t)+.5,Te=t=>t[1]-t[0],O=t=>typeof t=="object",Dt=t=>{for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0},B=t=>jt(t)||t===null||R(t)&&t.length===0||O(t)&&!(t instanceof Date)&&Dt(t)||N(t)&&isNaN(t),Le=t=>!B(t),q=t=>Array.isArray(t),A=t=>t&&!(t!=null&&t.nodeType)&&O(t)&&!q(t);function Ft(t){const e=this.config;let n,o,r;const s=()=>{const i=o.shift();if(i&&n&&O(n)&&i in n)return n=n[i],s();if(!i)return n};Object.keys(e).forEach(i=>{n=t,o=i.split("_"),r=s(),It(r)&&(e[i]=r)}),this.api&&(this.state.orgConfig=t)}var Mt=Object.defineProperty,Nt=(t,e,n)=>e in t?Mt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,S=(t,e,n)=>Nt(t,typeof e!="symbol"?e+"":e,n);class U{constructor(e={}){S(this,"$$"),S(this,"options"),S(this,"config"),this.options=e}loadConfig(){Ft.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(e=>{this[e]=null,delete this[e]})}}S(U,"version","4.1.1");var Bt=g(996),x={colorScale:"bb-colorscale",stanfordElements:"bb-stanford-elements",stanfordLine:"bb-stanford-line",stanfordLines:"bb-stanford-lines",stanfordRegion:"bb-stanford-region",stanfordRegions:"bb-stanford-regions"},qt,Ut,X,Xt,Y,G,Yt,Gt,V,Vt=Object.defineProperty,k=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable,z=(t,e,n)=>e in t?Vt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,H=(t,e)=>{for(var n in e||(e={}))kt.call(e,n)&&z(t,n,e[n]);if(k)for(var n of k(e))zt.call(e,n)&&z(t,n,e[n]);return t};function K(t,e){for(let n=0;n<t.length;n++){const o=t[n];o!==null&&X(o)&&e(o,n)}}function je(t,e,n){return X(t[e])?t[e]:n}function Ie(t,e){for(const n in t)if(t[n]===e)return!0;return!1}function De(t,e,...n){const o=Xt(t);return o&&t.call(e,...n),o}function Fe(t,e){let n=0;const o=function(...r){!--n&&e.apply(this,r)};"duration"in t?t.each(()=>++n).on("end",o):(++n,t.call(o))}const Me=t=>t.charAt(0).toUpperCase()+t.slice(1);function Ne(t,e="-"){return t.split(e).map((n,o)=>o?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()).join("")}const Be=t=>[].slice.call(t);function qe(...t){const e=n=>{if(Y(n))return n.map(e);if(G(n)&&n.constructor){const o=new n.constructor;for(const r in n)o[r]=e(n[r]);return o}return n};return t.map(n=>e(n)).reduce((n,o)=>H(H({},n),o))}function Ht(t={},e){Y(e)&&e.forEach(n=>Ht(t,n));for(const n in e)/^\d+$/.test(n)||n in t||(t[n]=e[n]);return t}function Ue(t){const e=t[0]instanceof Date,n=Array.from(new Set(e?t.map(Number):t));return e?n.map(o=>new Date(o)):n}function Xe(t){return t&&t.length?t.reduce((e,n)=>e.concat(n)):[]}function T(t,...e){if(!e.length||e.length===1&&!e[0])return t;const n=e.shift();return A(t)&&A(n)&&Object.keys(n).forEach(o=>{if(!/^(__proto__|constructor|prototype)$/i.test(o)){const r=n[o];r instanceof Date?t[o]=new Date(r.getTime()):A(r)?(!t[o]&&(t[o]={}),t[o]=T(t[o],r)):t[o]=q(r)?r.concat():r}}),T(t,...e)}function Kt(t,e=!0){let n;return t[0]instanceof Date?n=e?(o,r)=>o-r:(o,r)=>r-o:e&&!t.every(isNaN)?n=(o,r)=>o-r:e||(n=(o,r)=>o>r&&-1||o<r&&1||o===r&&0),t.concat().sort(n)}function Ye(t,e){let n=e.filter(o=>Yt(o));if(n.length)if(Gt(n[0])){let o=t==="min"?1/0:-1/0;for(const r of n)(t==="min"?r<o:r>o)&&(o=r);n=o}else n[0]instanceof Date&&(n=Kt(n,t==="min")[0]);else n=void 0;return n}const Wt=(t,e,n=1)=>{const o=[],r=Math.max(0,Math.ceil((e-t)/n))|0;for(let s=0;s<r;s++)o.push(t+s*n);return o};let Zt=0;function Ge(t=!0){const e=++Zt;return t?String(e):e}function W(t,e,n,o,r){if(n>o)return-1;const s=Math.floor((n+o)/2);let{x:i,w:a=0}=t[s];return r&&(i=t[s].y,a=t[s].h),e>=i&&e<=i+a?s:e<i?W(t,e,n,s-1,r):W(t,e,s+1,o,r)}function Ve(t,e){return Ut(t.replace(/\{=([^}]+)\}/g,(n,o)=>{var r;return(r=e[o])!=null?r:""}))}function Jt(t){var e;let n;if(t instanceof Date)n=t;else if(R(t)){const{config:o,format:r}=this;n=(e=r.dataTime(o.data_xFormat)(t))!=null?e:new Date(t)}else N(t)&&!isNaN(t)&&(n=new Date(+t));return(!n||isNaN(+n))&&console&&console.error&&console.error(`Failed to parse x '${t}' to Date object`),n}function ke(t){if(G(t)&&!V(t)){const i=t;return{top:i.top||0,right:i.right||0,bottom:i.bottom||0,left:i.left||0}}const e=(V(t)?t.trim().split(/\s+/):[t]).map(i=>+i||0),[n,o=n,r=n,s=o]=e;return{top:n,right:o,bottom:r,left:s}}function Qt(t,e){e()===!1?qt(()=>Qt(t,e)):t()}function ze(t,e=(n=>n)){const n=new Set;return K(t,(o,r)=>{n.add(e(o,r))}),n}function He(t,e,n=(o=>o)){const o=new Map;return K(t,(r,s)=>{o.set(e(r,s),n(r,s))}),o}var Ke=g(747);function te(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function ee(t){const e=typeof(t==null?void 0:t.requestAnimationFrame)=="function"&&typeof(t==null?void 0:t.cancelAnimationFrame)=="function",n=typeof(t==null?void 0:t.requestIdleCallback)=="function"&&typeof(t==null?void 0:t.cancelIdleCallback)=="function",o=s=>setTimeout(s,1),r=s=>clearTimeout(s);return[e?t.requestAnimationFrame:o,e?t.cancelAnimationFrame:r,n?t.requestIdleCallback:o,n?t.cancelIdleCallback:r]}const C=te(),ne=C==null?void 0:C.document,[We,Ze,Je,Qe]=ee(C);var oe,_,L,re,se;const ie=/\s?(bb-)/g,ae=/\.+/g;function ce(t){return t.replace(ie,".$1").replace(ae,".")}function Z(t,e,n=!1){const o=s=>s[t?"getBoundingClientRect":"getBBox"](),r=t?"rectClient":"rectBBox";return n?o(e):!(r in e)||e.hasAttribute("width")&&e[r].width!==+(e.getAttribute("width")||0)?e[r]=o(e):e[r]}function tn(t,e,n=[-1,1],o=!1){if(!(!t||!se(e)))if(e.indexOf(`
|
|
12
12
|
`)===-1)t.text(e);else{const r=[t.text(),e].map(s=>s.replace(/[\s\n]/g,""));if(r[0]!==r[1]){const s=e.split(`
|
|
13
13
|
`),i=o?s.length-1:1;t.html(""),s.forEach((a,b)=>{t.append("tspan").attr("x",0).attr("dy",`${b===0?n[0]*i:n[1]}em`).text(a)})}}}function le(t){const{x:e,y:n,width:o,height:r}=Q(t,!0);return[{x:e,y:n+r},{x:e,y:n},{x:e+o,y:n},{x:e+o,y:n+r}]}function en(t){const{width:e,height:n}=J(t),o=le(t),r=o[0].x,s=Math.min(o[0].y,o[1].y);return{x:r,y:s,width:e,height:n}}function nn(t,e){var n;const o=t&&((n=t.touches||t.sourceEvent&&t.sourceEvent.touches)==null?void 0:n[0]);let r=[0,0];try{r=oe(o||t,e)}catch(s){}return r.map(s=>isNaN(s)?0:s)}function J(t,e=!1){return Z(!0,t,e)}function Q(t,e=!1){return Z(!1,t,e)}function on(t,e,n){const{rootSelector:o="",sheet:r}=t,s=`${o} ${ce(e)} {${n.join(";")}}`;return r[r.insertRule?"insertRule":"addRule"](s,r.cssRules.length)}function rn(t){let e=[];return t.forEach(n=>{var o;try{n.cssRules&&n.cssRules.length&&(e=e.concat(re(n.cssRules)))}catch(r){(o=_.console)==null||o.warn(`Error while reading rules from ${n.href}: ${String(r)}`)}}),e}function sn(t){var e,n,o,r,s,i;return{x:((n=(e=_.pageXOffset)!=null?e:_.scrollX)!=null?n:0)+((o=t.scrollLeft)!=null?o:0),y:((s=(r=_.pageYOffset)!=null?r:_.scrollY)!=null?s:0)+((i=t.scrollTop)!=null?i:0)}}function an(t,e=0,n=0,o=!0){const r=new DOMPoint(e,n),s=t.getScreenCTM(),i=r.matrixTransform(o?s==null?void 0:s.inverse():s);if(o===!1){const a=J(t);i.x-=a.x,i.y-=a.y}return i}function ue(t){const e=t?t.transform:null,n=e&&e.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function cn(t,e){var n;const o=(n=t==null?void 0:t.getAttribute)==null?void 0:n.call(t,e);if(o)return parseFloat(o);const r=ue(t);return e==="x"?r.e:r.f}function ln(t){const e=t.attr("viewBox");return e?e.trim().split(/[\s,]+/).length===4:!1}function un(t,e,n=!1){const o=!!t.node;let r=!1;for(const[s,i]of Object.entries(e))if(r=o?t.style(s)===i:t.style[s]===i,n?!r:r)break;return r}function bn(){var t,e;return((t=L)==null?void 0:t.hidden)===!1||((e=L)==null?void 0:e.visibilityState)==="visible"}function dn(t,e){const{DocumentTouch:n,matchMedia:o,navigator:r}=_,s=o==null?void 0:o("(pointer:coarse)").matches;let i=!1;if(e)if(r&&"maxTouchPoints"in r)i=r.maxTouchPoints>0;else if("ontouchmove"in _||n&&L instanceof n)i=!0;else if(s)i=!0;else{const b=r.userAgent;i=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(b)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(b)}return t&&!s&&(o==null?void 0:o("(pointer:fine)").matches)&&"mouse"||i&&"touch"||"mouse"}function fn(t,e){t.pendingRaf!==null?(_.cancelAnimationFrame(t.pendingRaf),t.pendingRaf=_.requestAnimationFrame(()=>{t.pendingRaf=null,e()})):(t.pendingRaf=_.requestAnimationFrame(()=>{t.pendingRaf=null}),e())}const pn={mouse:(()=>{const t=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(e,n,o=t())=>{e.dispatchEvent(new MouseEvent(n,o))}}catch(e){return(n,o,r=t())=>{const s=ne.createEvent("MouseEvent");s.initMouseEvent(o,r.bubbles,r.cancelable,C,0,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(s)}}})(),touch:(t,e,n)=>{const o=new Touch(T({identifier:Date.now(),target:t,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));t.dispatchEvent(new TouchEvent(e,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[o],targetTouches:[],changedTouches:[o]}))}};var be=Object.defineProperty,de=(t,e,n)=>e in t?be(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,tt=(t,e,n)=>de(t,typeof e!="symbol"?e+"":e,n);function fe(t){return t==="d"?e=>Math.round(e).toString():e=>String(e)}class pe{constructor(e){tt(this,"owner"),tt(this,"colorScale"),this.owner=e}drawColorScale(){const{$$:e,config:n}=this.owner,o=e.data.targets[0],r=e.state.height-n.padding_bottom-n.padding_top,s=n.scale_width,i=5,a=Wt(n.padding_bottom,r,i),b=(0,p.scaleSequential)(o.colors).domain([a[a.length-1],a[0]]);this.colorScale&&this.colorScale.remove(),this.colorScale=e.$el.svg.append("g").attr("width",50).attr("height",r).attr("class",x.colorScale),this.colorScale.append("g").attr("transform",`translate(0, ${n.padding_top})`).selectAll("bars").data(a).enter().append("rect").attr("y",(v,Ce)=>Ce*i).attr("x",0).attr("width",s).attr("height",i).attr("fill",v=>b(v));const d=(0,p.scaleSymlog)().domain([o.minEpochs,o.maxEpochs]).range([a[0]+n.padding_top+a[a.length-1]+i-1,a[0]+n.padding_top]),c=(0,Bt.axisRight)(d),l=n.scale_format;l==="pow10"?c.tickValues([1,10,100,1e3,1e4,1e5,1e6,1e7]):M(l)?c.tickFormat(l):c.tickFormat(fe("d"));const y=this.colorScale.append("g").attr("class","legend axis").attr("transform",`translate(${s},0)`).call(c);l==="pow10"&&y.selectAll(".tick text").text(null).filter(v=>v/Math.pow(10,Math.ceil(Math.log(v)/Math.LN10-1e-12))===1).text(10).append("tspan").attr("dy","-.7em").text(v=>Math.round(Math.log(v)/Math.LN10)),this.colorScale.attr("transform",`translate(${e.state.current.width-this.xForColorScale()}, 0)`)}xForColorScale(){return this.owner.config.padding_right+Q(this.colorScale.node(),!0).width}getColorScalePadding(){return this.xForColorScale()+this.owner.config.padding_left+20}}function he(t,e){const n=t.x,o=t.value;let r=!1;for(let s=0,i=e.length-1;s<e.length;i=s++){const a=e[s].x,b=e[s].y,d=e[i].x,c=e[i].y;b>o!=c>o&&n<(d-a)*(o-b)/(c-b)+a&&(r=!r)}return r}function ge(t,e){return t.epochs<e.epochs?-1:t.epochs>e.epochs?1:0}function me(t){let e=0,n,o;for(let r=0,s=t.length,i=s-1;r<s;i=r,r++)n=t[r],o=t[i],e+=n.x*o.y,e-=n.y*o.x;return e/=2,e}function w(t){const e=me(t);let n=0,o=0,r;for(let s=0,i=t.length,a=i-1;s<i;a=s,s++){const b=t[s],d=t[a];r=b.x*d.y-d.x*b.y,n+=(b.x+d.x)*r,o+=(b.y+d.y)*r}return r=e*6,{x:n/r,y:o/r}}var xe=Object.defineProperty,_e=(t,e,n)=>e in t?xe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ye=(t,e,n)=>_e(t,typeof e!="symbol"?e+"":e,n);class ve{constructor(e){ye(this,"owner"),this.owner=e;const n=e.$$.$el.main.select(".bb-chart").append("g").attr("class",x.stanfordElements);n.append("g").attr("class",x.stanfordLines),n.append("g").attr("class",x.stanfordRegions)}updateStanfordLines(e){const{$$:n}=this.owner,{config:o,$el:{main:r}}=n,s=o.axis_rotated,i=this.xvCustom.bind(n),a=this.yvCustom.bind(n),b=r.select(`.${x.stanfordLines}`).style("shape-rendering","geometricprecision").selectAll(`.${x.stanfordLine}`).data(this.owner.config.lines);b.exit().transition().duration(e).style("opacity","0").remove();const d=b.enter().append("g");d.append("line").style("opacity","0"),d.merge(b).attr("class",c=>x.stanfordLine+(c.class?` ${c.class}`:"")).select("line").transition().duration(e).attr("x1",c=>s?a(c,"y1"):i(c,"x1")).attr("x2",c=>s?a(c,"y2"):i(c,"x2")).attr("y1",c=>s?i(c,"x1"):a(c,"y1")).attr("y2",c=>s?i(c,"x2"):a(c,"y2")).transition().style("opacity",null)}updateStanfordRegions(e){const{$$:n}=this.owner,{config:o,$el:{main:r}}=n,s=o.axis_rotated,i=this.xvCustom.bind(n),a=this.yvCustom.bind(n),b=this.owner.countEpochsInRegion.bind(n);let d=r.select(`.${x.stanfordRegions}`).selectAll(`.${x.stanfordRegion}`).data(this.owner.config.regions);d.exit().transition().duration(e).style("opacity","0").remove();const c=d.enter().append("g");c.append("polygon").style("opacity","0"),c.append("text").attr("transform",s?"rotate(-90)":"").style("opacity","0"),d=c.merge(d),d.attr("class",l=>x.stanfordRegion+(l.class?` ${l.class}`:"")).select("polygon").transition().duration(e).attr("points",l=>l.points.map(y=>[s?a(y,"y"):i(y,"x"),s?i(y,"x"):a(y,"y")].join(",")).join(" ")).transition().style("opacity",l=>String(l.opacity?l.opacity:.2)),d.select("text").transition().duration(e).attr("x",l=>s?a(w(l.points),"y"):i(w(l.points),"x")).attr("y",l=>s?i(w(l.points),"x"):a(w(l.points),"y")).text(l=>{if(l.text){const{value:y,percentage:v}=b(l.points);return l.text(y,v)}return""}).attr("text-anchor","middle").attr("dominant-baseline","middle").transition().style("opacity",null)}updateStanfordElements(e=0){this.updateStanfordLines(e),this.updateStanfordRegions(e)}xvCustom(e,n){const o=this,{axis:r,config:s}=o;let i=n?e[n]:o.getBaseValue(e);return r.isTimeSeries()?i=Jt.call(o,i):r.isCategorized()&&R(i)&&(i=s.axis_x_categories.indexOf(e.value)),o.scale.x(i)}yvCustom(e,n){const o=this,r=e.axis&&e.axis==="y2"?o.scale.y2:o.scale.y,s=n?e[n]:o.getBaseValue(e);return r(s)}}class et{constructor(){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:[]}}}var $e=Object.defineProperty,Ee=(t,e,n)=>e in t?$e(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,nt=(t,e,n)=>Ee(t,typeof e!="symbol"?e+"":e,n);function ot(t,e,n,o=1){return{h:+t,s:+e,l:+n,opacity:+o}}class Se extends U{constructor(e){return super(e),nt(this,"colorScale"),nt(this,"elements"),this.config=new et,this}$beforeInit(){const{$$:e}=this;e.config.data_xSort=!1,e.isMultipleX=()=>!0,e.showGridFocus=()=>{},e.labelishData=o=>o.values,e.opacityForCircle=()=>1;const n=e.getCurrentPadding.bind(e);e.getCurrentPadding=()=>{const o=n();return o.right+=this.colorScale?this.colorScale.getColorScalePadding():0,o}}$init(){const{$$:e}=this;this.loadConfig(),e.color=this.getStanfordPointColor.bind(e),this.colorScale=new pe(this),this.elements=new ve(this),this.convertData(),this.initStanfordData(),this.setStanfordTooltip(),this.colorScale.drawColorScale(),e.right+=this.colorScale?this.colorScale.getColorScalePadding():0,this.$redraw()}$redraw(e){var n,o;(n=this.colorScale)==null||n.drawColorScale(),(o=this.elements)==null||o.updateStanfordElements(e)}getOptions(){return new et}convertData(){const e=this.$$.data.targets,n=this.options.epochs;e.forEach(o=>{o.values.forEach((r,s)=>{r.epochs=n[s]}),o.minEpochs=void 0,o.maxEpochs=void 0,o.colors=void 0,o.colorscale=void 0})}initStanfordData(){const{config:e}=this,n=this.$$.data.targets[0];n.values.sort(ge);let o=1/0,r=-1/0;for(let s=0;s<n.values.length;s++){const i=n.values[s].epochs;i<o&&(o=i),i>r&&(r=i)}n.minEpochs=isNaN(e.scale_min)?o:e.scale_min,n.maxEpochs=isNaN(e.scale_max)?r:e.scale_max,n.colors=M(e.colors)?e.colors:(0,f.interpolateHslLong)(ot(250,1,.5),ot(0,1,.5)),n.colorscale=(0,p.scaleSequentialLog)(n.colors).domain([n.minEpochs,n.maxEpochs])}getStanfordPointColor(e){return this.data.targets[0].colorscale(e.epochs)}setStanfordTooltip(){const{config:e}=this.$$;B(e.tooltip_contents)&&(e.tooltip_contents=function(n,o,r,s){const{data_x:i}=e;let a=`<table class="${P.tooltip}"><tbody>`;return n.forEach(b=>{const{id:d="",value:c=0,epochs:l=0,x:y=""}=b;a+=`<tr>
|
|
14
14
|
<th>${i||""}</th>
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.1.
|
|
8
|
+
* @version 4.1.1
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -746,7 +746,7 @@ class Plugin {
|
|
|
746
746
|
});
|
|
747
747
|
}
|
|
748
748
|
}
|
|
749
|
-
__publicField(Plugin, "version", "4.1.
|
|
749
|
+
__publicField(Plugin, "version", "4.1.1");
|
|
750
750
|
|
|
751
751
|
;// ./src/Plugin/tableview/const.ts
|
|
752
752
|
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.1.
|
|
8
|
+
* @version 4.1.1
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/(function(l,c){typeof exports=="object"&&typeof module=="object"?module.exports=c():typeof define=="function"&&define.amd?define("bb",[],c):typeof exports=="object"?exports.bb=c():(l.bb=l.bb||{},l.bb.plugin=l.bb.plugin||{},l.bb.plugin.tableview=c())})(this,function(){return(function(){var g={};g.d=function(c,f){for(var a in f)g.o(f,a)&&!g.o(c,a)&&Object.defineProperty(c,a,{enumerable:!0,get:f[a]})},g.o=function(c,f){return Object.prototype.hasOwnProperty.call(c,f)};var l={};return(function(){"use strict";g.d(l,{default:function(){return Be}});const c=e=>e||e===0,f=e=>typeof e=="function",a=e=>typeof e=="string",M=e=>typeof e=="number",te=e=>typeof e=="undefined",ne=e=>typeof e!="undefined",z=e=>typeof e=="boolean",He=e=>Math.ceil(e/10)*10,Xe=e=>Math.ceil(e)+.5,Ze=e=>e[1]-e[0],O=e=>typeof e=="object",re=e=>{for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},oe=e=>te(e)||e===null||a(e)&&e.length===0||O(e)&&!(e instanceof Date)&&re(e)||M(e)&&isNaN(e),Qe=e=>!oe(e),I=e=>Array.isArray(e),Ye=e=>e&&!(e!=null&&e.nodeType)&&O(e)&&!I(e),ie=new Set(["span","div","p","br","b","i","em","small","strong","mark","u","s","sub","sup","h1","h2","h3","h4","h5","h6","ul","ol","li","dl","dt","dd","table","thead","tbody","tfoot","tr","th","td","caption","colgroup","col","hr","pre","code","blockquote","abbr","ins","del","a","img","figure","figcaption","svg","g","path","circle","ellipse","rect","line","polyline","polygon","text","tspan","textPath","use","defs","symbol","clipPath","mask","linearGradient","radialGradient","stop","pattern","marker","title","desc"]),se=new Set(["class","id","style","title","lang","dir","href","src","alt","width","height","colspan","rowspan","scope","headers","d","points","x","y","x1","x2","y1","y2","cx","cy","r","rx","ry","dx","dy","viewBox","preserveAspectRatio","transform","fill","fill-opacity","fill-rule","stroke","stroke-width","stroke-opacity","stroke-linecap","stroke-linejoin","stroke-dasharray","stroke-dashoffset","opacity","clip-path","clip-rule","mask","font-family","font-size","font-weight","font-style","text-anchor","dominant-baseline","offset","stop-color","stop-opacity","gradientUnits","gradientTransform","spreadMethod","patternUnits","patternTransform","marker-start","marker-mid","marker-end","markerWidth","markerHeight","refX","refY","xlink:href"]),E=new Map;ie.forEach(e=>E.set(e.toLowerCase(),e));const T=new Map;se.forEach(e=>T.set(e.toLowerCase(),e));const ae=new Set(["http:","https:","mailto:"]),le=new Set(["href","src","xlink:href"]),ce=/^<\/?([a-zA-Z][a-zA-Z0-9]*)/,fe=/^<\/([a-zA-Z][a-zA-Z0-9]*)\s*>$/,ue=/^<([a-zA-Z][a-zA-Z0-9]*)([\s\S]*?)(\/?)>$/,R=/([a-zA-Z][\w:-]*)\s*(?:=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+)))?/g,V=/url\s*\(\s*["']?([^"')]+)["']?\s*\)/gi,de=["expression(","behavior:","binding:","@import","@charset","-moz-binding:"];function C(e){return e.replace(/:/gi,":").replace(/&newline;/gi,`
|
|
12
|
-
`).replace(/&tab;/gi," ").replace(/ /gi," ").replace(/</gi,"<").replace(/>/gi,">").replace(/&/gi,"&").replace(/"/gi,'"').replace(/'/gi,"'").replace(/&#(\d+);?/gi,(t,n)=>String.fromCharCode(parseInt(n,10))).replace(/&#x([0-9a-f]+);?/gi,(t,n)=>String.fromCharCode(parseInt(n,16)))}function G(e){const n=C(e).trim().replace(/[\s\u0000-\u001f]/g,"").toLowerCase();if(!n||n.startsWith("#"))return!0;const r=n.match(/^[^/?#]*:/);return r?ae.has(r[0]):!0}function pe(e){const n=C(e).replace(/[\u0000-\u001f]/g,"");V.lastIndex=0;let r;for(;(r=V.exec(n))!==null;)if(!G(r[1]))return null;const o=n.toLowerCase().replace(/\s/g,"");for(const i of de)if(o.includes(i))return null;return e}const he={'"':""","'":"'","`":"`"},ge=/["'`]/g;function P(e){return e.replace(ge,t=>he[t])}function be(e,t,n=!1){if(le.has(e))return G(t)?n?P(t):t:null;if(e==="style"){const o=pe(t);return o===null?null:n?P(o):o}const r=C(t).toLowerCase().replace(/\s/g,"");return/\bon\w+=/.test(r)?null:n?P(t):t}function me(e){const t=e.match(ce);return t?t[1].toLowerCase():null}function _e(e){const t=me(e);return t!==null&&E.has(t)}function we(e){var t,n,r;const o=e.match(fe);if(o){const p=o[1].toLowerCase();return`</${(t=E.get(p))!=null?t:p}>`}const i=e.match(ue);if(!i)return"";const[,s,u,m]=i,d=s.toLowerCase(),h=(n=E.get(d))!=null?n:d,x=[];R.lastIndex=0;let y;for(;(y=R.exec(u))!==null;){const p=y[1].toLowerCase(),Y=y[2],J=y[3],j=y[4];if(p.startsWith("on"))continue;const K=(r=T.get(p))!=null?r:p;let $,v;if(Y!==void 0)$=Y,v='"';else if(J!==void 0)$=J,v="'";else if(j!==void 0)$=j,v='"';else{T.has(p)&&x.push(K);continue}if(T.has(p)){const ee=be(p,$,j!==void 0);ee!==null&&x.push(`${K}=${v}${ee}${v}`)}}const We=x.length>0?` ${x.join(" ")}`:"";return`<${h}${We}${m?"/>":">"}`}function ye(e){return typeof e!="string"||!e||e.indexOf("<")===-1?e:e.replace(/<\/?[^>]*>|[^<>\s]+>/g,t=>t.startsWith("<!--")?"":t.startsWith("<")?_e(t)?we(t):t.replace(/</g,"<"):t.slice(0,-1)+">")}var ve,U,Oe,N,_,Ee,F,D,Te=Object.defineProperty,k=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,q=(e,t,n)=>t in e?Te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,B=(e,t)=>{for(var n in t||(t={}))Se.call(t,n)&&q(e,n,t[n]);if(k)for(var n of k(t))Ae.call(t,n)&&q(e,n,t[n]);return e};function W(e,t){for(let n=0;n<e.length;n++){const r=e[n];r!==null&&U(r)&&t(r,n)}}function Je(e,t,n){return U(e[t])?e[t]:n}function Ke(e,t){for(const n in e)if(e[n]===t)return!0;return!1}function et(e,t,...n){const r=Oe(e);return r&&e.call(t,...n),r}function tt(e,t){let n=0;const r=function(...o){!--n&&t.apply(this,o)};"duration"in e?e.each(()=>++n).on("end",r):(++n,e.call(r))}const nt=e=>e.charAt(0).toUpperCase()+e.slice(1);function rt(e,t="-"){return e.split(t).map((n,r)=>r?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()).join("")}const ot=e=>[].slice.call(e);function it(...e){const t=n=>{if(N(n))return n.map(t);if(_(n)&&n.constructor){const r=new n.constructor;for(const o in n)r[o]=t(n[o]);return r}return n};return e.map(n=>t(n)).reduce((n,r)=>B(B({},n),r))}function xe(e={},t){N(t)&&t.forEach(n=>xe(e,n));for(const n in t)/^\d+$/.test(n)||n in e||(e[n]=t[n]);return e}function st(e){const t=e[0]instanceof Date,n=Array.from(new Set(t?e.map(Number):e));return t?n.map(r=>new Date(r)):n}function at(e){return e&&e.length?e.reduce((t,n)=>t.concat(n)):[]}function H(e,...t){if(!t.length||t.length===1&&!t[0])return e;const n=t.shift();return _(e)&&_(n)&&Object.keys(n).forEach(r=>{if(!/^(__proto__|constructor|prototype)$/i.test(r)){const o=n[r];o instanceof Date?e[r]=new Date(o.getTime()):_(o)?(!e[r]&&(e[r]={}),e[r]=H(e[r],o)):e[r]=N(o)?o.concat():o}}),H(e,...t)}function $e(e,t=!0){let n;return e[0]instanceof Date?n=t?(r,o)=>r-o:(r,o)=>o-r:t&&!e.every(isNaN)?n=(r,o)=>r-o:t||(n=(r,o)=>r>o&&-1||r<o&&1||r===o&&0),e.concat().sort(n)}function lt(e,t){let n=t.filter(r=>Ee(r));if(n.length)if(F(n[0])){let r=e==="min"?1/0:-1/0;for(const o of n)(e==="min"?o<r:o>r)&&(r=o);n=r}else n[0]instanceof Date&&(n=$e(n,e==="min")[0]);else n=void 0;return n}const ct=(e,t,n=1)=>{const r=[],o=Math.max(0,Math.ceil((t-e)/n))|0;for(let i=0;i<o;i++)r.push(e+i*n);return r};let Ce=0;function ft(e=!0){const t=++Ce;return e?String(t):t}function X(e,t,n,r,o){if(n>r)return-1;const i=Math.floor((n+r)/2);let{x:s,w:u=0}=e[i];return o&&(s=e[i].y,u=e[i].h),t>=s&&t<=s+u?i:t<s?X(e,t,n,i-1,o):X(e,t,i+1,r,o)}function S(e,t){return ye(e.replace(/\{=([^}]+)\}/g,(n,r)=>{var o;return(o=t[r])!=null?o:""}))}function ut(e){var t;let n;if(e instanceof Date)n=e;else if(D(e)){const{config:r,format:o}=this;n=(t=o.dataTime(r.data_xFormat)(e))!=null?t:new Date(e)}else F(e)&&!isNaN(e)&&(n=new Date(+e));return(!n||isNaN(+n))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),n}function dt(e){if(_(e)&&!D(e)){const s=e;return{top:s.top||0,right:s.right||0,bottom:s.bottom||0,left:s.left||0}}const t=(D(e)?e.trim().split(/\s+/):[e]).map(s=>+s||0),[n,r=n,o=n,i=r]=t;return{top:n,right:r,bottom:o,left:i}}function Pe(e,t){t()===!1?ve(()=>Pe(e,t)):e()}function pt(e,t=(n=>n)){const n=new Set;return W(e,(r,o)=>{n.add(t(r,o))}),n}function ht(e,t,n=(r=>r)){const r=new Map;return W(e,(o,i)=>{r.set(t(o,i),n(o,i))}),r}function Ne(e){const t=this.config;let n,r,o;const i=()=>{const s=r.shift();if(s&&n&&O(n)&&s in n)return n=n[s],i();if(!s)return n};Object.keys(t).forEach(s=>{n=e,r=s.split("_"),o=i(),ne(o)&&(t[s]=o)}),this.api&&(this.state.orgConfig=e)}var De=Object.defineProperty,Le=(e,t,n)=>t in e?De(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A=(e,t,n)=>Le(e,typeof t!="symbol"?t+"":t,n);class Z{constructor(t={}){A(this,"$$"),A(this,"options"),A(this,"config"),this.options=t}loadConfig(){Ne.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(t=>{this[t]=null,delete this[t]})}}A(Z,"version","4.1.
|
|
12
|
+
`).replace(/&tab;/gi," ").replace(/ /gi," ").replace(/</gi,"<").replace(/>/gi,">").replace(/&/gi,"&").replace(/"/gi,'"').replace(/'/gi,"'").replace(/&#(\d+);?/gi,(t,n)=>String.fromCharCode(parseInt(n,10))).replace(/&#x([0-9a-f]+);?/gi,(t,n)=>String.fromCharCode(parseInt(n,16)))}function G(e){const n=C(e).trim().replace(/[\s\u0000-\u001f]/g,"").toLowerCase();if(!n||n.startsWith("#"))return!0;const r=n.match(/^[^/?#]*:/);return r?ae.has(r[0]):!0}function pe(e){const n=C(e).replace(/[\u0000-\u001f]/g,"");V.lastIndex=0;let r;for(;(r=V.exec(n))!==null;)if(!G(r[1]))return null;const o=n.toLowerCase().replace(/\s/g,"");for(const i of de)if(o.includes(i))return null;return e}const he={'"':""","'":"'","`":"`"},ge=/["'`]/g;function P(e){return e.replace(ge,t=>he[t])}function be(e,t,n=!1){if(le.has(e))return G(t)?n?P(t):t:null;if(e==="style"){const o=pe(t);return o===null?null:n?P(o):o}const r=C(t).toLowerCase().replace(/\s/g,"");return/\bon\w+=/.test(r)?null:n?P(t):t}function me(e){const t=e.match(ce);return t?t[1].toLowerCase():null}function _e(e){const t=me(e);return t!==null&&E.has(t)}function we(e){var t,n,r;const o=e.match(fe);if(o){const p=o[1].toLowerCase();return`</${(t=E.get(p))!=null?t:p}>`}const i=e.match(ue);if(!i)return"";const[,s,u,m]=i,d=s.toLowerCase(),h=(n=E.get(d))!=null?n:d,x=[];R.lastIndex=0;let y;for(;(y=R.exec(u))!==null;){const p=y[1].toLowerCase(),Y=y[2],J=y[3],j=y[4];if(p.startsWith("on"))continue;const K=(r=T.get(p))!=null?r:p;let $,v;if(Y!==void 0)$=Y,v='"';else if(J!==void 0)$=J,v="'";else if(j!==void 0)$=j,v='"';else{T.has(p)&&x.push(K);continue}if(T.has(p)){const ee=be(p,$,j!==void 0);ee!==null&&x.push(`${K}=${v}${ee}${v}`)}}const We=x.length>0?` ${x.join(" ")}`:"";return`<${h}${We}${m?"/>":">"}`}function ye(e){return typeof e!="string"||!e||e.indexOf("<")===-1?e:e.replace(/<\/?[^>]*>|[^<>\s]+>/g,t=>t.startsWith("<!--")?"":t.startsWith("<")?_e(t)?we(t):t.replace(/</g,"<"):t.slice(0,-1)+">")}var ve,U,Oe,N,_,Ee,F,D,Te=Object.defineProperty,k=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,q=(e,t,n)=>t in e?Te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,B=(e,t)=>{for(var n in t||(t={}))Se.call(t,n)&&q(e,n,t[n]);if(k)for(var n of k(t))Ae.call(t,n)&&q(e,n,t[n]);return e};function W(e,t){for(let n=0;n<e.length;n++){const r=e[n];r!==null&&U(r)&&t(r,n)}}function Je(e,t,n){return U(e[t])?e[t]:n}function Ke(e,t){for(const n in e)if(e[n]===t)return!0;return!1}function et(e,t,...n){const r=Oe(e);return r&&e.call(t,...n),r}function tt(e,t){let n=0;const r=function(...o){!--n&&t.apply(this,o)};"duration"in e?e.each(()=>++n).on("end",r):(++n,e.call(r))}const nt=e=>e.charAt(0).toUpperCase()+e.slice(1);function rt(e,t="-"){return e.split(t).map((n,r)=>r?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()).join("")}const ot=e=>[].slice.call(e);function it(...e){const t=n=>{if(N(n))return n.map(t);if(_(n)&&n.constructor){const r=new n.constructor;for(const o in n)r[o]=t(n[o]);return r}return n};return e.map(n=>t(n)).reduce((n,r)=>B(B({},n),r))}function xe(e={},t){N(t)&&t.forEach(n=>xe(e,n));for(const n in t)/^\d+$/.test(n)||n in e||(e[n]=t[n]);return e}function st(e){const t=e[0]instanceof Date,n=Array.from(new Set(t?e.map(Number):e));return t?n.map(r=>new Date(r)):n}function at(e){return e&&e.length?e.reduce((t,n)=>t.concat(n)):[]}function H(e,...t){if(!t.length||t.length===1&&!t[0])return e;const n=t.shift();return _(e)&&_(n)&&Object.keys(n).forEach(r=>{if(!/^(__proto__|constructor|prototype)$/i.test(r)){const o=n[r];o instanceof Date?e[r]=new Date(o.getTime()):_(o)?(!e[r]&&(e[r]={}),e[r]=H(e[r],o)):e[r]=N(o)?o.concat():o}}),H(e,...t)}function $e(e,t=!0){let n;return e[0]instanceof Date?n=t?(r,o)=>r-o:(r,o)=>o-r:t&&!e.every(isNaN)?n=(r,o)=>r-o:t||(n=(r,o)=>r>o&&-1||r<o&&1||r===o&&0),e.concat().sort(n)}function lt(e,t){let n=t.filter(r=>Ee(r));if(n.length)if(F(n[0])){let r=e==="min"?1/0:-1/0;for(const o of n)(e==="min"?o<r:o>r)&&(r=o);n=r}else n[0]instanceof Date&&(n=$e(n,e==="min")[0]);else n=void 0;return n}const ct=(e,t,n=1)=>{const r=[],o=Math.max(0,Math.ceil((t-e)/n))|0;for(let i=0;i<o;i++)r.push(e+i*n);return r};let Ce=0;function ft(e=!0){const t=++Ce;return e?String(t):t}function X(e,t,n,r,o){if(n>r)return-1;const i=Math.floor((n+r)/2);let{x:s,w:u=0}=e[i];return o&&(s=e[i].y,u=e[i].h),t>=s&&t<=s+u?i:t<s?X(e,t,n,i-1,o):X(e,t,i+1,r,o)}function S(e,t){return ye(e.replace(/\{=([^}]+)\}/g,(n,r)=>{var o;return(o=t[r])!=null?o:""}))}function ut(e){var t;let n;if(e instanceof Date)n=e;else if(D(e)){const{config:r,format:o}=this;n=(t=o.dataTime(r.data_xFormat)(e))!=null?t:new Date(e)}else F(e)&&!isNaN(e)&&(n=new Date(+e));return(!n||isNaN(+n))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),n}function dt(e){if(_(e)&&!D(e)){const s=e;return{top:s.top||0,right:s.right||0,bottom:s.bottom||0,left:s.left||0}}const t=(D(e)?e.trim().split(/\s+/):[e]).map(s=>+s||0),[n,r=n,o=n,i=r]=t;return{top:n,right:r,bottom:o,left:i}}function Pe(e,t){t()===!1?ve(()=>Pe(e,t)):e()}function pt(e,t=(n=>n)){const n=new Set;return W(e,(r,o)=>{n.add(t(r,o))}),n}function ht(e,t,n=(r=>r)){const r=new Map;return W(e,(o,i)=>{r.set(t(o,i),n(o,i))}),r}function Ne(e){const t=this.config;let n,r,o;const i=()=>{const s=r.shift();if(s&&n&&O(n)&&s in n)return n=n[s],i();if(!s)return n};Object.keys(t).forEach(s=>{n=e,r=s.split("_"),o=i(),ne(o)&&(t[s]=o)}),this.api&&(this.state.orgConfig=e)}var De=Object.defineProperty,Le=(e,t,n)=>t in e?De(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A=(e,t,n)=>Le(e,typeof t!="symbol"?t+"":t,n);class Z{constructor(t={}){A(this,"$$"),A(this,"options"),A(this,"config"),this.options=t}loadConfig(){Ne.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(t=>{this[t]=null,delete this[t]})}}A(Z,"version","4.1.1");const b={id:"__tableview-style__",class:"bb-tableview",rule:`.bb-tableview {
|
|
13
13
|
border-collapse:collapse;
|
|
14
14
|
border-spacing:0;
|
|
15
15
|
background:#fff;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.1.
|
|
8
|
+
* @version 4.1.1
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -250,7 +250,7 @@ class Plugin {
|
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
|
-
__publicField(Plugin, "version", "4.1.
|
|
253
|
+
__publicField(Plugin, "version", "4.1.1");
|
|
254
254
|
|
|
255
255
|
;// ./src/Plugin/textoverlap/Options.ts
|
|
256
256
|
class Options {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.1.
|
|
8
|
+
* @version 4.1.1
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
|
-
*/(function(h,u){typeof exports=="object"&&typeof module=="object"?module.exports=u():typeof define=="function"&&define.amd?define("bb",[],u):typeof exports=="object"?exports.bb=u():(h.bb=h.bb||{},h.bb.plugin=h.bb.plugin||{},h.bb.plugin.textoverlap=u())})(this,function(){return(function(){var x={};x.d=function(u,y){for(var m in y)x.o(y,m)&&!x.o(u,m)&&Object.defineProperty(u,m,{enumerable:!0,get:y[m]})},x.o=function(u,y){return Object.prototype.hasOwnProperty.call(u,y)};var h={};return(function(){"use strict";x.d(h,{default:function(){return B}});function u(t){const e=t.length;let n=0,s=t[e-1];for(let i=0;i<e;i++){const r=s;s=t[i],n+=r[1]*s[0]-r[0]*s[1]}return n/2}function y(t){const e=t.length;let n=0,s=0,i=0,r=t[e-1];for(let o=0;o<e;o++){const l=r;r=t[o];const c=l[0]*r[1]-r[0]*l[1];i+=c,n+=(l[0]+r[0])*c,s+=(l[1]+r[1])*c}return i*=3,[n/i,s/i]}const m=1e-9;function $(t,e,n){const s=n[0]-e[0],i=n[1]-e[1],r=(s*(e[0]+n[0])+i*(e[1]+n[1]))/2,o=[],l=t.length;let c=t[l-1],d=s*c[0]+i*c[1]-r;for(let f=0;f<l;f++){const a=t[f],p=s*a[0]+i*a[1]-r;if(d>0!=p>0){const b=d/(d-p);o.push([c[0]+b*(a[0]-c[0]),c[1]+b*(a[1]-c[1])])}p<=0&&o.push(a),c=a,d=p}return o}function O(t,e){const[n,s,i,r]=[Math.min(e[0],e[2]),Math.min(e[1],e[3]),Math.max(e[0],e[2]),Math.max(e[1],e[3])],o=[[n,s],[i,s],[i,r],[n,r]],l=t.length;return t.map((c,d)=>{let f=o;for(let a=0;a<l&&f.length>2;a++){if(a===d)continue;const p=t[a];if(Math.abs(p[0]-c[0])<m&&Math.abs(p[1]-c[1])<m){if(a<d)return null;continue}f=$(f,c,p)}return f.length>2?[...f,f[0]]:null})}const S=t=>t||t===0,U=t=>typeof t=="function",M=t=>typeof t=="string",w=t=>typeof t=="number",A=t=>typeof t=="undefined",P=t=>typeof t!="undefined",q=t=>typeof t=="boolean",H=t=>Math.ceil(t/10)*10,z=t=>Math.ceil(t)+.5,G=t=>t[1]-t[0],v=t=>typeof t=="object",j=t=>{for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0},C=t=>A(t)||t===null||M(t)&&t.length===0||v(t)&&!(t instanceof Date)&&j(t)||w(t)&&isNaN(t),J=t=>!C(t),D=t=>Array.isArray(t),K=t=>t&&!(t!=null&&t.nodeType)&&v(t)&&!D(t);function E(t){const e=this.config;let n,s,i;const r=()=>{const o=s.shift();if(o&&n&&v(n)&&o in n)return n=n[o],r();if(!o)return n};Object.keys(e).forEach(o=>{n=t,s=o.split("_"),i=r(),P(i)&&(e[o]=i)}),this.api&&(this.state.orgConfig=t)}var N=Object.defineProperty,T=(t,e,n)=>e in t?N(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,g=(t,e,n)=>T(t,typeof e!="symbol"?e+"":e,n);class _{constructor(e={}){g(this,"$$"),g(this,"options"),g(this,"config"),this.options=e}loadConfig(){E.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(e=>{this[e]=null,delete this[e]})}}g(_,"version","4.1.
|
|
11
|
+
*/(function(h,u){typeof exports=="object"&&typeof module=="object"?module.exports=u():typeof define=="function"&&define.amd?define("bb",[],u):typeof exports=="object"?exports.bb=u():(h.bb=h.bb||{},h.bb.plugin=h.bb.plugin||{},h.bb.plugin.textoverlap=u())})(this,function(){return(function(){var x={};x.d=function(u,y){for(var m in y)x.o(y,m)&&!x.o(u,m)&&Object.defineProperty(u,m,{enumerable:!0,get:y[m]})},x.o=function(u,y){return Object.prototype.hasOwnProperty.call(u,y)};var h={};return(function(){"use strict";x.d(h,{default:function(){return B}});function u(t){const e=t.length;let n=0,s=t[e-1];for(let i=0;i<e;i++){const r=s;s=t[i],n+=r[1]*s[0]-r[0]*s[1]}return n/2}function y(t){const e=t.length;let n=0,s=0,i=0,r=t[e-1];for(let o=0;o<e;o++){const l=r;r=t[o];const c=l[0]*r[1]-r[0]*l[1];i+=c,n+=(l[0]+r[0])*c,s+=(l[1]+r[1])*c}return i*=3,[n/i,s/i]}const m=1e-9;function $(t,e,n){const s=n[0]-e[0],i=n[1]-e[1],r=(s*(e[0]+n[0])+i*(e[1]+n[1]))/2,o=[],l=t.length;let c=t[l-1],d=s*c[0]+i*c[1]-r;for(let f=0;f<l;f++){const a=t[f],p=s*a[0]+i*a[1]-r;if(d>0!=p>0){const b=d/(d-p);o.push([c[0]+b*(a[0]-c[0]),c[1]+b*(a[1]-c[1])])}p<=0&&o.push(a),c=a,d=p}return o}function O(t,e){const[n,s,i,r]=[Math.min(e[0],e[2]),Math.min(e[1],e[3]),Math.max(e[0],e[2]),Math.max(e[1],e[3])],o=[[n,s],[i,s],[i,r],[n,r]],l=t.length;return t.map((c,d)=>{let f=o;for(let a=0;a<l&&f.length>2;a++){if(a===d)continue;const p=t[a];if(Math.abs(p[0]-c[0])<m&&Math.abs(p[1]-c[1])<m){if(a<d)return null;continue}f=$(f,c,p)}return f.length>2?[...f,f[0]]:null})}const S=t=>t||t===0,U=t=>typeof t=="function",M=t=>typeof t=="string",w=t=>typeof t=="number",A=t=>typeof t=="undefined",P=t=>typeof t!="undefined",q=t=>typeof t=="boolean",H=t=>Math.ceil(t/10)*10,z=t=>Math.ceil(t)+.5,G=t=>t[1]-t[0],v=t=>typeof t=="object",j=t=>{for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0},C=t=>A(t)||t===null||M(t)&&t.length===0||v(t)&&!(t instanceof Date)&&j(t)||w(t)&&isNaN(t),J=t=>!C(t),D=t=>Array.isArray(t),K=t=>t&&!(t!=null&&t.nodeType)&&v(t)&&!D(t);function E(t){const e=this.config;let n,s,i;const r=()=>{const o=s.shift();if(o&&n&&v(n)&&o in n)return n=n[o],r();if(!o)return n};Object.keys(e).forEach(o=>{n=t,s=o.split("_"),i=r(),P(i)&&(e[o]=i)}),this.api&&(this.state.orgConfig=t)}var N=Object.defineProperty,T=(t,e,n)=>e in t?N(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,g=(t,e,n)=>T(t,typeof e!="symbol"?e+"":e,n);class _{constructor(e={}){g(this,"$$"),g(this,"options"),g(this,"config"),this.options=e}loadConfig(){E.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(e=>{this[e]=null,delete this[e]})}}g(_,"version","4.1.1");class I{constructor(){return{selector:void 0,extent:1,area:0}}}class B extends _{constructor(e){return super(e),this.config=new I,this}$init(){this.loadConfig()}$redraw(){const{$$:{$el:e},config:{selector:n}}=this,s=n?e.main.selectAll(n):e.text;s.empty()||this.preventLabelOverlap(s)}generateVoronoi(e){const{$$:n}=this,{scale:s}=n,[i,r]=["x","y"].map(o=>s[o].domain());return[i[1],r[0]]=[r[0],i[1]],O(e,[...i,...r])}preventLabelOverlap(e){const{extent:n,area:s}=this.config,i=e.data().map(l=>[l.index,l.value]),r=this.generateVoronoi(i);let o=0;e.each(function(){const l=r[o];if(l&&this){const[c,d]=i[o],[f,a]=y(l),p=Math.abs(u(l)),b=Math.round(Math.atan2(a-d,f-c)/Math.PI*2),L=n*(b===0?1:-1),V=b===-1?-n:n+5,F=Math.abs(b)===1?"middle":b===0?"start":"end";this.style.display=p<s?"none":"",this.setAttribute("text-anchor",F),this.setAttribute("dy",`0.${b===1?71:35}em`),this.setAttribute("transform",`translate(${L}, ${V})`)}o++})}}})(),h=h.default,h})()});
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.1.
|
|
8
|
+
* @version 4.1.1
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -25305,7 +25305,7 @@ class Plugin {
|
|
|
25305
25305
|
});
|
|
25306
25306
|
}
|
|
25307
25307
|
}
|
|
25308
|
-
__publicField(Plugin, "version", "4.1.
|
|
25308
|
+
__publicField(Plugin, "version", "4.1.1");
|
|
25309
25309
|
|
|
25310
25310
|
;// ./src/Plugin/bubblecompare/index.ts
|
|
25311
25311
|
var bubblecompare_defProp = Object.defineProperty;
|