Skip to content

Commit

Permalink
feat: Remove getCanvasManager, export CanvasManager class directly
Browse files Browse the repository at this point in the history
This simplifies the code a bit by exporting the CanvasManager directly. With [ReplayCanvas](getsentry/sentry-javascript#10112), we can rely on it for complex setup, but keeps it simple for our users.
  • Loading branch information
billyvg committed Jan 9, 2024
1 parent 0a3bfe5 commit 29b2d3a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/rrweb/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ export { record, Replayer, utils, canvasMutation };

export { deserializeArg } from './replay/canvas/deserialize-args';

export { takeFullSnapshot, mirror, freezePage, addCustomEvent } from './record';
export {
takeFullSnapshot,
mirror,
freezePage,
addCustomEvent,
} from './record';

export { CanvasManager } from './record/observers/canvas/canvas-manager';
export type { CanvasManagerConstructorOptions } from './record/observers/canvas/canvas-manager';

0 comments on commit 29b2d3a

Please sign in to comment.