-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
100 lines (90 loc) · 4.24 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import { Bitmap, Container, DisplayObject, List, zimVee, Frame, Damp, Rectangle, Label, Slider, Button, Pane } from "zimjs"
declare namespace zim {
export class Cam extends Container {
constructor(config_or_width?: number, height?: number, flip?: boolean, facingMode?: boolean, config?: {});
constructor(width?: number, height?: number, flip?: boolean, facingMode?: boolean, config?: {});
resetSize():this
pause(state?:boolean):this
toggle():this
flip(state?:boolean):this
snapshot():Bitmap
keyOut(color?: string|[string], tolerance?: number, replacement?: string|[string]):this
setFacingMode(mode?: string):this
readonly tag:HTMLVideoElement
readonly display:Container
paused:boolean
flipped:boolean
readonly facingMode:string
}
export class CamMotion extends Container {
constructor(config_or_obj?: DisplayObject, preview?: number, smooth?: number, damp?: number, sensitivity?: number, precision?: number, period?: number, colorFilter?: string, colorSensitivity?: number, mode?: number, visualizerObj?: DisplayObject|zimVee, visualizerColor?: string|zimVee, visualizerBaseColor?: string|zimVee, visualizerScale?: number|zimVee, visualizerBaseScale?: number|zimVee, guideH?: string, guideV?: string, randomize?: boolean, cam?: Cam, frame?: Frame, facingMode?: string, config?: {});
constructor(config: {obj?: DisplayObject, preview?: number, smooth?: number, damp?: number, sensitivity?: number, precision?: number, period?: number, colorFilter?: string, colorSensitivity?: number, mode?: number, visualizerObj?: DisplayObject|zimVee, visualizerColor?: string|zimVee, visualizerBaseColor?: string|zimVee, visualizerScale?: number|zimVee, visualizerBaseScale?: number|zimVee, guideH?: string, guideV?: string, randomize?: boolean, cam?: Cam, frame?: Frame, facingMode?: string, config?: {}});
readonly obj:DisplayObject
smooth:number
sensitivity:number
precision:number
colorFilter:number
colorSensitivity:number
readonly motionX:number
readonly motionY:number
readonly rawX:number
readonly rawY:number
readonly cam:Cam
readonly dampX:Damp
readonly dampY:Damp
readonly data:[number]
readonly points:{x:number, y:number}
readonly camPoints:{x:number, y:number}
readonly interval:any
readonly ticker:any
readonly visualizer:Container
readonly facingMode:string
}
export class CamCursor extends Container {
constructor(config_or_cursor?: DisplayObject, preview?: number, camMotion?: CamMotion, radius?: number, color?: string, borderColor?: string, borderWidth?: number, stillColor?: string, stillBorderColor?: string, stillTime?: number, colorFilter?: string, colorSensitivity?: number, cam?: Cam, frame?: Frame, facingMode?: string, config?: {});
constructor(config:{ cursor?: DisplayObject, preview?: number, camMotion?: CamMotion, radius?: number, color?: string, borderColor?: string, borderWidth?: number, stillColor?: string, stillBorderColor?: string, stillTime?: number, colorFilter?: string, colorSensitivity?: number, cam?: Cam, frame?: Frame, facingMode?: string, config?: {}});
readonly obj:DisplayObject
smooth:number
sensitivity:number
precision:number
colorFilter:string
colorSensitivity:number
readonly motionX:number
readonly motionY:number
readonly rawX:number
readonly rawY:number
readonly cam:Cam
readonly dampX:Damp
readonly dampY:Damp
readonly data:[number]
readonly points:{x:number, y:number}
readonly camPoints:{x:number, y:number}
readonly interval:any
readonly ticker:any
readonly visualizer:Container
readonly facingMode:string
readonly cursorObj:DisplayObject
readonly camMotion:CamMotion
readonly motion:boolean
}
export class CamAlpha extends Container {
constructor(cam?: Cam, color?: string);
cam:Cam
readonly backing:Rectangle
readonly label:Label
readonly slider:Slider
}
export class CamControls extends List {
constructor(camMotion?: CamMotion, close?: boolean, collapse?: boolean);
readonly cam:Cam
readonly camMotion:CamMotion
readonly camCursor:CamCursor
readonly reset:Button
}
export class CamAsk extends Pane {
constructor(color?: string, backgroundColor?: string);
color:string
backgroundColor:string
}
}
export = zim