-
Notifications
You must be signed in to change notification settings - Fork 19
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
Gyroscope-specific construction operation and construction options #29
Gyroscope-specific construction operation and construction options #29
Conversation
@anssiko @alexshalamov PTAL |
index.bs
Outdated
[Constructor(optional SpatialSensorOptions sensorOptions), SecureContext, Exposed=Window] | ||
enum LocalCoordinateSystem { "device", "screen" }; | ||
|
||
dictionary GyroscopeSensorOptions : SensorOptions { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the dictionary definition go after interface definition, like in other specs?
@anssiko ?
index.bs
Outdated
[Constructor(optional SpatialSensorOptions sensorOptions), SecureContext, Exposed=Window] | ||
enum LocalCoordinateSystem { "device", "screen" }; | ||
|
||
dictionary GyroscopeSensorOptions : SensorOptions { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The established convention is the dictionary
comes after the interface
definition. And the enum
comes before the interface
/dictionary
definition where it is referenced. So the order in this case:
interface
enum
dictionary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
9ccc26c
to
d3e511c
Compare
This patch introduces the `GyroscopeSensorOptions` dictionary and the "construct a gyroscope object", thus the unneeded references to the Accelerometer specification are removed.
d3e511c
to
0fb5359
Compare
This patch introduces the
GyroscopeSensorOptions
dictionaryand the "construct a gyroscope object", thus the unneeded references
to the Accelerometer specification are removed.
Preview | Diff