@openreplay/tracker 16.3.0 → 16.4.0-beta.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 +4 -4
- package/dist/cjs/entry.js.map +1 -1
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/main/modules/mouse.d.ts +20 -1
- package/dist/lib/entry.js +4 -4
- package/dist/lib/entry.js.map +1 -1
- package/dist/lib/index.js +4 -4
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/main/modules/mouse.d.ts +20 -1
- package/dist/types/main/modules/mouse.d.ts +20 -1
- package/package.json +1 -1
|
@@ -1,11 +1,30 @@
|
|
|
1
1
|
import type App from '../app/index.js';
|
|
2
2
|
export interface MouseHandlerOptions {
|
|
3
3
|
disableClickmaps?: boolean;
|
|
4
|
+
/** minimum length of an optimised selector.
|
|
5
|
+
*
|
|
6
|
+
* body > div > div > p => body > p for example
|
|
7
|
+
*
|
|
8
|
+
* default 2
|
|
9
|
+
* */
|
|
10
|
+
minSelectorDepth?: number;
|
|
11
|
+
/** how many selectors to try before falling back to nth-child selectors
|
|
12
|
+
* performance expensive operation
|
|
13
|
+
*
|
|
14
|
+
* default 1000
|
|
15
|
+
* */
|
|
16
|
+
nthThreshold?: number;
|
|
17
|
+
/**
|
|
18
|
+
* how many tries to optimise and shorten the selector
|
|
19
|
+
*
|
|
20
|
+
* default 10_000
|
|
21
|
+
* */
|
|
22
|
+
maxOptimiseTries?: number;
|
|
4
23
|
/**
|
|
5
24
|
* how many ticks to wait before capturing mouse position
|
|
6
25
|
* (can affect performance)
|
|
7
26
|
* 1 tick = 30ms
|
|
8
|
-
* default 7
|
|
27
|
+
* default 7
|
|
9
28
|
* */
|
|
10
29
|
trackingOffset?: number;
|
|
11
30
|
}
|
|
@@ -1,11 +1,30 @@
|
|
|
1
1
|
import type App from '../app/index.js';
|
|
2
2
|
export interface MouseHandlerOptions {
|
|
3
3
|
disableClickmaps?: boolean;
|
|
4
|
+
/** minimum length of an optimised selector.
|
|
5
|
+
*
|
|
6
|
+
* body > div > div > p => body > p for example
|
|
7
|
+
*
|
|
8
|
+
* default 2
|
|
9
|
+
* */
|
|
10
|
+
minSelectorDepth?: number;
|
|
11
|
+
/** how many selectors to try before falling back to nth-child selectors
|
|
12
|
+
* performance expensive operation
|
|
13
|
+
*
|
|
14
|
+
* default 1000
|
|
15
|
+
* */
|
|
16
|
+
nthThreshold?: number;
|
|
17
|
+
/**
|
|
18
|
+
* how many tries to optimise and shorten the selector
|
|
19
|
+
*
|
|
20
|
+
* default 10_000
|
|
21
|
+
* */
|
|
22
|
+
maxOptimiseTries?: number;
|
|
4
23
|
/**
|
|
5
24
|
* how many ticks to wait before capturing mouse position
|
|
6
25
|
* (can affect performance)
|
|
7
26
|
* 1 tick = 30ms
|
|
8
|
-
* default 7
|
|
27
|
+
* default 7
|
|
9
28
|
* */
|
|
10
29
|
trackingOffset?: number;
|
|
11
30
|
}
|