From 29de3f24c647e1a9cc78dbef2b757114d1c2d649 Mon Sep 17 00:00:00 2001 From: bobzel Date: Sun, 14 Apr 2024 16:28:49 -0400 Subject: from last --- .../collectionFreeForm/CollectionFreeFormView.tsx | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx index 4654de427..23fa227c2 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx @@ -751,15 +751,10 @@ export class CollectionFreeFormView extends CollectionSubView { + radiusErase = (ink: DocumentView, eraseT: number, screenEraserPt: { X: number; Y: number }): Segment[] => { const segments: Segment[] = []; + const inkCoords = ink.ComponentView?.ptFromScreen?.(screenEraserPt); // coordinates in ink space + if (!inkCoords) return []; + var segment1: Segment = []; var segment2: Segment = []; const eraseRadius = ActiveInkWidth() / 2; -- cgit v1.2.3-70-g09d2