
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@janelia/three-orbit-unlimited-controls
Advanced tools
A camera controller for THREE.js that addresses some limitations of some other, widely used controllers:
For looking around a scene, OrbitControls is a common choice. But it has a limit on the rotation that can be achieved by moving the mouse vertically: the camera cannot go "over the north pole" or "under the south pole."
TrackballControls does not have this limitation. Yet it suffers from "twist" around the viewing
axis, which gradually accumulates over the course of interaction and makes it difficult to
return to an original orientation. It also does not emit a change
event on each camera
movement, so updating the rendering to reflect the camera movement requires the use of
Window.requestAnimationFrame().
OrbitUnlimitedControls is free of these limitations. It is meant to implement the API of OrbitControls (or at least the most important parts of that API), so it can be used as a simple replacement for that controller.
OrbitUnlimitedControls(object : Camera, domElement : HTMLDOMElement)
object
: The camera to be controlled.
domElement
: The HTML element used for event listeners.
.keyPanSpeed : Float
.keys : Object
.maxDistance : Float
.minDistance : Float
.rotateSpeed : Float
.target : Vector3
.zoomSpeed : Float
.clicked : Boolean
The standard click
event is sent by this.domElement
for any mousedown
followed by mouseup
. But a more useful definition of a click
is whent he cursor moves less than a couple of pixels between the mousedown
and the mouseup
. In that case, this.clicked
will be true
.
.usePanModAlt : Boolean
.usePanModShift : Boolean
.usePanModCtrl : Boolean
.usePanModMeta : Boolean
These booleans enable modifier keys to make a left-button mouse drag perform camera panning. The default is usePanModAlt
being true
and the others false
. Note that on Apple keyboards, "alt" is "option", "ctrl" is "control", and "meta" is "command".
The simplest approach is to use the npm module:
npm install --save @janelia/three-orbit-unlimited-controls
For development, clone the repository and build it:
npm install
npm run build
npm link
Then use that build in an application:
npm link @janelia/three-orbit-unlimited-controls
FAQs
three-orbit-controls with unlimited polar angle
The npm package @janelia/three-orbit-unlimited-controls receives a total of 279 weekly downloads. As such, @janelia/three-orbit-unlimited-controls popularity was classified as not popular.
We found that @janelia/three-orbit-unlimited-controls demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.