@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
|
@@ -147,7 +147,7 @@ import { timeFormat, timeFormatDefaultLocale } from "d3-time-format";
|
|
|
147
147
|
import * as scales from "d3-scale";
|
|
148
148
|
import { select } from "d3-selection";
|
|
149
149
|
import { transition } from "d3-transition";
|
|
150
|
-
import pkg from
|
|
150
|
+
import pkg from "open-color/open-color.js";
|
|
151
151
|
var openColor = pkg.theme;
|
|
152
152
|
import { colorDefaults } from "@d3plus/color";
|
|
153
153
|
import { assign, attrize, date, elem, rtl as detectRTL } from "@d3plus/dom";
|
|
@@ -276,13 +276,7 @@ var fixFloat = function(d) {
|
|
|
276
276
|
ticks.push(domain[1]);
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
|
-
|
|
280
|
-
if (this._scale === "time" && this._data.length) {
|
|
281
|
-
var dataNumbers = this._data.map(Number);
|
|
282
|
-
ticks = ticks.filter(function(t) {
|
|
283
|
-
return dataNumbers.includes(+t);
|
|
284
|
-
});
|
|
285
|
-
}
|
|
279
|
+
if (this._scale === "time" && this._data.length) ticks = this._data;
|
|
286
280
|
return ticks;
|
|
287
281
|
}
|
|
288
282
|
var Axis = /*#__PURE__*/ function(BaseClass) {
|
|
@@ -294,7 +288,7 @@ var Axis = /*#__PURE__*/ function(BaseClass) {
|
|
|
294
288
|
_this = _call_super(this, Axis);
|
|
295
289
|
_this._align = "middle";
|
|
296
290
|
_this._barConfig = {
|
|
297
|
-
|
|
291
|
+
stroke: openColor.colors.gray[600],
|
|
298
292
|
"stroke-width": 1
|
|
299
293
|
};
|
|
300
294
|
_this._data = [];
|
|
@@ -304,7 +298,7 @@ var Axis = /*#__PURE__*/ function(BaseClass) {
|
|
|
304
298
|
];
|
|
305
299
|
_this._duration = 600;
|
|
306
300
|
_this._gridConfig = {
|
|
307
|
-
|
|
301
|
+
stroke: colorDefaults.light,
|
|
308
302
|
"stroke-width": 1
|
|
309
303
|
};
|
|
310
304
|
_this._gridLog = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d3plus/core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.13",
|
|
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.13",
|
|
38
|
+
"@d3plus/data": "3.0.13",
|
|
39
|
+
"@d3plus/dom": "3.0.13",
|
|
40
|
+
"@d3plus/format": "3.0.13",
|
|
41
|
+
"@d3plus/locales": "3.0.13",
|
|
42
|
+
"@d3plus/math": "3.0.13",
|
|
43
|
+
"@d3plus/text": "3.0.13",
|
|
44
44
|
"@popperjs/core": "^2.11.8",
|
|
45
45
|
"d3-array": "^3.2.4",
|
|
46
46
|
"d3-brush": "^3.0.0",
|