aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/InkStrokeProperties.ts
diff options
context:
space:
mode:
authorLauren <victor_kalev@brown.edu>2021-10-28 16:07:11 -0400
committerLauren <victor_kalev@brown.edu>2021-10-28 16:07:11 -0400
commit4bbfe0fad535033309e352311fae64520b9068a6 (patch)
tree5c6bf40d7c93eccace91da26404bfc945e274ae6 /src/client/views/InkStrokeProperties.ts
parent4aeddc57b8d6654074adaf4cdbf542f1564a9dcc (diff)
adding eraser tool to menu
Diffstat (limited to 'src/client/views/InkStrokeProperties.ts')
-rw-r--r--src/client/views/InkStrokeProperties.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/InkStrokeProperties.ts b/src/client/views/InkStrokeProperties.ts
index 7c91a3323..02288bbb5 100644
--- a/src/client/views/InkStrokeProperties.ts
+++ b/src/client/views/InkStrokeProperties.ts
@@ -239,12 +239,12 @@ 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);
const res = this.moveControlPtHandle(inkView, deltaX, deltaY, controlIndex);
- console.log("X= " + snapData.nearestPt.X + " " + snapData.nearestPt.Y);
+ console.log("X = " + snapData.nearestPt.X + " " + snapData.nearestPt.Y);
return res;
}
}