@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.
@@ -89,8 +89,4 @@ var BoxWhisker = /*#__PURE__*/ function(Plot) {
89
89
  @class BoxWhisker
90
90
  @extends Plot
91
91
  @desc Creates a simple box and whisker based on an array of data.
92
- @example <caption>the equivalent of calling:</caption>
93
- new d3plus.Plot()
94
- .discrete("x")
95
- .shape("Box")
96
92
  */ export { BoxWhisker as default };
@@ -478,9 +478,7 @@ var Plot = /*#__PURE__*/ function(Viz) {
478
478
  _this._x2Key = "x2";
479
479
  _this._x2Axis = new AxisTop().align("start");
480
480
  _this._x2Test = new AxisTop().align("start").gridSize(0);
481
- _this._x2Config = {
482
- padding: 0
483
- };
481
+ _this._x2Config = {};
484
482
  _this._y = accessor("y");
485
483
  _this._yKey = "y";
486
484
  _this._yAxis = new AxisLeft().align("start");
@@ -1281,7 +1281,7 @@ function value(d) {
1281
1281
  else {
1282
1282
  if (!_this._aggs[k]) {
1283
1283
  _this._aggs[k] = function(a, c) {
1284
- var v = unique(a.map(c).map(String));
1284
+ var v = unique(a.map(c));
1285
1285
  return v.length === 1 ? v[0] : v;
1286
1286
  };
1287
1287
  }
@@ -154,7 +154,7 @@ import { assign, attrize, date, elem, rtl as detectRTL } from "@d3plus/dom";
154
154
  import { formatAbbreviate, formatDate } from "@d3plus/format";
155
155
  import { formatLocale, locale } from "@d3plus/locales";
156
156
  import { closest } from "@d3plus/math";
157
- import { textWrap } from "@d3plus/text";
157
+ import { fontFamily as d3plusFontFamily, textWrap } from "@d3plus/text";
158
158
  import { TextBox } from "../components/index.js";
159
159
  import * as shapes from "../shapes/index.js";
160
160
  import { configPrep, BaseClass, constant } from "../utils/index.js";
@@ -894,7 +894,8 @@ var Axis = /*#__PURE__*/ function(BaseClass) {
894
894
  function createTextData() {
895
895
  var _this = this;
896
896
  var offset = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 1;
897
- var _this__shapeConfig_labelConfig = this._shapeConfig.labelConfig, fontFamily = _this__shapeConfig_labelConfig.fontFamily, fontSize = _this__shapeConfig_labelConfig.fontSize;
897
+ var fontSize = this._shapeConfig.labelConfig.fontSize;
898
+ var fontFamily = this._shapeConfig.labelConfig.fontFamily || d3plusFontFamily;
898
899
  var fontPadding = this._shapeConfig.labelConfig.padding;
899
900
  /**
900
901
  * Calculates the space each label would take up, given
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d3plus/core",
3
- "version": "3.0.3",
3
+ "version": "3.0.5",
4
4
  "description": "Data visualization made easy. A javascript library that extends the popular D3.js to enable fast and beautiful visualizations.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -34,13 +34,13 @@
34
34
  "test": "eslint index.js src/**/*.js && eslint --global=it test && mocha 'test/**/*-test.js'"
35
35
  },
36
36
  "dependencies": {
37
- "@d3plus/color": "3.0.3",
38
- "@d3plus/data": "3.0.3",
39
- "@d3plus/dom": "3.0.3",
40
- "@d3plus/format": "3.0.3",
41
- "@d3plus/locales": "3.0.3",
42
- "@d3plus/math": "3.0.3",
43
- "@d3plus/text": "3.0.3",
37
+ "@d3plus/color": "3.0.5",
38
+ "@d3plus/data": "3.0.5",
39
+ "@d3plus/dom": "3.0.5",
40
+ "@d3plus/format": "3.0.5",
41
+ "@d3plus/locales": "3.0.5",
42
+ "@d3plus/math": "3.0.5",
43
+ "@d3plus/text": "3.0.5",
44
44
  "@popperjs/core": "^2.11.8",
45
45
  "d3-array": "^3.2.4",
46
46
  "d3-brush": "^3.0.0",