aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/GestureOverlay.tsx
diff options
context:
space:
mode:
authoranika-ahluwalia <anika.ahluwalia@gmail.com>2020-06-05 12:44:30 -0500
committeranika-ahluwalia <anika.ahluwalia@gmail.com>2020-06-05 12:44:30 -0500
commite93b8b764b5569d8367013f970b483b9ed3035fc (patch)
tree6d18ca7bb96e4d84c3cff71e3f446ff6e0b67e66 /src/client/views/GestureOverlay.tsx
parent5b5e50dc739d032bebb7b02b945034d25513a7f0 (diff)
added more globals for testing
Diffstat (limited to 'src/client/views/GestureOverlay.tsx')
-rw-r--r--src/client/views/GestureOverlay.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/GestureOverlay.tsx b/src/client/views/GestureOverlay.tsx
index 4352ac52c..facfd1ab5 100644
--- a/src/client/views/GestureOverlay.tsx
+++ b/src/client/views/GestureOverlay.tsx
@@ -815,7 +815,7 @@ Scripting.addGlobal(function resetPen() {
InkingControl.Instance.updateSelectedColor(GestureOverlay.Instance.SavedColor ?? "rgb(0, 0, 0)");
InkingControl.Instance.switchWidth(GestureOverlay.Instance.SavedWidth ?? "2");
});
-});
+}, "resets the pen tool");
Scripting.addGlobal(function createText(text: any, x: any, y: any) {
GestureOverlay.Instance.dispatchGesture("text", [{ X: x, Y: y }], text);
-}); \ No newline at end of file
+}, "creates a text document with inputted text and coordinates", "{ text: any, x: any, y: any }"); \ No newline at end of file