@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
|
@@ -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 };
|
package/es/src/charts/Plot.js
CHANGED
|
@@ -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");
|
package/es/src/charts/Viz.js
CHANGED
|
@@ -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
|
|
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
|
+
"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.
|
|
38
|
-
"@d3plus/data": "3.0.
|
|
39
|
-
"@d3plus/dom": "3.0.
|
|
40
|
-
"@d3plus/format": "3.0.
|
|
41
|
-
"@d3plus/locales": "3.0.
|
|
42
|
-
"@d3plus/math": "3.0.
|
|
43
|
-
"@d3plus/text": "3.0.
|
|
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",
|