diff options
author | bobzel <zzzman@gmail.com> | 2021-10-26 22:43:05 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-10-26 22:43:05 -0400 |
commit | 3e23fb9b9c8e82485c0744193629f82550e09e7e (patch) | |
tree | 33432c904246bd5d3f00ed23428bc075ef3cc4b0 /src | |
parent | b33abf746e82cabf973ae3b8a81fd6b0781b2bfe (diff) |
from last
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/InkStrokeProperties.ts | 8 |
1 files changed, 0 insertions, 8 deletions
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. |