shopar-plugin 0.8.10-alpha.6 → 0.9.0-alpha.0
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/dist/shopar-plugin.d.ts
CHANGED
|
@@ -173,6 +173,42 @@ type SetupOptions = {
|
|
|
173
173
|
* ]
|
|
174
174
|
*/
|
|
175
175
|
initialAnimation?: KeyFrameConfig[] | string;
|
|
176
|
+
/**
|
|
177
|
+
* If provided, it will be used as the debounce duration for debounced AR engagement tracking.
|
|
178
|
+
*
|
|
179
|
+
* @default 2000
|
|
180
|
+
* @see onDebouncedAREngagement
|
|
181
|
+
*/
|
|
182
|
+
debounceAREngagementMs?: number;
|
|
183
|
+
/**
|
|
184
|
+
* If provided, it will get called with the engagement duration on every (debounced) AR engagement.
|
|
185
|
+
*
|
|
186
|
+
* AR engagement is measured as the time spent by the user virtually trying out the product in AR.
|
|
187
|
+
* The callback is called after engagement stops for the specified debounce duration.
|
|
188
|
+
* Additionally, any outstanding engagement duration is flushed when AR is closed.
|
|
189
|
+
*
|
|
190
|
+
* @param durationMs Engagement duration in milliseconds.
|
|
191
|
+
* @see debounceAREngagementMs
|
|
192
|
+
*/
|
|
193
|
+
onDebouncedAREngagement?: (durationMs: number) => void;
|
|
194
|
+
/**
|
|
195
|
+
* If provided, it will be used as the debounce duration for debounced 3D engagement tracking.
|
|
196
|
+
*
|
|
197
|
+
* @default 2000
|
|
198
|
+
* @see onDebounced3DEngagement
|
|
199
|
+
*/
|
|
200
|
+
debounce3DEngagementMs?: number;
|
|
201
|
+
/**
|
|
202
|
+
* If provided, it will be called with the engagement duration on every (debounced) 3D engagement.
|
|
203
|
+
*
|
|
204
|
+
* 3D engagement is measured as the time spent by the user rotating, panning or zooming the product in 3D.
|
|
205
|
+
* The callback is called after engagement stops for the specified debounce duration.
|
|
206
|
+
* Additionally, any outstanding engagement duration is flushed when 3D is closed.
|
|
207
|
+
*
|
|
208
|
+
* @param durationMs Engagement duration in milliseconds.
|
|
209
|
+
* @see debounce3DEngagementMs
|
|
210
|
+
*/
|
|
211
|
+
onDebounced3DEngagement?: (durationMs: number) => void;
|
|
176
212
|
_internalOptions?: any;
|
|
177
213
|
};
|
|
178
214
|
/**
|