@d3plus/core 3.0.3 → 3.0.5
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 +80 -87
- package/es/src/charts/BoxWhisker.js +0 -4
- package/es/src/charts/Plot.js +1 -3
- package/es/src/charts/Viz.js +1 -1
- package/es/src/components/Axis.js +3 -2
- package/package.json +8 -8
- package/umd/d3plus-core.full.js +2310 -1790
- package/umd/d3plus-core.full.js.map +1 -1
- package/umd/d3plus-core.full.min.js +1075 -963
- package/umd/d3plus-core.js +5 -6
- package/umd/d3plus-core.js.map +1 -1
- package/umd/d3plus-core.min.js +5 -5
package/umd/d3plus-core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
@d3plus/core v3.0.
|
|
2
|
+
@d3plus/core v3.0.5
|
|
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
|
|
@@ -3247,7 +3247,8 @@
|
|
|
3247
3247
|
}
|
|
3248
3248
|
let textData = [];
|
|
3249
3249
|
function createTextData(offset = 1) {
|
|
3250
|
-
const {
|
|
3250
|
+
const { fontSize } = this._shapeConfig.labelConfig;
|
|
3251
|
+
const fontFamily = this._shapeConfig.labelConfig.fontFamily || text.fontFamily;
|
|
3251
3252
|
const fontPadding = this._shapeConfig.labelConfig.padding;
|
|
3252
3253
|
/**
|
|
3253
3254
|
* Calculates the space each label would take up, given
|
|
@@ -8127,7 +8128,7 @@
|
|
|
8127
8128
|
else {
|
|
8128
8129
|
if (!this._aggs[k]) {
|
|
8129
8130
|
this._aggs[k] = (a, c)=>{
|
|
8130
|
-
const v = data.unique(a.map(c)
|
|
8131
|
+
const v = data.unique(a.map(c));
|
|
8131
8132
|
return v.length === 1 ? v[0] : v;
|
|
8132
8133
|
};
|
|
8133
8134
|
}
|
|
@@ -10834,9 +10835,7 @@
|
|
|
10834
10835
|
this._x2Key = "x2";
|
|
10835
10836
|
this._x2Axis = new AxisTop().align("start");
|
|
10836
10837
|
this._x2Test = new AxisTop().align("start").gridSize(0);
|
|
10837
|
-
this._x2Config = {
|
|
10838
|
-
padding: 0
|
|
10839
|
-
};
|
|
10838
|
+
this._x2Config = {};
|
|
10840
10839
|
this._y = accessor("y");
|
|
10841
10840
|
this._yKey = "y";
|
|
10842
10841
|
this._yAxis = new AxisLeft().align("start");
|