LoaderUtils.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  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. <p class="desc">An object with several loader utility functions.</p>
  12. <h2>Functions</h2>
  13. <h3>[method:String decodeText]( [param:TypedArray array] )</h3>
  14. <p>
  15. [page:TypedArray array] — A stream of bytes as a typed array.
  16. </p>
  17. <p>
  18. The function takes a stream of bytes as input and returns a string representation.
  19. </p>
  20. <h3>[method:String extractUrlBase]( [param:String url] )</h3>
  21. <p>
  22. [page:String url] — The url to extract the base url from.
  23. </p>
  24. <p>
  25. Extract the base from the URL.
  26. </p>
  27. <h3>[method:String resolveURL]( [param:String url], [param:String path] )</h3>
  28. <p>
  29. [page:String url] — The absolute or relative url resolve.
  30. [page:String path] — The base path for relative urls to be resolved against.
  31. </p>
  32. <p>
  33. Resolves relative urls against the given path. Absolute paths, data urls, and blob urls will be returned as is. Invalid urls will return an empty string.
  34. </p>
  35. <h2>Source</h2>
  36. <p>
  37. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  38. </p>
  39. </body>
  40. </html>