From d4159dbe75d4e32252fdce5feafdbd0b3a79c0ea Mon Sep 17 00:00:00 2001 From: GColoy <77153550+GColoy@users.noreply.github.com> Date: Wed, 20 Sep 2023 21:23:28 +0200 Subject: [PATCH] Corrected Polybool import --- src/ExcalidrawAutomate.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ExcalidrawAutomate.ts b/src/ExcalidrawAutomate.ts index 55c5e22..fd02944 100644 --- a/src/ExcalidrawAutomate.ts +++ b/src/ExcalidrawAutomate.ts @@ -77,7 +77,7 @@ import { ROUNDNESS } from "src/constants"; import { ClipboardData } from "@zsviczian/excalidraw/types/clipboard"; import { emulateKeysForLinkClick, KeyEvent, PaneTarget } from "src/utils/ModifierkeyHelper"; import { Mutable } from "@zsviczian/excalidraw/types/utility-types"; -import { Polybool } from "polybooljs"; +import PolyBool from "polybooljs"; extendPlugins([ HarmonyPlugin, @@ -2263,13 +2263,13 @@ export class ExcalidrawAutomate { } /** - * Gets the class Polybool from https://github.com/velipso/polybooljs + * Gets the class PolyBool from https://github.com/velipso/polybooljs * @returns */ - getPolybool() { + getPolyool() { const defaultEpsilon = 0.0000000001; - Polybool.epsilon(defaultEpsilon); - return Polybool; + PolyBool.epsilon(defaultEpsilon); + return PolyBool; } importSVG(svgString:string):boolean {