@highlight-run/rrweb 2.0.1 → 2.0.4
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/plugins/console-record.js +408 -609
- package/dist/plugins/console-record.min.js +12 -15
- package/dist/plugins/console-record.min.js.map +1 -1
- package/dist/plugins/console-replay.js +142 -271
- package/dist/plugins/console-replay.min.js +4 -15
- package/dist/plugins/console-replay.min.js.map +1 -1
- package/dist/plugins/sequential-id-record.js +23 -26
- package/dist/plugins/sequential-id-record.min.js +1 -1
- package/dist/plugins/sequential-id-record.min.js.map +1 -1
- package/dist/plugins/sequential-id-replay.js +26 -30
- package/dist/plugins/sequential-id-replay.min.js +1 -1
- package/dist/plugins/sequential-id-replay.min.js.map +1 -1
- package/dist/record/rrweb-record-pack.js +63 -146
- package/dist/record/rrweb-record-pack.min.js +3 -15
- package/dist/record/rrweb-record-pack.min.js.map +1 -1
- package/dist/record/rrweb-record.js +3002 -3118
- package/dist/record/rrweb-record.min.js +4 -15
- package/dist/record/rrweb-record.min.js.map +1 -1
- package/dist/replay/rrweb-replay-unpack.js +4354 -4054
- package/dist/replay/rrweb-replay-unpack.min.js +5 -17
- package/dist/replay/rrweb-replay-unpack.min.js.map +1 -1
- package/dist/replay/rrweb-replay.js +4286 -3984
- package/dist/replay/rrweb-replay.min.js +5 -17
- package/dist/replay/rrweb-replay.min.js.map +1 -1
- package/dist/rrweb-all.js +7634 -7453
- package/dist/rrweb-all.min.js +16 -17
- package/dist/rrweb-all.min.js.map +1 -1
- package/dist/rrweb.js +7339 -7075
- package/dist/rrweb.min.js +6 -17
- package/dist/rrweb.min.js.map +1 -1
- package/es/rrweb/_virtual/_rollup-plugin-web-worker-loader__helper__auto__createBase64WorkerFactory.js +12 -0
- package/es/rrweb/_virtual/_rollup-plugin-web-worker-loader__helper__auto__isNodeJS.js +7 -0
- package/es/rrweb/_virtual/_rollup-plugin-web-worker-loader__helper__browser__createBase64WorkerFactory.js +31 -0
- package/es/rrweb/_virtual/_rollup-plugin-web-worker-loader__helper__node__WorkerClass.js +11 -0
- package/es/rrweb/_virtual/_rollup-plugin-web-worker-loader__helper__node__createBase64WorkerFactory.js +18 -0
- package/es/rrweb/_virtual/image-bitmap-data-url-worker.js +6 -0
- package/es/rrweb/ext/mitt/dist/mitt.es.js +1 -1
- package/es/rrweb/ext/tslib/tslib.es6.js +38 -0
- package/es/rrweb/packages/rrdom/es/virtual-dom.js +1099 -0
- package/es/rrweb/packages/rrweb/src/index.js +6 -4
- package/es/rrweb/packages/rrweb/src/packer/base.js +1 -1
- package/es/rrweb/packages/rrweb/src/packer/pack.js +4 -5
- package/es/rrweb/packages/rrweb/src/packer/unpack.js +24 -24
- package/es/rrweb/packages/rrweb/src/plugins/console/record/error-stack-parser.js +175 -176
- package/es/rrweb/packages/rrweb/src/plugins/console/record/index.js +109 -128
- package/es/rrweb/packages/rrweb/src/plugins/console/record/stringify.js +125 -138
- package/es/rrweb/packages/rrweb/src/plugins/console/replay/index.js +88 -105
- package/es/rrweb/packages/rrweb/src/plugins/sequential-id/record/index.js +19 -20
- package/es/rrweb/packages/rrweb/src/plugins/sequential-id/replay/index.js +25 -25
- package/es/rrweb/packages/rrweb/src/record/iframe-manager.js +29 -30
- package/es/rrweb/packages/rrweb/src/record/index.js +348 -373
- package/es/rrweb/packages/rrweb/src/record/mutation.js +487 -528
- package/es/rrweb/packages/rrweb/src/record/observer.js +584 -659
- package/es/rrweb/packages/rrweb/src/record/observers/canvas/2d.js +44 -73
- package/es/rrweb/packages/rrweb/src/record/observers/canvas/canvas-manager.js +166 -87
- package/es/rrweb/packages/rrweb/src/record/observers/canvas/canvas.js +21 -26
- package/es/rrweb/packages/rrweb/src/record/observers/canvas/serialize-args.js +119 -112
- package/es/rrweb/packages/rrweb/src/record/observers/canvas/webgl.js +53 -72
- package/es/rrweb/packages/rrweb/src/record/shadow-dom-manager.js +38 -40
- package/es/rrweb/packages/rrweb/src/record/stylesheet-manager.js +31 -0
- package/es/rrweb/packages/rrweb/src/replay/canvas/2d.js +27 -23
- package/es/rrweb/packages/rrweb/src/replay/canvas/deserialize-args.js +67 -0
- package/es/rrweb/packages/rrweb/src/replay/canvas/index.js +37 -29
- package/es/rrweb/packages/rrweb/src/replay/canvas/webgl.js +58 -120
- package/es/rrweb/packages/rrweb/src/replay/index.js +1545 -1854
- package/es/rrweb/packages/rrweb/src/replay/machine.js +275 -315
- package/es/rrweb/packages/rrweb/src/replay/smoothscroll.js +216 -218
- package/es/rrweb/packages/rrweb/src/replay/styles/inject-style.js +7 -7
- package/es/rrweb/packages/rrweb/src/replay/timer.js +87 -91
- package/es/rrweb/packages/rrweb/src/types.js +72 -72
- package/es/rrweb/packages/rrweb/src/utils.js +312 -506
- package/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js +195 -71
- package/lib/plugins/console-record.js +469 -627
- package/lib/plugins/console-replay.js +198 -268
- package/lib/plugins/sequential-id-record.js +19 -20
- package/lib/plugins/sequential-id-replay.js +25 -25
- package/lib/record/rrweb-record-pack.js +184 -139
- package/lib/record/rrweb-record.js +2473 -2425
- package/lib/replay/rrweb-replay-unpack.js +3797 -3343
- package/lib/replay/rrweb-replay.js +3742 -3288
- package/lib/rrweb-all.js +6725 -6247
- package/lib/rrweb.js +6157 -5632
- package/package.json +14 -13
- package/typings/packer/base.d.ts +1 -1
- package/typings/plugins/console/record/index.d.ts +1 -1
- package/typings/plugins/console/record/stringify.d.ts +1 -1
- package/typings/plugins/sequential-id/record/index.d.ts +1 -1
- package/typings/plugins/sequential-id/replay/index.d.ts +1 -1
- package/typings/record/iframe-manager.d.ts +3 -3
- package/typings/record/index.d.ts +1 -1
- package/typings/record/mutation.d.ts +2 -1
- package/typings/record/observers/canvas/2d.d.ts +2 -1
- package/typings/record/observers/canvas/canvas-manager.d.ts +5 -2
- package/typings/record/observers/canvas/canvas.d.ts +1 -1
- package/typings/record/observers/canvas/serialize-args.d.ts +5 -5
- package/typings/record/observers/canvas/webgl.d.ts +2 -1
- package/typings/record/shadow-dom-manager.d.ts +2 -1
- package/typings/record/stylesheet-manager.d.ts +12 -0
- package/typings/record/workers/image-bitmap-data-url-worker.d.ts +5 -0
- package/typings/replay/canvas/2d.d.ts +3 -3
- package/typings/replay/canvas/deserialize-args.d.ts +7 -0
- package/typings/replay/canvas/index.d.ts +4 -3
- package/typings/replay/canvas/webgl.d.ts +3 -5
- package/typings/replay/index.d.ts +7 -10
- package/typings/types.d.ts +45 -17
- package/typings/utils.d.ts +17 -44
- package/dist/replay/rrweb-replay-unpack.min.css +0 -2
- package/dist/replay/rrweb-replay-unpack.min.css.map +0 -1
- package/dist/replay/rrweb-replay.min.css +0 -2
- package/dist/replay/rrweb-replay.min.css.map +0 -1
- package/dist/rrweb-all.min.css +0 -2
- package/dist/rrweb-all.min.css.map +0 -1
- package/dist/rrweb.min.css +0 -2
- package/dist/rrweb.min.css.map +0 -1
- package/es/rrweb/packages/rrweb/ext/tslib/tslib.es6.js +0 -78
- package/es/rrweb/packages/rrweb/src/replay/virtual-styles.js +0 -121
- package/typings/replay/virtual-styles.d.ts +0 -43
|
@@ -1,96 +1,92 @@
|
|
|
1
|
-
import { __spreadArray, __read } from '../../ext/tslib/tslib.es6.js';
|
|
2
1
|
import { EventType, IncrementalSource } from '../types.js';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
this.
|
|
8
|
-
this.
|
|
9
|
-
this.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
event.
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
event.delay = event.timestamp - baselineTime;
|
|
93
|
-
return event.delay;
|
|
3
|
+
class Timer {
|
|
4
|
+
constructor(actions = [], speed) {
|
|
5
|
+
this.timeOffset = 0;
|
|
6
|
+
this.raf = null;
|
|
7
|
+
this.actions = actions;
|
|
8
|
+
this.speed = speed;
|
|
9
|
+
}
|
|
10
|
+
addAction(action) {
|
|
11
|
+
const index = this.findActionIndex(action);
|
|
12
|
+
this.actions.splice(index, 0, action);
|
|
13
|
+
}
|
|
14
|
+
addActions(actions) {
|
|
15
|
+
this.actions = this.actions.concat(actions);
|
|
16
|
+
}
|
|
17
|
+
replaceActions(actions) {
|
|
18
|
+
this.actions.length = 0;
|
|
19
|
+
this.actions.splice(0, 0, ...actions);
|
|
20
|
+
}
|
|
21
|
+
start() {
|
|
22
|
+
this.timeOffset = 0;
|
|
23
|
+
let lastTimestamp = performance.now();
|
|
24
|
+
const { actions } = this;
|
|
25
|
+
const self = this;
|
|
26
|
+
function check() {
|
|
27
|
+
const time = performance.now();
|
|
28
|
+
self.timeOffset += (time - lastTimestamp) * self.speed;
|
|
29
|
+
lastTimestamp = time;
|
|
30
|
+
while (actions.length) {
|
|
31
|
+
const action = actions[0];
|
|
32
|
+
if (self.timeOffset >= action.delay) {
|
|
33
|
+
actions.shift();
|
|
34
|
+
action.doAction();
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
if (actions.length > 0 || self.liveMode) {
|
|
41
|
+
self.raf = requestAnimationFrame(check);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
this.raf = requestAnimationFrame(check);
|
|
45
|
+
}
|
|
46
|
+
clear() {
|
|
47
|
+
if (this.raf) {
|
|
48
|
+
cancelAnimationFrame(this.raf);
|
|
49
|
+
this.raf = null;
|
|
50
|
+
}
|
|
51
|
+
this.actions.length = 0;
|
|
52
|
+
}
|
|
53
|
+
setSpeed(speed) {
|
|
54
|
+
this.speed = speed;
|
|
55
|
+
}
|
|
56
|
+
toggleLiveMode(mode) {
|
|
57
|
+
this.liveMode = mode;
|
|
58
|
+
}
|
|
59
|
+
isActive() {
|
|
60
|
+
return this.raf !== null;
|
|
61
|
+
}
|
|
62
|
+
findActionIndex(action) {
|
|
63
|
+
let start = 0;
|
|
64
|
+
let end = this.actions.length - 1;
|
|
65
|
+
while (start <= end) {
|
|
66
|
+
const mid = Math.floor((start + end) / 2);
|
|
67
|
+
if (this.actions[mid].delay < action.delay) {
|
|
68
|
+
start = mid + 1;
|
|
69
|
+
}
|
|
70
|
+
else if (this.actions[mid].delay > action.delay) {
|
|
71
|
+
end = mid - 1;
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
return mid + 1;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return start;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
function addDelay(event, baselineTime) {
|
|
81
|
+
if (event.type === EventType.IncrementalSnapshot &&
|
|
82
|
+
event.data.source === IncrementalSource.MouseMove) {
|
|
83
|
+
const firstOffset = event.data.positions[0].timeOffset;
|
|
84
|
+
const firstTimestamp = event.timestamp + firstOffset;
|
|
85
|
+
event.delay = firstTimestamp - baselineTime;
|
|
86
|
+
return firstTimestamp - baselineTime;
|
|
87
|
+
}
|
|
88
|
+
event.delay = event.timestamp - baselineTime;
|
|
89
|
+
return event.delay;
|
|
94
90
|
}
|
|
95
91
|
|
|
96
92
|
export { Timer, addDelay };
|
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
var EventType;
|
|
2
|
-
(function (EventType) {
|
|
3
|
-
EventType[EventType["DomContentLoaded"] = 0] = "DomContentLoaded";
|
|
4
|
-
EventType[EventType["Load"] = 1] = "Load";
|
|
5
|
-
EventType[EventType["FullSnapshot"] = 2] = "FullSnapshot";
|
|
6
|
-
EventType[EventType["IncrementalSnapshot"] = 3] = "IncrementalSnapshot";
|
|
7
|
-
EventType[EventType["Meta"] = 4] = "Meta";
|
|
8
|
-
EventType[EventType["Custom"] = 5] = "Custom";
|
|
9
|
-
EventType[EventType["Plugin"] = 6] = "Plugin";
|
|
10
|
-
})(EventType || (EventType = {}));
|
|
11
|
-
var IncrementalSource;
|
|
12
|
-
(function (IncrementalSource) {
|
|
13
|
-
IncrementalSource[IncrementalSource["Mutation"] = 0] = "Mutation";
|
|
14
|
-
IncrementalSource[IncrementalSource["MouseMove"] = 1] = "MouseMove";
|
|
15
|
-
IncrementalSource[IncrementalSource["MouseInteraction"] = 2] = "MouseInteraction";
|
|
16
|
-
IncrementalSource[IncrementalSource["Scroll"] = 3] = "Scroll";
|
|
17
|
-
IncrementalSource[IncrementalSource["ViewportResize"] = 4] = "ViewportResize";
|
|
18
|
-
IncrementalSource[IncrementalSource["Input"] = 5] = "Input";
|
|
19
|
-
IncrementalSource[IncrementalSource["TouchMove"] = 6] = "TouchMove";
|
|
20
|
-
IncrementalSource[IncrementalSource["MediaInteraction"] = 7] = "MediaInteraction";
|
|
21
|
-
IncrementalSource[IncrementalSource["StyleSheetRule"] = 8] = "StyleSheetRule";
|
|
22
|
-
IncrementalSource[IncrementalSource["CanvasMutation"] = 9] = "CanvasMutation";
|
|
23
|
-
IncrementalSource[IncrementalSource["Font"] = 10] = "Font";
|
|
24
|
-
IncrementalSource[IncrementalSource["Log"] = 11] = "Log";
|
|
25
|
-
IncrementalSource[IncrementalSource["Drag"] = 12] = "Drag";
|
|
26
|
-
IncrementalSource[IncrementalSource["StyleDeclaration"] = 13] = "StyleDeclaration";
|
|
27
|
-
})(IncrementalSource || (IncrementalSource = {}));
|
|
28
|
-
var MouseInteractions;
|
|
29
|
-
(function (MouseInteractions) {
|
|
30
|
-
MouseInteractions[MouseInteractions["MouseUp"] = 0] = "MouseUp";
|
|
31
|
-
MouseInteractions[MouseInteractions["MouseDown"] = 1] = "MouseDown";
|
|
32
|
-
MouseInteractions[MouseInteractions["Click"] = 2] = "Click";
|
|
33
|
-
MouseInteractions[MouseInteractions["ContextMenu"] = 3] = "ContextMenu";
|
|
34
|
-
MouseInteractions[MouseInteractions["DblClick"] = 4] = "DblClick";
|
|
35
|
-
MouseInteractions[MouseInteractions["Focus"] = 5] = "Focus";
|
|
36
|
-
MouseInteractions[MouseInteractions["Blur"] = 6] = "Blur";
|
|
37
|
-
MouseInteractions[MouseInteractions["TouchStart"] = 7] = "TouchStart";
|
|
38
|
-
MouseInteractions[MouseInteractions["TouchMove_Departed"] = 8] = "TouchMove_Departed";
|
|
39
|
-
MouseInteractions[MouseInteractions["TouchEnd"] = 9] = "TouchEnd";
|
|
40
|
-
MouseInteractions[MouseInteractions["TouchCancel"] = 10] = "TouchCancel";
|
|
41
|
-
})(MouseInteractions || (MouseInteractions = {}));
|
|
42
|
-
var CanvasContext;
|
|
43
|
-
(function (CanvasContext) {
|
|
44
|
-
CanvasContext[CanvasContext["2D"] = 0] = "2D";
|
|
45
|
-
CanvasContext[CanvasContext["WebGL"] = 1] = "WebGL";
|
|
46
|
-
CanvasContext[CanvasContext["WebGL2"] = 2] = "WebGL2";
|
|
47
|
-
})(CanvasContext || (CanvasContext = {}));
|
|
48
|
-
var MediaInteractions;
|
|
49
|
-
(function (MediaInteractions) {
|
|
50
|
-
MediaInteractions[MediaInteractions["Play"] = 0] = "Play";
|
|
51
|
-
MediaInteractions[MediaInteractions["Pause"] = 1] = "Pause";
|
|
52
|
-
MediaInteractions[MediaInteractions["Seeked"] = 2] = "Seeked";
|
|
53
|
-
MediaInteractions[MediaInteractions["VolumeChange"] = 3] = "VolumeChange";
|
|
54
|
-
})(MediaInteractions || (MediaInteractions = {}));
|
|
55
|
-
var ReplayerEvents;
|
|
56
|
-
(function (ReplayerEvents) {
|
|
57
|
-
ReplayerEvents["Start"] = "start";
|
|
58
|
-
ReplayerEvents["Pause"] = "pause";
|
|
59
|
-
ReplayerEvents["Resume"] = "resume";
|
|
60
|
-
ReplayerEvents["Resize"] = "resize";
|
|
61
|
-
ReplayerEvents["Finish"] = "finish";
|
|
62
|
-
ReplayerEvents["FullsnapshotRebuilded"] = "fullsnapshot-rebuilded";
|
|
63
|
-
ReplayerEvents["LoadStylesheetStart"] = "load-stylesheet-start";
|
|
64
|
-
ReplayerEvents["LoadStylesheetEnd"] = "load-stylesheet-end";
|
|
65
|
-
ReplayerEvents["SkipStart"] = "skip-start";
|
|
66
|
-
ReplayerEvents["SkipEnd"] = "skip-end";
|
|
67
|
-
ReplayerEvents["MouseInteraction"] = "mouse-interaction";
|
|
68
|
-
ReplayerEvents["EventCast"] = "event-cast";
|
|
69
|
-
ReplayerEvents["CustomEvent"] = "custom-event";
|
|
70
|
-
ReplayerEvents["Flush"] = "flush";
|
|
71
|
-
ReplayerEvents["StateChange"] = "state-change";
|
|
72
|
-
ReplayerEvents["PlayBack"] = "play-back";
|
|
1
|
+
var EventType;
|
|
2
|
+
(function (EventType) {
|
|
3
|
+
EventType[EventType["DomContentLoaded"] = 0] = "DomContentLoaded";
|
|
4
|
+
EventType[EventType["Load"] = 1] = "Load";
|
|
5
|
+
EventType[EventType["FullSnapshot"] = 2] = "FullSnapshot";
|
|
6
|
+
EventType[EventType["IncrementalSnapshot"] = 3] = "IncrementalSnapshot";
|
|
7
|
+
EventType[EventType["Meta"] = 4] = "Meta";
|
|
8
|
+
EventType[EventType["Custom"] = 5] = "Custom";
|
|
9
|
+
EventType[EventType["Plugin"] = 6] = "Plugin";
|
|
10
|
+
})(EventType || (EventType = {}));
|
|
11
|
+
var IncrementalSource;
|
|
12
|
+
(function (IncrementalSource) {
|
|
13
|
+
IncrementalSource[IncrementalSource["Mutation"] = 0] = "Mutation";
|
|
14
|
+
IncrementalSource[IncrementalSource["MouseMove"] = 1] = "MouseMove";
|
|
15
|
+
IncrementalSource[IncrementalSource["MouseInteraction"] = 2] = "MouseInteraction";
|
|
16
|
+
IncrementalSource[IncrementalSource["Scroll"] = 3] = "Scroll";
|
|
17
|
+
IncrementalSource[IncrementalSource["ViewportResize"] = 4] = "ViewportResize";
|
|
18
|
+
IncrementalSource[IncrementalSource["Input"] = 5] = "Input";
|
|
19
|
+
IncrementalSource[IncrementalSource["TouchMove"] = 6] = "TouchMove";
|
|
20
|
+
IncrementalSource[IncrementalSource["MediaInteraction"] = 7] = "MediaInteraction";
|
|
21
|
+
IncrementalSource[IncrementalSource["StyleSheetRule"] = 8] = "StyleSheetRule";
|
|
22
|
+
IncrementalSource[IncrementalSource["CanvasMutation"] = 9] = "CanvasMutation";
|
|
23
|
+
IncrementalSource[IncrementalSource["Font"] = 10] = "Font";
|
|
24
|
+
IncrementalSource[IncrementalSource["Log"] = 11] = "Log";
|
|
25
|
+
IncrementalSource[IncrementalSource["Drag"] = 12] = "Drag";
|
|
26
|
+
IncrementalSource[IncrementalSource["StyleDeclaration"] = 13] = "StyleDeclaration";
|
|
27
|
+
})(IncrementalSource || (IncrementalSource = {}));
|
|
28
|
+
var MouseInteractions;
|
|
29
|
+
(function (MouseInteractions) {
|
|
30
|
+
MouseInteractions[MouseInteractions["MouseUp"] = 0] = "MouseUp";
|
|
31
|
+
MouseInteractions[MouseInteractions["MouseDown"] = 1] = "MouseDown";
|
|
32
|
+
MouseInteractions[MouseInteractions["Click"] = 2] = "Click";
|
|
33
|
+
MouseInteractions[MouseInteractions["ContextMenu"] = 3] = "ContextMenu";
|
|
34
|
+
MouseInteractions[MouseInteractions["DblClick"] = 4] = "DblClick";
|
|
35
|
+
MouseInteractions[MouseInteractions["Focus"] = 5] = "Focus";
|
|
36
|
+
MouseInteractions[MouseInteractions["Blur"] = 6] = "Blur";
|
|
37
|
+
MouseInteractions[MouseInteractions["TouchStart"] = 7] = "TouchStart";
|
|
38
|
+
MouseInteractions[MouseInteractions["TouchMove_Departed"] = 8] = "TouchMove_Departed";
|
|
39
|
+
MouseInteractions[MouseInteractions["TouchEnd"] = 9] = "TouchEnd";
|
|
40
|
+
MouseInteractions[MouseInteractions["TouchCancel"] = 10] = "TouchCancel";
|
|
41
|
+
})(MouseInteractions || (MouseInteractions = {}));
|
|
42
|
+
var CanvasContext;
|
|
43
|
+
(function (CanvasContext) {
|
|
44
|
+
CanvasContext[CanvasContext["2D"] = 0] = "2D";
|
|
45
|
+
CanvasContext[CanvasContext["WebGL"] = 1] = "WebGL";
|
|
46
|
+
CanvasContext[CanvasContext["WebGL2"] = 2] = "WebGL2";
|
|
47
|
+
})(CanvasContext || (CanvasContext = {}));
|
|
48
|
+
var MediaInteractions;
|
|
49
|
+
(function (MediaInteractions) {
|
|
50
|
+
MediaInteractions[MediaInteractions["Play"] = 0] = "Play";
|
|
51
|
+
MediaInteractions[MediaInteractions["Pause"] = 1] = "Pause";
|
|
52
|
+
MediaInteractions[MediaInteractions["Seeked"] = 2] = "Seeked";
|
|
53
|
+
MediaInteractions[MediaInteractions["VolumeChange"] = 3] = "VolumeChange";
|
|
54
|
+
})(MediaInteractions || (MediaInteractions = {}));
|
|
55
|
+
var ReplayerEvents;
|
|
56
|
+
(function (ReplayerEvents) {
|
|
57
|
+
ReplayerEvents["Start"] = "start";
|
|
58
|
+
ReplayerEvents["Pause"] = "pause";
|
|
59
|
+
ReplayerEvents["Resume"] = "resume";
|
|
60
|
+
ReplayerEvents["Resize"] = "resize";
|
|
61
|
+
ReplayerEvents["Finish"] = "finish";
|
|
62
|
+
ReplayerEvents["FullsnapshotRebuilded"] = "fullsnapshot-rebuilded";
|
|
63
|
+
ReplayerEvents["LoadStylesheetStart"] = "load-stylesheet-start";
|
|
64
|
+
ReplayerEvents["LoadStylesheetEnd"] = "load-stylesheet-end";
|
|
65
|
+
ReplayerEvents["SkipStart"] = "skip-start";
|
|
66
|
+
ReplayerEvents["SkipEnd"] = "skip-end";
|
|
67
|
+
ReplayerEvents["MouseInteraction"] = "mouse-interaction";
|
|
68
|
+
ReplayerEvents["EventCast"] = "event-cast";
|
|
69
|
+
ReplayerEvents["CustomEvent"] = "custom-event";
|
|
70
|
+
ReplayerEvents["Flush"] = "flush";
|
|
71
|
+
ReplayerEvents["StateChange"] = "state-change";
|
|
72
|
+
ReplayerEvents["PlayBack"] = "play-back";
|
|
73
73
|
})(ReplayerEvents || (ReplayerEvents = {}));
|
|
74
74
|
|
|
75
75
|
export { CanvasContext, EventType, IncrementalSource, MediaInteractions, MouseInteractions, ReplayerEvents };
|