Skip to content

Commit

Permalink
skip: 3.10.3-nightly-20240123004619 build [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
netil committed Jan 23, 2024
1 parent b1357e7 commit ed49cf4
Show file tree
Hide file tree
Showing 42 changed files with 327 additions and 615 deletions.
20 changes: 15 additions & 5 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.3-nightly-20240120004615
* @version 3.10.3-nightly-20240123004619
*/
import { timeParse, utcParse, timeFormat, utcFormat } from 'd3-time-format';
import { pointer, select, namespaces, selectAll } from 'd3-selection';
Expand Down Expand Up @@ -17330,7 +17330,7 @@ var shapeArc = {
if (isNaN(d.endAngle)) {
d.endAngle = d.startAngle;
}
if (d.data && $$.hasMultiArcGauge()) {
if (d.data && (config.gauge_enforceMinMax || $$.hasMultiArcGauge())) {
var gMin = config.gauge_min;
var gMax = config.gauge_max;
var gTic = radius / (gMax - gMin);
Expand Down Expand Up @@ -18645,7 +18645,7 @@ var shapeGauge = {
var max = hasMultiGauge ?
$$.getMinMaxData().max[0].value : $$.getTotalDataSum(state.rendered);
// if gauge_max less than max, make max to max value
if (max + config.gauge_min * (config.gauge_min > 0 ? -1 : 1) > config.gauge_max) {
if (!config.gauge_enforceMinMax && (max + config.gauge_min * (config.gauge_min > 0 ? -1 : 1) > config.gauge_max)) {
config.gauge_max = max - config.gauge_min;
}
},
Expand Down Expand Up @@ -21037,6 +21037,9 @@ var optGauge = {
* @property {boolean} [gauge.expand=true] Enable or disable expanding gauge.
* @property {number} [gauge.expand.rate=0.98] Set expand rate.
* @property {number} [gauge.expand.duration=50] Set the expand transition time in milliseconds.
* @property {boolean} [gauge.enforceMinMax=false] Enforce to given min/max value.
* - When `gauge.min=50` and given value is `30`, gauge will render as empty value.
* - When `gauge.max=100` and given value is `120`, gauge will render till 100, not surpassing max value.
* @property {number} [gauge.min=0] Set min value of the gauge.
* @property {number} [gauge.max=100] Set max value of the gauge.
* @property {number} [gauge.startingAngle=-1 * Math.PI / 2] Set starting angle where data draws.
Expand Down Expand Up @@ -21067,6 +21070,7 @@ var optGauge = {
* - single
* - multi
* @property {number} [gauge.arcs.minWidth=5] Set minimal width of gauge arcs until the innerRadius disappears.
* @see [Demo: enforceMinMax, min/max](https://naver.github.io/billboard.js/demo/#GaugeChartOptions.GaugeMinMax)
* @see [Demo: archLength](https://naver.github.io/billboard.js/demo/#GaugeChartOptions.GaugeArcLength)
* @see [Demo: startingAngle](https://naver.github.io/billboard.js/demo/#GaugeChartOptions.GaugeStartingAngle)
* @example
Expand Down Expand Up @@ -21102,6 +21106,11 @@ var optGauge = {
* rate: 1
* },
*
* // enforce min/max value.
* // when given value < min, will render as empty value.
* // when value > max, will render to given max value not surpassing it.
* enforceMinMax: true,
*
* min: -100,
* max: 200,
* type: "single" // or 'multi'
Expand All @@ -21125,6 +21134,7 @@ var optGauge = {
gauge_label_format: undefined,
gauge_label_extents: undefined,
gauge_label_threshold: 0,
gauge_enforceMinMax: false,
gauge_min: 0,
gauge_max: 100,
gauge_type: "single",
Expand Down Expand Up @@ -23222,7 +23232,7 @@ var zoomModule = function () {
var defaults = {};
/**
* @namespace bb
* @version 3.10.3-nightly-20240120004615
* @version 3.10.3-nightly-20240123004619
*/
var bb = {
/**
Expand All @@ -23232,7 +23242,7 @@ var bb = {
* bb.version; // "1.0.0"
* @memberof bb
*/
version: "3.10.3-nightly-20240120004615",
version: "3.10.3-nightly-20240123004619",
/**
* 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.3-nightly-20240120004615
* @version 3.10.3-nightly-20240123004619
* @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.3-nightly-20240120004615";
Plugin.version = "3.10.3-nightly-20240123004619";
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.3-nightly-20240120004615
* @version 3.10.3-nightly-20240123004619
* @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.3-nightly-20240120004615";
Plugin.version = "3.10.3-nightly-20240123004619";
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.3-nightly-20240120004615
* @version 3.10.3-nightly-20240123004619
* @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.3-nightly-20240120004615";
Plugin.version = "3.10.3-nightly-20240123004619";
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.3-nightly-20240120004615
* @version 3.10.3-nightly-20240123004619
* @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.3-nightly-20240120004615";
Plugin.version = "3.10.3-nightly-20240123004619";
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.3-nightly-20240120004615
* @version 3.10.3-nightly-20240123004619
* @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.3-nightly-20240120004615";
Plugin.version = "3.10.3-nightly-20240123004619";
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.3-nightly-20240120004615
* @version 3.10.3-nightly-20240123004619
*/
/*-- Chart --*/
.bb svg {
Expand Down
20 changes: 15 additions & 5 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.10.3-nightly-20240120004615
* @version 3.10.3-nightly-20240123004619
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
Expand Down Expand Up @@ -19264,7 +19264,7 @@ function getAttrTweenFn(fn) {
if (isNaN(d.endAngle)) {
d.endAngle = d.startAngle;
}
if (d.data && $$.hasMultiArcGauge()) {
if (d.data && (config.gauge_enforceMinMax || $$.hasMultiArcGauge())) {
const gMin = config.gauge_min,
gMax = config.gauge_max,
gValue = d.value < gMin ? 0 : d.value < gMax ? d.value - gMin : gMax - gMin;
Expand Down Expand Up @@ -20651,7 +20651,7 @@ function candlestick_objectSpread(e) { for (var r = 1, t; r < arguments.length;
// to prevent excluding total data sum during the init(when data.hide option is used), use $$.rendered state value

// if gauge_max less than max, make max to max value
if (max + config.gauge_min * (config.gauge_min > 0 ? -1 : 1) > config.gauge_max) {
if (!config.gauge_enforceMinMax && max + config.gauge_min * (config.gauge_min > 0 ? -1 : 1) > config.gauge_max) {
config.gauge_max = max - config.gauge_min;
}
},
Expand Down Expand Up @@ -23217,6 +23217,9 @@ function convertDataToTreemapData(data) {
* @property {boolean} [gauge.expand=true] Enable or disable expanding gauge.
* @property {number} [gauge.expand.rate=0.98] Set expand rate.
* @property {number} [gauge.expand.duration=50] Set the expand transition time in milliseconds.
* @property {boolean} [gauge.enforceMinMax=false] Enforce to given min/max value.
* - When `gauge.min=50` and given value is `30`, gauge will render as empty value.
* - When `gauge.max=100` and given value is `120`, gauge will render till 100, not surpassing max value.
* @property {number} [gauge.min=0] Set min value of the gauge.
* @property {number} [gauge.max=100] Set max value of the gauge.
* @property {number} [gauge.startingAngle=-1 * Math.PI / 2] Set starting angle where data draws.
Expand Down Expand Up @@ -23247,6 +23250,7 @@ function convertDataToTreemapData(data) {
* - single
* - multi
* @property {number} [gauge.arcs.minWidth=5] Set minimal width of gauge arcs until the innerRadius disappears.
* @see [Demo: enforceMinMax, min/max](https://naver.github.io/billboard.js/demo/#GaugeChartOptions.GaugeMinMax)
* @see [Demo: archLength](https://naver.github.io/billboard.js/demo/#GaugeChartOptions.GaugeArcLength)
* @see [Demo: startingAngle](https://naver.github.io/billboard.js/demo/#GaugeChartOptions.GaugeStartingAngle)
* @example
Expand Down Expand Up @@ -23282,6 +23286,11 @@ function convertDataToTreemapData(data) {
* rate: 1
* },
*
* // enforce min/max value.
* // when given value < min, will render as empty value.
* // when value > max, will render to given max value not surpassing it.
* enforceMinMax: true,
*
* min: -100,
* max: 200,
* type: "single" // or 'multi'
Expand All @@ -23305,6 +23314,7 @@ function convertDataToTreemapData(data) {
gauge_label_format: undefined,
gauge_label_extents: undefined,
gauge_label_threshold: 0,
gauge_enforceMinMax: !1,
gauge_min: 0,
gauge_max: 100,
gauge_type: "single",
Expand Down Expand Up @@ -25760,7 +25770,7 @@ let _defaults = {};

/**
* @namespace bb
* @version 3.10.3-nightly-20240120004615
* @version 3.10.3-nightly-20240123004619
*/
const bb = {
/**
Expand All @@ -25770,7 +25780,7 @@ const bb = {
* bb.version; // "1.0.0"
* @memberof bb
*/
version: "3.10.3-nightly-20240120004615",
version: "3.10.3-nightly-20240123004619",
/**
* 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.

4 changes: 2 additions & 2 deletions dist/billboard.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit ed49cf4

Please sign in to comment.