aboutsummaryrefslogtreecommitdiff
path: root/src/pen-gestures
diff options
context:
space:
mode:
authorStanley Yip <stanley_yip@brown.edu>2020-02-04 18:12:47 -0500
committerStanley Yip <stanley_yip@brown.edu>2020-02-04 18:12:47 -0500
commit1007cfb325f2dcddc4365538e4b354d06eb85f2f (patch)
tree62fb6a253e6940cadfe24aa8e96ba9f16b68ad9b /src/pen-gestures
parentdab8f5893ffb8fab05a46695b9d1a690d1171bca (diff)
ok so the toolglass is working, but it's super slow... i'll fix that later lol
Diffstat (limited to 'src/pen-gestures')
-rw-r--r--src/pen-gestures/GestureUtils.ts11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/pen-gestures/GestureUtils.ts b/src/pen-gestures/GestureUtils.ts
index 4b5ad6684..4e3493c1c 100644
--- a/src/pen-gestures/GestureUtils.ts
+++ b/src/pen-gestures/GestureUtils.ts
@@ -6,18 +6,16 @@ import { Doc, WidthSym, HeightSym } from "../new_fields/Doc";
import { NumCast } from "../new_fields/Types";
import { CollectionFreeFormView } from "../client/views/collections/collectionFreeForm/CollectionFreeFormView";
import { Rect } from "react-measure";
+import { Scripting } from "../client/util/Scripting";
export namespace GestureUtils {
- namespace GestureDataTypes {
- export type BoxData = Array<Doc>;
- }
-
export class GestureEvent {
constructor(
readonly gesture: Gestures,
readonly points: PointData[],
readonly bounds: Rect,
- readonly callbackFn?: Function
+ readonly callbackFn?: Function,
+ readonly text?: any
) { }
}
@@ -38,7 +36,8 @@ export namespace GestureUtils {
Box = "box",
Line = "line",
Stroke = "stroke",
- Scribble = "scribble"
+ Scribble = "scribble",
+ Text = "text"
}
export const GestureRecognizer = new NDollarRecognizer(false);