Comments (2)
We ought to allow composed DOM subtrees to be toggled via a subtree
attribute/component.
<vr-scene>
<vr-box color="green" position="0 2 0" rotation="-45 45 0"></vr-box>
</vr-scene>
<vr-element name="vr-box">
<template>
<vr-object mixin="cube" position="${position}" rotation="${rotation}" material="color: ${color}"></vr-object>
</template>
</vr-element>
results in this composed (rendered) DOM:
<vr-scene>
<vr-box color="green">
<vr-object mixin="cube" position="0 2 0" rotation="-45 45 0" color="green"></vr-object>
</vr-box>
</vr-scene>
<vr-element name="vr-box">
<template>
<vr-object mixin="cube" position="${position}" rotation="${rotation}" material="color: ${color}"></vr-object>
</template>
</vr-element>
with shadow DOM, it could be:
<vr-scene>
<vr-box color="green">
</vr-box>
</vr-scene>
<vr-element name="vr-box">
<template>
<vr-object mixin="cube" position="${position}" rotation="${rotation}" material="color: ${color}"></vr-object>
</template>
</vr-element>
this bug is to toggle the subtree not to use shadow DOM (which requires quite a hefty polyfill for non-Chrome browsers):
<vr-scene>
<vr-box color="green" subtree="false"></vr-box>
</vr-scene>
<vr-element name="vr-box">
<template>
<vr-object mixin="cube" position="${position}" rotation="${rotation}" material="color: ${color}"></vr-object>
</template>
</vr-element>
compared with the following:
<vr-scene>
<vr-box color="green" subtree="true">
<vr-object mixin="cube" position="0 2 0" rotation="-45 45 0" color="green"></vr-object>
</vr-box>
</vr-scene>
<vr-element name="vr-box">
<template>
<vr-object mixin="cube" position="${position}" rotation="${rotation}" material="color: ${color}"></vr-object>
</template>
</vr-element>
from aframe.
Issue looks outdated
from aframe.
Related Issues (20)
- 2w- HOT 1
- xr-mode-ui: Add explicit full screen mode HOT 8
- Video playback stops when entering immersive mode in Vision Pro HOT 17
- <a-scene> accessing my webcam HOT 4
- Hiding VR mode UI not working in 1.5.0 HOT 2
- a-videosphere: 180 degree support and SBS support. HOT 2
- Component/attribute inheritance and precedence for primitives HOT 5
- ar hit test can only place once,but i need it can place many times HOT 1
- Updating reflection not possible when using postprocessing HOT 2
- Sudden increase in GPU load when using postprocessing HOT 3
- Utils device isIOS and isMobile checks fail on iPad Pro 12.9 Safari HOT 5
- oob-collider not setting el.object3D as default HOT 16
- Add documentation for before/after API
- Duplicate pinch events on the Quest Pro HOT 3
- OBB isn't centered (includes proposed fix) HOT 6
- Support for transient input on Vision Pro
- a-scene Chrome non-passive violation warnings for touchmove and touchstart event handlers HOT 5
- GLB frosted glass material only marginally affect primitives, doens't affect <a-text> or <a-image> HOT 3
- hand-tracking-controls component detaches children (+fix & ideas) HOT 2
- Loading Insta360 Videos 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 aframe.