
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
canvas-orbit-camera
Advanced tools
An alternative wrapper for orbit-camera that works independently of game-shell.
An alternative wrapper for orbit-camera that works independently of game-shell.
Controls are as follows:
Based heavily on game-shell-orbit-camera.
Attaches a modified orbit-camera
instance to the canvas
– attaching the
required event listeners for interaction.
The following options are available:
rotate
: disable rotation interactions by passing false
.scale
: disable scaling interactions by passing false
.pan
: disable panning interactions by passing false
.See the orbit-camera documentation for a full list of available methods.
Call this at the beginning of each frame to update the current position of the camera.
Returns the current view matrix associated by the camera: a 16-element (4x4)
Float32Array
instance. Optionally, you can pass in your own array out
here
too.
var canvas = document.body.appendChild(document.createElement('canvas'))
var createCamera = require('canvas-orbit-camera')
var raf = require('raf')
var camera = createCamera(canvas)
update()
function update() {
raf(update)
// Returns your view matrix for you
var view = camera.view()
camera.tick()
}
MIT. See LICENSE.md for details.
FAQs
An alternative wrapper for orbit-camera that works independently of game-shell.
The npm package canvas-orbit-camera receives a total of 171 weekly downloads. As such, canvas-orbit-camera popularity was classified as not popular.
We found that canvas-orbit-camera 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.