/
MediaSettingsRange.cljs
81 lines (56 loc) · 2.2 KB
/
MediaSettingsRange.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
(ns web.media.MediaSettingsRange
"The MediaSettingsRange interface of the the MediaStream Image
API provides the possible range and value size of `PhotoCapabilities.imageHeight`
`PhotoCapabilities.imageWidth`. A `web.media.PhotoCapabilities`
can be retrieved by calling `ImageCapture.PhotoCapabilities()`."
(:refer-clojure :exclude [max min]))
(defn max
"Property.
The max read-only property of the `web.media.MediaSettingsRange`
returns the maximum value of the settings range.
`var max = mediaSettingsRange.max`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaSettingsRange/max`"
[this]
(-> this (.max)))
(defn set-max!
"Property.
The max read-only property of the `web.media.MediaSettingsRange`
returns the maximum value of the settings range.
`var max = mediaSettingsRange.max`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaSettingsRange/max`"
[this val]
(aset this "max" val))
(defn min
"Property.
The min read-only property of the `web.media.MediaSettingsRange`
returns the minimum value of the settings range.
`var min = mediaSettingsRange.min`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaSettingsRange/min`"
[this]
(-> this (.min)))
(defn set-min!
"Property.
The min read-only property of the `web.media.MediaSettingsRange`
returns the minimum value of the settings range.
`var min = mediaSettingsRange.min`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaSettingsRange/min`"
[this val]
(aset this "min" val))
(defn step
"Property.
The step read-only property of the `web.media.MediaSettingsRange`
returns the minimum difference between consecutive values of
settings range.
`var step = mediaSettingsRange.step`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaSettingsRange/step`"
[this]
(-> this (.step)))
(defn set-step!
"Property.
The step read-only property of the `web.media.MediaSettingsRange`
returns the minimum difference between consecutive values of
settings range.
`var step = mediaSettingsRange.step`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaSettingsRange/step`"
[this val]
(aset this "step" val))