File tree Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export enum ExposureMode {
28
28
VeryLong = 'verylong' ,
29
29
FixedFps = 'fixedfps' ,
30
30
AntiShake = 'antishake' ,
31
- Fireworks = 'fireworks'
31
+ Fireworks = 'fireworks' ,
32
32
}
33
33
34
34
export enum AwbMode {
@@ -42,5 +42,5 @@ export enum AwbMode {
42
42
Incandescent = 'incandescent' ,
43
43
Flash = 'flash' ,
44
44
Horizon = 'horizon' ,
45
- GreyWorld = 'greyworld'
45
+ GreyWorld = 'greyworld' ,
46
46
}
Original file line number Diff line number Diff line change 1
- import { StillOptions } from " ./still-camera" ;
2
- import { StreamOptions } from " ./stream-camera" ;
1
+ import { StillOptions } from ' ./still-camera' ;
2
+ import { StreamOptions } from ' ./stream-camera' ;
3
3
import { Flip } from '..' ;
4
4
5
5
/**
@@ -11,7 +11,6 @@ import { Flip } from '..';
11
11
*/
12
12
export function getSharedArgs ( options : StillOptions | StreamOptions ) : string [ ] {
13
13
return [
14
-
15
14
/**
16
15
* Width
17
16
*/
@@ -30,23 +29,21 @@ export function getSharedArgs(options: StillOptions | StreamOptions): string[] {
30
29
/**
31
30
* Horizontal flip
32
31
*/
33
- ...( options . flip &&
34
- ( options . flip === Flip . Horizontal || options . flip === Flip . Both )
32
+ ...( options . flip && ( options . flip === Flip . Horizontal || options . flip === Flip . Both )
35
33
? [ '--hflip' ]
36
34
: [ ] ) ,
37
35
38
36
/**
39
37
* Vertical flip
40
38
*/
41
- ...( options . flip &&
42
- ( options . flip === Flip . Vertical || options . flip === Flip . Both )
39
+ ...( options . flip && ( options . flip === Flip . Vertical || options . flip === Flip . Both )
43
40
? [ '--vflip' ]
44
41
: [ ] ) ,
45
42
46
43
/**
47
44
* Shutter Speed
48
45
*/
49
- ...( options . shutter ? [ " --shutter" , options . shutter . toString ( ) ] : [ ] ) ,
46
+ ...( options . shutter ? [ ' --shutter' , options . shutter . toString ( ) ] : [ ] ) ,
50
47
51
48
/**
52
49
* ISO
@@ -76,6 +73,6 @@ export function getSharedArgs(options: StillOptions | StreamOptions): string[] {
76
73
/**
77
74
* Digital Gain
78
75
*/
79
- ...( options . digitalGain ? [ '--digitalgain' , options . digitalGain . toString ( ) ] : [ ] )
76
+ ...( options . digitalGain ? [ '--digitalgain' , options . digitalGain . toString ( ) ] : [ ] ) ,
80
77
] ;
81
78
}
You can’t perform that action at this time.
0 commit comments