@d3plus/core 3.0.8 → 3.0.10

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.
@@ -164,7 +164,7 @@ import { deviation, extent, max, mean, merge, min, range, sum } from "d3-array";
164
164
  import { nest } from "d3-collection";
165
165
  import * as scales from "d3-scale";
166
166
  import * as d3Shape from "d3-shape";
167
- import pkg from 'open-color/open-color.js';
167
+ import pkg from "open-color/open-color.js";
168
168
  var openColor = pkg.theme;
169
169
  import { colorAssign, colorContrast, colorDefaults, colorLegible } from "@d3plus/color";
170
170
  import { merge as d3plusMerge, unique } from "@d3plus/data";
@@ -454,7 +454,6 @@ var Plot = /*#__PURE__*/ function(Viz) {
454
454
  _this._stackOffset = stackOffsetDiverging;
455
455
  _this._stackOrder = stackOrderDescending;
456
456
  _this._timelineConfig = assign(_this._timelineConfig, {
457
- brushing: true,
458
457
  brushMin: function() {
459
458
  return _this._xTime || _this._yTime || _this._x2Time || _this._y2Time ? 2 : 1;
460
459
  }
@@ -359,12 +359,12 @@ var Viz = /*#__PURE__*/ function(BaseClass) {
359
359
  _this._messageClass = new Message();
360
360
  _this._messageMask = "rgba(0, 0, 0, 0.05)";
361
361
  _this._messageStyle = {
362
- "bottom": "0",
363
- "left": "0",
364
- "position": "absolute",
365
- "right": "0",
362
+ bottom: "0",
363
+ left: "0",
364
+ position: "absolute",
365
+ right: "0",
366
366
  "text-align": "center",
367
- "top": "0"
367
+ top: "0"
368
368
  };
369
369
  _this._noDataHTML = function() {
370
370
  return '\n <div style="left: 50%; top: 50%; position: absolute; transform: translate(-50%, -50%);">\n <strong>'.concat(_this._translate("No Data Available"), "</strong>\n </div>");
@@ -373,8 +373,8 @@ var Viz = /*#__PURE__*/ function(BaseClass) {
373
373
  _this._on = {
374
374
  "click.shape": clickShape.bind(_this),
375
375
  "click.legend": clickLegend.bind(_this),
376
- "mouseenter": mouseenter.bind(_this),
377
- "mouseleave": mouseleave.bind(_this),
376
+ mouseenter: mouseenter.bind(_this),
377
+ mouseleave: mouseleave.bind(_this),
378
378
  "mousemove.shape": mousemoveShape.bind(_this),
379
379
  "mousemove.legend": mousemoveLegend.bind(_this)
380
380
  };
@@ -435,7 +435,6 @@ var Viz = /*#__PURE__*/ function(BaseClass) {
435
435
  _this._timeline = true;
436
436
  _this._timelineClass = new Timeline().align("end");
437
437
  _this._timelineConfig = {
438
- brushing: false,
439
438
  padding: 5
440
439
  };
441
440
  _this._timelinePadding = defaultPadding;
@@ -480,21 +479,21 @@ var Viz = /*#__PURE__*/ function(BaseClass) {
480
479
  fill: "#444"
481
480
  };
482
481
  _this._zoomBrushSelectionStyle = {
483
- "fill": "#777",
482
+ fill: "#777",
484
483
  "stroke-width": 0
485
484
  };
486
485
  _this._zoomControlStyle = {
487
- "background": "rgba(255, 255, 255, 0.75)",
488
- "border": "1px solid rgba(0, 0, 0, 0.75)",
489
- "color": "rgba(0, 0, 0, 0.75)",
490
- "display": "block",
491
- "font": "900 15px/21px ".concat(fontFamilyStringify(fontFamily)),
492
- "height": "20px",
493
- "margin": "5px",
494
- "opacity": 0.75,
495
- "padding": 0,
486
+ background: "rgba(255, 255, 255, 0.75)",
487
+ border: "1px solid rgba(0, 0, 0, 0.75)",
488
+ color: "rgba(0, 0, 0, 0.75)",
489
+ display: "block",
490
+ font: "900 15px/21px ".concat(fontFamilyStringify(fontFamily)),
491
+ height: "20px",
492
+ margin: "5px",
493
+ opacity: 0.75,
494
+ padding: 0,
496
495
  "text-align": "center",
497
- "width": "20px"
496
+ width: "20px"
498
497
  };
499
498
  _this._zoomControlStyleActive = {
500
499
  background: "rgba(0, 0, 0, 0.75)",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d3plus/core",
3
- "version": "3.0.8",
3
+ "version": "3.0.10",
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.8",
38
- "@d3plus/data": "3.0.8",
39
- "@d3plus/dom": "3.0.8",
40
- "@d3plus/format": "3.0.8",
41
- "@d3plus/locales": "3.0.8",
42
- "@d3plus/math": "3.0.8",
43
- "@d3plus/text": "3.0.8",
37
+ "@d3plus/color": "3.0.10",
38
+ "@d3plus/data": "3.0.10",
39
+ "@d3plus/dom": "3.0.10",
40
+ "@d3plus/format": "3.0.10",
41
+ "@d3plus/locales": "3.0.10",
42
+ "@d3plus/math": "3.0.10",
43
+ "@d3plus/text": "3.0.10",
44
44
  "@popperjs/core": "^2.11.8",
45
45
  "d3-array": "^3.2.4",
46
46
  "d3-brush": "^3.0.0",
@@ -1,5 +1,5 @@
1
1
  /*
2
- @d3plus/core v3.0.8
2
+ @d3plus/core v3.0.10
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
@@ -254,6 +254,8 @@
254
254
  date4.setFullYear(d);
255
255
  return date4;
256
256
  }
257
+ var iso8601 = new RegExp(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/g).exec(s);
258
+ if (iso8601) return new Date(s);
257
259
  // falls back to Date object, replacing hyphens with slashes
258
260
  return new Date(s.replace(/-/g, "/"));
259
261
  }
@@ -35461,12 +35463,12 @@
35461
35463
  this._messageClass = new Message();
35462
35464
  this._messageMask = "rgba(0, 0, 0, 0.05)";
35463
35465
  this._messageStyle = {
35464
- "bottom": "0",
35465
- "left": "0",
35466
- "position": "absolute",
35467
- "right": "0",
35466
+ bottom: "0",
35467
+ left: "0",
35468
+ position: "absolute",
35469
+ right: "0",
35468
35470
  "text-align": "center",
35469
- "top": "0"
35471
+ top: "0"
35470
35472
  };
35471
35473
  this._noDataHTML = ()=>`
35472
35474
  <div style="left: 50%; top: 50%; position: absolute; transform: translate(-50%, -50%);">
@@ -35476,8 +35478,8 @@
35476
35478
  this._on = {
35477
35479
  "click.shape": clickShape.bind(this),
35478
35480
  "click.legend": clickLegend.bind(this),
35479
- "mouseenter": mouseenter.bind(this),
35480
- "mouseleave": mouseleave.bind(this),
35481
+ mouseenter: mouseenter.bind(this),
35482
+ mouseleave: mouseleave.bind(this),
35481
35483
  "mousemove.shape": mousemoveShape.bind(this),
35482
35484
  "mousemove.legend": mousemoveLegend.bind(this)
35483
35485
  };
@@ -35536,7 +35538,6 @@
35536
35538
  this._timeline = true;
35537
35539
  this._timelineClass = new Timeline().align("end");
35538
35540
  this._timelineConfig = {
35539
- brushing: false,
35540
35541
  padding: 5
35541
35542
  };
35542
35543
  this._timelinePadding = defaultPadding;
@@ -35577,21 +35578,21 @@
35577
35578
  fill: "#444"
35578
35579
  };
35579
35580
  this._zoomBrushSelectionStyle = {
35580
- "fill": "#777",
35581
+ fill: "#777",
35581
35582
  "stroke-width": 0
35582
35583
  };
35583
35584
  this._zoomControlStyle = {
35584
- "background": "rgba(255, 255, 255, 0.75)",
35585
- "border": "1px solid rgba(0, 0, 0, 0.75)",
35586
- "color": "rgba(0, 0, 0, 0.75)",
35587
- "display": "block",
35588
- "font": `900 15px/21px ${fontFamilyStringify(fontFamily)}`,
35589
- "height": "20px",
35590
- "margin": "5px",
35591
- "opacity": 0.75,
35592
- "padding": 0,
35585
+ background: "rgba(255, 255, 255, 0.75)",
35586
+ border: "1px solid rgba(0, 0, 0, 0.75)",
35587
+ color: "rgba(0, 0, 0, 0.75)",
35588
+ display: "block",
35589
+ font: `900 15px/21px ${fontFamilyStringify(fontFamily)}`,
35590
+ height: "20px",
35591
+ margin: "5px",
35592
+ opacity: 0.75,
35593
+ padding: 0,
35593
35594
  "text-align": "center",
35594
- "width": "20px"
35595
+ width: "20px"
35595
35596
  };
35596
35597
  this._zoomControlStyleActive = {
35597
35598
  background: "rgba(0, 0, 0, 0.75)",
@@ -37501,7 +37502,6 @@
37501
37502
  this._stackOffset = stackOffsetDiverging;
37502
37503
  this._stackOrder = stackOrderDescending;
37503
37504
  this._timelineConfig = assign(this._timelineConfig, {
37504
- brushing: true,
37505
37505
  brushMin: ()=>this._xTime || this._yTime || this._x2Time || this._y2Time ? 2 : 1
37506
37506
  });
37507
37507
  this._x = accessor("x");