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
| var is = {
arr: function (a) {
return Array.isArray(a)
},
obj: function (a) {
return stringContains(Object.prototype.toString.call(a), 'Object')
},
pth: function (a) {
return is.obj(a) && a.hasOwnProperty('totalLength')
},
svg: function (a) {
return a instanceof SVGElement
},
inp: function (a) {
return a instanceof HTMLInputElement
},
dom: function (a) {
return a.nodeType || is.svg(a)
},
str: function (a) {
return typeof a === 'string'
},
fnc: function (a) {
return typeof a === 'function'
},
und: function (a) {
return typeof a === 'undefined'
},
nil: function (a) {
return is.und(a) || a === null
},
hex: function (a) {
return /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(a)
},
rgb: function (a) {
return /^rgb/.test(a)
},
hsl: function (a) {
return /^hsl/.test(a)
},
col: function (a) {
return is.hex(a) || is.rgb(a) || is.hsl(a)
},
key: function (a) {
return (
!defaultInstanceSettings.hasOwnProperty(a) &&
!defaultTweenSettings.hasOwnProperty(a) &&
a !== 'targets' &&
a !== 'keyframes'
)
},
}
|
Layout of comment panels