diff options
| author | yipstanley <stanley_yip@brown.edu> | 2019-12-07 14:48:43 -0500 |
|---|---|---|
| committer | yipstanley <stanley_yip@brown.edu> | 2019-12-07 14:48:43 -0500 |
| commit | b3b81c8400ce2a92df1ae8c0db9b422cf4a2cf4c (patch) | |
| tree | 99cc7d7636eb1cd2937b0d9e4211a3e1bc9e12cd /src/pen-gestures | |
| parent | fb9f08295c10c35c11b647d00a3c830867dc3f7d (diff) | |
i think this is better now
Diffstat (limited to 'src/pen-gestures')
| -rw-r--r-- | src/pen-gestures/GestureUtils.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pen-gestures/GestureUtils.ts b/src/pen-gestures/GestureUtils.ts index caaa0736d..7a14452c8 100644 --- a/src/pen-gestures/GestureUtils.ts +++ b/src/pen-gestures/GestureUtils.ts @@ -6,15 +6,15 @@ import { Doc } from "../new_fields/Doc"; export namespace GestureUtils { namespace GestureDataTypes { - export type BoxData = Doc[]; + export type BoxData = Array<Doc>; } - export const GestureRecognizer = new NDollarRecognizer(false); - export enum Gestures { Box = "box" } + export const GestureRecognizer = new NDollarRecognizer(false); + export function GestureOptions(name: Gestures, gestureData: any): (() => any)[] { switch (name) { case Gestures.Box: @@ -27,7 +27,7 @@ export namespace GestureUtils { } function BoxOptions(gestureData: GestureDataTypes.BoxData): (() => any)[] { - if (gestureData instanceof Doc[]) { + if (gestureData instanceof Array) { return [() => Docs.Create.FreeformDocument(gestureData as Doc[], {})]; } return []; |
