@gemx-dev/clarity-visualize 0.8.69 → 0.8.70
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/package.json +2 -2
- package/src/visualizer.ts +2 -2
- package/types/index.d.ts +2 -3
- package/types/visualize.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gemx-dev/clarity-visualize",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.70",
|
|
4
4
|
"description": "Clarity visualize",
|
|
5
5
|
"author": "Microsoft Corp.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"unpkg": "build/clarity.visualize.min.js",
|
|
10
10
|
"types": "types/index.d.ts",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@gemx-dev/clarity-decode": "^0.8.
|
|
12
|
+
"@gemx-dev/clarity-decode": "^0.8.70"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@rollup/plugin-commonjs": "^24.0.0",
|
package/src/visualizer.ts
CHANGED
|
@@ -38,7 +38,7 @@ export class Visualizer implements VisualizerType {
|
|
|
38
38
|
return this.layout?.get(hash);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
public shortCircuitRendering = (strategy: ShortCircuitStrategy, domEvent: Layout.DomEvent, hash: string) => {
|
|
42
42
|
switch (strategy) {
|
|
43
43
|
case ShortCircuitStrategy.HashFirstTimestamp:
|
|
44
44
|
return this.layout.exists(hash);
|
|
@@ -154,7 +154,7 @@ export class Visualizer implements VisualizerType {
|
|
|
154
154
|
return merged;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
|
|
157
|
+
public mergeForHtml = (decoded: DecodedData.DecodedPayload[]): MergedPayload => {
|
|
158
158
|
let merged: MergedPayload = { timestamp: null, envelope: null, dom: null, events: [] };
|
|
159
159
|
|
|
160
160
|
decoded = decoded.sort(this.sortPayloads);
|
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MergedPayload, ResizeHandler, Visualize, Visualizer, ShortCircuitStrategy } from "./visualize";
|
|
1
|
+
import { MergedPayload, ResizeHandler, Visualize, Visualizer, ShortCircuitStrategy, Options, PlaybackState, LinkHandler, ErrorLogger, Activity, ScrollMapInfo } from "./visualize";
|
|
2
2
|
import { Data, Diagnostic, Interaction, Layout } from "@gemx-dev/clarity-decode"
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -6,5 +6,4 @@ import { Data, Diagnostic, Interaction, Layout } from "@gemx-dev/clarity-decode"
|
|
|
6
6
|
*/
|
|
7
7
|
declare const visualize: Visualize;
|
|
8
8
|
|
|
9
|
-
export { visualize, Visualizer, Data, Diagnostic, Interaction, Layout, MergedPayload, ResizeHandler, ShortCircuitStrategy };
|
|
10
|
-
|
|
9
|
+
export { visualize, Visualizer, Data, Diagnostic, Interaction, Layout, MergedPayload, ResizeHandler, ShortCircuitStrategy, Options, PlaybackState, LinkHandler, ErrorLogger, Activity, ScrollMapInfo };
|
package/types/visualize.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export interface Visualize {
|
|
|
19
19
|
|
|
20
20
|
export class Visualizer {
|
|
21
21
|
readonly state: PlaybackState;
|
|
22
|
+
renderTime: number;
|
|
22
23
|
dom: (event: Layout.DomEvent) => Promise<void>;
|
|
23
24
|
html: (decoded: Data.DecodedPayload[], target: Window, portalCanvasId?: string, hash?: string, useproxy?: LinkHandler, logerror?: ErrorLogger, shortCircuitStrategy?: ShortCircuitStrategy) => Promise<Visualizer>;
|
|
24
25
|
clickmap: (activity?: Activity) => void;
|