fix package example

This commit is contained in:
ad1992 2022-04-21 23:55:38 +05:30
parent 4953828d86
commit 2e8c4d25f2
3 changed files with 3 additions and 4 deletions

View File

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

View File

@ -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">

View File

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