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
Johnn-Five implements a treshold attribute which determines the amount of change necessary of the value of the sensor to trigger a change event. Given we want to support sensors with multiple values, we'd at least need to add an attribute for each value. It might be simpler to add a method that would compare the current values with the last emitted ones and return a boolean (which would be used internally to decide whether or nor to trigger the change event). So for example setting up a geoloc sensor to only trigger when changing hemisphere:
Johnn-Five implements a treshold attribute which determines the amount of change necessary of the value of the sensor to trigger a
change
event. Given we want to support sensors with multiple values, we'd at least need to add an attribute for each value. It might be simpler to add a method that would compare the current values with the last emitted ones and return a boolean (which would be used internally to decide whether or nor to trigger thechange
event). So for example setting up a geoloc sensor to only trigger when changing hemisphere:The text was updated successfully, but these errors were encountered: