File tree Expand file tree Collapse file tree 3 files changed +209
-179
lines changed Expand file tree Collapse file tree 3 files changed +209
-179
lines changed Original file line number Diff line number Diff line change @@ -331,6 +331,7 @@ function record<T = eventWithTime>(
331331 blockSelector,
332332 mirror,
333333 sampling : sampling ?. canvas ?. fps ,
334+ samplingManual : sampling ?. canvas ?. fpsManual ,
334335 clearWebGLBuffer : sampling ?. canvas ?. clearWebGLBuffer ,
335336 initialSnapshotDelay : sampling ?. canvas ?. initialSnapshotDelay ,
336337 dataURLOptions,
@@ -669,6 +670,13 @@ record.takeFullSnapshot = (isCheckout?: boolean) => {
669670 takeFullSnapshot ( isCheckout ) ;
670671} ;
671672
673+ record . snapshotCanvas = async ( element : HTMLCanvasElement ) => {
674+ if ( ! canvasManager ) {
675+ throw new Error ( 'canvas manager is not initialized' ) ;
676+ }
677+ await canvasManager . snapshot ( element ) ;
678+ } ;
679+
672680record . mirror = mirror ;
673681
674682export default record ;
You can’t perform that action at this time.
0 commit comments