New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@plattar/plattar-ar-adapter

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@plattar/plattar-ar-adapter

Plattar AR Adapter for interfacing with Google & Apple WebAR

1.118.2
Source
npm
Version published
Weekly downloads
192
-75.76%
Maintainers
1
Weekly downloads
 
Created
Source

Plattar Logo

install size NPM License

plattar-ar-adapter allows easy interfacing with Apple Quicklook and Google SceneViewer

Quick Use

  • ES2015 & ES2019 Builds via jsDelivr
// Minified Version ES2015 & ES2019 (Latest)
https://cdn.jsdelivr.net/npm/@plattar/plattar-ar-adapter/build/es2015/plattar-ar-adapter.min.js
https://cdn.jsdelivr.net/npm/@plattar/plattar-ar-adapter/build/es2019/plattar-ar-adapter.min.js

// Standard Version ES2015 & ES2019 (Latest)
https://cdn.jsdelivr.net/npm/@plattar/plattar-ar-adapter/build/es2015/plattar-ar-adapter.js
https://cdn.jsdelivr.net/npm/@plattar/plattar-ar-adapter/build/es2019/plattar-ar-adapter.js

Installation

  • Install using npm
npm install @plattar/plattar-ar-adapter

Examples

  • Launch AR for Plattar Products & Variations
import {ProductAR} from "@pattar/plattar-ar-adapter";

// grab your product/variation ID from the Plattar CMS
const productID:string = "{YOUR_PRODUCT_ID}";
const variationID:string = "{YOUR_VARIATION_ID}";

const webAR:ProductAR = new ProductAR(productID, variationID);

webAR.init().then((ar:ProductAR) => {
    ar.start();
}).catch((err) => {
    console.error("AR Not Available");
});
  • Launch AR for Plattar Scenes
import {SceneAR} from "@pattar/plattar-ar-adapter";

// grab your scene ID from the Plattar CMS
const sceneID:string = "{YOUR_SCENE_ID}";

const webAR:SceneAR = new SceneAR(sceneID);

webAR.init().then((ar:SceneAR) => {
    ar.start();
}).catch((err) => {
    console.error("AR Not Available");
});

Keywords

plattar

FAQs

Package last updated on 22 Oct 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