New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

aframe-google-poly-component

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aframe-google-poly-component

A Google Poly component for A-Frame.

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
19
-24%
Maintainers
1
Weekly downloads
 
Created
Source

aframe-google-poly-component

Version License

A Google Poly component for A-Frame.

For A-Frame.

API

PropertyDescriptionDefault Value
apiKeyGoogle Poly API Key
srcGoogle Poly Model Identifier
normalizeScale the geometry to a unit of 1 and translate the geometry to 0 0 0true
cacheCache or load the cached model using localforage to prevent downloading from Google Poly Serverstrue

Installation

Browser

Install and use by directly including the browser files:

<head>
  <title>My A-Frame Scene</title>
  <script src="https://aframe.io/releases/1.1.0/aframe.min.js"></script>
  <script src="https://unpkg.com/aframe-google-poly-component@2.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!

Keywords

aframe

FAQs

Package last updated on 08 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts