@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.
@@ -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 'open-color/open-color.js';
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
- // for time scale, if data array has been provided, filter out ticks that are not in the array
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
- "stroke": openColor.colors.gray[600],
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
- "stroke": colorDefaults.light,
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.12",
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.12",
38
- "@d3plus/data": "3.0.12",
39
- "@d3plus/dom": "3.0.12",
40
- "@d3plus/format": "3.0.12",
41
- "@d3plus/locales": "3.0.12",
42
- "@d3plus/math": "3.0.12",
43
- "@d3plus/text": "3.0.12",
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",