Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

drei

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drei - npm Package Compare versions

Comparing version 0.0.19 to 0.0.20

dist/test.d.ts

4

dist/draco.d.ts

@@ -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)
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc