@d3plus/core 3.0.0-alpha.4 → 3.0.0
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 +28 -28
- package/es/src/charts/Viz.js +6 -1
- package/package.json +8 -8
- package/umd/d3plus-core.full.js +7 -2
- package/umd/d3plus-core.full.js.map +1 -1
- package/umd/d3plus-core.full.min.js +2 -2
- package/umd/d3plus-core.js +7 -2
- package/umd/d3plus-core.js.map +1 -1
- package/umd/d3plus-core.min.js +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
@d3plus/core v3.0.0
|
|
2
|
+
@d3plus/core v3.0.0
|
|
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
|
|
@@ -4412,7 +4412,7 @@ return H("body").on("touchstart."+this._uuid,
|
|
|
4412
4412
|
@desc If *value* is specified, sets the time accessor to the specified function or string and returns the current class instance.
|
|
4413
4413
|
@param {Function|String} [*value*]
|
|
4414
4414
|
@chainable
|
|
4415
|
-
*/time(t){return arguments.length?("function"==typeof t?this._time=t:(this._time=p(t),this._aggs[t]||(this._aggs[t]=(t,n)=>{t=Yu(t.map(n));return 1===t.length?t[0]:t}),this._userTime&&JSON.stringify(t)!==JSON.stringify(this._userTime)&&(this._timeFilter=!1,this._timelineSelection=!1),this._userTime=t),this):this._time}
|
|
4415
|
+
*/time(t){return arguments.length?("function"==typeof t?this._time=t:t?(this._time=p(t),this._aggs[t]||(this._aggs[t]=(t,n)=>{t=Yu(t.map(n));return 1===t.length?t[0]:t}),this._userTime&&JSON.stringify(t)!==JSON.stringify(this._userTime)&&(this._timeFilter=!1,this._timelineSelection=!1),this._userTime=t):(this._time=void 0,this._userTime=void 0,this._timeFilter=!1,this._timelineSelection=!1),this):this._time}
|
|
4416
4416
|
/**
|
|
4417
4417
|
@memberof Viz
|
|
4418
4418
|
@desc If *value* is specified, sets the time filter to the specified function and returns the current class instance.
|
package/umd/d3plus-core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
@d3plus/core v3.0.0
|
|
2
|
+
@d3plus/core v3.0.0
|
|
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
|
|
@@ -8424,7 +8424,7 @@
|
|
|
8424
8424
|
if (arguments.length) {
|
|
8425
8425
|
if (typeof _ === "function") {
|
|
8426
8426
|
this._time = _;
|
|
8427
|
-
} else {
|
|
8427
|
+
} else if (_) {
|
|
8428
8428
|
this._time = accessor(_);
|
|
8429
8429
|
if (!this._aggs[_]) {
|
|
8430
8430
|
this._aggs[_] = (a, c)=>{
|
|
@@ -8437,6 +8437,11 @@
|
|
|
8437
8437
|
this._timelineSelection = false;
|
|
8438
8438
|
}
|
|
8439
8439
|
this._userTime = _;
|
|
8440
|
+
} else {
|
|
8441
|
+
this._time = undefined;
|
|
8442
|
+
this._userTime = undefined;
|
|
8443
|
+
this._timeFilter = false;
|
|
8444
|
+
this._timelineSelection = false;
|
|
8440
8445
|
}
|
|
8441
8446
|
return this;
|
|
8442
8447
|
} else return this._time;
|