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.
driver-webgl
Advanced tools
WebGL driver for Rax.
Components and APIs are based on three.js
design and implementation. Use markup language and declarative writing to simplify development.
s
$ npm install --save driver-webgl
import {createElement, Component, render} from 'rax';
import WebGLDriver from 'driver-webgl';
class HelloWorld extends Component {
constructor(props, context) {
super(props, context);
this.state = {
cubeRotation: [0, 0, 0]
};
this.width = window.innerWidth;
this.height = window.innerHeight;
this.cameraPosition = [0, 0, 5];
}
onFrame = () => {
this.setState({
cubeRotation: [
this.state.cubeRotation[0] + 0.01,
this.state.cubeRotation[1] + 0.01,
0
]
});
}
render() {
return (
<scene
width={this.width}
height={this.height}
onFrame={this.onFrame}
>
<perspective-camera
fov={75}
aspect={this.width / this.height}
near={0.1}
far={1000}
position={this.cameraPosition}
/>
<mesh
rotation={this.state.cubeRotation}
>
<box-geometry
width={1}
height={1}
depth={1}
/>
<mesh-basic-material
color={0x00ff00}
/>
</mesh>
</scene>
);
}
}
render(<HelloWorld />, document.body, {
driver: WebGLDriver
});
FAQs
WebGL driver for Rax.
The npm package driver-webgl receives a total of 4 weekly downloads. As such, driver-webgl popularity was classified as not popular.
We found that driver-webgl demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.