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

@youyouzone/react-obj-loader

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@youyouzone/react-obj-loader

  • 0.0.5
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

React-Obj-Loader

React component for loading 3D objs by drag-and-drop files based on loaders in Threejs.
Support: glTF/obj/stl

Installation

  npm install @youyouzone/react-obj-loader

Usage

import ObjLoader from '@youyouzone/react-obj-loader';

// use as an area
<ObjLoader cb={(itmes)=>handleObjs(itmes)}/>

// uas as a container
<ObjLoader cb={(itmes)=>handleObjs(itmes)}>
  <canvas/>
</ObjLoader>

Then Drop the folder which contains objs files on ObjLoader.

Props:

  • cb?: (items: Object3D[]) => any - custom callback which accept threejs Object3D array.
  • className?: string - custom class name.
  • normalized?: boolean - resize obj to unit size or not.

License

This project is licensed under License: MIT

Contact

Keywords

FAQs

Package last updated on 01 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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