Skip to content

Commit

Permalink
skip: 3.13.0-nightly-20241015004702 build [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
netil committed Oct 15, 2024
1 parent 7712ae0 commit c718987
Show file tree
Hide file tree
Showing 42 changed files with 161 additions and 101 deletions.
34 changes: 23 additions & 11 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-20241012004650
* @version 3.13.0-nightly-20241015004702
*/
import { pointer, select, namespaces, selectAll } from 'd3-selection';
import { timeParse, utcParse, timeFormat, utcFormat } from 'd3-time-format';
Expand Down Expand Up @@ -476,9 +476,12 @@ var legend$2 = {
* }
*
* // when set below callback, will disable corresponding default interactions
* onclick: function(id) { ... },
* onover: function(id) { ... },
* onout: function(id) { ... },
* onclick: function(id, visible) {
* // toggle based on the data visibility
* this[visible ? "hide" : "show"](id);
* },
* onover: function(id, visible) { ... },
* onout: function(id, visible) { ... },
*
* // set tile's size
* tile: {
Expand Down Expand Up @@ -6497,7 +6500,7 @@ var legend$1 = {
item
.on(interaction.dblclick ? "dblclick" : "click", interaction || isFunction(config.legend_item_onclick) ?
function (event, id) {
if (!callFn(config.legend_item_onclick, api, id)) {
if (!callFn(config.legend_item_onclick, api, id, !state.hiddenTargetIds.includes(id))) {
var altKey = event.altKey, target = event.target, type = event.type;
if (type === "dblclick" || altKey) {
// when focused legend is clicked(with altKey or double clicked), reset all hiding.
Expand All @@ -6522,7 +6525,7 @@ var legend$1 = {
!isTouch && item
.on("mouseout", interaction || isFunction(config.legend_item_onout) ?
function (event, id) {
if (!callFn(config.legend_item_onout, api, id)) {
if (!callFn(config.legend_item_onout, api, id, !state.hiddenTargetIds.includes(id))) {
select(this).classed($FOCUS.legendItemFocused, false);
if (hasGauge) {
$$.undoMarkOverlapped($$, ".".concat($GAUGE.gaugeValue));
Expand All @@ -6533,7 +6536,7 @@ var legend$1 = {
null)
.on("mouseover", interaction || isFunction(config.legend_item_onover) ?
function (event, id) {
if (!callFn(config.legend_item_onover, api, id)) {
if (!callFn(config.legend_item_onover, api, id, !state.hiddenTargetIds.includes(id))) {
select(this).classed($FOCUS.legendItemFocused, true);
if (hasGauge) {
$$.markOverlapped(id, $$, ".".concat($GAUGE.gaugeValue));
Expand Down Expand Up @@ -12763,7 +12766,10 @@ var AxisRendererHelper = /** @class */ (function () {
function (value) { return "translate(".concat(value + config.tickOffset, ",0)"); } :
function (value) { return "translate(0,".concat(value, ")"); };
return function (selection, scale) {
selection.attr("transform", function (d) { return (isValue(d) ? fn(Math.ceil(scale(d))) : null); });
selection.attr("transform", function (d) {
var x = scale(d);
return isValue(d) ? fn(Math.ceil(x)) : null;
});
};
};
AxisRendererHelper.prototype.scaleExtent = function (domain) {
Expand Down Expand Up @@ -23647,7 +23653,8 @@ var zoom = {
var $$ = this;
$$.scale.zoom = null;
$$.generateZoom();
$$.initZoomBehaviour();
$$.config.zoom_type === "drag" &&
$$.initZoomBehaviour();
},
/**
* Bind zoom event
Expand Down Expand Up @@ -23690,6 +23697,7 @@ var zoom = {
zoom.updateScaleExtent = function () {
var ratio = diffDomain($$.scale.x.orgDomain()) / diffDomain($$.getZoomDomain());
var extent = this.orgScaleExtent();
// https://d3js.org/d3-zoom#zoom_scaleExtent
this.scaleExtent([extent[0] * ratio, extent[1] * ratio]);
return this;
};
Expand All @@ -23707,6 +23715,10 @@ var zoom = {
(_a = org.xScale) === null || _a === void 0 ? void 0 : _a.range(scale.x.range());
// rescale from the original scale
var newScale = transform[isRotated ? "rescaleY" : "rescaleX"](org.xScale || scale.x);
// prevent drag zoom to be out of range
if (newScale.domain().some(function (v) { return /(Invalid Date|NaN)/.test(v.toString()); })) {
return;
}
var domain = $$.trimXDomain(newScale.domain());
var rescale = config.zoom_rescale;
newScale.domain(domain, org.xDomain);
Expand Down Expand Up @@ -24564,7 +24576,7 @@ var zoomModule = function () {
var defaults = {};
/**
* @namespace bb
* @version 3.13.0-nightly-20241012004650
* @version 3.13.0-nightly-20241015004702
*/
var bb = {
/**
Expand All @@ -24574,7 +24586,7 @@ var bb = {
* bb.version; // "1.0.0"
* @memberof bb
*/
version: "3.13.0-nightly-20241012004650",
version: "3.13.0-nightly-20241015004702",
/**
* 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-20241012004650
* @version 3.13.0-nightly-20241015004702
* @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-20241012004650";
Plugin.version = "3.13.0-nightly-20241015004702";
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-20241012004650
* @version 3.13.0-nightly-20241015004702
* @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-20241012004650";
Plugin.version = "3.13.0-nightly-20241015004702";
return 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.13.0-nightly-20241012004650
* @version 3.13.0-nightly-20241015004702
* @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-20241012004650";
Plugin.version = "3.13.0-nightly-20241015004702";
return 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.13.0-nightly-20241012004650
* @version 3.13.0-nightly-20241015004702
* @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-20241012004650";
Plugin.version = "3.13.0-nightly-20241015004702";
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-20241012004650
* @version 3.13.0-nightly-20241015004702
* @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-20241012004650";
Plugin.version = "3.13.0-nightly-20241015004702";
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-20241012004650
* @version 3.13.0-nightly-20241015004702
*/
/*-- Chart --*/
.bb svg {
Expand Down
44 changes: 34 additions & 10 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-20241012004650
* @version 3.13.0-nightly-20241015004702
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
Expand Down Expand Up @@ -615,9 +615,12 @@ const $ZOOM = {
* }
*
* // when set below callback, will disable corresponding default interactions
* onclick: function(id) { ... },
* onover: function(id) { ... },
* onout: function(id) { ... },
* onclick: function(id, visible) {
* // toggle based on the data visibility
* this[visible ? "hide" : "show"](id);
* },
* onover: function(id, visible) { ... },
* onout: function(id, visible) { ... },
*
* // set tile's size
* tile: {
Expand Down Expand Up @@ -5855,7 +5858,12 @@ function getFormattedText(id, formatted = true) {
item.on(
interaction.dblclick ? "dblclick" : "click",
interaction || isFunction(config.legend_item_onclick) ? function(event, id) {
if (!callFn(config.legend_item_onclick, api, id)) {
if (!callFn(
config.legend_item_onclick,
api,
id,
!state.hiddenTargetIds.includes(id)
)) {
const { altKey, target, type } = event;
if (type === "dblclick" || altKey) {
if (state.hiddenTargetIds.length && target.parentNode.getAttribute("class").indexOf(
Expand All @@ -5875,15 +5883,25 @@ function getFormattedText(id, formatted = true) {
} : null
);
!isTouch && item.on("mouseout", interaction || isFunction(config.legend_item_onout) ? function(event, id) {
if (!callFn(config.legend_item_onout, api, id)) {
if (!callFn(
config.legend_item_onout,
api,
id,
!state.hiddenTargetIds.includes(id)
)) {
(0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this).classed($FOCUS.legendItemFocused, false);
if (hasGauge) {
$$.undoMarkOverlapped($$, `.${$GAUGE.gaugeValue}`);
}
$$.api.revert();
}
} : null).on("mouseover", interaction || isFunction(config.legend_item_onover) ? function(event, id) {
if (!callFn(config.legend_item_onover, api, id)) {
if (!callFn(
config.legend_item_onover,
api,
id,
!state.hiddenTargetIds.includes(id)
)) {
(0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(this).classed($FOCUS.legendItemFocused, true);
if (hasGauge) {
$$.markOverlapped(id, $$, `.${$GAUGE.gaugeValue}`);
Expand Down Expand Up @@ -11108,7 +11126,7 @@ extend(zoom, {
const $$ = this;
$$.scale.zoom = null;
$$.generateZoom();
$$.initZoomBehaviour();
$$.config.zoom_type === "drag" && $$.initZoomBehaviour();
},
/**
* Bind zoom event
Expand Down Expand Up @@ -11149,6 +11167,9 @@ extend(zoom, {
const isRotated = config.axis_rotated;
(_a = org.xScale) == null ? void 0 : _a.range(scale.x.range());
const newScale = transform[isRotated ? "rescaleY" : "rescaleX"](org.xScale || scale.x);
if (newScale.domain().some((v) => /(Invalid Date|NaN)/.test(v.toString()))) {
return;
}
const domain = $$.trimXDomain(newScale.domain());
const rescale = config.zoom_rescale;
newScale.domain(domain, org.xDomain);
Expand Down Expand Up @@ -12761,7 +12782,10 @@ class AxisRendererHelper {
const { config } = this;
const fn = id === "x" ? (value) => `translate(${value + config.tickOffset},0)` : (value) => `translate(0,${value})`;
return (selection, scale) => {
selection.attr("transform", (d) => isValue(d) ? fn(Math.ceil(scale(d))) : null);
selection.attr("transform", (d) => {
const x = scale(d);
return isValue(d) ? fn(Math.ceil(x)) : null;
});
};
}
scaleExtent(domain) {
Expand Down Expand Up @@ -21777,7 +21801,7 @@ const bb = {
* bb.version; // "1.0.0"
* @memberof bb
*/
version: "3.13.0-nightly-20241012004650",
version: "3.13.0-nightly-20241015004702",
/**
* 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 c718987

Please sign in to comment.