@d3plus/core 3.0.12 → 3.0.13
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/README.md +60 -60
- package/es/src/charts/Geomap.js +5 -33
- package/es/src/components/Axis.js +4 -10
- package/package.json +8 -8
- package/umd/d3plus-core.full.js +114 -352
- package/umd/d3plus-core.full.js.map +1 -1
- package/umd/d3plus-core.full.min.js +699 -719
- package/umd/d3plus-core.js +8 -36
- package/umd/d3plus-core.js.map +1 -1
- package/umd/d3plus-core.min.js +4 -5
package/umd/d3plus-core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
@d3plus/core v3.0.
|
|
2
|
+
@d3plus/core v3.0.13
|
|
3
3
|
Data visualization made easy. A javascript library that extends the popular D3.js to enable fast and beautiful visualizations.
|
|
4
4
|
Copyright (c) 2025 D3plus - https://d3plus.org
|
|
5
5
|
@license MIT
|
|
@@ -2795,11 +2795,7 @@
|
|
|
2795
2795
|
ticks.push(domain[1]);
|
|
2796
2796
|
}
|
|
2797
2797
|
}
|
|
2798
|
-
|
|
2799
|
-
if (this._scale === "time" && this._data.length) {
|
|
2800
|
-
const dataNumbers = this._data.map(Number);
|
|
2801
|
-
ticks = ticks.filter((t)=>dataNumbers.includes(+t));
|
|
2802
|
-
}
|
|
2798
|
+
if (this._scale === "time" && this._data.length) ticks = this._data;
|
|
2803
2799
|
return ticks;
|
|
2804
2800
|
}
|
|
2805
2801
|
class Axis extends BaseClass {
|
|
@@ -3775,7 +3771,7 @@
|
|
|
3775
3771
|
super();
|
|
3776
3772
|
this._align = "middle";
|
|
3777
3773
|
this._barConfig = {
|
|
3778
|
-
|
|
3774
|
+
stroke: openColor$1.colors.gray[600],
|
|
3779
3775
|
"stroke-width": 1
|
|
3780
3776
|
};
|
|
3781
3777
|
this._data = [];
|
|
@@ -3785,7 +3781,7 @@
|
|
|
3785
3781
|
];
|
|
3786
3782
|
this._duration = 600;
|
|
3787
3783
|
this._gridConfig = {
|
|
3788
|
-
|
|
3784
|
+
stroke: color.colorDefaults.light,
|
|
3789
3785
|
"stroke-width": 1
|
|
3790
3786
|
};
|
|
3791
3787
|
this._gridLog = false;
|
|
@@ -11375,19 +11371,7 @@
|
|
|
11375
11371
|
@chainable
|
|
11376
11372
|
*/ fitObject(_, f) {
|
|
11377
11373
|
if (arguments.length) {
|
|
11378
|
-
|
|
11379
|
-
const prev = this._queue.find((q)=>q[3] === "fitObject");
|
|
11380
|
-
const d = [
|
|
11381
|
-
data.load.bind(this),
|
|
11382
|
-
_,
|
|
11383
|
-
f,
|
|
11384
|
-
"fitObject"
|
|
11385
|
-
];
|
|
11386
|
-
if (prev) this._queue[this._queue.indexOf(prev)] = d;
|
|
11387
|
-
else this._queue.push(d);
|
|
11388
|
-
} else {
|
|
11389
|
-
this._fitObject = _;
|
|
11390
|
-
}
|
|
11374
|
+
data.addToQueue.bind(this)(_, f, "fitObject");
|
|
11391
11375
|
this._zoomSet = false;
|
|
11392
11376
|
return this;
|
|
11393
11377
|
}
|
|
@@ -11504,19 +11488,7 @@
|
|
|
11504
11488
|
@chainable
|
|
11505
11489
|
*/ topojson(_, f) {
|
|
11506
11490
|
if (arguments.length) {
|
|
11507
|
-
|
|
11508
|
-
const prev = this._queue.find((q)=>q[3] === "topojson");
|
|
11509
|
-
const d = [
|
|
11510
|
-
data.load.bind(this),
|
|
11511
|
-
_,
|
|
11512
|
-
f,
|
|
11513
|
-
"topojson"
|
|
11514
|
-
];
|
|
11515
|
-
if (prev) this._queue[this._queue.indexOf(prev)] = d;
|
|
11516
|
-
else this._queue.push(d);
|
|
11517
|
-
} else {
|
|
11518
|
-
this._topojson = _;
|
|
11519
|
-
}
|
|
11491
|
+
data.addToQueue.bind(this)(_, f, "topojson");
|
|
11520
11492
|
this._zoomSet = false;
|
|
11521
11493
|
return this;
|
|
11522
11494
|
}
|
|
@@ -11610,9 +11582,9 @@
|
|
|
11610
11582
|
return this._topojsonFill(d, i);
|
|
11611
11583
|
},
|
|
11612
11584
|
on: {
|
|
11613
|
-
|
|
11585
|
+
mouseenter: (d, i, x, event)=>!this._coordData.features.includes(d) ? this._on.mouseenter.bind(this)(d, i, x, event) : null,
|
|
11614
11586
|
"mousemove.shape": (d, i, x, event)=>!this._coordData.features.includes(d) ? this._on["mousemove.shape"].bind(this)(d, i, x, event) : null,
|
|
11615
|
-
|
|
11587
|
+
mouseleave: (d, i, x, event)=>!this._coordData.features.includes(d) ? this._on.mouseleave.bind(this)(d, i, x, event) : null
|
|
11616
11588
|
},
|
|
11617
11589
|
stroke: (d, i)=>{
|
|
11618
11590
|
const c = typeof this._shapeConfig.Path.fill === "function" ? this._shapeConfig.Path.fill(d, i) : this._shapeConfig.Path.fill;
|