Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
regl-splom
Advanced tools
Matrix of scatter plots. A wrapper over regl-scatter2d for optimized intersected data rendering.
let regl = require('regl')({extensions: 'oes_element_index_uint'})
let createMatrix = require('regl-splom')
let scatterMatrix = createMatrix(regl)
// pass data and views to display
scatterMatrix.update(
{ data: [[], [], ...], ranges, domains, viewport, size, color, border },
{ data: [[], [], ...], ranges, domains, viewport, size, color, border }
)
// draw views by ids
scatterMatrix.draw(0, 1, ...views)
splom = createSplom(regl)
Creates scatter matrix instance.
splom.update(trace1, trace2, ...traces)
Define passes for draw
method. Every trace can include the following options:
Option | Description |
---|---|
data | An array with arrays for the columns. |
range | Array with data ranges corresponding to data . Every range can be an array [min, max] or [minX, minY, maxX, maxY] . If undefined - detected automatically. |
domain | Array with domains for the data, ie. the area data dimension holds within the viewport . Each domain can be an array [min, max] for symmetric placement or [minX, minY, maxX, maxY] for precise position. Domain values are from 0..1 interval, defining what area of the viewport a dimension holds. By default domains cover viewport evnely. |
padding | Padding within domains (in px), or list of paddings per-domain. By default [0,0,0,0] . Can be a number, an array or any rectangle format. |
color , size , borderColor , borderSize , opacity | Points style. |
marker | Points marker. |
diagonal | Show or hide diagonal. |
upper | Show or hide upper half matrix. |
lower | Show or hide lower half matrix. |
viewport | Area that the plot holds within the canvas. Can take any rectangle format. |
splom.draw(...ids?|...points?)
Draw all defined passes, or only selected ones provided by ids
. Optionally define point indexes to render.
// draw 1 and 3 passes
splom.draw(1, 3)
// draw 1, 2 and 3 points from the first pass and 3 point from the second pass
splom.draw([1, 2, 3], [3])
splom.destroy()
Dispose renderer and all the associated resources
© 2018 Dmitry Yv. MIT License
Development supported by plot.ly.
FAQs
Scatterplot matrix for 2d plots
The npm package regl-splom receives a total of 153,386 weekly downloads. As such, regl-splom popularity was classified as popular.
We found that regl-splom demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 29 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.