@d3plus/core 3.0.0-alpha.3 → 3.0.0-alpha.5

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.0-alpha.3
2
+ @d3plus/core v3.0.0-alpha.5
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
@@ -3114,7 +3114,7 @@ return j.select("body").on("touchstart."+this._uuid,
3114
3114
  @desc If *value* is specified, sets the time accessor to the specified function or string and returns the current class instance.
3115
3115
  @param {Function|String} [*value*]
3116
3116
  @chainable
3117
- */time(t){return arguments.length?("function"==typeof t?this._time=t:(this._time=s(t),this._aggs[t]||(this._aggs[t]=(t,i)=>{t=Lt.unique(t.map(i));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}
3117
+ */time(t){return arguments.length?("function"==typeof t?this._time=t:t?(this._time=s(t),this._aggs[t]||(this._aggs[t]=(t,i)=>{t=Lt.unique(t.map(i));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}
3118
3118
  /**
3119
3119
  @memberof Viz
3120
3120
  @desc If *value* is specified, sets the time filter to the specified function and returns the current class instance.