diff --git a/docs/examples/en/loaders/DRACOLoader.html b/docs/examples/en/loaders/DRACOLoader.html index a1ff9af73f94dd9baacab8e233d93b70df981303..b853bb50ebc23d7d3bb3e869d646175b7b354e40 100644 --- a/docs/examples/en/loaders/DRACOLoader.html +++ b/docs/examples/en/loaders/DRACOLoader.html @@ -34,10 +34,7 @@ var loader = new THREE.DRACOLoader(); // Specify path to a folder containing WASM/JS decoding libraries. - THREE.DRACOLoader.setDecoderPath( '/examples/js/libs/draco' ); - - // Optional: Pre-fetch Draco WASM/JS module. - THREE.DRACOLoader.getDecoderModule(); + loader.setDecoderPath( '/examples/js/libs/draco' ); // Load a Draco geometry loader.load( @@ -90,52 +87,60 @@ Creates a new [name].
-
- [page:String value] — Path to folder containing the JS and WASM decoder libraries.
+ [page:String url] — A string containing the path/URL of the .drc file.
+ [page:Function onLoad] — A function to be called after the loading is successfully completed.
+ [page:Function onProgress] — (optional) A function to be called while the loading is in progress. The argument will be the XMLHttpRequest instance, that contains .[page:Integer total] and .[page:Integer loaded] bytes.
+ [page:Function onError] — (optional) A function to be called if an error occurs during loading. The function receives error as an argument.
+
+ Begin loading from url and call the onLoad function with the decompressed geometry.
-
- [page:String config.type] - (Optional) "js" or "wasm".
+ [page:String path] — Base path.
- Provides configuration for the decoder libraries. Configuration cannot be changed - after loading the decoders. + Set the base path for the .drc file.
-- Requests the decoder libraries, if not already loaded. + [page:String value] — The crossOrigin string to implement CORS for loading the url from a different domain that allows CORS.
-- Disposes of the decoder library and deallocates memory. The decoder - [link:https://github.com/google/draco/issues/349 cannot be reloaded afterward]. + [page:String value] — Path to folder containing the JS and WASM decoder libraries.
-
- [page:String url] — A string containing the path/URL of the .drc file.
- [page:Function onLoad] — A function to be called after the loading is successfully completed.
- [page:Function onProgress] — (optional) A function to be called while the loading is in progress. The argument will be the XMLHttpRequest instance, that contains .[page:Integer total] and .[page:Integer loaded] bytes.
- [page:Function onError] — (optional) A function to be called if an error occurs during loading. The function receives error as an argument.
+ [page:String config.type] - (Optional) "js" or "wasm".
- Begin loading from url and call the onLoad function with the decompressed geometry. + Provides configuration for the decoder libraries. Configuration cannot be changed + after decoding begins.
-
- [page:String path] — Base path.
+ [page:Number workerLimit] - Maximum number of workers to be allocated. Default is 4.
- Set the base path for the .drc file. + Sets the maximum number of [link:https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers Web Workers] + to be used during decoding. A lower limit may be preferable if workers are also for other tasks + in the application. +
+ ++ Disposes of the decoder resources and deallocates memory. The decoder + [link:https://github.com/google/draco/issues/349 cannot be reloaded afterward].