Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
satellite-view
Advanced tools
Re-project a map to a globe with WebGL
The latitude and longitude under each pixel is computed via the inverse General Perspective Projection, following the equations in John Snyder's Map Projections, A Working Manual.
When the point of perspective is close to the surface of the sphere, Snyder's exact equations are replaced by series approximations. These approximations are numerically more robust in single-precision floating point math, as used by WebGL. See Robust Raster Reprojection for details on the approximations.
Check out the live example using tiles from Stamen Maps.
satellite-view is provided as an ESM module import.
import * as satelliteView from 'satellite-view';
satelliteView.init takes a parameters object with the following properties:
Initialization returns an object with the following properties and methods:
canvas
: Link to the Canvas element on which the view is rendereddraw(camPos, maxRayTan, camMoving)
: Renders the globe on the Canvas.
Arguments:
setDevicePixelRatio(ratio)
: sets pixelRatio to the supplied constant valueFAQs
Re-project a map to a globe with WebGL
The npm package satellite-view receives a total of 1 weekly downloads. As such, satellite-view popularity was classified as not popular.
We found that satellite-view 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.