@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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- @d3plus/core v3.0.3
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 { fontFamily, fontSize } = this._shapeConfig.labelConfig;
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).map(String));
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");