@d3plus/core 3.0.9 → 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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- @d3plus/core v3.0.9
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
@@ -52,7 +52,7 @@
52
52
  // returns if falsey or already Date object
53
53
  var n,e,i,a;return[!1,void 0,NaN].includes(t)||t.constructor===Date?t:t.constructor===Number&&5<"".concat(t).length&&t%1==0?new Date(t):(n="".concat(t),(a=new RegExp(/^\d{1,2}[./-]\d{1,2}[./-](-*\d{1,4})$/g).exec(n))?(0===(a=a[1]).indexOf("-")&&(n=n.replace(a,a.substring(1))),(i=new Date(n)).setFullYear(a),i):(a=new RegExp(/^[A-z]{1,3} [A-z]{1,3} \d{1,2} (-*\d{1,4}) \d{1,2}:\d{1,2}:\d{1,2} [A-z]{1,3}-*\d{1,4} \([A-z]{1,3}\)/g).exec(n))?(0===(i=a[1]).indexOf("-")&&(n=n.replace(i,i.substring(1))),(a=new Date(n)).setFullYear(i),a):(i=new RegExp(/^([qQ]{1}[1-4]{1}|[1-4]{1}[qQ]{1})[\s|-]{0,1}(-*\d{1,4})$/g).exec(n),a=new RegExp(/^(-*\d{1,4})[\s|-]{0,1}([qQ]{1}[1-4]{1}|[1-4]{1}[qQ]{1})$/g).exec(n),i||a?(e=+(i?i[1]:a[2]).toLowerCase().replace("q",""),i=+(i?i[2]:a[1]),(a=new Date(i,3*e-3,1)).setFullYear(i),a):(e=new RegExp(/^([-*\d]{1,2})\-(-*\d{1,4})$/g).exec(n),i=new RegExp(/^(-*\d{1,4})\-([-*\d]{1,2})$/g).exec(n),e||i?(a=+(e?e[1]:i[2]),e=+(e?e[2]:i[1]),(i=new Date(e,a-1,1)).setFullYear(e),i):
54
54
  // detects if only passing a year value
55
- n.includes("/")||n.includes(" ")||n.includes("-")&&n.indexOf("-")?new Date(n.replace(/-/g,"/")):((a=new Date(+n,0,1)).setFullYear(t),a))))}var i="http://www.w3.org/1999/xhtml",a={svg:"http://www.w3.org/2000/svg",xhtml:i,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function r(t){var n=t+="",e=n.indexOf(":");return 0<=e&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),a.hasOwnProperty(n)?{space:a[n],local:t}:t;// eslint-disable-line no-prototype-builtins
55
+ n.includes("/")||n.includes(" ")||n.includes("-")&&n.indexOf("-")?new RegExp(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/g).exec(n)?new Date(n):new Date(n.replace(/-/g,"/")):((a=new Date(+n,0,1)).setFullYear(t),a))))}var i="http://www.w3.org/1999/xhtml",a={svg:"http://www.w3.org/2000/svg",xhtml:i,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function r(t){var n=t+="",e=n.indexOf(":");return 0<=e&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),a.hasOwnProperty(n)?{space:a[n],local:t}:t;// eslint-disable-line no-prototype-builtins
56
56
  }function o(t){t=r(t);return(t.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===i&&t.documentElement.namespaceURI===i?t.createElement(e):t.createElementNS(n,e)}})(t)}function e(){}function w(t){return null==t?e:function(){return this.querySelector(t)}}
57
57
  // Given something array like (or null), returns something that is strictly an
58
58
  // array. This is used to ensure that array-like objects passed to d3.selectAll
@@ -1,5 +1,5 @@
1
1
  /*
2
- @d3plus/core v3.0.9
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
@@ -1,5 +1,5 @@
1
1
  /*
2
- @d3plus/core v3.0.9
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