/
PhotoCapabilities.cljs
110 lines (77 loc) · 3.48 KB
/
PhotoCapabilities.cljs
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
101
102
103
104
105
106
107
108
109
(ns web.media.PhotoCapabilities
"The PhotoCapabilities interface of the the MediaStream Image
API provides available configuration options for an attached
device. A PhotoCapabilities object is retrieved by calling `ImageCapture.getPhotoCapabilities()`."
(:refer-clojure :exclude []))
(defn red-eye-reduction
"Property.
The redEyeReduction read-only property of the `web.media.PhotoCapabilities`
returns a `RedEyeReduction` object indicating the red-eye reduction
of the source.
`var redEyeReduction = photoCapabilities.redEyeReduction`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PhotoCapabilities/redEyeReduction`"
[this]
(-> this (.redEyeReduction)))
(defn set-red-eye-reduction!
"Property.
The redEyeReduction read-only property of the `web.media.PhotoCapabilities`
returns a `RedEyeReduction` object indicating the red-eye reduction
of the source.
`var redEyeReduction = photoCapabilities.redEyeReduction`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PhotoCapabilities/redEyeReduction`"
[this val]
(aset this "redEyeReduction" val))
(defn fill-light-mode
"Property.
The fillLightMode read-only property of the `web.media.PhotoCapabilities`
returns an array of available fill light options. Options may
auto, off, or flash.
`var lightModes[] = photoCapabilities.fillLightMode`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PhotoCapabilities/fillLightMode`"
[this]
(-> this (.fillLightMode)))
(defn set-fill-light-mode!
"Property.
The fillLightMode read-only property of the `web.media.PhotoCapabilities`
returns an array of available fill light options. Options may
auto, off, or flash.
`var lightModes[] = photoCapabilities.fillLightMode`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PhotoCapabilities/fillLightMode`"
[this val]
(aset this "fillLightMode" val))
(defn image-height
"Property.
The imageHeight read-only property of the `web.media.PhotoCapabilities`
returns a `web.media.MediaSettingsRange` object indicating the
height range supported by the user agent.
`var mediaSettingsRange = photoCapabilities.imageHeight`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PhotoCapabilities/imageHeight`"
[this]
(-> this (.imageHeight)))
(defn set-image-height!
"Property.
The imageHeight read-only property of the `web.media.PhotoCapabilities`
returns a `web.media.MediaSettingsRange` object indicating the
height range supported by the user agent.
`var mediaSettingsRange = photoCapabilities.imageHeight`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PhotoCapabilities/imageHeight`"
[this val]
(aset this "imageHeight" val))
(defn image-width
"Property.
The imageWidth read-only property of the `web.media.PhotoCapabilities`
returns a `web.media.MediaSettingsRange` object indicating the
width range supported by the user agent.
`var mediaSettingsRange = photoCapabilities.imageWidth`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PhotoCapabilities/imageWidth`"
[this]
(-> this (.imageWidth)))
(defn set-image-width!
"Property.
The imageWidth read-only property of the `web.media.PhotoCapabilities`
returns a `web.media.MediaSettingsRange` object indicating the
width range supported by the user agent.
`var mediaSettingsRange = photoCapabilities.imageWidth`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PhotoCapabilities/imageWidth`"
[this val]
(aset this "imageWidth" val))