Browse Source

fix package example

ad1992 3 years ago
parent
commit
2e8c4d25f2

+ 0 - 1
src/actions/actionCanvas.tsx

@@ -316,7 +316,6 @@ export const actionErase = register({
         activeTool.lastActiveToolBeforeEraser = appState.activeTool.type;
         activeTool.lastActiveToolBeforeEraser = appState.activeTool.type;
       }
       }
     }
     }
-    debugger;
     if (isEraserActive(appState)) {
     if (isEraserActive(appState)) {
       if (appState.activeTool.lastActiveToolBeforeEraser) {
       if (appState.activeTool.lastActiveToolBeforeEraser) {
         if (
         if (

+ 2 - 2
src/packages/excalidraw/example/App.js

@@ -10,12 +10,12 @@ import { MIME_TYPES } from "../../../constants";
 // This is so that we use the bundled excalidraw.development.js file instead
 // This is so that we use the bundled excalidraw.development.js file instead
 // of the actual source code
 // of the actual source code
 const {
 const {
+  Excalidraw,
   exportToCanvas,
   exportToCanvas,
   exportToSvg,
   exportToSvg,
   exportToBlob,
   exportToBlob,
   sceneCoordsToViewportCoords,
   sceneCoordsToViewportCoords,
-} = window.Excalidraw;
-const Excalidraw = window.Excalidraw.default;
+} = window.ExcalidrawLib;
 
 
 const STAR_SVG = (
 const STAR_SVG = (
   <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512">
   <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512">

+ 1 - 1
src/packages/excalidraw/webpack.dev-server.config.js

@@ -9,7 +9,7 @@ const devServerConfig = {
   },
   },
   // Server Configuration options
   // Server Configuration options
   devServer: {
   devServer: {
-    port: 3001,
+    //port: 3001,
     host: "localhost",
     host: "localhost",
     hot: true,
     hot: true,
     compress: true,
     compress: true,