diff options
| author | bobzel <zzzman@gmail.com> | 2021-10-27 00:57:47 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-10-27 00:57:47 -0400 |
| commit | 39ca6f5ea22c99f3e7f530559d0b08c00aa19cb4 (patch) | |
| tree | 2d766cb4247b5522d33a6ce4f1d748950cafa344 /src/client/views/InkStrokeProperties.ts | |
| parent | 4aeddc57b8d6654074adaf4cdbf542f1564a9dcc (diff) | |
fixed warnings/errors.
Diffstat (limited to 'src/client/views/InkStrokeProperties.ts')
| -rw-r--r-- | src/client/views/InkStrokeProperties.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/InkStrokeProperties.ts b/src/client/views/InkStrokeProperties.ts index 7c91a3323..6687b2bc7 100644 --- a/src/client/views/InkStrokeProperties.ts +++ b/src/client/views/InkStrokeProperties.ts @@ -239,7 +239,7 @@ export class InkStrokeProperties { if (ink) { const screenDragPt = inkView.ComponentView?.ptToScreen?.(ink[controlIndex]); if (screenDragPt) { - var snapData = this.snapToAllCurves(screenDragPt, inkView, { nearestPt: { X: 0, Y: 0 }, distance: 10 }, ink, controlIndex); + const snapData = this.snapToAllCurves(screenDragPt, inkView, { nearestPt: { X: 0, Y: 0 }, distance: 10 }, ink, controlIndex); if (snapData.distance < 10) { const deltaX = (snapData.nearestPt.X - ink[controlIndex].X); const deltaY = (snapData.nearestPt.Y - ink[controlIndex].Y); |
