JavaScript SDK for Augmented Reality on the web.
npm install @real2u/javascript-ar-sdkJavaScript SDK for Augmented Reality on the web.
Defines a global Real2U variable with the following methods
``typescript`
interface Real2U {
init: (params: {customerId: string}) => Promise
isActive: (sku: string) => Promise
openAR: (params: { sku: string; name: string; resize?: boolean }) => Promise
getOpenARLink: (sku: string) => Promise
create3DViewer: (params: {
element: HTMLElement;
sku: string;
name: string;
popup: boolean;
progressBarPosition?: 'top' | 'middle' | 'bottom';
poster?: string | null;
}) => Promise
}
Please refer to the real2u-integration` repository for more information.