@plattar/plattar-ar-adapter
Advanced tools
Comparing version
@@ -74,10 +74,11 @@ "use strict"; | ||
viewer.setAttribute("url", opt.url || dst); | ||
viewer.onload = () => { | ||
return accept(viewer); | ||
}; | ||
this.append(viewer); | ||
this._element = viewer; | ||
this._state = plattar_controller_1.ControllerState.QRCode; | ||
this._prevQROpt = opt; | ||
return; | ||
return new Promise((accept, reject) => { | ||
viewer.onload = () => { | ||
return accept(viewer); | ||
}; | ||
this.append(viewer); | ||
}); | ||
} | ||
@@ -152,9 +153,11 @@ return reject(new Error("ProductController.startQRCode() - minimum required attributes not set, use product-id as a minimum")); | ||
viewer.setAttribute("url", opt.url || dst); | ||
viewer.onload = () => { | ||
return accept(viewer); | ||
}; | ||
this._element = viewer; | ||
this._state = plattar_controller_1.ControllerState.QRCode; | ||
this._prevQROpt = opt; | ||
this.append(viewer); | ||
return new Promise((accept, reject) => { | ||
viewer.onload = () => { | ||
return accept(viewer); | ||
}; | ||
this.append(viewer); | ||
}); | ||
}); | ||
@@ -190,9 +193,10 @@ } | ||
} | ||
viewer.onload = () => { | ||
return accept(viewer); | ||
}; | ||
this.append(viewer); | ||
this._element = viewer; | ||
this._state = plattar_controller_1.ControllerState.Renderer; | ||
return; | ||
return new Promise((accept, reject) => { | ||
viewer.onload = () => { | ||
return accept(viewer); | ||
}; | ||
this.append(viewer); | ||
}); | ||
} | ||
@@ -199,0 +203,0 @@ return reject(new Error("ProductController.startRenderer() - minimum required attributes not set, use scene-id as a minimum")); |
@@ -1,2 +0,2 @@ | ||
declare const _default: "1.167.12"; | ||
declare const _default: "1.167.13"; | ||
export default _default; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = "1.167.12"; | ||
exports.default = "1.167.13"; |
{ | ||
"name": "@plattar/plattar-ar-adapter", | ||
"version": "1.167.12", | ||
"version": "1.167.13", | ||
"description": "Plattar AR Adapter for interfacing with Google & Apple WebAR", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1787832
0.05%25345
0.05%