@openreplay/tracker 17.1.5 → 17.2.1
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/cjs/entry.js +277 -844
- package/dist/cjs/entry.js.map +1 -1
- package/dist/cjs/index.js +277 -844
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/main/app/canvas.d.ts +11 -0
- package/dist/lib/entry.js +277 -844
- package/dist/lib/entry.js.map +1 -1
- package/dist/lib/index.js +277 -844
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/main/app/canvas.d.ts +11 -0
- package/dist/types/main/app/canvas.d.ts +11 -0
- package/package.json +11 -12
|
@@ -5,6 +5,8 @@ interface Options {
|
|
|
5
5
|
isDebug?: boolean;
|
|
6
6
|
fixedScaling?: boolean;
|
|
7
7
|
useAnimationFrame?: boolean;
|
|
8
|
+
framesSupport?: boolean;
|
|
9
|
+
/** @deprecated webp is the default format for pipeline optimization */
|
|
8
10
|
fileExt?: 'webp' | 'png' | 'jpeg' | 'avif';
|
|
9
11
|
}
|
|
10
12
|
declare class CanvasRecorder {
|
|
@@ -12,8 +14,14 @@ declare class CanvasRecorder {
|
|
|
12
14
|
private readonly options;
|
|
13
15
|
private snapshots;
|
|
14
16
|
private readonly intervals;
|
|
17
|
+
private readonly observers;
|
|
15
18
|
private readonly interval;
|
|
16
19
|
private readonly fileExt;
|
|
20
|
+
private uploadQueue;
|
|
21
|
+
private readonly MAX_CONCURRENT_UPLOADS;
|
|
22
|
+
private readonly MAX_QUEUE_SIZE;
|
|
23
|
+
private readonly pendingBatches;
|
|
24
|
+
private isProcessingQueue;
|
|
17
25
|
constructor(app: App, options: Options);
|
|
18
26
|
startTracking(): void;
|
|
19
27
|
restartTracking: () => void;
|
|
@@ -23,6 +31,9 @@ declare class CanvasRecorder {
|
|
|
23
31
|
data: Blob;
|
|
24
32
|
id: number;
|
|
25
33
|
}[], canvasId: number, createdAt: number): void;
|
|
34
|
+
private processUploadQueue;
|
|
35
|
+
private uploadBatch;
|
|
36
|
+
private cleanupCanvas;
|
|
26
37
|
clear(): void;
|
|
27
38
|
}
|
|
28
39
|
export default CanvasRecorder;
|