forked from rrweb-io/rrweb
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref(rrweb): allow multi touch gestures to be shown for mobile replays
- Loading branch information
1 parent
aa9adb5
commit 5f4dfd3
Showing
9 changed files
with
334 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import type { eventWithTime } from '@sentry-internal/rrweb-types'; | ||
import _Player from './Player.svelte'; | ||
type PlayerProps = { | ||
events: eventWithTime[]; | ||
}; | ||
declare class Player extends _Player { | ||
constructor(options: { | ||
target: Element; | ||
props: PlayerProps; | ||
data?: PlayerProps; | ||
}); | ||
} | ||
export default Player; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
declare global { | ||
interface Document { | ||
mozExitFullscreen: Document['exitFullscreen']; | ||
webkitExitFullscreen: Document['exitFullscreen']; | ||
msExitFullscreen: Document['exitFullscreen']; | ||
webkitIsFullScreen: Document['fullscreen']; | ||
mozFullScreen: Document['fullscreen']; | ||
msFullscreenElement: Document['fullscreen']; | ||
} | ||
interface HTMLElement { | ||
mozRequestFullScreen: Element['requestFullscreen']; | ||
webkitRequestFullscreen: Element['requestFullscreen']; | ||
msRequestFullscreen: Element['requestFullscreen']; | ||
} | ||
} | ||
import type { eventWithTime } from '@sentry-internal/rrweb-types'; | ||
export declare function inlineCss(cssObj: Record<string, string>): string; | ||
export declare function formatTime(ms: number): string; | ||
export declare function openFullscreen(el: HTMLElement): Promise<void>; | ||
export declare function exitFullscreen(): Promise<void>; | ||
export declare function isFullscreen(): boolean; | ||
export declare function onFullscreenChange(handler: () => unknown): () => void; | ||
export declare function typeOf(obj: unknown): 'boolean' | 'number' | 'string' | 'function' | 'array' | 'date' | 'regExp' | 'undefined' | 'null' | 'object'; | ||
/** | ||
* Get periods of time when no user interaction happened from a list of events. | ||
* @param events - all events | ||
* @param inactivePeriodThreshold - threshold of inactive time in milliseconds | ||
* @returns periods of time consist with [start time, end time] | ||
*/ | ||
export declare function getInactivePeriods(events: eventWithTime[], inactivePeriodThreshold: number): [number, number][]; |
Oops, something went wrong.