Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
c298lee committed Jan 10, 2024
1 parent 0a46b70 commit c9136d5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/replay-canvas/src/canvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ const replayCanvasIntegration = ((options: Partial<ReplayCanvasOptions> = {}) =>
};
}) satisfies IntegrationFn;

/**
* Manually snapshot webgl/3d canvas
*/
export function snapshot(canvasElement: HTMLCanvasElement): void {
replayCanvasIntegration().getOptions().getCanvasManager().snapshot(canvasElement);
}

// TODO(v8)
// eslint-disable-next-line deprecation/deprecation
export const ReplayCanvas = convertIntegrationFnToClass(INTEGRATION_NAME, replayCanvasIntegration);

0 comments on commit c9136d5

Please sign in to comment.