File tree Expand file tree Collapse file tree 3 files changed +186
-173
lines changed Expand file tree Collapse file tree 3 files changed +186
-173
lines changed Original file line number Diff line number Diff line change @@ -323,6 +323,7 @@ function record<T = eventWithTime>(
323323 blockSelector,
324324 mirror,
325325 sampling : sampling ?. canvas ?. fps ,
326+ samplingManual : sampling ?. canvas ?. fpsManual ,
326327 clearWebGLBuffer : sampling ?. canvas ?. clearWebGLBuffer ,
327328 initialSnapshotDelay : sampling ?. canvas ?. initialSnapshotDelay ,
328329 dataURLOptions,
@@ -687,6 +688,13 @@ record.takeFullSnapshot = (isCheckout?: boolean) => {
687688 takeFullSnapshot ( isCheckout ) ;
688689} ;
689690
691+ record . snapshotCanvas = async ( element : HTMLCanvasElement ) => {
692+ if ( ! canvasManager ) {
693+ throw new Error ( 'canvas manager is not initialized' ) ;
694+ }
695+ await canvasManager . snapshot ( element ) ;
696+ } ;
697+
690698record . mirror = mirror ;
691699
692700export default record ;
You can’t perform that action at this time.
0 commit comments