@luma.gl/gltools
Advanced tools
Comparing version 8.6.0-alpha.2 to 8.6.0-alpha.3
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
51766
610
0
+ Added@luma.gl/constants@8.6.0-alpha.3(transitive)
+ Added@probe.gl/env@3.6.0(transitive)
+ Added@probe.gl/log@3.6.0(transitive)
- Removed@luma.gl/constants@8.6.0-alpha.2(transitive)
- Removed@probe.gl/env@3.5.0-alpha.5(transitive)
- Removed@probe.gl/log@3.5.0-alpha.5(transitive)
Updated@probe.gl/log@^3.5.0