Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
gl-error3d
Advanced tools
Draws error bars around data points
var createScene = require('gl-plot3d')
var createScatter = require('gl-scatter3d')
var createErrorBars = require('gl-error3d')
var points = [ [0,0,0], [1,1,1], [-1, 2, -3] ]
var errors = [
[[-0.5,-0.5,-0.5],[0.5,0.5,0.5]],
[[-0.1,-1,-2],[0,0,0]],
[[-0.1,-0.1,-0.1],[0.1,0.1,0.1]]
]
var scene = createScene()
var scatter = createScatter({
gl: scene.gl,
position: points,
size: 20,
orthographic: true,
lineColor: [0,0,0],
color: [0.7,0.8,0.4],
lineWidth: 1
})
scene.add(scatter)
var errorBars = createErrorBars({
gl: scene.gl,
position: points,
error: errors,
color: [0.9, 0.3, 0.3]
})
scene.add(errorBars)
var errorBars = require('gl-error3d')(options)
Creates a new error bar object.
gl
is a WebGL contextposition
is the position of each point in the ploterror
is an array of error bounds represented as [lo,hi]
for each pointcolor
a length 3 array of arrays giving the color of the error bars along each axis.lineWidth
is the width of the error bar lines in pixelscapSize
is the size of the cap for error barsclipBounds
is a box to which all error bars will be clippedReturns A new error bar object
errorBars.update(options)
Updates the error bar object
errorBars.dispose()
Destroy the error bars and release all associated resources
(c) 2014-2015 Mikola Lysenko. MIT License
FAQs
Draws error bars around points
The npm package gl-error3d receives a total of 11,803 weekly downloads. As such, gl-error3d popularity was classified as popular.
We found that gl-error3d demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 19 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.