Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
three-trackballcontrols
Advanced tools
A module for using THREE.TrackballControls with nodejs
npm install three-trackballcontrols
or yarn add three-trackballcontrols
Example was using three.js
+ three-trackballcontrols
inside of a very simple React app.
import * as THREE from 'three';
import TrackballControls from 'three-trackballcontrols';
// Assumes there is a `camera` and `renderer` initialized.
const controls = new TrackballControls(camera, renderer.domElement);
// Any manual camera changes should be done first, then update the controls.
camera.position.z = 5;
controls.update();
const animate = function () {
requestAnimationFrame(animate);
// Required for updating during animations.
controls.update();
renderer.render(scene, camera);
}
animate();
Example uses JSDelivr version, look up the latest URL for using with static hosting.
<script type="module">
import TrackballControls from 'https://cdn.jsdelivr.net/npm/three-trackballcontrols@0.0.8/index.min.js';
// Assumes that a `camera` and `renderer` initialized.
const controls = new TrackballControls(camera, renderer.domElement);
// Any manual camera changes should be done first, then update the controls.
camera.position.z = 5;
controls.update();
const animate = function () {
requestAnimationFrame(animate);
// Required for updating during animations.
controls.update();
renderer.render(scene, camera);
}
</script>
FAQs
A module for using THREE.TrackballControls with nodejs
The npm package three-trackballcontrols receives a total of 3,093 weekly downloads. As such, three-trackballcontrols popularity was classified as popular.
We found that three-trackballcontrols 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.