-
Notifications
You must be signed in to change notification settings - Fork 0
/
ImageBitmap.cljs
60 lines (43 loc) · 1.61 KB
/
ImageBitmap.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
(ns web.canvas.ImageBitmap
"The ImageBitmap interface represents a bitmap image which can
drawn to a `<canvas>` without undue latency. It can be created
a variety of source objects using the `createImageBitmap()` factory
ImageBitmap provides an asynchronous and resource efficient pathway
prepare textures for rendering in WebGL."
(:refer-clojure :exclude []))
(defn close
"Method.
The ImageBitmap.close() method disposes of all graphical resources
with an ImageBitmap.
`void ImageBitmap.close()`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/close`"
[this ]
(-> this (.close)))
(defn height
"Property.
The read-only ImageBitmap.height property returns the `web.canvas.ImageBitmap`
height in CSS pixels.
See also: `https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/height`"
[this]
(-> this (.-height)))
(defn set-height!
"Property.
The read-only ImageBitmap.height property returns the `web.canvas.ImageBitmap`
height in CSS pixels.
See also: `https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/height`"
[this val]
(aset this "height" val))
(defn width
"Property.
The read-only ImageBitmap.width property returns the `web.canvas.ImageBitmap`
width in CSS pixels.
See also: `https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/width`"
[this]
(-> this (.-width)))
(defn set-width!
"Property.
The read-only ImageBitmap.width property returns the `web.canvas.ImageBitmap`
width in CSS pixels.
See also: `https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/width`"
[this val]
(aset this "width" val))