From 3e23fb9b9c8e82485c0744193629f82550e09e7e Mon Sep 17 00:00:00 2001 From: bobzel Date: Tue, 26 Oct 2021 22:43:05 -0400 Subject: from last --- src/client/views/InkStrokeProperties.ts | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src') diff --git a/src/client/views/InkStrokeProperties.ts b/src/client/views/InkStrokeProperties.ts index b3633358d..4ecedbfd6 100644 --- a/src/client/views/InkStrokeProperties.ts +++ b/src/client/views/InkStrokeProperties.ts @@ -296,14 +296,6 @@ export class InkStrokeProperties { return false; } - inkToScreenScale = (ink: InkData, inkDoc: Doc) => { - const oldXrange = (xs => ({ coord: NumCast(inkDoc.x), min: Math.min(...xs), max: Math.max(...xs) }))(ink.map(p => p.X)); - const oldYrange = (ys => ({ coord: NumCast(inkDoc.y), min: Math.min(...ys), max: Math.max(...ys) }))(ink.map(p => p.Y)); - const ptsXscale = ((NumCast(inkDoc._width) - NumCast(inkDoc.strokeWidth)) / ((oldXrange.max - oldXrange.min) || 1)) || 1; - const ptsYscale = ((NumCast(inkDoc._height) - NumCast(inkDoc.strokeWidth)) / ((oldYrange.max - oldYrange.min) || 1)) || 1; - return { ptsXscale, ptsYscale }; - } - /** * Snaps a control point with broken tangency back to synced rotation. * @param handleIndexA The handle point that retains its current position. -- cgit v1.2.3-70-g09d2