1
0

LoaderUtils.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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>[page:TypedArray array] — A stream of bytes as a typed array.</p>
  15. <p>
  16. The function takes a stream of bytes as input and returns a string
  17. representation.
  18. </p>
  19. <h3>[method:String extractUrlBase]( [param:String url] )</h3>
  20. <p>[page:String url] — The url to extract the base url from.</p>
  21. <p>Extract the base from the URL.</p>
  22. <h3>
  23. [method:String resolveURL]( [param:String url], [param:String path] )
  24. </h3>
  25. <p>
  26. [page:String url] — The absolute or relative url resolve. [page:String path] — The base path for relative urls to be resolved against.
  27. </p>
  28. <p>
  29. Resolves relative urls against the given path. Absolute paths, data urls,
  30. and blob urls will be returned as is. Invalid urls will return an empty
  31. string.
  32. </p>
  33. <h2>Source</h2>
  34. <p>
  35. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  36. </p>
  37. </body>
  38. </html>