Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelle committed Nov 12, 2023
1 parent 16d114b commit df14fac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scene/Scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,3 +338,6 @@ class Scene {
}

export default Scene;

// @ts-ignore
window.Scene = Scene;
1 change: 1 addition & 0 deletions src/scene/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const SVG_EXPORT_TAG = `<!-- svg-source:excalidraw -->`;
const __createSceneForElementsHack__ = (
elements: readonly ExcalidrawElement[],
) => {
console.warn("__createSceneForElementsHack__");
const scene = new Scene();
// we can't duplicate elements to regenerate ids because we need the
// orig ids when embedding. So we do another hack of not mapping element
Expand Down

0 comments on commit df14fac

Please sign in to comment.