Comments (7)
This appears to be a simple copy-paste error, where the attributes from the event were brought over to the associated init dictionary too literally. There's no reason I'm aware of why this needs to be a FrozenArray on the dictionary, though as @petervanderbeken points out it can and should continue to be a FrozenArray on the event itself.
from webxr.
Put up a pull request to fix this. We can bring it up at the next call, but I think it'll be more of an advisory "Hey, this is a change that's gonna land" rather than something anyone will actually be concerned about.
from webxr.
Is it frozen to avoid any modifications of it by the application? Which allows implementers to provide the same array and know that it only gets modified by them. Which eliminates a need to return a new array each time, which is beneficial for GC as many of these arrays can be referenced many-many times each frame.
from webxr.
The attributes can still return a FrozenArray<XRInputSource>
.
But the array passed in the dictionary is not frozen. First a sequence<XRInputSource>
is created, and then a new array is created from that but is then frozen. Using a sequence<XRInputSource>
would work mostly the same. The constructor can then still create a frozen array from that if that's needed.
Note that as currently written the spec doesn't really work, it also still needs to create a frozen array, since the attributes are defined as being a list
, which does not magically convert to a FrozenArray<XRInputSource>
.
from webxr.
/agenda Bringing it up at the next teleconference call.
from webxr.
Related Issues (20)
- Devices with non-sRGB colour spaces HOT 2
- Is SLAM supported? HOT 1
- Gamepads in inline mode HOT 17
- Discussion topic, Untracked stereoscopic inline sessions HOT 4
- Webxr fails to start on android 14 HOT 5
- requiredFeatures: camera-access on hololens2 HOT 2
- Bottom palette in color selection not very useful
- Does Linux support WebXR API? HOT 1
- Immersive AR does not work on the Samsung browser. HOT 1
- is webxr supported with iOS devices browser? HOT 1
- Detecting if an `XRInputSource` is an auxiliary or a primary input source HOT 50
- Indicate "preferred" immersive mode HOT 8
- How to create WebXR app for IOS using unity or any other software? HOT 1
- Add Scene Description API for automation and a11y HOT 1
- Backgrounded Tabs and WebXR HOT 3
- Give developers control over "overlay" browser HOT 10
- Feature for the UA to handle viewing the system inputs during a session HOT 5
- Republish as CRS - 2024/03
- Need FOV angles for interop between WebXR and OpenVR HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webxr.