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

webgl-plot

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webgl-plot - npm Package Compare versions

Comparing version 0.5.8 to 0.6.0

typedoc.json

6

dist/webglplot.d.ts

@@ -15,3 +15,3 @@ /**

export { WebglLine, ColorRGBA, WebglStep, WebglPolar, WebglSquare };
declare type WebGLPlotConfig = {
declare type WebglPlotConfig = {
antialias?: boolean;

@@ -27,3 +27,3 @@ transparent?: boolean;

*/
export declare class WebGLPlot {
export declare class WebglPlot {
/**

@@ -123,3 +123,3 @@ * @private

*/
constructor(canvas: HTMLCanvasElement | OffscreenCanvas, options?: WebGLPlotConfig);
constructor(canvas: HTMLCanvasElement | OffscreenCanvas, options?: WebglPlotConfig);
/**

@@ -126,0 +126,0 @@ * updates and redraws the content of the plot

@@ -316,3 +316,3 @@ class ColorRGBA {

*/
class WebGLPlot {
class WebglPlot {
/**

@@ -577,2 +577,2 @@ * Create a webgl-plot instance

export { ColorRGBA, WebGLPlot, WebglLine, WebglPolar, WebglSquare, WebglStep };
export { ColorRGBA, WebglLine, WebglPlot, WebglPolar, WebglSquare, WebglStep };
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.WebGLPlotBundle = {}));
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.WebglPlotBundle = {}));
}(this, (function (exports) { 'use strict';

@@ -322,3 +322,3 @@

*/
class WebGLPlot {
class WebglPlot {
/**

@@ -584,4 +584,4 @@ * Create a webgl-plot instance

exports.ColorRGBA = ColorRGBA;
exports.WebGLPlot = WebGLPlot;
exports.WebglLine = WebglLine;
exports.WebglPlot = WebglPlot;
exports.WebglPolar = WebglPolar;

@@ -588,0 +588,0 @@ exports.WebglSquare = WebglSquare;

{
"name": "webgl-plot",
"version": "0.5.8",
"version": "0.6.0",
"description": "High-performance 2D plotting library based on native WebGL",

@@ -15,2 +15,4 @@ "main": "./dist/webglplot.umd.js",

"rollup": "^2.41.2",
"typedoc": "^0.20.31",
"typedoc-plugin-markdown": "^3.6.0",
"typescript": "^4.2.3"

@@ -17,0 +19,0 @@ },

@@ -42,3 +42,3 @@ ![Npm Build](https://github.com/danchitnis/webgl-plot/workflows/Npm%20Build/badge.svg) ![Yarn Build](https://github.com/danchitnis/webgl-plot/workflows/Yarn%20Build/badge.svg) ![Code scanning](https://github.com/danchitnis/webgl-plot/workflows/Code%20scanning/badge.svg) ![Build](https://github.com/danchitnis/webgl-plot/workflows/Build/badge.svg)

```javascript
import WebGLplot, { WebglLine, ColorRGBA } from "webgl-plot";
import { WebGLplot, WebglLine, ColorRGBA } from "webgl-plot";
```

@@ -61,3 +61,3 @@

const line = new WebglLine(color, numX);
const wglp = new WebGLplot(canvas);
const wglp = new WebglPlot(canvas);
```

@@ -138,3 +138,4 @@

```javascript
import WebGLplot, {
import {
WebglPlot,
WebglLine,

@@ -158,2 +159,6 @@ ColorRGBA,

## Internal test
[ESM](https://danchitnis.github.io/webgl-plot/test/index-esm.html), [off-screen](https://danchitnis.github.io/webgl-plot/test/index-esm-off.html), [UMD](https://danchitnis.github.io/webgl-plot/test/index-umd.html)
## API Documentation

@@ -160,0 +165,0 @@

@@ -18,3 +18,3 @@ /**

type WebGLPlotConfig = {
type WebglPlotConfig = {
antialias?: boolean;

@@ -31,3 +31,3 @@ transparent?: boolean;

*/
export class WebGLPlot {
export class WebglPlot {
/**

@@ -149,3 +149,3 @@ * @private

*/
constructor(canvas: HTMLCanvasElement | OffscreenCanvas, options?: WebGLPlotConfig) {
constructor(canvas: HTMLCanvasElement | OffscreenCanvas, options?: WebglPlotConfig) {
if (options == undefined) {

@@ -152,0 +152,0 @@ this.webgl = canvas.getContext("webgl", {

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