xrhtml

1.0.0 • Public • Published

Usage

window.XRHTMLRenderer        = renderer
window.XRHTMLRefreshInterval = 100 // lower is more cpu 

let html = new XRHTML({
    name: "foo",
    size: [500,200],
    html: `<div style="overflow:scroll">
        <a id="link" href="#" style="display:block;padding:10px;background:#FF0">foo</a>
        <a id="link2" href="https://aframe.io" target="_blank" style="display:block;padding:10px;background:#FF0">foo</a>
        <br>
        <h1>Hello world</h1>
        <button>foo</button>
    </div>`,
    scene
})
scene.add(html)

WebXR compatible HTML-objects for THREE/AFRAME which auto-switch between CSS3D / WebGL based on xr-session events.

Development

$ yarn add rollup 
$ watch rollup -c rollup.config.js 

Credits

nlnet logo next generation internet logo

Readme

Keywords

Package Sidebar

Install

npm i xrhtml

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

186 kB

Total Files

8

Last publish

Collaborators

  • coderofsalvation