Skip to content

Commit

Permalink
skip: 3.13.0-nightly-20241025004704 build [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
netil committed Oct 25, 2024
1 parent f6991a1 commit e3551d9
Show file tree
Hide file tree
Showing 42 changed files with 122 additions and 130 deletions.
30 changes: 14 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.13.0-nightly-20241024004654
* @version 3.13.0-nightly-20241025004704
*/
import { pointer, select, namespaces, selectAll } from 'd3-selection';
import { timeParse, utcParse, timeFormat, utcFormat } from 'd3-time-format';
Expand Down Expand Up @@ -7193,13 +7193,11 @@ var scale = {
/**
* Get scaled value
* @param {object} d Data object
* @param {boolean} raw Get the raw value
* @returns {number}
* @private
*/
var scale = function (d, raw) {
var v = scaleValue(d) + offset();
return raw ? v : Math.ceil(v);
var scale = function (d) {
return scaleValue(d) + offset();
};
// copy original scale methods
for (var key in scaleValue) {
Expand Down Expand Up @@ -7307,13 +7305,13 @@ var scale = {
else if (axis.isCategorized() && isString(value)) {
value = config.axis_x_categories.indexOf(value);
}
return Math.ceil(fn(value));
return fn(value);
},
yv: function (d) {
var $$ = this;
var _a = $$.scale, y = _a.y, y2 = _a.y2;
var yScale = d.axis && d.axis === "y2" ? y2 : y;
return Math.ceil(yScale($$.getBaseValue(d)));
return yScale($$.getBaseValue(d));
},
subxx: function (d) {
return d ? this.scale.subX(d.x) : null;
Expand Down Expand Up @@ -12768,7 +12766,7 @@ var AxisRendererHelper = /** @class */ (function () {
return function (selection, scale) {
selection.attr("transform", function (d) {
var x = scale(d);
return isValue(d) ? fn(Math.ceil(x)) : null;
return isValue(d) ? fn(x) : null;
});
};
};
Expand Down Expand Up @@ -12922,7 +12920,7 @@ var AxisRenderer = /** @class */ (function () {
var scale1 = helper.copyScale();
$g = g;
this.__chart__ = scale1;
config.tickOffset = params.isCategory ? Math.ceil((scale1(1) - scale1(0)) / 2) : 0;
config.tickOffset = params.isCategory ? (scale1(1) - scale1(0)) / 2 : 0;
// update selection - data join
var path = g.selectAll(".domain").data([0]);
// enter + update selection
Expand Down Expand Up @@ -13171,9 +13169,9 @@ var AxisRenderer = /** @class */ (function () {
var tickWidth = params.tickWidth;
if (!tickWidth || tickWidth <= 0) {
tickWidth = isLeftRight ? 95 : (params.isCategory ?
(Math.ceil(params.isInverted ?
(params.isInverted ?
scale(ticks[0]) - scale(ticks[1]) :
scale(ticks[1]) - scale(ticks[0])) - 12) :
scale(ticks[1]) - scale(ticks[0])) - 12 :
110);
}
// split given text by tick width size
Expand Down Expand Up @@ -13907,7 +13905,7 @@ var Axis = /** @class */ (function () {
left * -1,
$$.getXDomainMax($$.data.targets) + 1 + right
]);
tickOffset = Math.ceil((scale(1) - scale(0)) / 2);
tickOffset = (scale(1) - scale(0)) / 2;
}
return maxOverflow + tickOffset;
};
Expand Down Expand Up @@ -15085,7 +15083,7 @@ function smoothLines(el, type) {
el.each(function () {
var g = select(this);
["x1", "x2", "y1", "y2"]
.forEach(function (v) { return g.attr(v, Math.ceil(+g.attr(v))); });
.forEach(function (v) { return g.attr(v, +g.attr(v)); });
});
}
}
Expand Down Expand Up @@ -15158,7 +15156,7 @@ var grid = {
var $$ = this;
var axis = $$.axis, config = $$.config, scale = $$.scale, state = $$.state, _a = $$.$el, grid = _a.grid, main = _a.main;
var isRotated = config.axis_rotated;
var pos = function (d) { return Math.ceil(scale.y(d)); };
var pos = function (d) { return scale.y(d); };
var gridValues = axis.y.getGeneratedTicks(config.grid_y_ticks) ||
$$.scale.y.ticks(config.grid_y_ticks);
grid.y = main.select(".".concat($GRID.ygrids))
Expand Down Expand Up @@ -24609,7 +24607,7 @@ var zoomModule = function () {
var defaults = {};
/**
* @namespace bb
* @version 3.13.0-nightly-20241024004654
* @version 3.13.0-nightly-20241025004704
*/
var bb = {
/**
Expand All @@ -24619,7 +24617,7 @@ var bb = {
* bb.version; // "1.0.0"
* @memberof bb
*/
version: "3.13.0-nightly-20241024004654",
version: "3.13.0-nightly-20241025004704",
/**
* 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.13.0-nightly-20241024004654
* @version 3.13.0-nightly-20241025004704
* @requires billboard.js
* @summary billboard.js plugin
*/
Expand Down Expand Up @@ -100,7 +100,7 @@ var Plugin = /** @class */ (function () {
delete _this[key];
});
};
Plugin.version = "3.13.0-nightly-20241024004654";
Plugin.version = "3.13.0-nightly-20241025004704";
return 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.13.0-nightly-20241024004654
* @version 3.13.0-nightly-20241025004704
* @requires billboard.js
* @summary billboard.js plugin
*/
Expand Down Expand Up @@ -443,7 +443,7 @@ var Plugin = /** @class */ (function () {
delete _this[key];
});
};
Plugin.version = "3.13.0-nightly-20241024004654";
Plugin.version = "3.13.0-nightly-20241025004704";
return Plugin;
}());

Expand Down
8 changes: 4 additions & 4 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.13.0-nightly-20241024004654
* @version 3.13.0-nightly-20241025004704
* @requires billboard.js
* @summary billboard.js plugin
*/
Expand Down Expand Up @@ -501,7 +501,7 @@ var Plugin = /** @class */ (function () {
delete _this[key];
});
};
Plugin.version = "3.13.0-nightly-20241024004654";
Plugin.version = "3.13.0-nightly-20241025004704";
return Plugin;
}());

Expand Down Expand Up @@ -833,13 +833,13 @@ var Elements = /** @class */ (function () {
else if (axis.isCategorized() && isString(value)) {
value = config.axis_x_categories.indexOf(d.value);
}
return Math.ceil($$.scale.x(value));
return $$.scale.x(value);
};
Elements.prototype.yvCustom = function (d, xyValue) {
var $$ = this;
var yScale = d.axis && d.axis === "y2" ? $$.scale.y2 : $$.scale.y;
var value = xyValue ? d[xyValue] : $$.getBaseValue(d);
return Math.ceil(yScale(value));
return yScale(value);
};
return Elements;
}());
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.13.0-nightly-20241024004654
* @version 3.13.0-nightly-20241025004704
* @requires billboard.js
* @summary billboard.js plugin
*/
Expand Down Expand Up @@ -290,7 +290,7 @@ var Plugin = /** @class */ (function () {
delete _this[key];
});
};
Plugin.version = "3.13.0-nightly-20241024004654";
Plugin.version = "3.13.0-nightly-20241025004704";
return 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.13.0-nightly-20241024004654
* @version 3.13.0-nightly-20241025004704
* @requires billboard.js
* @summary billboard.js plugin
*/
Expand Down Expand Up @@ -267,7 +267,7 @@ var Plugin = /** @class */ (function () {
delete _this[key];
});
};
Plugin.version = "3.13.0-nightly-20241024004654";
Plugin.version = "3.13.0-nightly-20241025004704";
return 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.13.0-nightly-20241024004654
* @version 3.13.0-nightly-20241025004704
*/
/*-- Chart --*/
.bb svg {
Expand Down
27 changes: 12 additions & 15 deletions dist/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.13.0-nightly-20241024004654
* @version 3.13.0-nightly-20241025004704
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
Expand Down Expand Up @@ -6427,9 +6427,8 @@ function getScale(type = "linear", min, max) {
const $$ = this;
const offset = offsetValue || (() => $$.axis.x.tickOffset());
const isInverted = $$.config.axis_x_inverted;
const scale = function(d, raw) {
const v = scaleValue(d) + offset();
return raw ? v : Math.ceil(v);
const scale = function(d) {
return scaleValue(d) + offset();
};
for (const key in scaleValue) {
scale[key] = scaleValue[key];
Expand Down Expand Up @@ -6552,13 +6551,13 @@ function getScale(type = "linear", min, max) {
} else if (axis.isCategorized() && isString(value)) {
value = config.axis_x_categories.indexOf(value);
}
return Math.ceil(fn(value));
return fn(value);
},
yv(d) {
const $$ = this;
const { scale: { y, y2 } } = $$;
const yScale = d.axis && d.axis === "y2" ? y2 : y;
return Math.ceil(yScale($$.getBaseValue(d)));
return yScale($$.getBaseValue(d));
},
subxx(d) {
return d ? this.scale.subX(d.x) : null;
Expand Down Expand Up @@ -12784,7 +12783,7 @@ class AxisRendererHelper {
return (selection, scale) => {
selection.attr("transform", (d) => {
const x = scale(d);
return isValue(d) ? fn(Math.ceil(x)) : null;
return isValue(d) ? fn(x) : null;
});
};
}
Expand Down Expand Up @@ -12922,7 +12921,7 @@ class AxisRenderer {
let scale1 = helper.copyScale();
$g = g2;
this.__chart__ = scale1;
config.tickOffset = params.isCategory ? Math.ceil((scale1(1) - scale1(0)) / 2) : 0;
config.tickOffset = params.isCategory ? (scale1(1) - scale1(0)) / 2 : 0;
const path = g2.selectAll(".domain").data([0]);
path.enter().append("path").attr("class", "domain").merge(path).attr("d", () => {
const outerTickSized = config.outerTickSize * sign;
Expand Down Expand Up @@ -13097,9 +13096,7 @@ class AxisRenderer {
}
let tickWidth = params.tickWidth;
if (!tickWidth || tickWidth <= 0) {
tickWidth = isLeftRight ? 95 : params.isCategory ? Math.ceil(
params.isInverted ? scale(ticks[0]) - scale(ticks[1]) : scale(ticks[1]) - scale(ticks[0])
) - 12 : 110;
tickWidth = isLeftRight ? 95 : params.isCategory ? (params.isInverted ? scale(ticks[0]) - scale(ticks[1]) : scale(ticks[1]) - scale(ticks[0])) - 12 : 110;
}
function split(splitted2, text) {
let subtext;
Expand Down Expand Up @@ -13775,7 +13772,7 @@ class Axis_Axis {
left * -1,
$$.getXDomainMax($$.data.targets) + 1 + right
]);
tickOffset = Math.ceil((scale(1) - scale(0)) / 2);
tickOffset = (scale(1) - scale(0)) / 2;
}
return maxOverflow + tickOffset;
}
Expand Down Expand Up @@ -14782,7 +14779,7 @@ function smoothLines(el, type) {
if (type === "grid") {
el.each(function() {
const g = (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this);
["x1", "x2", "y1", "y2"].forEach((v) => g.attr(v, Math.ceil(+g.attr(v))));
["x1", "x2", "y1", "y2"].forEach((v) => g.attr(v, +g.attr(v)));
});
}
}
Expand Down Expand Up @@ -14843,7 +14840,7 @@ function smoothLines(el, type) {
const $$ = this;
const { axis, config, scale, state, $el: { grid, main } } = $$;
const isRotated = config.axis_rotated;
const pos = (d) => Math.ceil(scale.y(d));
const pos = (d) => scale.y(d);
const gridValues = axis.y.getGeneratedTicks(config.grid_y_ticks) || $$.scale.y.ticks(config.grid_y_ticks);
grid.y = main.select(`.${$GRID.ygrids}`).selectAll(`.${$GRID.ygrid}`).data(gridValues);
grid.y.exit().remove();
Expand Down Expand Up @@ -21827,7 +21824,7 @@ const bb = {
* bb.version; // "1.0.0"
* @memberof bb
*/
version: "3.13.0-nightly-20241024004654",
version: "3.13.0-nightly-20241025004704",
/**
* Generate chart
* - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
Expand Down
2 changes: 1 addition & 1 deletion dist/billboard.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e3551d9

Please sign in to comment.