From ac5d5ce29fac2830f63687d21a5afcb8e19eb6ed Mon Sep 17 00:00:00 2001 From: Orion Reed Date: Sat, 20 Jul 2024 00:04:41 +0200 Subject: [PATCH] DEPLOYED! --- src/App.tsx | 2 +- src/SocialShapeUtil.tsx | 17 +++++++++++------ src/propagators/Geo.ts | 1 + src/propagators/ScopedPropagators.ts | 19 +++++++++++++++---- src/propagators/SpatialIndex.ts | 1 + 5 files changed, 29 insertions(+), 11 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index bd79a72..5a3a3f0 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -5,7 +5,7 @@ import { AgentButton } from "./components/AgentButton"; import { SocialShapeUtil } from "./SocialShapeUtil"; import { SocialShapeTool } from "./SocialShapeTool"; import { CustomToolbar, overrides } from "./ui"; -import { getDocumentMeta, getUserId, getUsersInRoom, setDocumentMeta } from "./storeUtils"; +// import { getDocumentMeta, getUserId, getUsersInRoom, setDocumentMeta } from "./storeUtils"; import { registerDefaultPropagators } from "./propagators/ScopedPropagators"; const shapeUtils = [SocialShapeUtil]; diff --git a/src/SocialShapeUtil.tsx b/src/SocialShapeUtil.tsx index ad23f22..d6f3f8f 100644 --- a/src/SocialShapeUtil.tsx +++ b/src/SocialShapeUtil.tsx @@ -7,7 +7,6 @@ import { TLOnResizeHandler, TLShapeId, resizeBox, - toDomPrecision, } from 'tldraw' import { getUserId } from './storeUtils' @@ -90,7 +89,11 @@ export class SocialShapeUtil extends BaseBoxShapeUtil { return ( e.stopPropagation()}>