/
DOMRectReadOnly.cljs
186 lines (129 loc) · 4.82 KB
/
DOMRectReadOnly.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
(ns web.dom.DOMRectReadOnly
"The DOMRectReadOnly interface specifies the standard properties
by `web.dom.DOMRect` to define a rectangle."
(:refer-clojure :exclude []))
(def constructor
"Constructor.
The DOMRectReadOnly() constructor creates a new `web.dom.DOMRectReadOnly` object.
x
The x coordinate of the DOMRectReadOnly's origin.
y
The y coordinate of the DOMRectReadOnly's origin.
width
The width of the DOMRectReadOnly.
height
The height of the DOMRectReadOnly.
See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/DOMRectReadOnly`"
js/DOMRectReadOnly)
(defn from-rect
"Method.
The fromRect() property of the `web.dom.DOMRectReadOnly` interface
a new DOMRectReadOnly object with a given location and dimensions.
`var domRect = DOMRectReadOnly.fromRect(rectangle)`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/fromRect`"
[this rectangle]
(-> this (.fromRect rectangle)))
(defn bottom
"Property.
The bottom read-only property of the DOMRectReadOnly interface
the bottom coordinate value of the DOMRect. (Has the same value
y height, or y if height is negative.)
`var recBottom = DOMRect.bottom;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/bottom`"
[this]
(-> this (.bottom)))
(defn set-bottom!
"Property.
The bottom read-only property of the DOMRectReadOnly interface
the bottom coordinate value of the DOMRect. (Has the same value
y height, or y if height is negative.)
`var recBottom = DOMRect.bottom;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/bottom`"
[this val]
(aset this "bottom" val))
(defn height
"Property.
The height read-only property of the DOMRectReadOnly interface
the height of the DOMRect.
`var recHeight = DOMRect.height;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/height`"
[this]
(-> this (.height)))
(defn set-height!
"Property.
The height read-only property of the DOMRectReadOnly interface
the height of the DOMRect.
`var recHeight = DOMRect.height;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/height`"
[this val]
(aset this "height" val))
(defn left
"Property.
The left read-only property of the DOMRectReadOnly interface
the left coordinate value of the DOMRect. (Has the same value
x, or x width if width is negative.)
`var recLeft = DOMRect.left;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/left`"
[this]
(-> this (.left)))
(defn set-left!
"Property.
The left read-only property of the DOMRectReadOnly interface
the left coordinate value of the DOMRect. (Has the same value
x, or x width if width is negative.)
`var recLeft = DOMRect.left;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/left`"
[this val]
(aset this "left" val))
(defn right
"Property.
The right read-only property of the DOMRectReadOnly interface
the right coordinate value of the DOMRect. (Has the same value
x width, or x if width is negative.)
`var recRight = DOMRect.right;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/right`"
[this]
(-> this (.right)))
(defn set-right!
"Property.
The right read-only property of the DOMRectReadOnly interface
the right coordinate value of the DOMRect. (Has the same value
x width, or x if width is negative.)
`var recRight = DOMRect.right;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/right`"
[this val]
(aset this "right" val))
(defn top
"Property.
The top read-only property of the DOMRectReadOnly interface returns
top coordinate value of the DOMRect. (Has the same value as y,
y height if height is negative.)
`var recTop = DOMRect.top;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/top`"
[this]
(-> this (.top)))
(defn set-top!
"Property.
The top read-only property of the DOMRectReadOnly interface returns
top coordinate value of the DOMRect. (Has the same value as y,
y height if height is negative.)
`var recTop = DOMRect.top;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/top`"
[this val]
(aset this "top" val))
(defn width
"Property.
The width read-only property of the DOMRectReadOnly interface
the width of the DOMRect.
`var recWidth = DOMRect.width;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/width`"
[this]
(-> this (.width)))
(defn set-width!
"Property.
The width read-only property of the DOMRectReadOnly interface
the width of the DOMRect.
`var recWidth = DOMRect.width;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/width`"
[this val]
(aset this "width" val))