-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AmbientLightSensor constructor cannot initialize illuminance #24
Comments
think the |
That would be an orthogonal question, the problem is that it's current readonly so there's no way to set it to any value. |
Well, that's by design. It's a getter to the value provided by the sensor. |
@foolip what would be the use case for setting illuminance from the ctor? AFAIK it should just contain the latest AML sensor reading in |
OK, I didn't follow the links, I assumed that the relationship between AmbientLightSensor and Sensor was like that between MessageEvent and Event, that both had constructors that should be able to set all of the members, and that the members never change. Not so. |
That's the design we had initially, which probably explains why you got confused. |
https://w3c.github.io/ambient-light/#ambient-light-sensor-interface
This seems like a bug, there should probably be an
AmbientLightSensorOptions
dictionary that includesilluminance
.The text was updated successfully, but these errors were encountered: