Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@r2u/javascript-ar-sdk

Package Overview
Dependencies
Maintainers
1
Versions
202
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@r2u/javascript-ar-sdk

JavaScript SDK for Augmented Reality on the web.

  • 3.4.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.9K
decreased by-55.57%
Maintainers
1
Weekly downloads
 
Created
Source

JavaScript AR SDK

JavaScript SDK for Augmented Reality on the web.

Methods

Defines a global R2U variable with the following methods

interface R2U {
  init: (params: { customerId: string }) => Promise<void>
  isActive: (sku: string) => Promise<boolean>
  openAR: (params: { sku: string; resize?: boolean }) => Promise<void>
  getOpenARLink: (sku: string) => Promise<string>
  create3DViewer: (params: {
    element: HTMLElement
    sku: string
    name: string
    popup?: boolean
    progressBarPosition?: 'top' | 'middle' | 'bottom'
    poster?: string | null
  }) => Promise<void>
  analytics: {
    send: (event: Record<string, string | number>) => Promise<void>
  }
  customizer: {
    open: () => Promise<void>
  }
}

Integration

Please refer to the documentation repository for more information.

FAQs

Package last updated on 30 Sep 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc