-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
<vr-template> #34
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
<vr-template> #34
Conversation
examples/template/box-import.html
Outdated
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.
E/C PR was updated to rename this to vr-mixin.
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.
yep, gotta pull and rebase
|
fyi: I actually added mutation observers to the |
core/vr-template.js
Outdated
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.
this is to support Chrome's native imports. need to revisit a solution. can show you in person.
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.
This is your library so I let you decide but I'm always skeptical about this marginal value utility functions. More code to maintain and document where bugs can hide and it replaces a well known standard API with your own jargon making the code harder to understand for newcomers to the project.
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.
that's a valid point. I had to Array.prototype.slice.call(document.querySelectorAll) 8 times so I thought I should make a function out of it. that gets pretty verbose quickly. thoughts?
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.
Same function in vr-assets, vr-scene and vr-template
|
woo! |
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.
Can we call the attribute element="vr-bigcubes"?
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.
sure: #58
Created skysphere and updated skybox to match best practices
https://cvan.io/vr-components/examples/template/
dependent on ngokevin/aframe-core#266