Skip to content

Commit

Permalink
skip: 3.13.0-nightly-20241012004650 build [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
netil committed Oct 12, 2024
1 parent 46de560 commit fccceb1
Show file tree
Hide file tree
Showing 42 changed files with 120 additions and 110 deletions.
18 changes: 9 additions & 9 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-20241009004659
* @version 3.13.0-nightly-20241012004650
*/
import { pointer, select, namespaces, selectAll } from 'd3-selection';
import { timeParse, utcParse, timeFormat, utcFormat } from 'd3-time-format';
Expand Down Expand Up @@ -2884,6 +2884,8 @@ function isTabVisible() {
*/
function convertInputType(mouse, touch) {
var DocumentTouch = win.DocumentTouch, matchMedia = win.matchMedia, navigator = win.navigator;
// https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pointer#coarse
var hasPointerCoarse = matchMedia === null || matchMedia === void 0 ? void 0 : matchMedia("(pointer:coarse)").matches;
var hasTouch = false;
if (touch) {
// Some Edge desktop return true: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/20417074/
Expand All @@ -2897,7 +2899,7 @@ function convertInputType(mouse, touch) {
}
else {
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent#avoiding_user_agent_detection
if (matchMedia === null || matchMedia === void 0 ? void 0 : matchMedia("(pointer:coarse)").matches) {
if (hasPointerCoarse) {
hasTouch = true;
}
else {
Expand All @@ -2908,11 +2910,9 @@ function convertInputType(mouse, touch) {
}
}
}
// Check if agent has mouse using any-hover, touch devices (e.g iPad) with external mouse will return true as long as mouse is connected
// https://css-tricks.com/interaction-media-features-and-their-potential-for-incorrect-assumptions/#aa-testing-the-capabilities-of-all-inputs
// Demo: https://patrickhlauke.github.io/touch/pointer-hover-any-pointer-any-hover/
var hasMouse = mouse &&
((matchMedia === null || matchMedia === void 0 ? void 0 : matchMedia("any-hover:hover").matches) || (matchMedia === null || matchMedia === void 0 ? void 0 : matchMedia("any-pointer:fine").matches));
// For non-touch device, media feature condition is: '(pointer:coarse) = false' and '(pointer:fine) = true'
// https://github.com/naver/billboard.js/issues/3854#issuecomment-2404183158
var hasMouse = mouse && !hasPointerCoarse && (matchMedia === null || matchMedia === void 0 ? void 0 : matchMedia("(pointer:fine)").matches);
// fallback to 'mouse' if no input type is detected.
return (hasMouse && "mouse") || (hasTouch && "touch") || "mouse";
}
Expand Down Expand Up @@ -24564,7 +24564,7 @@ var zoomModule = function () {
var defaults = {};
/**
* @namespace bb
* @version 3.13.0-nightly-20241009004659
* @version 3.13.0-nightly-20241012004650
*/
var bb = {
/**
Expand All @@ -24574,7 +24574,7 @@ var bb = {
* bb.version; // "1.0.0"
* @memberof bb
*/
version: "3.13.0-nightly-20241009004659",
version: "3.13.0-nightly-20241012004650",
/**
* 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-20241009004659
* @version 3.13.0-nightly-20241012004650
* @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-20241009004659";
Plugin.version = "3.13.0-nightly-20241012004650";
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-20241009004659
* @version 3.13.0-nightly-20241012004650
* @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-20241009004659";
Plugin.version = "3.13.0-nightly-20241012004650";
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-20241009004659
* @version 3.13.0-nightly-20241012004650
* @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-20241009004659";
Plugin.version = "3.13.0-nightly-20241012004650";
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-20241009004659
* @version 3.13.0-nightly-20241012004650
* @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-20241009004659";
Plugin.version = "3.13.0-nightly-20241012004650";
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-20241009004659
* @version 3.13.0-nightly-20241012004650
* @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-20241009004659";
Plugin.version = "3.13.0-nightly-20241012004650";
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-20241009004659
* @version 3.13.0-nightly-20241012004650
*/
/*-- Chart --*/
.bb svg {
Expand Down
9 changes: 5 additions & 4 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-20241009004659
* @version 3.13.0-nightly-20241012004650
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
Expand Down Expand Up @@ -2689,22 +2689,23 @@ function isTabVisible() {
}
function convertInputType(mouse, touch) {
const { DocumentTouch, matchMedia, navigator } = win;
const hasPointerCoarse = matchMedia == null ? void 0 : matchMedia("(pointer:coarse)").matches;
let hasTouch = false;
if (touch) {
if (navigator && "maxTouchPoints" in navigator) {
hasTouch = navigator.maxTouchPoints > 0;
} else if ("ontouchmove" in win || DocumentTouch && browser_doc instanceof DocumentTouch) {
hasTouch = true;
} else {
if (matchMedia == null ? void 0 : matchMedia("(pointer:coarse)").matches) {
if (hasPointerCoarse) {
hasTouch = true;
} else {
const UA = navigator.userAgent;
hasTouch = /\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(UA) || /\b(Android|Windows Phone|iPad|iPod)\b/i.test(UA);
}
}
}
const hasMouse = mouse && ((matchMedia == null ? void 0 : matchMedia("any-hover:hover").matches) || (matchMedia == null ? void 0 : matchMedia("any-pointer:fine").matches));
const hasMouse = mouse && !hasPointerCoarse && (matchMedia == null ? void 0 : matchMedia("(pointer:fine)").matches);
return hasMouse && "mouse" || hasTouch && "touch" || "mouse";
}
function runUntil(fn, conditionFn) {
Expand Down Expand Up @@ -21776,7 +21777,7 @@ const bb = {
* bb.version; // "1.0.0"
* @memberof bb
*/
version: "3.13.0-nightly-20241009004659",
version: "3.13.0-nightly-20241012004650",
/**
* 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 fccceb1

Please sign in to comment.