aframe-google-poly-component
A Google Poly component for A-Frame.
Last updated 9 months ago by mattrei .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install aframe-google-poly-component 
SYNC missed versions from official npm registry.

aframe-google-poly-component

Version License

A Google Poly component for A-Frame.

For A-Frame.

API

Property Description Default Value
apiKey Google Poly API Key
src Google Poly Model Identifier
normalize Scale the geometry to a unit of 1 and translate the geometry to 0 0 0 true

Installation

Browser

Install and use by directly including the browser files:

<head>
  <title>My A-Frame Scene</title>
  <script src="https://aframe.io/releases/0.9.2/aframe.min.js"></script>
  <script src="https://unpkg.com/aframe-google-poly-component@1.0.0/dist/aframe-google-poly-component.min.js"></script>
</head>

<body>
  <a-scene>
    <a-entity google-poly="foo: bar"></a-entity>
  </a-scene>
</body>

npm

Install via npm:

npm install aframe-google-poly-component

Then require and use.

require('aframe');
require('aframe-google-poly-component');

Credits

The code is heavily inspired by the A-Frame GBlock Component! Thanks for that!

Current Tags

  • 1.1.0                                ...           latest (9 months ago)

2 Versions

  • 1.1.0                                ...           9 months ago
  • 1.0.0                                ...           9 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 8
Last Day 0
Last Week 4
Last Month 1
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |