
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
webgl-plot-utils
Advanced tools
A quality of life wrapper for webgl-plot library, for creating stacked real time plots.
Usage:
const canvas = document.createElement('canvas');
document.body.appendChild(canvas);
const devicePixelRatio = window.devicePixelRatio || 1;
canvas.width = canvas.clientWidth * devicePixelRatio;
canvas.height = canvas.clientHeight * devicePixelRatio;
let sps = 512;
let sps2 = 256;
let nSec = 3;
let nPointsRenderedPerSec = 512;
const freq = 1;
const amp = 0.5;
const noise = 0.5;
let line = new Array(sps*nSec);
let line2 = new Array(sps2*nSec);
let plotutil = new WebglLinePlotUtils(canvas);
plotutil.initPlot(2,[sps,sps2],nSec,nPointsRenderedPerSec);
function update(line=[],sps=512,sec=10) {
let len = sps*sec;
let tincr = sec/len;
let time = 0;
for (let i = 0; i < sps*sec; i++) {
const ySin = 1+Math.sin(Math.PI * time * freq * Math.PI * 2 + (performance.now()*0.001));
const yNoise = Math.random() - 0.5;
line[i] = ySin * amp + yNoise * noise;
time += tincr;
}
}
let newFrame = () => {
update(line,sps,nSec);
update(line2,sps2,nSec);
//console.log(line);
plotutil.updateAllLines([line,line2,line,line2,line,line2],[sps,sps2,sps,sps2,sps,sps2],true,false);
plotutil.update();
requestAnimationFrame(newFrame);
}
requestAnimationFrame(newFrame);
FAQs
webgl-plot wrapper for quickly making stacked time series.
The npm package webgl-plot-utils receives a total of 2 weekly downloads. As such, webgl-plot-utils popularity was classified as not popular.
We found that webgl-plot-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.