You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Readonly sampledProperty.times which exposed _times attribute.
sampledProperty.getTime(index) which receive a number. index < 0 indicate reverse index.
sampledProperty.getTimeByIndex(index) A clear but cumbersome alias of getTime.
I prefer getTime or getTimeByIndex because it is more comprehensive than getLatestTime. Expose _times correctly maybe challenging because it is a array returned an address. We don't want user can change _times by other means than addSample(s).
If just use SampledProperty, the entity will hide when SampledProperty.getValue return undefined. Most time we prefer to make it stay put if there is no value returned at that time, instead of suddenly disappear and suddenly appear when the data was updated.
When providing a null value, the entity will suddenly return to the default value (if orientation: ori). With getLatestTime() we can make it stay to wait for the updated data.
The text was updated successfully, but these errors were encountered:
I'm happy to create a PR for this! Additionally, getSamples seems to correspond with addSamples, which receives a list and return a list. Would using the name getSample, to align with addSample, make it more intuitive?
This API is like:
Feature
It looks like:
Assumed API
sampledProperty.getLatestTime()
like above.sampledProperty.times
which exposed_times
attribute.sampledProperty.getTime(index)
which receive a number.index < 0
indicate reverse index.sampledProperty.getTimeByIndex(index)
A clear but cumbersome alias ofgetTime
.I prefer
getTime
orgetTimeByIndex
because it is more comprehensive than getLatestTime. Expose_times
correctly maybe challenging because it is a array returned an address. We don't want user can change_times
by other means thanaddSample(s)
.Use Case:
If just use
SampledProperty
, the entity will hide whenSampledProperty.getValue
return undefined. Most time we prefer to make it stay put if there is no value returned at that time, instead of suddenly disappear and suddenly appear when the data was updated.When providing a null value, the entity will suddenly return to the default value (if
orientation: ori
). WithgetLatestTime()
we can make it stay to wait for the updated data.The text was updated successfully, but these errors were encountered: