forked from mrdoob/three.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathImageLoader.html
More file actions
97 lines (78 loc) · 1.85 KB
/
Copy pathImageLoader.html
File metadata and controls
97 lines (78 loc) · 1.85 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<script src="../../list.js"></script>
<script src="../../page.js"></script>
<link type="text/css" rel="stylesheet" href="../../page.css" />
</head>
<body>
<h1>[name]</h1>
<div class="desc">A loader for loading an [page:Image image].</div>
<div class="desc">Unlike other loaders, this one emits events instead of using predefined callbacks. So if you're interested in getting notified when <em>things</em> happen, you need to add listeners to the object.</div>
<h2>Constructor</h2>
<h3>[name]()</h3>
<div>
todo
</div>
<h2>Events</h2>
<h3>load</h3>
<div class="desc">
Dispatched when the image has completed loading
</div>
<div>
content — loaded image
</div>
<h3>error</h3>
<div class="desc">
Dispatched when the image can't be loaded
</div>
<div>
message — error message
</div>
<h2>Properties</h2>
<h3>.[page:object crossOrigin]</h3>
<div>
todo
</div>
<h2>Methods</h2>
<h3>.load( [page:String url] )</h3>
<div>
url — required
</div>
<div class="desc">Begin loading from <em>url</em></div>
<h3>.dispatchEvent([page:todo event]) [page:todo]</h3>
<div>
event -- todo
</div>
<div>
todo
</div>
<h3>.hasEventListener([page:todo type], [page:todo listener]) [page:todo]</h3>
<div>
type -- todo <br />
listener -- todo
</div>
<div>
todo
</div>
<h3>.removeEventListener([page:todo type], [page:todo listener]) [page:todo]</h3>
<div>
type -- todo <br />
listener -- todo
</div>
<div>
todo
</div>
<h3>.addEventListener([page:todo type], [page:todo listener]) [page:todo]</h3>
<div>
type -- todo <br />
listener -- todo
</div>
<div>
todo
</div>
<h2>Source</h2>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
</html>