We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a46b70 commit c9136d5Copy full SHA for c9136d5
packages/replay-canvas/src/canvas.ts
@@ -74,6 +74,13 @@ const replayCanvasIntegration = ((options: Partial<ReplayCanvasOptions> = {}) =>
74
};
75
}) satisfies IntegrationFn;
76
77
+/**
78
+ * Manually snapshot webgl/3d canvas
79
+ */
80
+export function snapshot(canvasElement: HTMLCanvasElement): void {
81
+ replayCanvasIntegration().getOptions().getCanvasManager().snapshot(canvasElement);
82
+}
83
+
84
// TODO(v8)
85
// eslint-disable-next-line deprecation/deprecation
86
export const ReplayCanvas = convertIntegrationFnToClass(INTEGRATION_NAME, replayCanvasIntegration);
0 commit comments