Tobie Langel
Tobie Langel
>> Because it doesn't help us with requirements 2) and 3) above, makes for more verbose code (sensor.reading.x instead of sensor.x) > As for 2) and 3) sensor.reading.x is not...
> Application code can easily copy the values from the properties and store them for later, if they want to do so @rwaldron, seems you're suggesting ES6/7 provides enough syntactic...
Garbage collection pauses causing missed frames are well known and well documented issues. Note the issue isn't the extra allocation time, it's the GC pauses. Among the TAG requests (coming...
Replying to @alexshalamov: > @tobie There are few concerns with proposed modifications. > > - When control and data interfaces are merged, extensibility is lost. For example, for sensors that...
Replying to @Maksims: >> Could we instead provide a method that will fill sensor reading data, e.g. Sensor.getReading(Dictionary out); or Sensor.read(Dictionary out);? This will allow to reuse object, yet, main...
Replying to @alexshalamov: > Since you have raised concerns about GC / performance issues related to current API, do you have any data / test app that shows the problem?...
Taking the above comments in consideration, here's a new take at the WebIDL for this: ```webidl [SecureContext] interface Sensor : EventTarget { readonly attribute SensorState state; readonly attribute DOMHighResTimeStamp lastUpdatedAt;...
> For ALS we do not really have the use cases requiring accurate readings (@tobie do we?), even rough data (10 - 100 lux accuracy) shall be enough for example...
WRT to resolution mode, for ALS the situation seems easier to handle; it's ALS vs LightLevelSensor. We could go with just exposing the second one for now, with a dedicated...
> [1] LightLevel enum values lifted from now obsoleted https://www.w3.org/TR/2016/WD-mediaqueries-4-20160126/#descdef-media-light-level `LightLevel` hasn't been obsoleted, it's been moved to MQ5: https://github.com/w3c/csswg-drafts/blob/master/mediaqueries/deferred-for-level-5.txt Nonetheless, liaising with the CSS WG would be important before...