Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@antv/g-webgl

Package Overview
Dependencies
Maintainers
0
Versions
281
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antv/g-webgl

A renderer implemented by WebGL1/2

  • 2.0.31
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
729
decreased by-7.37%
Maintainers
0
Weekly downloads
 
Created
Source

@antv/g-webgl

This is a renderer implemented with WebGL2/1.

import { Renderer as WebGLRenderer } from '@antv/g-webgl';

const webglRenderer = new WebGLRenderer();

// create a canvas
const canvas = new Canvas({
  container: 'container',
  width: 600,
  height: 500,
  renderer: webglRenderer,
});

Options

targets

We can pass in a specific target(s), which will get downgraded automatically.

new Renderer({
  targets: ['webgl2', 'webgl1'],
});

onContextLost

https://www.khronos.org/webgl/wiki/HandlingContextLost

new Renderer({
  onContextLost: () => {},
});

Keywords

FAQs

Package last updated on 15 Nov 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc