ImageLoader.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <script src="../../list.js"></script>
  6. <script src="../../page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="../../page.css" />
  8. </head>
  9. <body>
  10. <h1>[name]</h1>
  11. <div class="desc">A loader for loading an [page:Image image].</div>
  12. <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>
  13. <h2>Constructor</h2>
  14. <h3>[name]()</h3>
  15. <h2>Events</h2>
  16. <h3>load</h3>
  17. <div class="desc">
  18. Dispatched when the image has completed loading
  19. </div>
  20. <div>
  21. content — loaded image
  22. </div>
  23. <h3>error</h3>
  24. <div class="desc">
  25. Dispatched when the image can't be loaded
  26. </div>
  27. <div>
  28. message — error message
  29. </div>
  30. <h2>Properties</h2>
  31. <h2>Methods</h2>
  32. <h3>.load( [page:String url] )</h3>
  33. <div>
  34. url — required
  35. </div>
  36. <div class="desc">Begin loading from <em>url</em></div>
  37. <h2>Source</h2>
  38. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  39. </body>
  40. </html>