Skip to content

Commit

Permalink
expose Scene
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelle committed Nov 22, 2023
1 parent 315ec9d commit e8dbc14
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/scene/Scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class Scene {
// static methods/props
// ---------------------------------------------------------------------------

private static sceneMapByElement = new WeakMap<ExcalidrawElement, Scene>();
private static sceneMapByElement = new Map<ExcalidrawElement, Scene>();
private static sceneMapById = new Map<string, Scene>();

static mapElementToScene(
Expand Down Expand Up @@ -338,3 +338,6 @@ class Scene {
}

export default Scene;

// @ts-ignore
window.Scene = Scene;

0 comments on commit e8dbc14

Please sign in to comment.