shopar-plugin 0.7.5 → 0.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/deepar/README.md +21 -0
- package/dist/deepar/VERSION.txt +1 -1
- package/dist/deepar/js/deepar.esm.js +1 -1
- package/dist/deepar/js/deepar.js +1 -1
- package/dist/deepar/js/dynamicModules/xzimg.js +1 -1
- package/dist/deepar/js/types/DeepAR.d.ts +1 -1
- package/dist/deepar/js/types/canvasHelper.d.ts +2 -2
- package/dist/deepar/js/types/initParams.d.ts +5 -0
- package/dist/deepar/js/types/version.d.ts +1 -1
- package/dist/deepar/package.json +1 -1
- package/dist/deepar/wasm/deepar.wasm +0 -0
- package/dist/deepar/wasm/dyArcoreScripting.wasm +0 -0
- package/dist/shopar-deepar.js +1 -1
- package/dist/shopar-plugin.esm.js +1 -1
- package/dist/shopar-plugin.js +1 -1
- package/dist/shopar-qr.js +1 -1
- package/package.json +1 -1
|
@@ -205,7 +205,7 @@ export declare class DeepAR {
|
|
|
205
205
|
*
|
|
206
206
|
* @param newPreviewElement The previewElement to change to.
|
|
207
207
|
*/
|
|
208
|
-
changePreviewElement(newPreviewElement: HTMLElement): void;
|
|
208
|
+
changePreviewElement(newPreviewElement: HTMLElement, pixelRatio?: number): void;
|
|
209
209
|
/**
|
|
210
210
|
* Shutdown the DeepAR SDK and release all resources associated with it. It is invalid to call any function from this {@link DeepAR} object after shutdown.
|
|
211
211
|
* After shutdown call, it is possible to call {@link initialize} again.
|
|
@@ -10,11 +10,11 @@ declare const postRenderUpdate: () => void;
|
|
|
10
10
|
* Creates a canvas and appends it to the target element.
|
|
11
11
|
* @param previewElement
|
|
12
12
|
*/
|
|
13
|
-
declare function createCanvas(previewElement: HTMLElement): HTMLCanvasElement;
|
|
13
|
+
declare function createCanvas(previewElement: HTMLElement, pixelRatio: number): HTMLCanvasElement;
|
|
14
14
|
/**
|
|
15
15
|
* Removes the created canvas and invalidates the current context.
|
|
16
16
|
*/
|
|
17
17
|
declare function invalidate(): void;
|
|
18
|
-
declare function changePreviewElement(newPreviewElement: HTMLElement): void;
|
|
18
|
+
declare function changePreviewElement(newPreviewElement: HTMLElement, pixelRatio: number): void;
|
|
19
19
|
declare function isPreviewElementUsed(): boolean;
|
|
20
20
|
export { preRenderUpdate, postRenderUpdate, createCanvas, invalidate, changePreviewElement, isPreviewElementUsed };
|
|
@@ -297,6 +297,11 @@ export interface DeepARParams {
|
|
|
297
297
|
* Tone mapping.
|
|
298
298
|
*/
|
|
299
299
|
toneMapping?: ToneMapping;
|
|
300
|
+
/**
|
|
301
|
+
* Pixel ratio used for scaling the canvas.
|
|
302
|
+
* By default, SDK uses min(window.devicePixelRatio, 2).
|
|
303
|
+
*/
|
|
304
|
+
pixelRatio?: number;
|
|
300
305
|
/**
|
|
301
306
|
* @internal
|
|
302
307
|
*/
|
package/dist/deepar/package.json
CHANGED
|
Binary file
|
|
Binary file
|