billboard.js 3.4.0-next.1 → 3.4.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/README.md +7 -3
- package/dist/billboard.css +1 -1
- package/dist/billboard.js +167 -58
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +2 -2
- package/dist/billboard.pkgd.js +237 -81
- package/dist/billboard.pkgd.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.js +12 -7
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.js +12 -7
- package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.js +12 -7
- package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.js +12 -7
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +58 -21
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +80 -28
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +58 -21
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +58 -21
- 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-esm/billboard.js +142 -52
- 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 +7 -4
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
- package/package.json +17 -17
- package/src/Chart/api/axis.ts +90 -25
- package/src/ChartInternal/ChartInternal.ts +25 -11
- package/src/ChartInternal/interactions/flow.ts +1 -1
- package/src/ChartInternal/shape/arc.ts +1 -1
- package/src/ChartInternal/shape/bar.ts +1 -1
- package/src/ChartInternal/shape/point.ts +8 -3
- package/src/config/Options/common/main.ts +19 -2
- package/src/module/generator.ts +19 -5
- package/src/module/util.ts +6 -3
- package/types/chart.d.ts +8 -8
- package/types/options.d.ts +7 -2
- package/types/types.d.ts +2 -0
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.4.
|
|
8
|
+
* @version 3.4.1
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -17333,7 +17333,7 @@ var Plugin = /*#__PURE__*/function () {
|
|
|
17333
17333
|
return Plugin;
|
|
17334
17334
|
}();
|
|
17335
17335
|
|
|
17336
|
-
Plugin.version = "3.4.
|
|
17336
|
+
Plugin.version = "3.4.1";
|
|
17337
17337
|
|
|
17338
17338
|
;// CONCATENATED MODULE: ./src/Plugin/sparkline/Options.ts
|
|
17339
17339
|
/**
|
|
@@ -18637,15 +18637,15 @@ var _brighter = 1 / _darker;
|
|
|
18637
18637
|
|
|
18638
18638
|
|
|
18639
18639
|
var reI = "\\s*([+-]?\\d+)\\s*",
|
|
18640
|
-
reN = "\\s*([+-]?\\d
|
|
18641
|
-
reP = "\\s*([+-]?\\d
|
|
18640
|
+
reN = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",
|
|
18641
|
+
reP = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
|
|
18642
18642
|
reHex = /^#([0-9a-f]{3,8})$/,
|
|
18643
18643
|
reRgbInteger = new RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),
|
|
18644
|
-
reRgbPercent = new RegExp("^rgb\\(\\s*([+-]?\\d
|
|
18645
|
-
reRgbaInteger = new RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d
|
|
18646
|
-
reRgbaPercent = new RegExp("^rgba\\(\\s*([+-]?\\d
|
|
18647
|
-
reHslPercent = new RegExp("^hsl\\(\\s*([+-]?\\d
|
|
18648
|
-
reHslaPercent = new RegExp("^hsla\\(\\s*([+-]?\\d
|
|
18644
|
+
reRgbPercent = new RegExp("^rgb\\(\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),
|
|
18645
|
+
reRgbaInteger = new RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),
|
|
18646
|
+
reRgbaPercent = new RegExp("^rgba\\(\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),
|
|
18647
|
+
reHslPercent = new RegExp("^hsl\\(\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),
|
|
18648
|
+
reHslaPercent = new RegExp("^hsla\\(\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),
|
|
18649
18649
|
named = {
|
|
18650
18650
|
aliceblue: 0xf0f8ff,
|
|
18651
18651
|
antiquewhite: 0xfaebd7,
|
|
@@ -18806,6 +18806,7 @@ src_define(Color, color, {
|
|
|
18806
18806
|
hex: color_formatHex,
|
|
18807
18807
|
// Deprecated! Use color.formatHex.
|
|
18808
18808
|
formatHex: color_formatHex,
|
|
18809
|
+
formatHex8: color_formatHex8,
|
|
18809
18810
|
formatHsl: color_formatHsl,
|
|
18810
18811
|
formatRgb: color_formatRgb,
|
|
18811
18812
|
toString: color_formatRgb
|
|
@@ -18815,6 +18816,10 @@ function color_formatHex() {
|
|
|
18815
18816
|
return this.rgb().formatHex();
|
|
18816
18817
|
}
|
|
18817
18818
|
|
|
18819
|
+
function color_formatHex8() {
|
|
18820
|
+
return this.rgb().formatHex8();
|
|
18821
|
+
}
|
|
18822
|
+
|
|
18818
18823
|
function color_formatHsl() {
|
|
18819
18824
|
return hslConvert(this).formatHsl();
|
|
18820
18825
|
}
|
|
@@ -18877,12 +18882,16 @@ src_define(Rgb, color_rgb, extend(Color, {
|
|
|
18877
18882
|
rgb: function () {
|
|
18878
18883
|
return this;
|
|
18879
18884
|
},
|
|
18885
|
+
clamp: function clamp() {
|
|
18886
|
+
return new Rgb(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity));
|
|
18887
|
+
},
|
|
18880
18888
|
displayable: function displayable() {
|
|
18881
18889
|
return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
18882
18890
|
},
|
|
18883
18891
|
hex: rgb_formatHex,
|
|
18884
18892
|
// Deprecated! Use color.formatHex.
|
|
18885
18893
|
formatHex: rgb_formatHex,
|
|
18894
|
+
formatHex8: rgb_formatHex8,
|
|
18886
18895
|
formatRgb: rgb_formatRgb,
|
|
18887
18896
|
toString: rgb_formatRgb
|
|
18888
18897
|
}));
|
|
@@ -18891,14 +18900,25 @@ function rgb_formatHex() {
|
|
|
18891
18900
|
return "#" + hex(this.r) + hex(this.g) + hex(this.b);
|
|
18892
18901
|
}
|
|
18893
18902
|
|
|
18903
|
+
function rgb_formatHex8() {
|
|
18904
|
+
return "#" + hex(this.r) + hex(this.g) + hex(this.b) + hex((isNaN(this.opacity) ? 1 : this.opacity) * 255);
|
|
18905
|
+
}
|
|
18906
|
+
|
|
18894
18907
|
function rgb_formatRgb() {
|
|
18895
|
-
var a = this.opacity;
|
|
18896
|
-
|
|
18897
|
-
|
|
18908
|
+
var a = clampa(this.opacity);
|
|
18909
|
+
return "" + (a === 1 ? "rgb(" : "rgba(") + clampi(this.r) + ", " + clampi(this.g) + ", " + clampi(this.b) + (a === 1 ? ")" : ", " + a + ")");
|
|
18910
|
+
}
|
|
18911
|
+
|
|
18912
|
+
function clampa(opacity) {
|
|
18913
|
+
return isNaN(opacity) ? 1 : Math.max(0, Math.min(1, opacity));
|
|
18914
|
+
}
|
|
18915
|
+
|
|
18916
|
+
function clampi(value) {
|
|
18917
|
+
return Math.max(0, Math.min(255, Math.round(value) || 0));
|
|
18898
18918
|
}
|
|
18899
18919
|
|
|
18900
18920
|
function hex(value) {
|
|
18901
|
-
value =
|
|
18921
|
+
value = clampi(value);
|
|
18902
18922
|
return (value < 16 ? "0" : "") + value.toString(16);
|
|
18903
18923
|
}
|
|
18904
18924
|
|
|
@@ -18960,17 +18980,29 @@ src_define(Hsl, hsl, extend(Color, {
|
|
|
18960
18980
|
m1 = 2 * l - m2;
|
|
18961
18981
|
return new Rgb(hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2), hsl2rgb(h, m1, m2), hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2), this.opacity);
|
|
18962
18982
|
},
|
|
18983
|
+
clamp: function clamp() {
|
|
18984
|
+
return new Hsl(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity));
|
|
18985
|
+
},
|
|
18963
18986
|
displayable: function displayable() {
|
|
18964
18987
|
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
18965
18988
|
},
|
|
18966
18989
|
formatHsl: function formatHsl() {
|
|
18967
|
-
var a = this.opacity;
|
|
18968
|
-
|
|
18969
|
-
return (a === 1 ? "hsl(" : "hsla(") + (this.h || 0) + ", " + (this.s || 0) * 100 + "%, " + (this.l || 0) * 100 + "%" + (a === 1 ? ")" : ", " + a + ")");
|
|
18990
|
+
var a = clampa(this.opacity);
|
|
18991
|
+
return "" + (a === 1 ? "hsl(" : "hsla(") + clamph(this.h) + ", " + clampt(this.s) * 100 + "%, " + clampt(this.l) * 100 + "%" + (a === 1 ? ")" : ", " + a + ")");
|
|
18970
18992
|
}
|
|
18971
18993
|
}));
|
|
18994
|
+
|
|
18995
|
+
function clamph(value) {
|
|
18996
|
+
value = (value || 0) % 360;
|
|
18997
|
+
return value < 0 ? value + 360 : value;
|
|
18998
|
+
}
|
|
18999
|
+
|
|
19000
|
+
function clampt(value) {
|
|
19001
|
+
return Math.max(0, Math.min(1, value || 0));
|
|
19002
|
+
}
|
|
18972
19003
|
/* From FvD 13.37, CSS Color Module Level 3 */
|
|
18973
19004
|
|
|
19005
|
+
|
|
18974
19006
|
function hsl2rgb(h, m1, m2) {
|
|
18975
19007
|
return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255;
|
|
18976
19008
|
}
|
|
@@ -21935,9 +21967,13 @@ function parseDate(date) {
|
|
|
21935
21967
|
if (date instanceof Date) {
|
|
21936
21968
|
parsedDate = date;
|
|
21937
21969
|
} else if (isString(date)) {
|
|
21938
|
-
var
|
|
21970
|
+
var _format$dataTime,
|
|
21971
|
+
config = this.config,
|
|
21939
21972
|
format = this.format;
|
|
21940
|
-
|
|
21973
|
+
|
|
21974
|
+
// if fails to parse, try by new Date()
|
|
21975
|
+
// https://github.com/naver/billboard.js/issues/1714
|
|
21976
|
+
parsedDate = (_format$dataTime = format.dataTime(config.data_xFormat)(date)) != null ? _format$dataTime : new Date(date);
|
|
21941
21977
|
} else if (isNumber(date) && !isNaN(date)) {
|
|
21942
21978
|
parsedDate = new Date(+date);
|
|
21943
21979
|
}
|
|
@@ -21956,7 +21992,7 @@ function parseDate(date) {
|
|
|
21956
21992
|
|
|
21957
21993
|
|
|
21958
21994
|
function isTabVisible() {
|
|
21959
|
-
return !doc.
|
|
21995
|
+
return (doc == null ? void 0 : doc.hidden) === !1 || (doc == null ? void 0 : doc.visibilityState) === "visible";
|
|
21960
21996
|
}
|
|
21961
21997
|
/**
|
|
21962
21998
|
* Get the current input type
|
|
@@ -21997,8 +22033,9 @@ function convertInputType(mouse, touch) {
|
|
|
21997
22033
|
|
|
21998
22034
|
var hasMouse = mouse && ["any-hover:hover", "any-pointer:fine"].some(function (v) {
|
|
21999
22035
|
return matchMedia == null ? void 0 : matchMedia("(" + v + ")").matches;
|
|
22000
|
-
});
|
|
22001
|
-
|
|
22036
|
+
}); // fallback to 'mouse' if no input type is detected.
|
|
22037
|
+
|
|
22038
|
+
return hasMouse && "mouse" || hasTouch && "touch" || "mouse";
|
|
22002
22039
|
}
|
|
22003
22040
|
;// CONCATENATED MODULE: ./src/config/config.ts
|
|
22004
22041
|
/**
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.4.
|
|
8
|
+
* @version 3.4.1
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -17097,15 +17097,15 @@ var _brighter = 1 / _darker;
|
|
|
17097
17097
|
|
|
17098
17098
|
|
|
17099
17099
|
var reI = "\\s*([+-]?\\d+)\\s*",
|
|
17100
|
-
reN = "\\s*([+-]?\\d
|
|
17101
|
-
reP = "\\s*([+-]?\\d
|
|
17100
|
+
reN = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",
|
|
17101
|
+
reP = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
|
|
17102
17102
|
reHex = /^#([0-9a-f]{3,8})$/,
|
|
17103
17103
|
reRgbInteger = new RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),
|
|
17104
|
-
reRgbPercent = new RegExp("^rgb\\(\\s*([+-]?\\d
|
|
17105
|
-
reRgbaInteger = new RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d
|
|
17106
|
-
reRgbaPercent = new RegExp("^rgba\\(\\s*([+-]?\\d
|
|
17107
|
-
reHslPercent = new RegExp("^hsl\\(\\s*([+-]?\\d
|
|
17108
|
-
reHslaPercent = new RegExp("^hsla\\(\\s*([+-]?\\d
|
|
17104
|
+
reRgbPercent = new RegExp("^rgb\\(\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),
|
|
17105
|
+
reRgbaInteger = new RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),
|
|
17106
|
+
reRgbaPercent = new RegExp("^rgba\\(\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),
|
|
17107
|
+
reHslPercent = new RegExp("^hsl\\(\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),
|
|
17108
|
+
reHslaPercent = new RegExp("^hsla\\(\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),
|
|
17109
17109
|
named = {
|
|
17110
17110
|
aliceblue: 0xf0f8ff,
|
|
17111
17111
|
antiquewhite: 0xfaebd7,
|
|
@@ -17266,6 +17266,7 @@ src_define(Color, color, {
|
|
|
17266
17266
|
hex: color_formatHex,
|
|
17267
17267
|
// Deprecated! Use color.formatHex.
|
|
17268
17268
|
formatHex: color_formatHex,
|
|
17269
|
+
formatHex8: color_formatHex8,
|
|
17269
17270
|
formatHsl: color_formatHsl,
|
|
17270
17271
|
formatRgb: color_formatRgb,
|
|
17271
17272
|
toString: color_formatRgb
|
|
@@ -17275,6 +17276,10 @@ function color_formatHex() {
|
|
|
17275
17276
|
return this.rgb().formatHex();
|
|
17276
17277
|
}
|
|
17277
17278
|
|
|
17279
|
+
function color_formatHex8() {
|
|
17280
|
+
return this.rgb().formatHex8();
|
|
17281
|
+
}
|
|
17282
|
+
|
|
17278
17283
|
function color_formatHsl() {
|
|
17279
17284
|
return hslConvert(this).formatHsl();
|
|
17280
17285
|
}
|
|
@@ -17337,12 +17342,16 @@ src_define(Rgb, color_rgb, extend(Color, {
|
|
|
17337
17342
|
rgb: function () {
|
|
17338
17343
|
return this;
|
|
17339
17344
|
},
|
|
17345
|
+
clamp: function clamp() {
|
|
17346
|
+
return new Rgb(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity));
|
|
17347
|
+
},
|
|
17340
17348
|
displayable: function displayable() {
|
|
17341
17349
|
return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
17342
17350
|
},
|
|
17343
17351
|
hex: rgb_formatHex,
|
|
17344
17352
|
// Deprecated! Use color.formatHex.
|
|
17345
17353
|
formatHex: rgb_formatHex,
|
|
17354
|
+
formatHex8: rgb_formatHex8,
|
|
17346
17355
|
formatRgb: rgb_formatRgb,
|
|
17347
17356
|
toString: rgb_formatRgb
|
|
17348
17357
|
}));
|
|
@@ -17351,14 +17360,25 @@ function rgb_formatHex() {
|
|
|
17351
17360
|
return "#" + hex(this.r) + hex(this.g) + hex(this.b);
|
|
17352
17361
|
}
|
|
17353
17362
|
|
|
17363
|
+
function rgb_formatHex8() {
|
|
17364
|
+
return "#" + hex(this.r) + hex(this.g) + hex(this.b) + hex((isNaN(this.opacity) ? 1 : this.opacity) * 255);
|
|
17365
|
+
}
|
|
17366
|
+
|
|
17354
17367
|
function rgb_formatRgb() {
|
|
17355
|
-
var a = this.opacity;
|
|
17356
|
-
|
|
17357
|
-
|
|
17368
|
+
var a = clampa(this.opacity);
|
|
17369
|
+
return "" + (a === 1 ? "rgb(" : "rgba(") + clampi(this.r) + ", " + clampi(this.g) + ", " + clampi(this.b) + (a === 1 ? ")" : ", " + a + ")");
|
|
17370
|
+
}
|
|
17371
|
+
|
|
17372
|
+
function clampa(opacity) {
|
|
17373
|
+
return isNaN(opacity) ? 1 : Math.max(0, Math.min(1, opacity));
|
|
17374
|
+
}
|
|
17375
|
+
|
|
17376
|
+
function clampi(value) {
|
|
17377
|
+
return Math.max(0, Math.min(255, Math.round(value) || 0));
|
|
17358
17378
|
}
|
|
17359
17379
|
|
|
17360
17380
|
function hex(value) {
|
|
17361
|
-
value =
|
|
17381
|
+
value = clampi(value);
|
|
17362
17382
|
return (value < 16 ? "0" : "") + value.toString(16);
|
|
17363
17383
|
}
|
|
17364
17384
|
|
|
@@ -17420,17 +17440,29 @@ src_define(Hsl, hsl, extend(Color, {
|
|
|
17420
17440
|
m1 = 2 * l - m2;
|
|
17421
17441
|
return new Rgb(hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2), hsl2rgb(h, m1, m2), hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2), this.opacity);
|
|
17422
17442
|
},
|
|
17443
|
+
clamp: function clamp() {
|
|
17444
|
+
return new Hsl(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity));
|
|
17445
|
+
},
|
|
17423
17446
|
displayable: function displayable() {
|
|
17424
17447
|
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
17425
17448
|
},
|
|
17426
17449
|
formatHsl: function formatHsl() {
|
|
17427
|
-
var a = this.opacity;
|
|
17428
|
-
|
|
17429
|
-
return (a === 1 ? "hsl(" : "hsla(") + (this.h || 0) + ", " + (this.s || 0) * 100 + "%, " + (this.l || 0) * 100 + "%" + (a === 1 ? ")" : ", " + a + ")");
|
|
17450
|
+
var a = clampa(this.opacity);
|
|
17451
|
+
return "" + (a === 1 ? "hsl(" : "hsla(") + clamph(this.h) + ", " + clampt(this.s) * 100 + "%, " + clampt(this.l) * 100 + "%" + (a === 1 ? ")" : ", " + a + ")");
|
|
17430
17452
|
}
|
|
17431
17453
|
}));
|
|
17454
|
+
|
|
17455
|
+
function clamph(value) {
|
|
17456
|
+
value = (value || 0) % 360;
|
|
17457
|
+
return value < 0 ? value + 360 : value;
|
|
17458
|
+
}
|
|
17459
|
+
|
|
17460
|
+
function clampt(value) {
|
|
17461
|
+
return Math.max(0, Math.min(1, value || 0));
|
|
17462
|
+
}
|
|
17432
17463
|
/* From FvD 13.37, CSS Color Module Level 3 */
|
|
17433
17464
|
|
|
17465
|
+
|
|
17434
17466
|
function hsl2rgb(h, m1, m2) {
|
|
17435
17467
|
return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255;
|
|
17436
17468
|
}
|
|
@@ -17762,23 +17794,34 @@ function one(b) {
|
|
|
17762
17794
|
function ascending(a, b) {
|
|
17763
17795
|
return a == null || b == null ? NaN : a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
|
|
17764
17796
|
}
|
|
17797
|
+
;// CONCATENATED MODULE: ./node_modules/d3-array/src/descending.js
|
|
17798
|
+
function descending(a, b) {
|
|
17799
|
+
return a == null || b == null ? NaN : b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
|
|
17800
|
+
}
|
|
17765
17801
|
;// CONCATENATED MODULE: ./node_modules/d3-array/src/bisector.js
|
|
17766
17802
|
|
|
17803
|
+
|
|
17767
17804
|
function bisector(f) {
|
|
17768
|
-
var delta
|
|
17769
|
-
|
|
17770
|
-
|
|
17805
|
+
var compare1, compare2, delta; // If an accessor is specified, promote it to a comparator. In this case we
|
|
17806
|
+
// can test whether the search value is (self-) comparable. We can’t do this
|
|
17807
|
+
// for a comparator (except for specific, known comparators) because we can’t
|
|
17808
|
+
// tell if the comparator is symmetric, and an asymmetric comparator can’t be
|
|
17809
|
+
// used to test whether a single value is comparable.
|
|
17771
17810
|
|
|
17772
17811
|
if (f.length !== 2) {
|
|
17773
|
-
delta = function (d, x) {
|
|
17774
|
-
return f(d) - x;
|
|
17775
|
-
};
|
|
17776
|
-
|
|
17777
17812
|
compare1 = ascending;
|
|
17778
17813
|
|
|
17779
17814
|
compare2 = function (d, x) {
|
|
17780
17815
|
return ascending(f(d), x);
|
|
17781
17816
|
};
|
|
17817
|
+
|
|
17818
|
+
delta = function (d, x) {
|
|
17819
|
+
return f(d) - x;
|
|
17820
|
+
};
|
|
17821
|
+
} else {
|
|
17822
|
+
compare1 = f === ascending || f === descending ? f : bisector_zero;
|
|
17823
|
+
compare2 = f;
|
|
17824
|
+
delta = f;
|
|
17782
17825
|
}
|
|
17783
17826
|
|
|
17784
17827
|
function left(a, x, lo, hi) {
|
|
@@ -17842,6 +17885,10 @@ function bisector(f) {
|
|
|
17842
17885
|
right: right
|
|
17843
17886
|
};
|
|
17844
17887
|
}
|
|
17888
|
+
|
|
17889
|
+
function bisector_zero() {
|
|
17890
|
+
return 0;
|
|
17891
|
+
}
|
|
17845
17892
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
17846
17893
|
var regenerator = __webpack_require__(448);
|
|
17847
17894
|
;// CONCATENATED MODULE: ./node_modules/d3-array/src/number.js
|
|
@@ -23059,9 +23106,13 @@ function parseDate(date) {
|
|
|
23059
23106
|
if (date instanceof Date) {
|
|
23060
23107
|
parsedDate = date;
|
|
23061
23108
|
} else if (isString(date)) {
|
|
23062
|
-
var
|
|
23109
|
+
var _format$dataTime,
|
|
23110
|
+
config = this.config,
|
|
23063
23111
|
format = this.format;
|
|
23064
|
-
|
|
23112
|
+
|
|
23113
|
+
// if fails to parse, try by new Date()
|
|
23114
|
+
// https://github.com/naver/billboard.js/issues/1714
|
|
23115
|
+
parsedDate = (_format$dataTime = format.dataTime(config.data_xFormat)(date)) != null ? _format$dataTime : new Date(date);
|
|
23065
23116
|
} else if (isNumber(date) && !isNaN(date)) {
|
|
23066
23117
|
parsedDate = new Date(+date);
|
|
23067
23118
|
}
|
|
@@ -23080,7 +23131,7 @@ function parseDate(date) {
|
|
|
23080
23131
|
|
|
23081
23132
|
|
|
23082
23133
|
function isTabVisible() {
|
|
23083
|
-
return !doc.
|
|
23134
|
+
return (doc == null ? void 0 : doc.hidden) === !1 || (doc == null ? void 0 : doc.visibilityState) === "visible";
|
|
23084
23135
|
}
|
|
23085
23136
|
/**
|
|
23086
23137
|
* Get the current input type
|
|
@@ -23121,8 +23172,9 @@ function convertInputType(mouse, touch) {
|
|
|
23121
23172
|
|
|
23122
23173
|
var hasMouse = mouse && ["any-hover:hover", "any-pointer:fine"].some(function (v) {
|
|
23123
23174
|
return matchMedia == null ? void 0 : matchMedia("(" + v + ")").matches;
|
|
23124
|
-
});
|
|
23125
|
-
|
|
23175
|
+
}); // fallback to 'mouse' if no input type is detected.
|
|
23176
|
+
|
|
23177
|
+
return hasMouse && "mouse" || hasTouch && "touch" || "mouse";
|
|
23126
23178
|
}
|
|
23127
23179
|
;// CONCATENATED MODULE: ./src/config/config.ts
|
|
23128
23180
|
/**
|
|
@@ -23247,7 +23299,7 @@ var Plugin = /*#__PURE__*/function () {
|
|
|
23247
23299
|
return Plugin;
|
|
23248
23300
|
}();
|
|
23249
23301
|
|
|
23250
|
-
Plugin.version = "3.4.
|
|
23302
|
+
Plugin.version = "3.4.1";
|
|
23251
23303
|
|
|
23252
23304
|
;// CONCATENATED MODULE: ./src/Plugin/stanford/Options.ts
|
|
23253
23305
|
/**
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.4.
|
|
8
|
+
* @version 3.4.1
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -17172,7 +17172,7 @@ var Plugin = /*#__PURE__*/function () {
|
|
|
17172
17172
|
return Plugin;
|
|
17173
17173
|
}();
|
|
17174
17174
|
|
|
17175
|
-
Plugin.version = "3.4.
|
|
17175
|
+
Plugin.version = "3.4.1";
|
|
17176
17176
|
|
|
17177
17177
|
;// CONCATENATED MODULE: ./src/Plugin/tableview/Options.ts
|
|
17178
17178
|
/**
|
|
@@ -18576,15 +18576,15 @@ var _brighter = 1 / _darker;
|
|
|
18576
18576
|
|
|
18577
18577
|
|
|
18578
18578
|
var reI = "\\s*([+-]?\\d+)\\s*",
|
|
18579
|
-
reN = "\\s*([+-]?\\d
|
|
18580
|
-
reP = "\\s*([+-]?\\d
|
|
18579
|
+
reN = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",
|
|
18580
|
+
reP = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
|
|
18581
18581
|
reHex = /^#([0-9a-f]{3,8})$/,
|
|
18582
18582
|
reRgbInteger = new RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),
|
|
18583
|
-
reRgbPercent = new RegExp("^rgb\\(\\s*([+-]?\\d
|
|
18584
|
-
reRgbaInteger = new RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d
|
|
18585
|
-
reRgbaPercent = new RegExp("^rgba\\(\\s*([+-]?\\d
|
|
18586
|
-
reHslPercent = new RegExp("^hsl\\(\\s*([+-]?\\d
|
|
18587
|
-
reHslaPercent = new RegExp("^hsla\\(\\s*([+-]?\\d
|
|
18583
|
+
reRgbPercent = new RegExp("^rgb\\(\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),
|
|
18584
|
+
reRgbaInteger = new RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),
|
|
18585
|
+
reRgbaPercent = new RegExp("^rgba\\(\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),
|
|
18586
|
+
reHslPercent = new RegExp("^hsl\\(\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),
|
|
18587
|
+
reHslaPercent = new RegExp("^hsla\\(\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),
|
|
18588
18588
|
named = {
|
|
18589
18589
|
aliceblue: 0xf0f8ff,
|
|
18590
18590
|
antiquewhite: 0xfaebd7,
|
|
@@ -18745,6 +18745,7 @@ src_define(Color, color, {
|
|
|
18745
18745
|
hex: color_formatHex,
|
|
18746
18746
|
// Deprecated! Use color.formatHex.
|
|
18747
18747
|
formatHex: color_formatHex,
|
|
18748
|
+
formatHex8: color_formatHex8,
|
|
18748
18749
|
formatHsl: color_formatHsl,
|
|
18749
18750
|
formatRgb: color_formatRgb,
|
|
18750
18751
|
toString: color_formatRgb
|
|
@@ -18754,6 +18755,10 @@ function color_formatHex() {
|
|
|
18754
18755
|
return this.rgb().formatHex();
|
|
18755
18756
|
}
|
|
18756
18757
|
|
|
18758
|
+
function color_formatHex8() {
|
|
18759
|
+
return this.rgb().formatHex8();
|
|
18760
|
+
}
|
|
18761
|
+
|
|
18757
18762
|
function color_formatHsl() {
|
|
18758
18763
|
return hslConvert(this).formatHsl();
|
|
18759
18764
|
}
|
|
@@ -18816,12 +18821,16 @@ src_define(Rgb, color_rgb, extend(Color, {
|
|
|
18816
18821
|
rgb: function () {
|
|
18817
18822
|
return this;
|
|
18818
18823
|
},
|
|
18824
|
+
clamp: function clamp() {
|
|
18825
|
+
return new Rgb(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity));
|
|
18826
|
+
},
|
|
18819
18827
|
displayable: function displayable() {
|
|
18820
18828
|
return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
18821
18829
|
},
|
|
18822
18830
|
hex: rgb_formatHex,
|
|
18823
18831
|
// Deprecated! Use color.formatHex.
|
|
18824
18832
|
formatHex: rgb_formatHex,
|
|
18833
|
+
formatHex8: rgb_formatHex8,
|
|
18825
18834
|
formatRgb: rgb_formatRgb,
|
|
18826
18835
|
toString: rgb_formatRgb
|
|
18827
18836
|
}));
|
|
@@ -18830,14 +18839,25 @@ function rgb_formatHex() {
|
|
|
18830
18839
|
return "#" + hex(this.r) + hex(this.g) + hex(this.b);
|
|
18831
18840
|
}
|
|
18832
18841
|
|
|
18842
|
+
function rgb_formatHex8() {
|
|
18843
|
+
return "#" + hex(this.r) + hex(this.g) + hex(this.b) + hex((isNaN(this.opacity) ? 1 : this.opacity) * 255);
|
|
18844
|
+
}
|
|
18845
|
+
|
|
18833
18846
|
function rgb_formatRgb() {
|
|
18834
|
-
var a = this.opacity;
|
|
18835
|
-
|
|
18836
|
-
|
|
18847
|
+
var a = clampa(this.opacity);
|
|
18848
|
+
return "" + (a === 1 ? "rgb(" : "rgba(") + clampi(this.r) + ", " + clampi(this.g) + ", " + clampi(this.b) + (a === 1 ? ")" : ", " + a + ")");
|
|
18849
|
+
}
|
|
18850
|
+
|
|
18851
|
+
function clampa(opacity) {
|
|
18852
|
+
return isNaN(opacity) ? 1 : Math.max(0, Math.min(1, opacity));
|
|
18853
|
+
}
|
|
18854
|
+
|
|
18855
|
+
function clampi(value) {
|
|
18856
|
+
return Math.max(0, Math.min(255, Math.round(value) || 0));
|
|
18837
18857
|
}
|
|
18838
18858
|
|
|
18839
18859
|
function hex(value) {
|
|
18840
|
-
value =
|
|
18860
|
+
value = clampi(value);
|
|
18841
18861
|
return (value < 16 ? "0" : "") + value.toString(16);
|
|
18842
18862
|
}
|
|
18843
18863
|
|
|
@@ -18899,17 +18919,29 @@ src_define(Hsl, hsl, extend(Color, {
|
|
|
18899
18919
|
m1 = 2 * l - m2;
|
|
18900
18920
|
return new Rgb(hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2), hsl2rgb(h, m1, m2), hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2), this.opacity);
|
|
18901
18921
|
},
|
|
18922
|
+
clamp: function clamp() {
|
|
18923
|
+
return new Hsl(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity));
|
|
18924
|
+
},
|
|
18902
18925
|
displayable: function displayable() {
|
|
18903
18926
|
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
18904
18927
|
},
|
|
18905
18928
|
formatHsl: function formatHsl() {
|
|
18906
|
-
var a = this.opacity;
|
|
18907
|
-
|
|
18908
|
-
return (a === 1 ? "hsl(" : "hsla(") + (this.h || 0) + ", " + (this.s || 0) * 100 + "%, " + (this.l || 0) * 100 + "%" + (a === 1 ? ")" : ", " + a + ")");
|
|
18929
|
+
var a = clampa(this.opacity);
|
|
18930
|
+
return "" + (a === 1 ? "hsl(" : "hsla(") + clamph(this.h) + ", " + clampt(this.s) * 100 + "%, " + clampt(this.l) * 100 + "%" + (a === 1 ? ")" : ", " + a + ")");
|
|
18909
18931
|
}
|
|
18910
18932
|
}));
|
|
18933
|
+
|
|
18934
|
+
function clamph(value) {
|
|
18935
|
+
value = (value || 0) % 360;
|
|
18936
|
+
return value < 0 ? value + 360 : value;
|
|
18937
|
+
}
|
|
18938
|
+
|
|
18939
|
+
function clampt(value) {
|
|
18940
|
+
return Math.max(0, Math.min(1, value || 0));
|
|
18941
|
+
}
|
|
18911
18942
|
/* From FvD 13.37, CSS Color Module Level 3 */
|
|
18912
18943
|
|
|
18944
|
+
|
|
18913
18945
|
function hsl2rgb(h, m1, m2) {
|
|
18914
18946
|
return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255;
|
|
18915
18947
|
}
|
|
@@ -21874,9 +21906,13 @@ function parseDate(date) {
|
|
|
21874
21906
|
if (date instanceof Date) {
|
|
21875
21907
|
parsedDate = date;
|
|
21876
21908
|
} else if (isString(date)) {
|
|
21877
|
-
var
|
|
21909
|
+
var _format$dataTime,
|
|
21910
|
+
config = this.config,
|
|
21878
21911
|
format = this.format;
|
|
21879
|
-
|
|
21912
|
+
|
|
21913
|
+
// if fails to parse, try by new Date()
|
|
21914
|
+
// https://github.com/naver/billboard.js/issues/1714
|
|
21915
|
+
parsedDate = (_format$dataTime = format.dataTime(config.data_xFormat)(date)) != null ? _format$dataTime : new Date(date);
|
|
21880
21916
|
} else if (isNumber(date) && !isNaN(date)) {
|
|
21881
21917
|
parsedDate = new Date(+date);
|
|
21882
21918
|
}
|
|
@@ -21895,7 +21931,7 @@ function parseDate(date) {
|
|
|
21895
21931
|
|
|
21896
21932
|
|
|
21897
21933
|
function isTabVisible() {
|
|
21898
|
-
return !doc.
|
|
21934
|
+
return (doc == null ? void 0 : doc.hidden) === !1 || (doc == null ? void 0 : doc.visibilityState) === "visible";
|
|
21899
21935
|
}
|
|
21900
21936
|
/**
|
|
21901
21937
|
* Get the current input type
|
|
@@ -21936,8 +21972,9 @@ function convertInputType(mouse, touch) {
|
|
|
21936
21972
|
|
|
21937
21973
|
var hasMouse = mouse && ["any-hover:hover", "any-pointer:fine"].some(function (v) {
|
|
21938
21974
|
return matchMedia == null ? void 0 : matchMedia("(" + v + ")").matches;
|
|
21939
|
-
});
|
|
21940
|
-
|
|
21975
|
+
}); // fallback to 'mouse' if no input type is detected.
|
|
21976
|
+
|
|
21977
|
+
return hasMouse && "mouse" || hasTouch && "touch" || "mouse";
|
|
21941
21978
|
}
|
|
21942
21979
|
;// CONCATENATED MODULE: ./src/config/config.ts
|
|
21943
21980
|
/**
|