Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
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 2,901 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.