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

@luma.gl/gltools

Package Overview
Dependencies
Maintainers
6
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@luma.gl/gltools - npm Package Compare versions

Comparing version 8.6.0-alpha.2 to 8.6.0-alpha.3

16

dist/lib/deprecated/context-api.d.ts

@@ -5,3 +5,5 @@ import { WebGLDeviceProps } from '@luma.gl/webgl';

};
/** @deprecated Use `new WebGLDevice()` or `luma.createDevice()` */
export declare function createGLContext(options?: GLContextOptions): WebGLRenderingContext | null;
/** @deprecated Use `WebGLDevice.attach()` */
export declare function instrumentGLContext(gl: WebGLRenderingContext | WebGL2RenderingContext, options?: GLContextOptions): WebGLRenderingContext;

@@ -21,2 +23,3 @@ /**

* resizeGLContext(gl, {width, height, useDevicePixels})
* @deprecated Use WebGLDevice.resize()
*/

@@ -28,7 +31,10 @@ export declare function resizeGLContext(gl: WebGLRenderingContext, options?: {

}): void;
/** Check one or more features */
/**
* Check one or more features
* @deprecated Use `WebGLDevice.features.has()`
*/
export declare function hasFeatures(gl: WebGLRenderingContext, features: string | string[]): boolean;
/**
* Check one feature
* @deprecated Use `WebGLDevice.webglFeatures` or `getFeatures()`
* @deprecated Use `WebGLDevice.features`
*/

@@ -38,3 +44,3 @@ export declare function hasFeature(gl: WebGLRenderingContext, feature: string): boolean;

* Return a map of supported features
* @deprecated Use `WebGLDevice.webglFeatures`
* @deprecated Use `WebGLDevice.features`
*/

@@ -72,3 +78,3 @@ export declare function getFeatures(gl: WebGLRenderingContext): Record<string, boolean>;

};
limits: import("@luma.gl/webgl/device/device-limits").WebGLLimits;
limits: import("@luma.gl/webgl/adapter/device-helpers/device-limits").WebGLLimits;
vendor: string;

@@ -82,4 +88,4 @@ renderer: string;

export declare function getContextLimits(gl: any): {
limits: import("@luma.gl/webgl/device/device-limits").WebGLLimits;
limits: import("@luma.gl/webgl/adapter/device-helpers/device-limits").WebGLLimits;
};
//# sourceMappingURL=context-api.d.ts.map
{
"name": "@luma.gl/gltools",
"version": "8.6.0-alpha.2",
"version": "8.6.0-alpha.3",
"description": "WebGL2 API Polyfills for WebGL1 WebGLRenderingContext",

@@ -32,6 +32,6 @@ "license": "MIT",

"@babel/runtime": "^7.0.0",
"@luma.gl/constants": "8.6.0-alpha.2",
"@probe.gl/log": "3.5.0-alpha.5"
"@luma.gl/constants": "8.6.0-alpha.3",
"@probe.gl/log": "^3.5.0"
},
"gitHead": "bdcebda76c1b4e47b127cdbd3f426ea6cbae44f1"
"gitHead": "a808a90fb8d59b682f5b647b8caa819f26827512"
}
// luma.gl, MIT license
// LEGACY v8 API for WebGLRendering context
// LEGACY luma.gl v8 API for WebGLRendering context
// DEPRECATED API - may be removed in luma.gl v9 or v10.

@@ -7,3 +8,2 @@ /* eslint-disable quotes */

import {WebGLDevice, WebGLDeviceProps} from '@luma.gl/webgl';
import {getDeviceFeatures} from '@luma.gl/webgl/device/device-features';
import {FEATURES} from './features';

@@ -15,2 +15,3 @@

/** @deprecated Use `new WebGLDevice()` or `luma.createDevice()` */
export function createGLContext(options?: GLContextOptions): WebGLRenderingContext | null {

@@ -22,2 +23,3 @@ const webglDevice = new WebGLDevice(options);

/** @deprecated Use `WebGLDevice.attach()` */
export function instrumentGLContext(

@@ -44,2 +46,3 @@ gl: WebGLRenderingContext | WebGL2RenderingContext,

* resizeGLContext(gl, {width, height, useDevicePixels})
* @deprecated Use WebGLDevice.resize()
*/

@@ -58,3 +61,6 @@ export function resizeGLContext(

/** Check one or more features */
/**
* Check one or more features
* @deprecated Use `WebGLDevice.features.has()`
*/
export function hasFeatures(gl: WebGLRenderingContext, features: string | string[]): boolean {

@@ -71,7 +77,5 @@ const webglDevice = WebGLDevice.attach(gl);

// DEPRECATED API
/**
* Check one feature
* @deprecated Use `WebGLDevice.webglFeatures` or `getFeatures()`
* @deprecated Use `WebGLDevice.features`
*/

@@ -84,3 +88,3 @@ export function hasFeature(gl: WebGLRenderingContext, feature: string): boolean {

* Return a map of supported features
* @deprecated Use `WebGLDevice.webglFeatures`
* @deprecated Use `WebGLDevice.features`
*/

@@ -87,0 +91,0 @@ export function getFeatures(gl: WebGLRenderingContext): Record<string, boolean> {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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