-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.d.ts
33 lines (32 loc) · 1.06 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
declare module 'ndollar-js' {
class Point {
X: number;
Y: number;
constructor(X: number, Y: number);
static origin(): Point;
} class Result {
Name: string;
Score: number;
constructor(Name: string, Score: number);
} class Unistroke {
Name: string;
Points: Point[];
StartUnitVector: Point;
Vector: number[];
constructor(Name: string, useBoundedRotationInvariance: boolean, points: Point[]);
} class Multistroke {
Name: string;
NumStrokes: number;
Unistrokes: Unistroke[];
constructor(Name: string, useBoundedRotationInvariance: boolean, strokes: Point[][]);
} class Recognizer {
useBoundedRotationInvariance: boolean;
Multistrokes: Multistroke[];
constructor(useBoundedRotationInvariance: boolean);
Recognize(strokes: Point[][], requireSameNoOfStrokes: boolean, useProtractor: boolean): Result;
AddGesture(name: string, strokes: Point[][]): number;
ClearGestures(): void;
LoadDefaultGestures(): void;
}
export { Point, Result, Unistroke, Multistroke, Recognizer };
}