Browse Source

fix package example

aakansha-custom-elements
ad1992 4 years ago
parent
commit
2e8c4d25f2
  1. 1
      src/actions/actionCanvas.tsx
  2. 4
      src/packages/excalidraw/example/App.js
  3. 2
      src/packages/excalidraw/webpack.dev-server.config.js

1
src/actions/actionCanvas.tsx

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

4
src/packages/excalidraw/example/App.js

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

2
src/packages/excalidraw/webpack.dev-server.config.js

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

Loading…
Cancel
Save