W3C home > Mailing lists > Public > public-device-apis-log@w3.org > January 2018

Re: [sensors] Investigate possibility of synchronizing coordinate systems

From: Kenneth Rohde Christiansen via GitHub <sysbot+gh@w3.org>
Date: Fri, 19 Jan 2018 11:12:34 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-358936850-1516360353-sysbot+gh@w3.org>
I am wondering whether

```
Sensor {
readonly attribute SensorOptions? options;
}
```
is the best way or not. I think most other APIs apply the individual options directly on the object, like

```
Sensor {
  readonly attribute number frequency;
  readonly attribute USVString coordinateSystem;
}

Basically a bit like they were applied to the object,

```
sensor = {}
options = { coordinateSystem: "screen" }
Object.assign(sensor, options)

sensor.coordinateSystem
> "screen"
```

-- 
GitHub Notification of comment by kenchris
Please view or discuss this issue at https://github.com/w3c/sensors/issues/257#issuecomment-358936850 using your GitHub account
Received on Friday, 19 January 2018 11:12:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:34:25 UTC