Socket
Socket
Sign inDemoInstall

@luma.gl/constants

Package Overview
Dependencies
Maintainers
7
Versions
237
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@luma.gl/constants - npm Package Compare versions

Comparing version 9.0.0-alpha.23 to 9.0.0-alpha.24

36

dist/webgl-types.d.ts
import { GL } from './constants-enum';
/** TypeScript type covering all typed arrays */
export declare type TypedArray = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array;
export type TypedArray = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array;
/** type covering all typed arrays and classic arrays consisting of numbers */
export declare type NumberArray = number[] | TypedArray;
export type NumberArray = number[] | TypedArray;
/** We don't know the type of Framebuffer at this stage */
declare type Framebuffer = unknown;
type Framebuffer = unknown;
/** Rendering primitives. Constants passed to drawElements() or drawArrays() to specify what kind of primitive to render. */
export declare type GLDrawMode = GL.POINTS | GL.LINES | GL.LINE_STRIP | GL.LINE_LOOP | GL.TRIANGLES | GL.TRIANGLE_STRIP | GL.TRIANGLE_FAN;
export type GLDrawMode = GL.POINTS | GL.LINES | GL.LINE_STRIP | GL.LINE_LOOP | GL.TRIANGLES | GL.TRIANGLE_STRIP | GL.TRIANGLE_FAN;
/** Rendering primitives. Constants passed to transform feedback . */
export declare type GLPrimitive = GL.POINTS | GL.LINES | GL.TRIANGLES;
export type GLPrimitive = GL.POINTS | GL.LINES | GL.TRIANGLES;
/** Data Type */
export declare type GLDataType = GL.FLOAT | GL.UNSIGNED_SHORT | GL.UNSIGNED_INT | GL.UNSIGNED_BYTE | GL.BYTE | GL.SHORT | GL.INT;
export type GLDataType = GL.FLOAT | GL.UNSIGNED_SHORT | GL.UNSIGNED_INT | GL.UNSIGNED_BYTE | GL.BYTE | GL.SHORT | GL.INT;
/** Pixel Type */
export declare type GLPixelType = GL.UNSIGNED_BYTE | GL.UNSIGNED_SHORT_5_6_5 | GL.UNSIGNED_SHORT_4_4_4_4 | GL.UNSIGNED_SHORT_5_5_5_1;
export type GLPixelType = GL.UNSIGNED_BYTE | GL.UNSIGNED_SHORT_5_6_5 | GL.UNSIGNED_SHORT_4_4_4_4 | GL.UNSIGNED_SHORT_5_5_5_1;
/** Uniform Type */
export declare type GLUniformType = GLSamplerType | GLCompositeType;
export type GLUniformType = GLSamplerType | GLCompositeType;
/** Sampler uniform type */
export declare type GLSamplerType = GL.SAMPLER_2D | GL.SAMPLER_CUBE | GL.SAMPLER_3D | GL.SAMPLER_2D_SHADOW | GL.SAMPLER_2D_ARRAY | GL.SAMPLER_2D_ARRAY_SHADOW | GL.SAMPLER_CUBE_SHADOW | GL.INT_SAMPLER_2D | GL.INT_SAMPLER_3D | GL.INT_SAMPLER_CUBE | GL.INT_SAMPLER_2D_ARRAY | GL.UNSIGNED_INT_SAMPLER_2D | GL.UNSIGNED_INT_SAMPLER_3D | GL.UNSIGNED_INT_SAMPLER_CUBE | GL.UNSIGNED_INT_SAMPLER_2D_ARRAY;
export type GLSamplerType = GL.SAMPLER_2D | GL.SAMPLER_CUBE | GL.SAMPLER_3D | GL.SAMPLER_2D_SHADOW | GL.SAMPLER_2D_ARRAY | GL.SAMPLER_2D_ARRAY_SHADOW | GL.SAMPLER_CUBE_SHADOW | GL.INT_SAMPLER_2D | GL.INT_SAMPLER_3D | GL.INT_SAMPLER_CUBE | GL.INT_SAMPLER_2D_ARRAY | GL.UNSIGNED_INT_SAMPLER_2D | GL.UNSIGNED_INT_SAMPLER_3D | GL.UNSIGNED_INT_SAMPLER_CUBE | GL.UNSIGNED_INT_SAMPLER_2D_ARRAY;
/** Composite types table */
export declare type GLCompositeType = GL.FLOAT | GL.FLOAT_VEC2 | GL.FLOAT_VEC3 | GL.FLOAT_VEC4 | GL.INT | GL.INT_VEC2 | GL.INT_VEC3 | GL.INT_VEC4 | GL.UNSIGNED_INT | GL.UNSIGNED_INT_VEC2 | GL.UNSIGNED_INT_VEC3 | GL.UNSIGNED_INT_VEC4 | GL.BOOL | GL.BOOL_VEC2 | GL.BOOL_VEC3 | GL.BOOL_VEC4 | GL.FLOAT_MAT2 | GL.FLOAT_MAT2x3 | GL.FLOAT_MAT2x4 | GL.FLOAT_MAT3x2 | GL.FLOAT_MAT3 | GL.FLOAT_MAT3x4 | GL.FLOAT_MAT4x2 | GL.FLOAT_MAT4x3 | GL.FLOAT_MAT4;
export type GLCompositeType = GL.FLOAT | GL.FLOAT_VEC2 | GL.FLOAT_VEC3 | GL.FLOAT_VEC4 | GL.INT | GL.INT_VEC2 | GL.INT_VEC3 | GL.INT_VEC4 | GL.UNSIGNED_INT | GL.UNSIGNED_INT_VEC2 | GL.UNSIGNED_INT_VEC3 | GL.UNSIGNED_INT_VEC4 | GL.BOOL | GL.BOOL_VEC2 | GL.BOOL_VEC3 | GL.BOOL_VEC4 | GL.FLOAT_MAT2 | GL.FLOAT_MAT2x3 | GL.FLOAT_MAT2x4 | GL.FLOAT_MAT3x2 | GL.FLOAT_MAT3 | GL.FLOAT_MAT3x4 | GL.FLOAT_MAT4x2 | GL.FLOAT_MAT4x3 | GL.FLOAT_MAT4;
/**

@@ -26,5 +26,5 @@ * Depth or stencil tests

*/
export declare type GLFunction = GL.NEVER | GL.LESS | GL.EQUAL | GL.LEQUAL | GL.GREATER | GL.NOTEQUAL | GL.GEQUAL | GL.ALWAYS;
export declare type GLBlendEquation = GL.FUNC_ADD | GL.FUNC_SUBTRACT | GL.FUNC_REVERSE_SUBTRACT | GL.MIN_EXT | GL.MAX_EXT;
export declare type GLBlendFunction = GL.ZERO | GL.ONE | GL.SRC_COLOR | GL.ONE_MINUS_SRC_COLOR | GL.DST_COLOR | GL.ONE_MINUS_DST_COLOR | GL.SRC_ALPHA | GL.ONE_MINUS_SRC_ALPHA | GL.DST_ALPHA | GL.ONE_MINUS_DST_ALPHA | GL.CONSTANT_COLOR | GL.ONE_MINUS_CONSTANT_COLOR | GL.CONSTANT_ALPHA | GL.ONE_MINUS_CONSTANT_ALPHA | GL.SRC_ALPHA_SATURATE;
export type GLFunction = GL.NEVER | GL.LESS | GL.EQUAL | GL.LEQUAL | GL.GREATER | GL.NOTEQUAL | GL.GEQUAL | GL.ALWAYS;
export type GLBlendEquation = GL.FUNC_ADD | GL.FUNC_SUBTRACT | GL.FUNC_REVERSE_SUBTRACT | GL.MIN_EXT | GL.MAX_EXT;
export type GLBlendFunction = GL.ZERO | GL.ONE | GL.SRC_COLOR | GL.ONE_MINUS_SRC_COLOR | GL.DST_COLOR | GL.ONE_MINUS_DST_COLOR | GL.SRC_ALPHA | GL.ONE_MINUS_SRC_ALPHA | GL.DST_ALPHA | GL.ONE_MINUS_DST_ALPHA | GL.CONSTANT_COLOR | GL.ONE_MINUS_CONSTANT_COLOR | GL.CONSTANT_ALPHA | GL.ONE_MINUS_CONSTANT_ALPHA | GL.SRC_ALPHA_SATURATE;
/**

@@ -34,5 +34,5 @@ * Stencil actions

*/
export declare type GLStencilOp = GL.KEEP | GL.ZERO | GL.REPLACE | GL.INCR | GL.INCR_WRAP | GL.DECR | GL.DECR_WRAP | GL.INVERT;
export type GLStencilOp = GL.KEEP | GL.ZERO | GL.REPLACE | GL.INCR | GL.INCR_WRAP | GL.DECR | GL.DECR_WRAP | GL.INVERT;
/** Parameters for textures and samplers */
export declare type GLSamplerParameters = {
export type GLSamplerParameters = {
/** Sets the wrap parameter for texture coordinate to either GL_CLAMP_TO_EDGE, GL_MIRRORED_REPEAT, or GL_REPEAT. */

@@ -60,3 +60,3 @@ [GL.TEXTURE_WRAP_S]?: GL.CLAMP_TO_EDGE | GL.REPEAT | GL.MIRRORED_REPEAT;

*/
export declare type GLValueParameters = {
export type GLValueParameters = {
[GL.BLEND]?: boolean;

@@ -144,3 +144,3 @@ [GL.BLEND_COLOR]?: [number, number, number, number] | NumberArray;

*/
export declare type GLFunctionParameters = {
export type GLFunctionParameters = {
framebuffer?: Framebuffer | null;

@@ -180,4 +180,4 @@ blend?: boolean;

/** WebGL style parameters object (with both GL constants and function style fields) */
export declare type GLParameters = GLValueParameters & GLFunctionParameters;
export type GLParameters = GLValueParameters & GLFunctionParameters;
export {};
//# sourceMappingURL=webgl-types.d.ts.map
{
"name": "@luma.gl/constants",
"version": "9.0.0-alpha.23",
"version": "9.0.0-alpha.24",
"description": "WebGL and WebGL2 constants",

@@ -41,3 +41,3 @@ "type": "module",

},
"gitHead": "5e4a30497333bea4be8f2b3f3db33c0b67931b9c"
"gitHead": "3707968c288edbfef7ab4060195493ca8f00e7d5"
}

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