webvr-dom

2019-07-14 admin

webvr-dom是什么

什么是webvr-dom,A shim to support DOM rendering for VR devices

webvr-dom使用教程帮助文档

WebVR: DOM

A shim of rendering the DOM for VR devices.

Install

$ npm install webvr-dom

Usage

Initiate after all the DOM elements are rendered:

VRDOM();

If you don’t want to convert the whole body you can pass the element as an option in the method:

var el = document.getElementById('main');
VRDOM({ el: el });

Options

  • update: Automatically monitor updates in the element and re-render

Credits

Initiated by Makis Tracend

Started as a Makesites Hackathon

Distributed through Makesites.org

Released under the Apatche license v2.0

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-69713.html

文章标题:webvr-dom

回到顶部