Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
WARNING: this is a very new (and likely unstable) project. use as your own risk.
DZ takes data in 3 dimensions and transforms it to 2 dimensions.
DZ(3d) -> 2d
all these demos use SVG
just download dz.js and include it into your HTML
<script src="dz.js"></script>
or, install via npm
npm install dz
Here's a quick sample. Checkout example/orbit.html for a simple fully working demo.
// create a new projection
var perspective = dz.projection.perspective()
// and configure the camera (aka, the "eyeball")
perspective.camera().position([0, 0, 1]).lookAt([0, 0, 0])
// create some 3d data
var data = [0, -1, -0.5] // a point at (0, -1, -0.5)
// projection of your data point onto the camera "film"
perspective(data) // -> [x, y]
// or also
perspective.x(data) // x coordinate of the 3D -> 2D projection
perspective.y(data) // y coordinate of the 3D -> 2D projection
No documentation yet so for now have a look at the source code
FAQs
provides 3D for D3
We found that dz 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.