billboard.js 4.0.1 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +2 -2
- package/README.md +6 -6
- package/dist/billboard.css +1 -1
- package/dist/billboard.js +71 -26
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +18 -18
- package/dist/billboard.pkgd.js +288 -243
- package/dist/billboard.pkgd.min.js +23 -23
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +21 -6
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.js +21 -6
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +3 -3
- package/dist/plugin/billboardjs-plugin-stanford.js +21 -6
- package/dist/plugin/billboardjs-plugin-stanford.min.js +5 -5
- package/dist/plugin/billboardjs-plugin-tableview.js +21 -6
- package/dist/plugin/billboardjs-plugin-tableview.min.js +3 -3
- package/dist/plugin/billboardjs-plugin-textoverlap.js +21 -6
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +67 -52
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +8 -8
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +23 -8
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +9 -9
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +73 -58
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +9 -9
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +21 -6
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +10 -10
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +32 -17
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +8 -8
- package/dist/theme/dark.css +1 -1
- package/dist/theme/dark.min.css +1 -1
- package/dist/theme/datalab.css +1 -1
- package/dist/theme/datalab.min.css +1 -1
- package/dist/theme/graph.css +1 -1
- package/dist/theme/graph.min.css +1 -1
- package/dist/theme/insight.css +1 -1
- package/dist/theme/insight.min.css +1 -1
- package/dist/theme/modern.css +1 -1
- package/dist/theme/modern.min.css +1 -1
- package/dist-esm/Chart/Chart.js +1 -1
- package/dist-esm/Chart/api/axis.js +1 -1
- package/dist-esm/Chart/api/category.js +1 -1
- package/dist-esm/Chart/api/chart.js +1 -1
- package/dist-esm/Chart/api/color.js +1 -1
- package/dist-esm/Chart/api/data.js +1 -1
- package/dist-esm/Chart/api/export.js +1 -1
- package/dist-esm/Chart/api/flow.js +1 -1
- package/dist-esm/Chart/api/focus.js +1 -1
- package/dist-esm/Chart/api/grid.js +1 -1
- package/dist-esm/Chart/api/group.js +1 -1
- package/dist-esm/Chart/api/legend.js +1 -1
- package/dist-esm/Chart/api/load.js +1 -1
- package/dist-esm/Chart/api/regions.js +1 -1
- package/dist-esm/Chart/api/selection.js +1 -1
- package/dist-esm/Chart/api/show.js +1 -1
- package/dist-esm/Chart/api/stubs.js +1 -1
- package/dist-esm/Chart/api/subchart.js +1 -1
- package/dist-esm/Chart/api/tooltip.js +1 -1
- package/dist-esm/Chart/api/x.js +1 -1
- package/dist-esm/Chart/api/zoom.js +1 -1
- package/dist-esm/ChartInternal/Axis/Axis.js +1 -1
- package/dist-esm/ChartInternal/Axis/AxisRenderer.js +1 -1
- package/dist-esm/ChartInternal/Axis/AxisRendererHelper.js +1 -1
- package/dist-esm/ChartInternal/ChartInternal.js +1 -1
- package/dist-esm/ChartInternal/data/convert.helper.js +1 -1
- package/dist-esm/ChartInternal/data/convert.js +1 -1
- package/dist-esm/ChartInternal/data/data.js +1 -1
- package/dist-esm/ChartInternal/data/load.js +1 -1
- package/dist-esm/ChartInternal/interactions/drag.js +1 -1
- package/dist-esm/ChartInternal/interactions/eventrect.js +39 -7
- package/dist-esm/ChartInternal/interactions/flow.js +1 -1
- package/dist-esm/ChartInternal/interactions/interaction.js +1 -1
- package/dist-esm/ChartInternal/interactions/subchart.js +1 -1
- package/dist-esm/ChartInternal/interactions/zoom.js +1 -1
- package/dist-esm/ChartInternal/internals/category.js +1 -1
- package/dist-esm/ChartInternal/internals/class.js +1 -1
- package/dist-esm/ChartInternal/internals/clip.js +1 -1
- package/dist-esm/ChartInternal/internals/color.js +1 -1
- package/dist-esm/ChartInternal/internals/domain.js +1 -1
- package/dist-esm/ChartInternal/internals/format.js +1 -1
- package/dist-esm/ChartInternal/internals/grid.js +1 -1
- package/dist-esm/ChartInternal/internals/legend.js +1 -1
- package/dist-esm/ChartInternal/internals/redraw.js +1 -1
- package/dist-esm/ChartInternal/internals/region.js +1 -1
- package/dist-esm/ChartInternal/internals/scale.js +1 -1
- package/dist-esm/ChartInternal/internals/selection.js +1 -1
- package/dist-esm/ChartInternal/internals/size.axis.js +1 -1
- package/dist-esm/ChartInternal/internals/size.js +1 -1
- package/dist-esm/ChartInternal/internals/style.js +1 -1
- package/dist-esm/ChartInternal/internals/text.arc.js +1 -1
- package/dist-esm/ChartInternal/internals/text.js +1 -1
- package/dist-esm/ChartInternal/internals/text.util.js +1 -1
- package/dist-esm/ChartInternal/internals/title.js +1 -1
- package/dist-esm/ChartInternal/internals/tooltip.js +1 -1
- package/dist-esm/ChartInternal/internals/transform.js +1 -1
- package/dist-esm/ChartInternal/internals/type.js +1 -1
- package/dist-esm/ChartInternal/shape/arc.js +1 -1
- package/dist-esm/ChartInternal/shape/area.js +1 -1
- package/dist-esm/ChartInternal/shape/bar.js +1 -1
- package/dist-esm/ChartInternal/shape/bubble.js +1 -1
- package/dist-esm/ChartInternal/shape/candlestick.js +1 -1
- package/dist-esm/ChartInternal/shape/core/barRadius.js +1 -1
- package/dist-esm/ChartInternal/shape/core/bubble.js +1 -1
- package/dist-esm/ChartInternal/shape/core/candlestick.js +1 -1
- package/dist-esm/ChartInternal/shape/core/dataRegion.js +1 -1
- package/dist-esm/ChartInternal/shape/core/geometry.js +1 -1
- package/dist-esm/ChartInternal/shape/core/path.js +1 -1
- package/dist-esm/ChartInternal/shape/core/point.js +1 -1
- package/dist-esm/ChartInternal/shape/core/treemap.js +1 -1
- package/dist-esm/ChartInternal/shape/funnel.js +1 -1
- package/dist-esm/ChartInternal/shape/gauge.js +1 -1
- package/dist-esm/ChartInternal/shape/line.js +1 -1
- package/dist-esm/ChartInternal/shape/point.js +1 -1
- package/dist-esm/ChartInternal/shape/polar.js +1 -1
- package/dist-esm/ChartInternal/shape/radar.js +1 -1
- package/dist-esm/ChartInternal/shape/shape.js +1 -1
- package/dist-esm/ChartInternal/shape/treemap.js +1 -1
- package/dist-esm/canvas/CanvasAxisRenderer.js +1 -1
- package/dist-esm/canvas/CanvasEngine.js +1 -1
- package/dist-esm/canvas/CanvasPainter.js +1 -1
- package/dist-esm/canvas/CanvasRenderer.js +4 -4
- package/dist-esm/canvas/CanvasTheme.js +1 -1
- package/dist-esm/canvas/HitDetector.js +1 -1
- package/dist-esm/canvas/axisTicks.js +1 -1
- package/dist-esm/canvas/classes.js +1 -1
- package/dist-esm/canvas/color.js +1 -1
- package/dist-esm/canvas/geometry.js +1 -1
- package/dist-esm/canvas/labels.js +1 -1
- package/dist-esm/canvas/pointPattern.js +1 -1
- package/dist-esm/canvas/util.js +1 -1
- package/dist-esm/config/Options/Options.js +1 -1
- package/dist-esm/config/Options/axis/axis.js +1 -1
- package/dist-esm/config/Options/axis/x.js +1 -1
- package/dist-esm/config/Options/axis/y.js +1 -1
- package/dist-esm/config/Options/axis/y2.js +1 -1
- package/dist-esm/config/Options/common/boost.js +1 -1
- package/dist-esm/config/Options/common/color.js +1 -1
- package/dist-esm/config/Options/common/grid.js +1 -1
- package/dist-esm/config/Options/common/legend.js +1 -1
- package/dist-esm/config/Options/common/main.js +1 -1
- package/dist-esm/config/Options/common/point.js +1 -1
- package/dist-esm/config/Options/common/title.js +1 -1
- package/dist-esm/config/Options/common/tooltip.js +1 -1
- package/dist-esm/config/Options/data/axis.js +1 -1
- package/dist-esm/config/Options/data/data.js +1 -1
- package/dist-esm/config/Options/data/selection.js +1 -1
- package/dist-esm/config/Options/interaction/interaction.js +1 -1
- package/dist-esm/config/Options/interaction/subchart.js +1 -1
- package/dist-esm/config/Options/interaction/zoom.js +1 -1
- package/dist-esm/config/Options/shape/arc.js +1 -1
- package/dist-esm/config/Options/shape/area.js +1 -1
- package/dist-esm/config/Options/shape/bar.js +1 -1
- package/dist-esm/config/Options/shape/bubble.js +1 -1
- package/dist-esm/config/Options/shape/candlestick.js +1 -1
- package/dist-esm/config/Options/shape/donut.js +1 -1
- package/dist-esm/config/Options/shape/funnel.js +1 -1
- package/dist-esm/config/Options/shape/gauge.js +1 -1
- package/dist-esm/config/Options/shape/line.js +1 -1
- package/dist-esm/config/Options/shape/pie.js +1 -1
- package/dist-esm/config/Options/shape/polar.js +1 -1
- package/dist-esm/config/Options/shape/radar.js +1 -1
- package/dist-esm/config/Options/shape/scatter.js +1 -1
- package/dist-esm/config/Options/shape/spline.js +1 -1
- package/dist-esm/config/Options/shape/treemap.js +1 -1
- package/dist-esm/config/Store/Element.js +1 -1
- package/dist-esm/config/Store/State.js +1 -1
- package/dist-esm/config/Store/Store.js +1 -1
- package/dist-esm/config/classes.js +1 -1
- package/dist-esm/config/config.js +1 -1
- package/dist-esm/config/const.js +1 -1
- package/dist-esm/config/resolver/axis.core.js +1 -1
- package/dist-esm/config/resolver/axis.js +1 -1
- package/dist-esm/config/resolver/canvas.js +5 -4
- package/dist-esm/config/resolver/canvasShape.js +1 -1
- package/dist-esm/config/resolver/category.js +1 -1
- package/dist-esm/config/resolver/export.js +1 -1
- package/dist-esm/config/resolver/flow.js +1 -1
- package/dist-esm/config/resolver/grid.js +1 -1
- package/dist-esm/config/resolver/interaction/selection.js +1 -1
- package/dist-esm/config/resolver/interaction/subchart.js +1 -1
- package/dist-esm/config/resolver/interaction/zoom.js +1 -1
- package/dist-esm/config/resolver/regions.js +1 -1
- package/dist-esm/config/resolver/shape/arc.helpers.js +1 -1
- package/dist-esm/config/resolver/shape/area.js +1 -1
- package/dist-esm/config/resolver/shape/axis.helpers.js +1 -1
- package/dist-esm/config/resolver/shape/bar.js +1 -1
- package/dist-esm/config/resolver/shape/bubble.js +1 -1
- package/dist-esm/config/resolver/shape/candlestick.js +1 -1
- package/dist-esm/config/resolver/shape/donut.js +1 -1
- package/dist-esm/config/resolver/shape/funnel.js +1 -1
- package/dist-esm/config/resolver/shape/gauge.js +1 -1
- package/dist-esm/config/resolver/shape/line.js +1 -1
- package/dist-esm/config/resolver/shape/pie.js +1 -1
- package/dist-esm/config/resolver/shape/polar.js +1 -1
- package/dist-esm/config/resolver/shape/radar.js +1 -1
- package/dist-esm/config/resolver/shape/scatter.js +1 -1
- package/dist-esm/config/resolver/shape/treemap.js +1 -1
- package/dist-esm/core.js +3 -3
- package/dist-esm/index.canvas.js +1 -1
- package/dist-esm/index.esm.js +1 -1
- package/dist-esm/module/Cache.js +1 -1
- package/dist-esm/module/browser.js +1 -1
- package/dist-esm/module/dsv.js +1 -1
- package/dist-esm/module/error.js +1 -1
- package/dist-esm/module/generator.js +1 -1
- package/dist-esm/module/sanitize.js +1 -1
- package/dist-esm/module/util/brush.js +1 -1
- package/dist-esm/module/util/dom.js +1 -1
- package/dist-esm/module/util/object.js +1 -1
- package/dist-esm/module/util/type-checks.js +1 -1
- package/dist-esm/module/worker.js +1 -1
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
- package/package.json +34 -59
- package/src/ChartInternal/interactions/eventrect.ts +47 -8
- package/src/canvas/CanvasRenderer.ts +2 -2
- package/src/config/resolver/canvas.ts +4 -3
package/dist-esm/index.esm.js
CHANGED
package/dist-esm/module/Cache.js
CHANGED
package/dist-esm/module/dsv.js
CHANGED
package/dist-esm/module/error.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.0.
|
|
8
|
+
* @version 4.0.2
|
|
9
9
|
*/
|
|
10
10
|
import { requestIdleCallback, window as win, cancelIdleCallback } from './browser.js';
|
|
11
11
|
import { isNumber, isArray } from './util/type-checks.js';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.0.
|
|
8
|
+
* @version 4.0.2
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -75,7 +75,7 @@ class Plugin {
|
|
|
75
75
|
$$;
|
|
76
76
|
options;
|
|
77
77
|
config;
|
|
78
|
-
static version = "4.0.
|
|
78
|
+
static version = "4.0.2";
|
|
79
79
|
/**
|
|
80
80
|
* Constructor
|
|
81
81
|
* @param {Any} options config option object
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.0.
|
|
8
|
+
* @version 4.0.2
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -179,7 +179,7 @@ class Plugin {
|
|
|
179
179
|
$$;
|
|
180
180
|
options;
|
|
181
181
|
config;
|
|
182
|
-
static version = "4.0.
|
|
182
|
+
static version = "4.0.2";
|
|
183
183
|
/**
|
|
184
184
|
* Constructor
|
|
185
185
|
* @param {Any} options config option object
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.0.
|
|
8
|
+
* @version 4.0.2
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -248,7 +248,7 @@ class Plugin {
|
|
|
248
248
|
$$;
|
|
249
249
|
options;
|
|
250
250
|
config;
|
|
251
|
-
static version = "4.0.
|
|
251
|
+
static version = "4.0.2";
|
|
252
252
|
/**
|
|
253
253
|
* Constructor
|
|
254
254
|
* @param {Any} options config option object
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.0.
|
|
8
|
+
* @version 4.0.2
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -530,7 +530,7 @@ class Plugin {
|
|
|
530
530
|
$$;
|
|
531
531
|
options;
|
|
532
532
|
config;
|
|
533
|
-
static version = "4.0.
|
|
533
|
+
static version = "4.0.2";
|
|
534
534
|
/**
|
|
535
535
|
* Constructor
|
|
536
536
|
* @param {Any} options config option object
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.0.
|
|
8
|
+
* @version 4.0.2
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -119,7 +119,7 @@ class Plugin {
|
|
|
119
119
|
$$;
|
|
120
120
|
options;
|
|
121
121
|
config;
|
|
122
|
-
static version = "4.0.
|
|
122
|
+
static version = "4.0.2";
|
|
123
123
|
/**
|
|
124
124
|
* Constructor
|
|
125
125
|
* @param {Any} options config option object
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "billboard.js",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "Re-usable easy interface JavaScript chart library, based on D3 v4+",
|
|
5
5
|
"homepage": "https://naver.github.io/billboard.js/",
|
|
6
6
|
"main": "dist/billboard.js",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"scripts": {
|
|
37
37
|
"start": "webpack serve --open",
|
|
38
38
|
"start:plugin": "cross-env PLUGIN=true webpack-dev-server --open",
|
|
39
|
-
"build": "
|
|
39
|
+
"build": "pnpm run build:production && pnpm run build:packaged && pnpm run build:theme && pnpm run build:plugin && pnpm run build:esm && pnpm run build:cjs && pnpm run build:plugin:types",
|
|
40
40
|
"build:cjs": "node ./config/cjs.js",
|
|
41
41
|
"build:esm": "rollup -c ./config/rollup/esm.js",
|
|
42
42
|
"build:production": "cross-env NODE_ENV=production webpack",
|
|
43
43
|
"build:packaged": "cross-env NODE_ENV=packaged webpack",
|
|
44
44
|
"build:dev": "cross-env NODE_ENV=development webpack",
|
|
45
45
|
"build:theme": "cross-env NODE_ENV=theme webpack",
|
|
46
|
-
"build:production:analyzer": "cross-env ANALYZER=true
|
|
47
|
-
"build:packaged:analyzer": "cross-env ANALYZER=true
|
|
46
|
+
"build:production:analyzer": "cross-env ANALYZER=true pnpm run build:production",
|
|
47
|
+
"build:packaged:analyzer": "cross-env ANALYZER=true pnpm run build:packaged",
|
|
48
48
|
"build:plugin": "cross-env NODE_ENV=plugin webpack && cross-env NODE_ENV=plugin MODE=min webpack && cross-env NODE_ENV=plugin MODE=pkgd webpack && cross-env NODE_ENV=plugin MODE=pkgd-min webpack",
|
|
49
49
|
"build:plugin:types": "node ./config/type.d-plugin.js",
|
|
50
50
|
"release": "semantic-release",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"loc": "cloc --by-file src",
|
|
54
54
|
"test": "vitest",
|
|
55
55
|
"coverage": "vitest run",
|
|
56
|
-
"coverage:ci": "cross-env NODE_ENV=CI
|
|
56
|
+
"coverage:ci": "cross-env NODE_ENV=CI vitest run",
|
|
57
57
|
"jsdoc": "node ./config/jsdoc.js",
|
|
58
58
|
"jsdoc:cmd": "jsdoc -c jsdoc.json",
|
|
59
59
|
"lint-staged": "lint-staged --config ./config/.lintstagedrc.json",
|
|
@@ -113,10 +113,10 @@
|
|
|
113
113
|
"d3-zoom": "^3.0.0"
|
|
114
114
|
},
|
|
115
115
|
"devDependencies": {
|
|
116
|
-
"@commitlint/cli": "^
|
|
117
|
-
"@commitlint/config-conventional": "^
|
|
116
|
+
"@commitlint/cli": "^21.1.0",
|
|
117
|
+
"@commitlint/config-conventional": "^21.1.0",
|
|
118
118
|
"@eslint/js": "^10.0.1",
|
|
119
|
-
"@playwright/test": "^1.
|
|
119
|
+
"@playwright/test": "^1.61.1",
|
|
120
120
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
121
121
|
"@rollup/plugin-replace": "^6.0.3",
|
|
122
122
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
@@ -125,15 +125,15 @@
|
|
|
125
125
|
"@semantic-release/exec": "^7.1.0",
|
|
126
126
|
"@semantic-release/git": "^10.0.1",
|
|
127
127
|
"@semantic-release/npm": "^13.1.5",
|
|
128
|
-
"@semantic-release/release-notes-generator": "^14.1.
|
|
128
|
+
"@semantic-release/release-notes-generator": "^14.1.1",
|
|
129
129
|
"@testing-library/dom": "^10.4.1",
|
|
130
130
|
"@testing-library/react": "^16.3.2",
|
|
131
131
|
"@types/d3": "^7.4.3",
|
|
132
|
-
"@types/sinon": "^21.0.
|
|
133
|
-
"@vitest/browser": "^4.1.
|
|
134
|
-
"@vitest/browser-playwright": "^4.1.
|
|
135
|
-
"@vitest/coverage-istanbul": "^4.1.
|
|
136
|
-
"@vitest/ui": "^4.1.
|
|
132
|
+
"@types/sinon": "^21.0.1",
|
|
133
|
+
"@vitest/browser": "^4.1.9",
|
|
134
|
+
"@vitest/browser-playwright": "^4.1.9",
|
|
135
|
+
"@vitest/coverage-istanbul": "^4.1.9",
|
|
136
|
+
"@vitest/ui": "^4.1.9",
|
|
137
137
|
"better-docs": "^2.7.3",
|
|
138
138
|
"clean-webpack-plugin": "^4.0.0",
|
|
139
139
|
"cloc": "2.6.0-cloc",
|
|
@@ -141,66 +141,41 @@
|
|
|
141
141
|
"cross-env": "^10.1.0",
|
|
142
142
|
"css-loader": "^7.1.4",
|
|
143
143
|
"d3-delaunay": "^6.0.4",
|
|
144
|
+
"d3-format": "^3.1.2",
|
|
145
|
+
"d3-time": "^3.1.0",
|
|
144
146
|
"docdash": "^2.0.2",
|
|
145
|
-
"dprint": "^0.
|
|
146
|
-
"esbuild-loader": "^4.
|
|
147
|
-
"eslint": "^10.
|
|
147
|
+
"dprint": "^0.54.0",
|
|
148
|
+
"esbuild-loader": "^4.5.0",
|
|
149
|
+
"eslint": "^10.5.0",
|
|
148
150
|
"eslint-plugin-import": "^2.32.0",
|
|
149
|
-
"eslint-plugin-jsdoc": "^
|
|
151
|
+
"eslint-plugin-jsdoc": "^63.0.8",
|
|
150
152
|
"husky": "^9.1.7",
|
|
151
153
|
"jsdoc": "^4.0.5",
|
|
152
|
-
"lint-staged": "^
|
|
154
|
+
"lint-staged": "^17.0.8",
|
|
153
155
|
"mini-css-extract-plugin": "^2.10.2",
|
|
154
|
-
"playwright": "^1.
|
|
156
|
+
"playwright": "^1.61.1",
|
|
155
157
|
"regenerator-runtime": "^0.14.1",
|
|
156
|
-
"rollup": "^4.
|
|
158
|
+
"rollup": "^4.62.2",
|
|
157
159
|
"rollup-plugin-delete": "^3.0.2",
|
|
158
|
-
"sass": "^1.
|
|
159
|
-
"sass-loader": "^
|
|
160
|
-
"semantic-release": "^25.0.
|
|
160
|
+
"sass": "^1.101.0",
|
|
161
|
+
"sass-loader": "^17.0.0",
|
|
162
|
+
"semantic-release": "^25.0.5",
|
|
161
163
|
"simulant": "^0.2.2",
|
|
162
|
-
"sinon": "^
|
|
164
|
+
"sinon": "^22.0.0",
|
|
163
165
|
"string-replace-loader": "^3.3.0",
|
|
164
166
|
"style-loader": "^4.0.0",
|
|
165
167
|
"tslib": "^2.8.1",
|
|
166
|
-
"typescript": "^6.0.
|
|
167
|
-
"typescript-eslint": "^8.
|
|
168
|
-
"vitest": "^4.1.
|
|
169
|
-
"webpack": "^5.
|
|
168
|
+
"typescript": "^6.0.3",
|
|
169
|
+
"typescript-eslint": "^8.62.0",
|
|
170
|
+
"vitest": "^4.1.9",
|
|
171
|
+
"webpack": "^5.108.0",
|
|
170
172
|
"webpack-bundle-analyzer": "^5.3.0",
|
|
171
173
|
"webpack-clean": "^1.2.5",
|
|
172
|
-
"webpack-cli": "^7.0.
|
|
173
|
-
"webpack-dev-server": "^5.2.
|
|
174
|
+
"webpack-cli": "^7.0.3",
|
|
175
|
+
"webpack-dev-server": "^5.2.5",
|
|
174
176
|
"webpack-merge": "^6.0.1",
|
|
175
177
|
"webpackbar": "^7.0.0",
|
|
176
178
|
"write-file-webpack-plugin": "^4.5.1"
|
|
177
179
|
},
|
|
178
|
-
"
|
|
179
|
-
"handlebars": "^4.7.9",
|
|
180
|
-
"underscore": "^1.13.8",
|
|
181
|
-
"lodash": "^4.18.1",
|
|
182
|
-
"lodash-es": "^4.18.1",
|
|
183
|
-
"flatted": "^3.4.2",
|
|
184
|
-
"cross-spawn": "^7.0.6",
|
|
185
|
-
"micromatch": "^4.0.8",
|
|
186
|
-
"ws": "^8.21.0",
|
|
187
|
-
"yaml": "^2.9.0",
|
|
188
|
-
"postcss": "^8.5.15",
|
|
189
|
-
"qs": "^6.15.2",
|
|
190
|
-
"follow-redirects": "^1.16.0",
|
|
191
|
-
"launch-editor": "^2.14.1",
|
|
192
|
-
"shell-quote": "^1.8.4",
|
|
193
|
-
"markdown-it": "^14.2.0",
|
|
194
|
-
"pug": "^3.0.4",
|
|
195
|
-
"pug-code-gen": "^3.0.3",
|
|
196
|
-
"vite": "^8.0.16",
|
|
197
|
-
"diff": "^8.0.3",
|
|
198
|
-
"js-yaml": "^4.1.1",
|
|
199
|
-
"@babel/helpers": "^7.29.7",
|
|
200
|
-
"@babel/runtime": "^7.29.7",
|
|
201
|
-
"@isaacs/brace-expansion": "^5.0.1",
|
|
202
|
-
"fast-uri": "3.1.2",
|
|
203
|
-
"path-to-regexp": "0.1.13"
|
|
204
|
-
},
|
|
205
|
-
"packageManager": "yarn@4.13.0"
|
|
180
|
+
"packageManager": "pnpm@10.16.0"
|
|
206
181
|
}
|
|
@@ -380,7 +380,7 @@ export default {
|
|
|
380
380
|
*/
|
|
381
381
|
selectRectForSingle(context: SVGRectElement, index: number): void {
|
|
382
382
|
const $$ = this;
|
|
383
|
-
const {config, $el: {main, circle}} = $$;
|
|
383
|
+
const {config, state, $el: {main, circle}} = $$;
|
|
384
384
|
const isSelectionEnabled = config.data_selection_enabled;
|
|
385
385
|
const isSelectionGrouped = config.data_selection_grouped;
|
|
386
386
|
const isSelectable = config.data_selection_isselectable;
|
|
@@ -410,13 +410,6 @@ export default {
|
|
|
410
410
|
return $$.isWithinShape(this, d);
|
|
411
411
|
});
|
|
412
412
|
|
|
413
|
-
if (shapeAtIndex.empty() && !isTooltipGrouped && config.interaction_onout) {
|
|
414
|
-
$$.hideGridFocus?.();
|
|
415
|
-
$$.hideTooltip();
|
|
416
|
-
|
|
417
|
-
!isSelectionGrouped && $$.setExpand(index);
|
|
418
|
-
}
|
|
419
|
-
|
|
420
413
|
shapeAtIndex
|
|
421
414
|
.call(selected => {
|
|
422
415
|
const d = selected.data();
|
|
@@ -436,6 +429,52 @@ export default {
|
|
|
436
429
|
selected.each(d => $$.setExpand(index, d.id));
|
|
437
430
|
}
|
|
438
431
|
});
|
|
432
|
+
|
|
433
|
+
if (!isTooltipGrouped && shapeAtIndex.empty()) {
|
|
434
|
+
// `point.focus.only` can render focus points away from the hovered data point.
|
|
435
|
+
// Fall back to data distance so ungrouped tooltips can still focus the intended point.
|
|
436
|
+
const mouse = getPointer(state.event, context);
|
|
437
|
+
const closestData = selectedData.filter(d => {
|
|
438
|
+
if ($$.isTargetToShow(d.id)) {
|
|
439
|
+
const dist = $$.dist(d, mouse);
|
|
440
|
+
return dist < $$.getPointSensitivity(d);
|
|
441
|
+
}
|
|
442
|
+
return false;
|
|
443
|
+
});
|
|
444
|
+
|
|
445
|
+
if (closestData.length > 0) {
|
|
446
|
+
let closest = closestData[0];
|
|
447
|
+
let minDist = $$.dist(closest, mouse);
|
|
448
|
+
|
|
449
|
+
for (let i = 1; i < closestData.length; i++) {
|
|
450
|
+
const d = closestData[i];
|
|
451
|
+
const dist = $$.dist(d, mouse);
|
|
452
|
+
|
|
453
|
+
if (dist < minDist) {
|
|
454
|
+
minDist = dist;
|
|
455
|
+
closest = d;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
$$.showTooltip([closest], context);
|
|
460
|
+
$$.showGridFocus?.([closest]);
|
|
461
|
+
$$.unexpandCircles?.();
|
|
462
|
+
|
|
463
|
+
$$.setExpand(index, closest.id, true);
|
|
464
|
+
|
|
465
|
+
if (
|
|
466
|
+
isSelectionEnabled &&
|
|
467
|
+
(isSelectionGrouped || isSelectable?.bind($$.api)(closest))
|
|
468
|
+
) {
|
|
469
|
+
context.style.cursor = "pointer";
|
|
470
|
+
}
|
|
471
|
+
} else if (config.interaction_onout) {
|
|
472
|
+
$$.hideGridFocus?.();
|
|
473
|
+
$$.hideTooltip();
|
|
474
|
+
|
|
475
|
+
!isSelectionGrouped && $$.setExpand(index);
|
|
476
|
+
}
|
|
477
|
+
}
|
|
439
478
|
},
|
|
440
479
|
|
|
441
480
|
/**
|
|
@@ -1345,8 +1345,8 @@ export default class CanvasRenderer {
|
|
|
1345
1345
|
if (cx && cy) {
|
|
1346
1346
|
for (const target of targets) {
|
|
1347
1347
|
if (
|
|
1348
|
-
!
|
|
1349
|
-
|
|
1348
|
+
!isCanvasScatterType($$, target) &&
|
|
1349
|
+
!isCanvasBubbleType($$, target)
|
|
1350
1350
|
) {
|
|
1351
1351
|
continue;
|
|
1352
1352
|
}
|
|
@@ -418,10 +418,11 @@ function bindCanvasHtmlLegendInteractions($$, item): void {
|
|
|
418
418
|
if (
|
|
419
419
|
!callFn(config.legend_item_onover, api, id, !state.hiddenTargetIds.has(id))
|
|
420
420
|
) {
|
|
421
|
-
|
|
422
|
-
!state.transiting &&
|
|
423
|
-
|
|
421
|
+
// hidden data's legend shouldn't react on hover (mirrors SVG focus guard)
|
|
422
|
+
if (!state.transiting && $$.isTargetToShow(id)) {
|
|
423
|
+
setCanvasHtmlLegendFocus($$, id);
|
|
424
424
|
setCanvasLegendTargetFocus($$, id);
|
|
425
|
+
}
|
|
425
426
|
}
|
|
426
427
|
} :
|
|
427
428
|
null)
|