Comparing version 0.0.19 to 0.0.20
@@ -1,2 +0,2 @@ | ||
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader'; | ||
export declare function draco(url?: string): (loader: GLTFLoader) => void; | ||
import { Loader } from 'three'; | ||
export declare function draco(url?: string): (loader: Loader) => void; |
{ | ||
"name": "drei", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"description": "useful add-ons for react-three-fiber", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader' | ||
import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader' | ||
import { Loader } from 'three' | ||
export function draco(url: string = '/draco-gltf/') { | ||
return (loader: GLTFLoader) => { | ||
return (loader: Loader) => { | ||
const dracoLoader = new DRACOLoader() | ||
dracoLoader.setDecoderPath(url) | ||
loader.setDRACOLoader(dracoLoader) | ||
;(loader as GLTFLoader).setDRACOLoader(dracoLoader) | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67080
34
1333