-
Notifications
You must be signed in to change notification settings - Fork 0
/
CSSUnparsedValue.cljs
93 lines (64 loc) · 2.72 KB
/
CSSUnparsedValue.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
(ns web.css.CSSUnparsedValue
"The CSSUnparsedValue interface of the CSS Typed Object Model
represents property values that reference custom properties.
consists of a list of string fragments and variable references."
(:refer-clojure :exclude [keys]))
(def constructor
"Constructor.
The CSSUnparsedValue() constructor creates a new `web.css.CSSUnparsedValue` object which represents property values that reference custom properties.
members
An array whose values must be either a `web.USVString` or a `web.css.CSSVariableReferenceValue`.
See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSUnparsedValue/CSSUnparsedValue`"
js/CSSUnparsedValue)
(defn entries
"Method.
The CSSUnparsedValue.entries() method returns an array of a given
own enumerable property [key, value] pairs in the same order
that provided by a `for...in` loop (the difference being that
for-in loop enumerates properties in the prototype chain as well).
`CSSUnparsedValue.entries(obj)`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSUnparsedValue/entries`"
[this obj]
(-> this (.entries obj)))
(defn for-each
"Method.
The CSSUnparsedValue.forEach() method executes a provided function
for each element of the `web.css.CSSUnparsedValue`.
`CSSUnparsedValue.forEach(function callback(currentValue[, index[, array]]) {
// your iterator
}[, thisArg]);`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSUnparsedValue/forEach`"
[this & args]
(-> this .-forEach (.apply this (clj->js args))))
(defn keys
"Method.
The CSSUnparsedValue.keys() method returns a new Array Iterator
that contains the keys for each index in the array.
`CSSUnparsedValue.keys()`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSUnparsedValue/keys`"
[this ]
(-> this (.keys)))
(defn values
"Method.
The CSSUnparsedValue.values() method returns a new Array Iterator
that contains the values for each index in the CSSUnparsedValue
`CSSUnparsedValue.values()`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSUnparsedValue/values`"
[this ]
(-> this (.values)))
(defn length
"Property.
The length read-only property of the `web.css.CSSUnparsedValue`
returns the number of items in the object.
`var length = CSSUnparsedValue.length;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSUnparsedValue/length`"
[this]
(-> this (.-length)))
(defn set-length!
"Property.
The length read-only property of the `web.css.CSSUnparsedValue`
returns the number of items in the object.
`var length = CSSUnparsedValue.length;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSUnparsedValue/length`"
[this val]
(aset this "length" val))