Skip to content

Commit

Permalink
skip: 3.10.2-nightly-20231103004627 build [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
netil committed Nov 3, 2023
1 parent dc77317 commit 60ad50a
Show file tree
Hide file tree
Showing 42 changed files with 176 additions and 148 deletions.
40 changes: 24 additions & 16 deletions dist-esm/billboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* billboard.js, JavaScript chart library
* https://naver.github.io/billboard.js/
*
* @version 3.10.2-nightly-20231101004623
* @version 3.10.2-nightly-20231103004627
*/
import { timeParse, utcParse, timeFormat, utcFormat } from 'd3-time-format';
import { pointer, select, namespaces, selectAll } from 'd3-selection';
Expand Down Expand Up @@ -4546,14 +4546,19 @@ var data$1 = {
if (type === void 0) { type = "areaRange"; }
var value = d === null || d === void 0 ? void 0 : d.value;
if (isArray(value)) {
// @ts-ignore
var index = {
areaRange: ["high", "mid", "low"],
candlestick: ["open", "high", "low", "close", "volume"]
}[type].indexOf(key);
return index >= 0 && value ? value[index] : undefined;
if (type === "bar") {
return value.reduce(function (a, c) { return c - a; });
}
else {
// @ts-ignore
var index = {
areaRange: ["high", "mid", "low"],
candlestick: ["open", "high", "low", "close", "volume"]
}[type].indexOf(key);
return index >= 0 && value ? value[index] : undefined;
}
}
else if (value) {
else if (value && key) {
return value[key];
}
return value;
Expand Down Expand Up @@ -4626,7 +4631,7 @@ var data$1 = {
var yScale = $$.getYScaleById.bind($$)(d.id);
var max = yScale.domain().reduce(function (a, c) { return c - a; });
// when all data are 0, return 0
ratio = max === 0 ? 0 : Math.abs(d.value) / max;
ratio = max === 0 ? 0 : Math.abs($$.getRangedData(d, null, type) / max);
}
else if (type === "treemap") {
ratio /= $$.getTotalDataSum(true);
Expand Down Expand Up @@ -5795,7 +5800,7 @@ var format = {
dataLabelFormat: function (targetId) {
var $$ = this;
var dataLabels = $$.config.data_labels;
var defaultFormat = function (v) { return (isValue(v) ? +v : ""); };
var defaultFormat = function (v) { return (isArray(v) ? v.join("~") : (isValue(v) ? +v : "")); };
var format = defaultFormat;
// find format according to axis id
if (isFunction(dataLabels.format)) {
Expand Down Expand Up @@ -7157,6 +7162,9 @@ var shape = {
if (isNumber(d)) {
value = d;
}
else if ($$.isAreaRangeType(d)) {
value = $$.getBaseValue(d, "mid");
}
else if (isStackNormalized) {
value = $$.getRatio("index", d, true);
}
Expand Down Expand Up @@ -7975,7 +7983,7 @@ var text = {
* @returns {string|null}
* @private
*/
updateTextBacgroundColor: function (d) {
updateTextBackgroundColor: function (d) {
var $$ = this;
var $el = $$.$el, config = $$.config;
var backgroundColor = config.data_labels_backgroundColors;
Expand Down Expand Up @@ -8008,7 +8016,7 @@ var text = {
var rotateString = angle ? "rotate(".concat(angle, ")") : "";
$$.$el.text
.style("fill", $$.getStylePropValue($$.updateTextColor))
.attr("filter", $$.updateTextBacgroundColor.bind($$))
.attr("filter", $$.updateTextBackgroundColor.bind($$))
.style("fill-opacity", forFlow ? 0 : $$.opacityForText.bind($$))
.each(function (d, i) {
// do not apply transition for newly added text elements
Expand Down Expand Up @@ -8109,7 +8117,7 @@ var text = {
if (config.data_labels.centered && (isBarType || isTreemapType)) {
var rect = getBoundingRect(textElement);
if (isBarType) {
var isPositive = d.value >= 0;
var isPositive = $$.getRangedData(d, null, "bar") >= 0;
if (isRotated) {
var w = (isPositive ?
points[1][1] - points[0][1] :
Expand Down Expand Up @@ -17266,7 +17274,7 @@ var shapeArc = {
if ($$.shouldShowArcLabel()) {
selection
.style("fill", $$.updateTextColor.bind($$))
.attr("filter", $$.updateTextBacgroundColor.bind($$))
.attr("filter", $$.updateTextBackgroundColor.bind($$))
.each(function (d) {
var _a;
var node = select(this);
Expand Down Expand Up @@ -23023,7 +23031,7 @@ var zoomModule = function () {
var defaults = {};
/**
* @namespace bb
* @version 3.10.2-nightly-20231101004623
* @version 3.10.2-nightly-20231103004627
*/
var bb = {
/**
Expand All @@ -23033,7 +23041,7 @@ var bb = {
* bb.version; // "1.0.0"
* @memberof bb
*/
version: "3.10.2-nightly-20231101004623",
version: "3.10.2-nightly-20231103004627",
/**
* Generate chart
* - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
Expand Down
4 changes: 2 additions & 2 deletions dist-esm/plugin/billboardjs-plugin-bubblecompare.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* billboard.js, JavaScript chart library
* https://naver.github.io/billboard.js/
*
* @version 3.10.2-nightly-20231101004623
* @version 3.10.2-nightly-20231103004627
* @requires billboard.js
* @summary billboard.js plugin
*/
Expand Down Expand Up @@ -104,7 +104,7 @@ var Plugin = /** @class */ (function () {
delete _this[key];
});
};
Plugin.version = "3.10.2-nightly-20231101004623";
Plugin.version = "3.10.2-nightly-20231103004627";
return Plugin;
}());
var Plugin$1 = Plugin;
Expand Down
4 changes: 2 additions & 2 deletions dist-esm/plugin/billboardjs-plugin-sparkline.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* billboard.js, JavaScript chart library
* https://naver.github.io/billboard.js/
*
* @version 3.10.2-nightly-20231101004623
* @version 3.10.2-nightly-20231103004627
* @requires billboard.js
* @summary billboard.js plugin
*/
Expand Down Expand Up @@ -279,7 +279,7 @@ var Plugin = /** @class */ (function () {
delete _this[key];
});
};
Plugin.version = "3.10.2-nightly-20231101004623";
Plugin.version = "3.10.2-nightly-20231103004627";
return Plugin;
}());
var Plugin$1 = Plugin;
Expand Down
4 changes: 2 additions & 2 deletions dist-esm/plugin/billboardjs-plugin-stanford.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* billboard.js, JavaScript chart library
* https://naver.github.io/billboard.js/
*
* @version 3.10.2-nightly-20231101004623
* @version 3.10.2-nightly-20231103004627
* @requires billboard.js
* @summary billboard.js plugin
*/
Expand Down Expand Up @@ -493,7 +493,7 @@ var Plugin = /** @class */ (function () {
delete _this[key];
});
};
Plugin.version = "3.10.2-nightly-20231101004623";
Plugin.version = "3.10.2-nightly-20231103004627";
return Plugin;
}());
var Plugin$1 = Plugin;
Expand Down
4 changes: 2 additions & 2 deletions dist-esm/plugin/billboardjs-plugin-tableview.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* billboard.js, JavaScript chart library
* https://naver.github.io/billboard.js/
*
* @version 3.10.2-nightly-20231101004623
* @version 3.10.2-nightly-20231103004627
* @requires billboard.js
* @summary billboard.js plugin
*/
Expand Down Expand Up @@ -121,7 +121,7 @@ var Plugin = /** @class */ (function () {
delete _this[key];
});
};
Plugin.version = "3.10.2-nightly-20231101004623";
Plugin.version = "3.10.2-nightly-20231103004627";
return Plugin;
}());
var Plugin$1 = Plugin;
Expand Down
4 changes: 2 additions & 2 deletions dist-esm/plugin/billboardjs-plugin-textoverlap.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* billboard.js, JavaScript chart library
* https://naver.github.io/billboard.js/
*
* @version 3.10.2-nightly-20231101004623
* @version 3.10.2-nightly-20231103004627
* @requires billboard.js
* @summary billboard.js plugin
*/
Expand Down Expand Up @@ -269,7 +269,7 @@ var Plugin = /** @class */ (function () {
delete _this[key];
});
};
Plugin.version = "3.10.2-nightly-20231101004623";
Plugin.version = "3.10.2-nightly-20231103004627";
return Plugin;
}());
var Plugin$1 = Plugin;
Expand Down
2 changes: 1 addition & 1 deletion dist/billboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* billboard.js, JavaScript chart library
* https://naver.github.io/billboard.js/
*
* @version 3.10.2-nightly-20231101004623
* @version 3.10.2-nightly-20231103004627
*/
/*-- Chart --*/
.bb svg {
Expand Down
Loading

0 comments on commit 60ad50a

Please sign in to comment.