-
Notifications
You must be signed in to change notification settings - Fork 0
/
FontFaceSetLoadEvent.cljs
46 lines (32 loc) · 1.39 KB
/
FontFaceSetLoadEvent.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
(ns web.fonts.FontFaceSetLoadEvent
"The FontFaceSetLoadEvent interface of the the Css Font Loading
is fired whenever a `web.fonts.FontFaceSet` loads."
(:refer-clojure :exclude []))
(def constructor
"Constructor.
The FontFaceSetLoadEvent constructor creates a new `FontFaceLoadEvent` object which is fired whenever a `web.fonts.FontFaceSet` loads.
type
The literal value 'Type' (quotation marks included).
options Optional
Options are as follows:
fontfaces: An array of `web.fonts.FontFace` instances.
See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSetLoadEvent/FontFaceSetLoadEvent`"
js/FontFaceSetLoadEvent)
(defn fontfaces
"Property.
The fontfaces read-only property of the `FontFaceLoadEventInit`
returns an array of `web.fonts.FontFace` instances, each of which
a single usable font.
`var fontFace[] = FontFaceSetLoadEvent.fontfaces`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSetLoadEvent/fontfaces`"
[this]
(-> this (.-fontfaces)))
(defn set-fontfaces!
"Property.
The fontfaces read-only property of the `FontFaceLoadEventInit`
returns an array of `web.fonts.FontFace` instances, each of which
a single usable font.
`var fontFace[] = FontFaceSetLoadEvent.fontfaces`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSetLoadEvent/fontfaces`"
[this val]
(aset this "fontfaces" val))