Optional
manager: LoadingManagerStatic
DRACO_Static
LibraryTransform after load, like convert geometry to mesh, etc. for reference see DRACOLoader2 or PLYLoadPlugin
result of load
Static
SetSet the decoder js string Sample for how to set LibraryValueMap This is useful for bundling the draco decoder js file with your app source
the contents of draco_decoder.js file
First put the draco_decoder.js file in your src folder, then import it in js/ts as a string
import draco_decoder from './libs/draco_decoder.1.5.6.js?raw' // vite will load this as a string
// console.log(draco_decoder) // this should be a string with js content
DRACOLoader2.SetDecoderJsString(draco_decoder)
Generated using TypeDoc
This is a hack to allow bundling the draco decoder js file with your app source See DRACOLoader2.SetDecoderJsString for example