Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
three-orbitcontrols
Advanced tools
Readme
DEPRECATED
[three-js] exposes real modules now via three/examples/jsm/... For example to import the Orbit, do
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls"
is the three.js OrbitControls from official repo examples
To install with npm do
npm install three
npm install three-orbitcontrols
All credit goes to OrbitControls.js contributors. See also official OrbitControls documentation.
I have just stolen the code and modified to export it as a module so you can do something like
const THREE = require('three')
const OrbitControls = require('three-orbitcontrols')
// ES6 also works, i.e.
// import OrbitControls from 'three-orbitcontrols'
// Init THREE scene (add your code)
const camera = new THREE.PerspectiveCamera(75, width / height, 0.1, 1000)
camera.position.z = 5
const renderer = new THREE.WebGLRenderer({ canvas })
const controls = new OrbitControls(camera, renderer.domElement)
controls.enableDamping = true
controls.dampingFactor = 0.25
controls.enableZoom = false
Please note that:
OrbitControls
directly instead of THREE.OrbitControls
.See also examples:
npm run example_commonjs
.npm run example_typescript
.See OrbiControls.js history here.
Please also note that this repo's minor version equals three.js release number.
There is another package similar to this one: three-orbit-controls. I decided to create another package with a different approach, see this issue for the rationale.
I am using this package for my 3d tic tac toe canvas: see also online demo.
FAQs
is the three.js OrbitControls from official repo examples
The npm package three-orbitcontrols receives a total of 1,713 weekly downloads. As such, three-orbitcontrols popularity was classified as popular.
We found that three-orbitcontrols demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.