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

@pixi/constants

Package Overview
Dependencies
Maintainers
3
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixi/constants - npm Package Compare versions

Comparing version 6.5.3 to 7.0.0-alpha

722

dist/cjs/constants.js
/*!
* @pixi/constants - v6.5.3
* Compiled Fri, 09 Sep 2022 13:55:20 UTC
* @pixi/constants - v7.0.0-alpha
* Compiled Fri, 09 Sep 2022 16:09:18 UTC
*

@@ -12,508 +12,214 @@ * @pixi/constants is licensed under the MIT License.

/**
* Different types of environments for WebGL.
* @static
* @memberof PIXI
* @name ENV
* @enum {number}
* @property {number} WEBGL_LEGACY - Used for older v1 WebGL devices. PixiJS will aim to ensure compatibility
* with older / less advanced devices. If you experience unexplained flickering prefer this environment.
* @property {number} WEBGL - Version 1 of WebGL
* @property {number} WEBGL2 - Version 2 of WebGL
*/
exports.ENV = void 0;
(function (ENV) {
ENV[ENV["WEBGL_LEGACY"] = 0] = "WEBGL_LEGACY";
ENV[ENV["WEBGL"] = 1] = "WEBGL";
ENV[ENV["WEBGL2"] = 2] = "WEBGL2";
})(exports.ENV || (exports.ENV = {}));
/**
* Constant to identify the Renderer Type.
* @static
* @memberof PIXI
* @name RENDERER_TYPE
* @enum {number}
* @property {number} UNKNOWN - Unknown render type.
* @property {number} WEBGL - WebGL render type.
* @property {number} CANVAS - Canvas render type.
*/
exports.RENDERER_TYPE = void 0;
(function (RENDERER_TYPE) {
RENDERER_TYPE[RENDERER_TYPE["UNKNOWN"] = 0] = "UNKNOWN";
RENDERER_TYPE[RENDERER_TYPE["WEBGL"] = 1] = "WEBGL";
RENDERER_TYPE[RENDERER_TYPE["CANVAS"] = 2] = "CANVAS";
})(exports.RENDERER_TYPE || (exports.RENDERER_TYPE = {}));
/**
* Bitwise OR of masks that indicate the buffers to be cleared.
* @static
* @memberof PIXI
* @name BUFFER_BITS
* @enum {number}
* @property {number} COLOR - Indicates the buffers currently enabled for color writing.
* @property {number} DEPTH - Indicates the depth buffer.
* @property {number} STENCIL - Indicates the stencil buffer.
*/
exports.BUFFER_BITS = void 0;
(function (BUFFER_BITS) {
BUFFER_BITS[BUFFER_BITS["COLOR"] = 16384] = "COLOR";
BUFFER_BITS[BUFFER_BITS["DEPTH"] = 256] = "DEPTH";
BUFFER_BITS[BUFFER_BITS["STENCIL"] = 1024] = "STENCIL";
})(exports.BUFFER_BITS || (exports.BUFFER_BITS = {}));
/**
* Various blend modes supported by PIXI.
*
* IMPORTANT - The WebGL renderer only supports the NORMAL, ADD, MULTIPLY and SCREEN blend modes.
* Anything else will silently act like NORMAL.
* @memberof PIXI
* @name BLEND_MODES
* @enum {number}
* @property {number} NORMAL -
* @property {number} ADD -
* @property {number} MULTIPLY -
* @property {number} SCREEN -
* @property {number} OVERLAY -
* @property {number} DARKEN -
* @property {number} LIGHTEN -
* @property {number} COLOR_DODGE -
* @property {number} COLOR_BURN -
* @property {number} HARD_LIGHT -
* @property {number} SOFT_LIGHT -
* @property {number} DIFFERENCE -
* @property {number} EXCLUSION -
* @property {number} HUE -
* @property {number} SATURATION -
* @property {number} COLOR -
* @property {number} LUMINOSITY -
* @property {number} NORMAL_NPM -
* @property {number} ADD_NPM -
* @property {number} SCREEN_NPM -
* @property {number} NONE -
* @property {number} SRC_IN -
* @property {number} SRC_OUT -
* @property {number} SRC_ATOP -
* @property {number} DST_OVER -
* @property {number} DST_IN -
* @property {number} DST_OUT -
* @property {number} DST_ATOP -
* @property {number} SUBTRACT -
* @property {number} SRC_OVER -
* @property {number} ERASE -
* @property {number} XOR -
*/
exports.BLEND_MODES = void 0;
(function (BLEND_MODES) {
BLEND_MODES[BLEND_MODES["NORMAL"] = 0] = "NORMAL";
BLEND_MODES[BLEND_MODES["ADD"] = 1] = "ADD";
BLEND_MODES[BLEND_MODES["MULTIPLY"] = 2] = "MULTIPLY";
BLEND_MODES[BLEND_MODES["SCREEN"] = 3] = "SCREEN";
BLEND_MODES[BLEND_MODES["OVERLAY"] = 4] = "OVERLAY";
BLEND_MODES[BLEND_MODES["DARKEN"] = 5] = "DARKEN";
BLEND_MODES[BLEND_MODES["LIGHTEN"] = 6] = "LIGHTEN";
BLEND_MODES[BLEND_MODES["COLOR_DODGE"] = 7] = "COLOR_DODGE";
BLEND_MODES[BLEND_MODES["COLOR_BURN"] = 8] = "COLOR_BURN";
BLEND_MODES[BLEND_MODES["HARD_LIGHT"] = 9] = "HARD_LIGHT";
BLEND_MODES[BLEND_MODES["SOFT_LIGHT"] = 10] = "SOFT_LIGHT";
BLEND_MODES[BLEND_MODES["DIFFERENCE"] = 11] = "DIFFERENCE";
BLEND_MODES[BLEND_MODES["EXCLUSION"] = 12] = "EXCLUSION";
BLEND_MODES[BLEND_MODES["HUE"] = 13] = "HUE";
BLEND_MODES[BLEND_MODES["SATURATION"] = 14] = "SATURATION";
BLEND_MODES[BLEND_MODES["COLOR"] = 15] = "COLOR";
BLEND_MODES[BLEND_MODES["LUMINOSITY"] = 16] = "LUMINOSITY";
BLEND_MODES[BLEND_MODES["NORMAL_NPM"] = 17] = "NORMAL_NPM";
BLEND_MODES[BLEND_MODES["ADD_NPM"] = 18] = "ADD_NPM";
BLEND_MODES[BLEND_MODES["SCREEN_NPM"] = 19] = "SCREEN_NPM";
BLEND_MODES[BLEND_MODES["NONE"] = 20] = "NONE";
BLEND_MODES[BLEND_MODES["SRC_OVER"] = 0] = "SRC_OVER";
BLEND_MODES[BLEND_MODES["SRC_IN"] = 21] = "SRC_IN";
BLEND_MODES[BLEND_MODES["SRC_OUT"] = 22] = "SRC_OUT";
BLEND_MODES[BLEND_MODES["SRC_ATOP"] = 23] = "SRC_ATOP";
BLEND_MODES[BLEND_MODES["DST_OVER"] = 24] = "DST_OVER";
BLEND_MODES[BLEND_MODES["DST_IN"] = 25] = "DST_IN";
BLEND_MODES[BLEND_MODES["DST_OUT"] = 26] = "DST_OUT";
BLEND_MODES[BLEND_MODES["DST_ATOP"] = 27] = "DST_ATOP";
BLEND_MODES[BLEND_MODES["ERASE"] = 26] = "ERASE";
BLEND_MODES[BLEND_MODES["SUBTRACT"] = 28] = "SUBTRACT";
BLEND_MODES[BLEND_MODES["XOR"] = 29] = "XOR";
})(exports.BLEND_MODES || (exports.BLEND_MODES = {}));
/**
* Various webgl draw modes. These can be used to specify which GL drawMode to use
* under certain situations and renderers.
* @memberof PIXI
* @static
* @name DRAW_MODES
* @enum {number}
* @property {number} POINTS -
* @property {number} LINES -
* @property {number} LINE_LOOP -
* @property {number} LINE_STRIP -
* @property {number} TRIANGLES -
* @property {number} TRIANGLE_STRIP -
* @property {number} TRIANGLE_FAN -
*/
exports.DRAW_MODES = void 0;
(function (DRAW_MODES) {
DRAW_MODES[DRAW_MODES["POINTS"] = 0] = "POINTS";
DRAW_MODES[DRAW_MODES["LINES"] = 1] = "LINES";
DRAW_MODES[DRAW_MODES["LINE_LOOP"] = 2] = "LINE_LOOP";
DRAW_MODES[DRAW_MODES["LINE_STRIP"] = 3] = "LINE_STRIP";
DRAW_MODES[DRAW_MODES["TRIANGLES"] = 4] = "TRIANGLES";
DRAW_MODES[DRAW_MODES["TRIANGLE_STRIP"] = 5] = "TRIANGLE_STRIP";
DRAW_MODES[DRAW_MODES["TRIANGLE_FAN"] = 6] = "TRIANGLE_FAN";
})(exports.DRAW_MODES || (exports.DRAW_MODES = {}));
/**
* Various GL texture/resources formats.
* @memberof PIXI
* @static
* @name FORMATS
* @enum {number}
* @property {number} [RGBA=6408] -
* @property {number} [RGB=6407] -
* @property {number} [RG=33319] -
* @property {number} [RED=6403] -
* @property {number} [RGBA_INTEGER=36249] -
* @property {number} [RGB_INTEGER=36248] -
* @property {number} [RG_INTEGER=33320] -
* @property {number} [RED_INTEGER=36244] -
* @property {number} [ALPHA=6406] -
* @property {number} [LUMINANCE=6409] -
* @property {number} [LUMINANCE_ALPHA=6410] -
* @property {number} [DEPTH_COMPONENT=6402] -
* @property {number} [DEPTH_STENCIL=34041] -
*/
exports.FORMATS = void 0;
(function (FORMATS) {
FORMATS[FORMATS["RGBA"] = 6408] = "RGBA";
FORMATS[FORMATS["RGB"] = 6407] = "RGB";
FORMATS[FORMATS["RG"] = 33319] = "RG";
FORMATS[FORMATS["RED"] = 6403] = "RED";
FORMATS[FORMATS["RGBA_INTEGER"] = 36249] = "RGBA_INTEGER";
FORMATS[FORMATS["RGB_INTEGER"] = 36248] = "RGB_INTEGER";
FORMATS[FORMATS["RG_INTEGER"] = 33320] = "RG_INTEGER";
FORMATS[FORMATS["RED_INTEGER"] = 36244] = "RED_INTEGER";
FORMATS[FORMATS["ALPHA"] = 6406] = "ALPHA";
FORMATS[FORMATS["LUMINANCE"] = 6409] = "LUMINANCE";
FORMATS[FORMATS["LUMINANCE_ALPHA"] = 6410] = "LUMINANCE_ALPHA";
FORMATS[FORMATS["DEPTH_COMPONENT"] = 6402] = "DEPTH_COMPONENT";
FORMATS[FORMATS["DEPTH_STENCIL"] = 34041] = "DEPTH_STENCIL";
})(exports.FORMATS || (exports.FORMATS = {}));
/**
* Various GL target types.
* @memberof PIXI
* @static
* @name TARGETS
* @enum {number}
* @property {number} [TEXTURE_2D=3553] -
* @property {number} [TEXTURE_CUBE_MAP=34067] -
* @property {number} [TEXTURE_2D_ARRAY=35866] -
* @property {number} [TEXTURE_CUBE_MAP_POSITIVE_X=34069] -
* @property {number} [TEXTURE_CUBE_MAP_NEGATIVE_X=34070] -
* @property {number} [TEXTURE_CUBE_MAP_POSITIVE_Y=34071] -
* @property {number} [TEXTURE_CUBE_MAP_NEGATIVE_Y=34072] -
* @property {number} [TEXTURE_CUBE_MAP_POSITIVE_Z=34073] -
* @property {number} [TEXTURE_CUBE_MAP_NEGATIVE_Z=34074] -
*/
exports.TARGETS = void 0;
(function (TARGETS) {
TARGETS[TARGETS["TEXTURE_2D"] = 3553] = "TEXTURE_2D";
TARGETS[TARGETS["TEXTURE_CUBE_MAP"] = 34067] = "TEXTURE_CUBE_MAP";
TARGETS[TARGETS["TEXTURE_2D_ARRAY"] = 35866] = "TEXTURE_2D_ARRAY";
TARGETS[TARGETS["TEXTURE_CUBE_MAP_POSITIVE_X"] = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X";
TARGETS[TARGETS["TEXTURE_CUBE_MAP_NEGATIVE_X"] = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X";
TARGETS[TARGETS["TEXTURE_CUBE_MAP_POSITIVE_Y"] = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y";
TARGETS[TARGETS["TEXTURE_CUBE_MAP_NEGATIVE_Y"] = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y";
TARGETS[TARGETS["TEXTURE_CUBE_MAP_POSITIVE_Z"] = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z";
TARGETS[TARGETS["TEXTURE_CUBE_MAP_NEGATIVE_Z"] = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z";
})(exports.TARGETS || (exports.TARGETS = {}));
/**
* Various GL data format types.
* @memberof PIXI
* @static
* @name TYPES
* @enum {number}
* @property {number} [UNSIGNED_BYTE=5121] -
* @property {number} [UNSIGNED_SHORT=5123] -
* @property {number} [UNSIGNED_SHORT_5_6_5=33635] -
* @property {number} [UNSIGNED_SHORT_4_4_4_4=32819] -
* @property {number} [UNSIGNED_SHORT_5_5_5_1=32820] -
* @property {number} [UNSIGNED_INT=5125] -
* @property {number} [UNSIGNED_INT_10F_11F_11F_REV=35899] -
* @property {number} [UNSIGNED_INT_2_10_10_10_REV=33640] -
* @property {number} [UNSIGNED_INT_24_8=34042] -
* @property {number} [UNSIGNED_INT_5_9_9_9_REV=35902] -
* @property {number} [BYTE=5120] -
* @property {number} [SHORT=5122] -
* @property {number} [INT=5124] -
* @property {number} [FLOAT=5126] -
* @property {number} [FLOAT_32_UNSIGNED_INT_24_8_REV=36269] -
* @property {number} [HALF_FLOAT=36193] -
*/
exports.TYPES = void 0;
(function (TYPES) {
TYPES[TYPES["UNSIGNED_BYTE"] = 5121] = "UNSIGNED_BYTE";
TYPES[TYPES["UNSIGNED_SHORT"] = 5123] = "UNSIGNED_SHORT";
TYPES[TYPES["UNSIGNED_SHORT_5_6_5"] = 33635] = "UNSIGNED_SHORT_5_6_5";
TYPES[TYPES["UNSIGNED_SHORT_4_4_4_4"] = 32819] = "UNSIGNED_SHORT_4_4_4_4";
TYPES[TYPES["UNSIGNED_SHORT_5_5_5_1"] = 32820] = "UNSIGNED_SHORT_5_5_5_1";
TYPES[TYPES["UNSIGNED_INT"] = 5125] = "UNSIGNED_INT";
TYPES[TYPES["UNSIGNED_INT_10F_11F_11F_REV"] = 35899] = "UNSIGNED_INT_10F_11F_11F_REV";
TYPES[TYPES["UNSIGNED_INT_2_10_10_10_REV"] = 33640] = "UNSIGNED_INT_2_10_10_10_REV";
TYPES[TYPES["UNSIGNED_INT_24_8"] = 34042] = "UNSIGNED_INT_24_8";
TYPES[TYPES["UNSIGNED_INT_5_9_9_9_REV"] = 35902] = "UNSIGNED_INT_5_9_9_9_REV";
TYPES[TYPES["BYTE"] = 5120] = "BYTE";
TYPES[TYPES["SHORT"] = 5122] = "SHORT";
TYPES[TYPES["INT"] = 5124] = "INT";
TYPES[TYPES["FLOAT"] = 5126] = "FLOAT";
TYPES[TYPES["FLOAT_32_UNSIGNED_INT_24_8_REV"] = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV";
TYPES[TYPES["HALF_FLOAT"] = 36193] = "HALF_FLOAT";
})(exports.TYPES || (exports.TYPES = {}));
/**
* Various sampler types. Correspond to `sampler`, `isampler`, `usampler` GLSL types respectively.
* WebGL1 works only with FLOAT.
* @memberof PIXI
* @static
* @name SAMPLER_TYPES
* @enum {number}
* @property {number} [FLOAT=0] -
* @property {number} [INT=1] -
* @property {number} [UINT=2] -
*/
exports.SAMPLER_TYPES = void 0;
(function (SAMPLER_TYPES) {
SAMPLER_TYPES[SAMPLER_TYPES["FLOAT"] = 0] = "FLOAT";
SAMPLER_TYPES[SAMPLER_TYPES["INT"] = 1] = "INT";
SAMPLER_TYPES[SAMPLER_TYPES["UINT"] = 2] = "UINT";
})(exports.SAMPLER_TYPES || (exports.SAMPLER_TYPES = {}));
/**
* The scale modes that are supported by pixi.
*
* The {@link PIXI.settings.SCALE_MODE} scale mode affects the default scaling mode of future operations.
* It can be re-assigned to either LINEAR or NEAREST, depending upon suitability.
* @memberof PIXI
* @static
* @name SCALE_MODES
* @enum {number}
* @property {number} LINEAR Smooth scaling
* @property {number} NEAREST Pixelating scaling
*/
exports.SCALE_MODES = void 0;
(function (SCALE_MODES) {
SCALE_MODES[SCALE_MODES["NEAREST"] = 0] = "NEAREST";
SCALE_MODES[SCALE_MODES["LINEAR"] = 1] = "LINEAR";
})(exports.SCALE_MODES || (exports.SCALE_MODES = {}));
/**
* The wrap modes that are supported by pixi.
*
* The {@link PIXI.settings.WRAP_MODE} wrap mode affects the default wrapping mode of future operations.
* It can be re-assigned to either CLAMP or REPEAT, depending upon suitability.
* If the texture is non power of two then clamp will be used regardless as WebGL can
* only use REPEAT if the texture is po2.
*
* This property only affects WebGL.
* @name WRAP_MODES
* @memberof PIXI
* @static
* @enum {number}
* @property {number} CLAMP - The textures uvs are clamped
* @property {number} REPEAT - The texture uvs tile and repeat
* @property {number} MIRRORED_REPEAT - The texture uvs tile and repeat with mirroring
*/
exports.WRAP_MODES = void 0;
(function (WRAP_MODES) {
WRAP_MODES[WRAP_MODES["CLAMP"] = 33071] = "CLAMP";
WRAP_MODES[WRAP_MODES["REPEAT"] = 10497] = "REPEAT";
WRAP_MODES[WRAP_MODES["MIRRORED_REPEAT"] = 33648] = "MIRRORED_REPEAT";
})(exports.WRAP_MODES || (exports.WRAP_MODES = {}));
/**
* Mipmap filtering modes that are supported by pixi.
*
* The {@link PIXI.settings.MIPMAP_TEXTURES} affects default texture filtering.
* Mipmaps are generated for a baseTexture if its `mipmap` field is `ON`,
* or its `POW2` and texture dimensions are powers of 2.
* Due to platform restriction, `ON` option will work like `POW2` for webgl-1.
*
* This property only affects WebGL.
* @name MIPMAP_MODES
* @memberof PIXI
* @static
* @enum {number}
* @property {number} OFF - No mipmaps
* @property {number} POW2 - Generate mipmaps if texture dimensions are pow2
* @property {number} ON - Always generate mipmaps
* @property {number} ON_MANUAL - Use mipmaps, but do not auto-generate them; this is used with a resource
* that supports buffering each level-of-detail.
*/
exports.MIPMAP_MODES = void 0;
(function (MIPMAP_MODES) {
MIPMAP_MODES[MIPMAP_MODES["OFF"] = 0] = "OFF";
MIPMAP_MODES[MIPMAP_MODES["POW2"] = 1] = "POW2";
MIPMAP_MODES[MIPMAP_MODES["ON"] = 2] = "ON";
MIPMAP_MODES[MIPMAP_MODES["ON_MANUAL"] = 3] = "ON_MANUAL";
})(exports.MIPMAP_MODES || (exports.MIPMAP_MODES = {}));
/**
* How to treat textures with premultiplied alpha
* @name ALPHA_MODES
* @memberof PIXI
* @static
* @enum {number}
* @property {number} NO_PREMULTIPLIED_ALPHA - Source is not premultiplied, leave it like that.
* Option for compressed and data textures that are created from typed arrays.
* @property {number} PREMULTIPLY_ON_UPLOAD - Source is not premultiplied, premultiply on upload.
* Default option, used for all loaded images.
* @property {number} PREMULTIPLIED_ALPHA - Source is already premultiplied
* Example: spine atlases with `_pma` suffix.
* @property {number} NPM - Alias for NO_PREMULTIPLIED_ALPHA.
* @property {number} UNPACK - Default option, alias for PREMULTIPLY_ON_UPLOAD.
* @property {number} PMA - Alias for PREMULTIPLIED_ALPHA.
*/
exports.ALPHA_MODES = void 0;
(function (ALPHA_MODES) {
ALPHA_MODES[ALPHA_MODES["NPM"] = 0] = "NPM";
ALPHA_MODES[ALPHA_MODES["UNPACK"] = 1] = "UNPACK";
ALPHA_MODES[ALPHA_MODES["PMA"] = 2] = "PMA";
ALPHA_MODES[ALPHA_MODES["NO_PREMULTIPLIED_ALPHA"] = 0] = "NO_PREMULTIPLIED_ALPHA";
ALPHA_MODES[ALPHA_MODES["PREMULTIPLY_ON_UPLOAD"] = 1] = "PREMULTIPLY_ON_UPLOAD";
ALPHA_MODES[ALPHA_MODES["PREMULTIPLY_ALPHA"] = 2] = "PREMULTIPLY_ALPHA";
ALPHA_MODES[ALPHA_MODES["PREMULTIPLIED_ALPHA"] = 2] = "PREMULTIPLIED_ALPHA";
})(exports.ALPHA_MODES || (exports.ALPHA_MODES = {}));
/**
* Configure whether filter textures are cleared after binding.
*
* Filter textures need not be cleared if the filter does not use pixel blending. {@link CLEAR_MODES.BLIT} will detect
* this and skip clearing as an optimization.
* @name CLEAR_MODES
* @memberof PIXI
* @static
* @enum {number}
* @property {number} BLEND - Do not clear the filter texture. The filter's output will blend on top of the output texture.
* @property {number} CLEAR - Always clear the filter texture.
* @property {number} BLIT - Clear only if {@link FilterSystem.forceClear} is set or if the filter uses pixel blending.
* @property {number} NO - Alias for BLEND, same as `false` in earlier versions
* @property {number} YES - Alias for CLEAR, same as `true` in earlier versions
* @property {number} AUTO - Alias for BLIT
*/
exports.CLEAR_MODES = void 0;
(function (CLEAR_MODES) {
CLEAR_MODES[CLEAR_MODES["NO"] = 0] = "NO";
CLEAR_MODES[CLEAR_MODES["YES"] = 1] = "YES";
CLEAR_MODES[CLEAR_MODES["AUTO"] = 2] = "AUTO";
CLEAR_MODES[CLEAR_MODES["BLEND"] = 0] = "BLEND";
CLEAR_MODES[CLEAR_MODES["CLEAR"] = 1] = "CLEAR";
CLEAR_MODES[CLEAR_MODES["BLIT"] = 2] = "BLIT";
})(exports.CLEAR_MODES || (exports.CLEAR_MODES = {}));
/**
* The gc modes that are supported by pixi.
*
* The {@link PIXI.settings.GC_MODE} Garbage Collection mode for PixiJS textures is AUTO
* If set to GC_MODE, the renderer will occasionally check textures usage. If they are not
* used for a specified period of time they will be removed from the GPU. They will of course
* be uploaded again when they are required. This is a silent behind the scenes process that
* should ensure that the GPU does not get filled up.
*
* Handy for mobile devices!
* This property only affects WebGL.
* @name GC_MODES
* @enum {number}
* @static
* @memberof PIXI
* @property {number} AUTO - Garbage collection will happen periodically automatically
* @property {number} MANUAL - Garbage collection will need to be called manually
*/
exports.GC_MODES = void 0;
(function (GC_MODES) {
GC_MODES[GC_MODES["AUTO"] = 0] = "AUTO";
GC_MODES[GC_MODES["MANUAL"] = 1] = "MANUAL";
})(exports.GC_MODES || (exports.GC_MODES = {}));
/**
* Constants that specify float precision in shaders.
* @name PRECISION
* @memberof PIXI
* @constant
* @static
* @enum {string}
* @property {string} [LOW='lowp'] -
* @property {string} [MEDIUM='mediump'] -
* @property {string} [HIGH='highp'] -
*/
exports.PRECISION = void 0;
(function (PRECISION) {
PRECISION["LOW"] = "lowp";
PRECISION["MEDIUM"] = "mediump";
PRECISION["HIGH"] = "highp";
})(exports.PRECISION || (exports.PRECISION = {}));
/**
* Constants for mask implementations.
* We use `type` suffix because it leads to very different behaviours
* @name MASK_TYPES
* @memberof PIXI
* @static
* @enum {number}
* @property {number} NONE - Mask is ignored
* @property {number} SCISSOR - Scissor mask, rectangle on screen, cheap
* @property {number} STENCIL - Stencil mask, 1-bit, medium, works only if renderer supports stencil
* @property {number} SPRITE - Mask that uses SpriteMaskFilter, uses temporary RenderTexture
* @property {number} COLOR - Color mask (RGBA)
*/
exports.MASK_TYPES = void 0;
(function (MASK_TYPES) {
MASK_TYPES[MASK_TYPES["NONE"] = 0] = "NONE";
MASK_TYPES[MASK_TYPES["SCISSOR"] = 1] = "SCISSOR";
MASK_TYPES[MASK_TYPES["STENCIL"] = 2] = "STENCIL";
MASK_TYPES[MASK_TYPES["SPRITE"] = 3] = "SPRITE";
MASK_TYPES[MASK_TYPES["COLOR"] = 4] = "COLOR";
})(exports.MASK_TYPES || (exports.MASK_TYPES = {}));
/**
* Bitwise OR of masks that indicate the color channels that are rendered to.
* @static
* @memberof PIXI
* @name COLOR_MASK_BITS
* @enum {number}
* @property {number} RED - Red channel.
* @property {number} GREEN - Green channel
* @property {number} BLUE - Blue channel.
* @property {number} ALPHA - Alpha channel.
*/
exports.COLOR_MASK_BITS = void 0;
(function (COLOR_MASK_BITS) {
COLOR_MASK_BITS[COLOR_MASK_BITS["RED"] = 1] = "RED";
COLOR_MASK_BITS[COLOR_MASK_BITS["GREEN"] = 2] = "GREEN";
COLOR_MASK_BITS[COLOR_MASK_BITS["BLUE"] = 4] = "BLUE";
COLOR_MASK_BITS[COLOR_MASK_BITS["ALPHA"] = 8] = "ALPHA";
})(exports.COLOR_MASK_BITS || (exports.COLOR_MASK_BITS = {}));
/**
* Constants for multi-sampling antialiasing.
* @see PIXI.Framebuffer#multisample
* @name MSAA_QUALITY
* @memberof PIXI
* @static
* @enum {number}
* @property {number} NONE - No multisampling for this renderTexture
* @property {number} LOW - Try 2 samples
* @property {number} MEDIUM - Try 4 samples
* @property {number} HIGH - Try 8 samples
*/
exports.MSAA_QUALITY = void 0;
(function (MSAA_QUALITY) {
MSAA_QUALITY[MSAA_QUALITY["NONE"] = 0] = "NONE";
MSAA_QUALITY[MSAA_QUALITY["LOW"] = 2] = "LOW";
MSAA_QUALITY[MSAA_QUALITY["MEDIUM"] = 4] = "MEDIUM";
MSAA_QUALITY[MSAA_QUALITY["HIGH"] = 8] = "HIGH";
})(exports.MSAA_QUALITY || (exports.MSAA_QUALITY = {}));
/**
* Constants for various buffer types in Pixi
* @see PIXI.BUFFER_TYPE
* @name BUFFER_TYPE
* @memberof PIXI
* @static
* @enum {number}
* @property {number} ELEMENT_ARRAY_BUFFER - buffer type for using as an index buffer
* @property {number} ARRAY_BUFFER - buffer type for using attribute data
* @property {number} UNIFORM_BUFFER - the buffer type is for uniform buffer objects
*/
exports.BUFFER_TYPE = void 0;
(function (BUFFER_TYPE) {
BUFFER_TYPE[BUFFER_TYPE["ELEMENT_ARRAY_BUFFER"] = 34963] = "ELEMENT_ARRAY_BUFFER";
BUFFER_TYPE[BUFFER_TYPE["ARRAY_BUFFER"] = 34962] = "ARRAY_BUFFER";
// NOT YET SUPPORTED
BUFFER_TYPE[BUFFER_TYPE["UNIFORM_BUFFER"] = 35345] = "UNIFORM_BUFFER";
})(exports.BUFFER_TYPE || (exports.BUFFER_TYPE = {}));
var ENV = /* @__PURE__ */ ((ENV2) => {
ENV2[ENV2["WEBGL_LEGACY"] = 0] = "WEBGL_LEGACY";
ENV2[ENV2["WEBGL"] = 1] = "WEBGL";
ENV2[ENV2["WEBGL2"] = 2] = "WEBGL2";
return ENV2;
})(ENV || {});
var RENDERER_TYPE = /* @__PURE__ */ ((RENDERER_TYPE2) => {
RENDERER_TYPE2[RENDERER_TYPE2["UNKNOWN"] = 0] = "UNKNOWN";
RENDERER_TYPE2[RENDERER_TYPE2["WEBGL"] = 1] = "WEBGL";
RENDERER_TYPE2[RENDERER_TYPE2["CANVAS"] = 2] = "CANVAS";
return RENDERER_TYPE2;
})(RENDERER_TYPE || {});
var BUFFER_BITS = /* @__PURE__ */ ((BUFFER_BITS2) => {
BUFFER_BITS2[BUFFER_BITS2["COLOR"] = 16384] = "COLOR";
BUFFER_BITS2[BUFFER_BITS2["DEPTH"] = 256] = "DEPTH";
BUFFER_BITS2[BUFFER_BITS2["STENCIL"] = 1024] = "STENCIL";
return BUFFER_BITS2;
})(BUFFER_BITS || {});
var BLEND_MODES = /* @__PURE__ */ ((BLEND_MODES2) => {
BLEND_MODES2[BLEND_MODES2["NORMAL"] = 0] = "NORMAL";
BLEND_MODES2[BLEND_MODES2["ADD"] = 1] = "ADD";
BLEND_MODES2[BLEND_MODES2["MULTIPLY"] = 2] = "MULTIPLY";
BLEND_MODES2[BLEND_MODES2["SCREEN"] = 3] = "SCREEN";
BLEND_MODES2[BLEND_MODES2["OVERLAY"] = 4] = "OVERLAY";
BLEND_MODES2[BLEND_MODES2["DARKEN"] = 5] = "DARKEN";
BLEND_MODES2[BLEND_MODES2["LIGHTEN"] = 6] = "LIGHTEN";
BLEND_MODES2[BLEND_MODES2["COLOR_DODGE"] = 7] = "COLOR_DODGE";
BLEND_MODES2[BLEND_MODES2["COLOR_BURN"] = 8] = "COLOR_BURN";
BLEND_MODES2[BLEND_MODES2["HARD_LIGHT"] = 9] = "HARD_LIGHT";
BLEND_MODES2[BLEND_MODES2["SOFT_LIGHT"] = 10] = "SOFT_LIGHT";
BLEND_MODES2[BLEND_MODES2["DIFFERENCE"] = 11] = "DIFFERENCE";
BLEND_MODES2[BLEND_MODES2["EXCLUSION"] = 12] = "EXCLUSION";
BLEND_MODES2[BLEND_MODES2["HUE"] = 13] = "HUE";
BLEND_MODES2[BLEND_MODES2["SATURATION"] = 14] = "SATURATION";
BLEND_MODES2[BLEND_MODES2["COLOR"] = 15] = "COLOR";
BLEND_MODES2[BLEND_MODES2["LUMINOSITY"] = 16] = "LUMINOSITY";
BLEND_MODES2[BLEND_MODES2["NORMAL_NPM"] = 17] = "NORMAL_NPM";
BLEND_MODES2[BLEND_MODES2["ADD_NPM"] = 18] = "ADD_NPM";
BLEND_MODES2[BLEND_MODES2["SCREEN_NPM"] = 19] = "SCREEN_NPM";
BLEND_MODES2[BLEND_MODES2["NONE"] = 20] = "NONE";
BLEND_MODES2[BLEND_MODES2["SRC_OVER"] = 0] = "SRC_OVER";
BLEND_MODES2[BLEND_MODES2["SRC_IN"] = 21] = "SRC_IN";
BLEND_MODES2[BLEND_MODES2["SRC_OUT"] = 22] = "SRC_OUT";
BLEND_MODES2[BLEND_MODES2["SRC_ATOP"] = 23] = "SRC_ATOP";
BLEND_MODES2[BLEND_MODES2["DST_OVER"] = 24] = "DST_OVER";
BLEND_MODES2[BLEND_MODES2["DST_IN"] = 25] = "DST_IN";
BLEND_MODES2[BLEND_MODES2["DST_OUT"] = 26] = "DST_OUT";
BLEND_MODES2[BLEND_MODES2["DST_ATOP"] = 27] = "DST_ATOP";
BLEND_MODES2[BLEND_MODES2["ERASE"] = 26] = "ERASE";
BLEND_MODES2[BLEND_MODES2["SUBTRACT"] = 28] = "SUBTRACT";
BLEND_MODES2[BLEND_MODES2["XOR"] = 29] = "XOR";
return BLEND_MODES2;
})(BLEND_MODES || {});
var DRAW_MODES = /* @__PURE__ */ ((DRAW_MODES2) => {
DRAW_MODES2[DRAW_MODES2["POINTS"] = 0] = "POINTS";
DRAW_MODES2[DRAW_MODES2["LINES"] = 1] = "LINES";
DRAW_MODES2[DRAW_MODES2["LINE_LOOP"] = 2] = "LINE_LOOP";
DRAW_MODES2[DRAW_MODES2["LINE_STRIP"] = 3] = "LINE_STRIP";
DRAW_MODES2[DRAW_MODES2["TRIANGLES"] = 4] = "TRIANGLES";
DRAW_MODES2[DRAW_MODES2["TRIANGLE_STRIP"] = 5] = "TRIANGLE_STRIP";
DRAW_MODES2[DRAW_MODES2["TRIANGLE_FAN"] = 6] = "TRIANGLE_FAN";
return DRAW_MODES2;
})(DRAW_MODES || {});
var FORMATS = /* @__PURE__ */ ((FORMATS2) => {
FORMATS2[FORMATS2["RGBA"] = 6408] = "RGBA";
FORMATS2[FORMATS2["RGB"] = 6407] = "RGB";
FORMATS2[FORMATS2["RG"] = 33319] = "RG";
FORMATS2[FORMATS2["RED"] = 6403] = "RED";
FORMATS2[FORMATS2["RGBA_INTEGER"] = 36249] = "RGBA_INTEGER";
FORMATS2[FORMATS2["RGB_INTEGER"] = 36248] = "RGB_INTEGER";
FORMATS2[FORMATS2["RG_INTEGER"] = 33320] = "RG_INTEGER";
FORMATS2[FORMATS2["RED_INTEGER"] = 36244] = "RED_INTEGER";
FORMATS2[FORMATS2["ALPHA"] = 6406] = "ALPHA";
FORMATS2[FORMATS2["LUMINANCE"] = 6409] = "LUMINANCE";
FORMATS2[FORMATS2["LUMINANCE_ALPHA"] = 6410] = "LUMINANCE_ALPHA";
FORMATS2[FORMATS2["DEPTH_COMPONENT"] = 6402] = "DEPTH_COMPONENT";
FORMATS2[FORMATS2["DEPTH_STENCIL"] = 34041] = "DEPTH_STENCIL";
return FORMATS2;
})(FORMATS || {});
var TARGETS = /* @__PURE__ */ ((TARGETS2) => {
TARGETS2[TARGETS2["TEXTURE_2D"] = 3553] = "TEXTURE_2D";
TARGETS2[TARGETS2["TEXTURE_CUBE_MAP"] = 34067] = "TEXTURE_CUBE_MAP";
TARGETS2[TARGETS2["TEXTURE_2D_ARRAY"] = 35866] = "TEXTURE_2D_ARRAY";
TARGETS2[TARGETS2["TEXTURE_CUBE_MAP_POSITIVE_X"] = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X";
TARGETS2[TARGETS2["TEXTURE_CUBE_MAP_NEGATIVE_X"] = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X";
TARGETS2[TARGETS2["TEXTURE_CUBE_MAP_POSITIVE_Y"] = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y";
TARGETS2[TARGETS2["TEXTURE_CUBE_MAP_NEGATIVE_Y"] = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y";
TARGETS2[TARGETS2["TEXTURE_CUBE_MAP_POSITIVE_Z"] = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z";
TARGETS2[TARGETS2["TEXTURE_CUBE_MAP_NEGATIVE_Z"] = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z";
return TARGETS2;
})(TARGETS || {});
var TYPES = /* @__PURE__ */ ((TYPES2) => {
TYPES2[TYPES2["UNSIGNED_BYTE"] = 5121] = "UNSIGNED_BYTE";
TYPES2[TYPES2["UNSIGNED_SHORT"] = 5123] = "UNSIGNED_SHORT";
TYPES2[TYPES2["UNSIGNED_SHORT_5_6_5"] = 33635] = "UNSIGNED_SHORT_5_6_5";
TYPES2[TYPES2["UNSIGNED_SHORT_4_4_4_4"] = 32819] = "UNSIGNED_SHORT_4_4_4_4";
TYPES2[TYPES2["UNSIGNED_SHORT_5_5_5_1"] = 32820] = "UNSIGNED_SHORT_5_5_5_1";
TYPES2[TYPES2["UNSIGNED_INT"] = 5125] = "UNSIGNED_INT";
TYPES2[TYPES2["UNSIGNED_INT_10F_11F_11F_REV"] = 35899] = "UNSIGNED_INT_10F_11F_11F_REV";
TYPES2[TYPES2["UNSIGNED_INT_2_10_10_10_REV"] = 33640] = "UNSIGNED_INT_2_10_10_10_REV";
TYPES2[TYPES2["UNSIGNED_INT_24_8"] = 34042] = "UNSIGNED_INT_24_8";
TYPES2[TYPES2["UNSIGNED_INT_5_9_9_9_REV"] = 35902] = "UNSIGNED_INT_5_9_9_9_REV";
TYPES2[TYPES2["BYTE"] = 5120] = "BYTE";
TYPES2[TYPES2["SHORT"] = 5122] = "SHORT";
TYPES2[TYPES2["INT"] = 5124] = "INT";
TYPES2[TYPES2["FLOAT"] = 5126] = "FLOAT";
TYPES2[TYPES2["FLOAT_32_UNSIGNED_INT_24_8_REV"] = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV";
TYPES2[TYPES2["HALF_FLOAT"] = 36193] = "HALF_FLOAT";
return TYPES2;
})(TYPES || {});
var SAMPLER_TYPES = /* @__PURE__ */ ((SAMPLER_TYPES2) => {
SAMPLER_TYPES2[SAMPLER_TYPES2["FLOAT"] = 0] = "FLOAT";
SAMPLER_TYPES2[SAMPLER_TYPES2["INT"] = 1] = "INT";
SAMPLER_TYPES2[SAMPLER_TYPES2["UINT"] = 2] = "UINT";
return SAMPLER_TYPES2;
})(SAMPLER_TYPES || {});
var SCALE_MODES = /* @__PURE__ */ ((SCALE_MODES2) => {
SCALE_MODES2[SCALE_MODES2["NEAREST"] = 0] = "NEAREST";
SCALE_MODES2[SCALE_MODES2["LINEAR"] = 1] = "LINEAR";
return SCALE_MODES2;
})(SCALE_MODES || {});
var WRAP_MODES = /* @__PURE__ */ ((WRAP_MODES2) => {
WRAP_MODES2[WRAP_MODES2["CLAMP"] = 33071] = "CLAMP";
WRAP_MODES2[WRAP_MODES2["REPEAT"] = 10497] = "REPEAT";
WRAP_MODES2[WRAP_MODES2["MIRRORED_REPEAT"] = 33648] = "MIRRORED_REPEAT";
return WRAP_MODES2;
})(WRAP_MODES || {});
var MIPMAP_MODES = /* @__PURE__ */ ((MIPMAP_MODES2) => {
MIPMAP_MODES2[MIPMAP_MODES2["OFF"] = 0] = "OFF";
MIPMAP_MODES2[MIPMAP_MODES2["POW2"] = 1] = "POW2";
MIPMAP_MODES2[MIPMAP_MODES2["ON"] = 2] = "ON";
MIPMAP_MODES2[MIPMAP_MODES2["ON_MANUAL"] = 3] = "ON_MANUAL";
return MIPMAP_MODES2;
})(MIPMAP_MODES || {});
var ALPHA_MODES = /* @__PURE__ */ ((ALPHA_MODES2) => {
ALPHA_MODES2[ALPHA_MODES2["NPM"] = 0] = "NPM";
ALPHA_MODES2[ALPHA_MODES2["UNPACK"] = 1] = "UNPACK";
ALPHA_MODES2[ALPHA_MODES2["PMA"] = 2] = "PMA";
ALPHA_MODES2[ALPHA_MODES2["NO_PREMULTIPLIED_ALPHA"] = 0] = "NO_PREMULTIPLIED_ALPHA";
ALPHA_MODES2[ALPHA_MODES2["PREMULTIPLY_ON_UPLOAD"] = 1] = "PREMULTIPLY_ON_UPLOAD";
ALPHA_MODES2[ALPHA_MODES2["PREMULTIPLIED_ALPHA"] = 2] = "PREMULTIPLIED_ALPHA";
return ALPHA_MODES2;
})(ALPHA_MODES || {});
var CLEAR_MODES = /* @__PURE__ */ ((CLEAR_MODES2) => {
CLEAR_MODES2[CLEAR_MODES2["NO"] = 0] = "NO";
CLEAR_MODES2[CLEAR_MODES2["YES"] = 1] = "YES";
CLEAR_MODES2[CLEAR_MODES2["AUTO"] = 2] = "AUTO";
CLEAR_MODES2[CLEAR_MODES2["BLEND"] = 0] = "BLEND";
CLEAR_MODES2[CLEAR_MODES2["CLEAR"] = 1] = "CLEAR";
CLEAR_MODES2[CLEAR_MODES2["BLIT"] = 2] = "BLIT";
return CLEAR_MODES2;
})(CLEAR_MODES || {});
var GC_MODES = /* @__PURE__ */ ((GC_MODES2) => {
GC_MODES2[GC_MODES2["AUTO"] = 0] = "AUTO";
GC_MODES2[GC_MODES2["MANUAL"] = 1] = "MANUAL";
return GC_MODES2;
})(GC_MODES || {});
var PRECISION = /* @__PURE__ */ ((PRECISION2) => {
PRECISION2["LOW"] = "lowp";
PRECISION2["MEDIUM"] = "mediump";
PRECISION2["HIGH"] = "highp";
return PRECISION2;
})(PRECISION || {});
var MASK_TYPES = /* @__PURE__ */ ((MASK_TYPES2) => {
MASK_TYPES2[MASK_TYPES2["NONE"] = 0] = "NONE";
MASK_TYPES2[MASK_TYPES2["SCISSOR"] = 1] = "SCISSOR";
MASK_TYPES2[MASK_TYPES2["STENCIL"] = 2] = "STENCIL";
MASK_TYPES2[MASK_TYPES2["SPRITE"] = 3] = "SPRITE";
MASK_TYPES2[MASK_TYPES2["COLOR"] = 4] = "COLOR";
return MASK_TYPES2;
})(MASK_TYPES || {});
var COLOR_MASK_BITS = /* @__PURE__ */ ((COLOR_MASK_BITS2) => {
COLOR_MASK_BITS2[COLOR_MASK_BITS2["RED"] = 1] = "RED";
COLOR_MASK_BITS2[COLOR_MASK_BITS2["GREEN"] = 2] = "GREEN";
COLOR_MASK_BITS2[COLOR_MASK_BITS2["BLUE"] = 4] = "BLUE";
COLOR_MASK_BITS2[COLOR_MASK_BITS2["ALPHA"] = 8] = "ALPHA";
return COLOR_MASK_BITS2;
})(COLOR_MASK_BITS || {});
var MSAA_QUALITY = /* @__PURE__ */ ((MSAA_QUALITY2) => {
MSAA_QUALITY2[MSAA_QUALITY2["NONE"] = 0] = "NONE";
MSAA_QUALITY2[MSAA_QUALITY2["LOW"] = 2] = "LOW";
MSAA_QUALITY2[MSAA_QUALITY2["MEDIUM"] = 4] = "MEDIUM";
MSAA_QUALITY2[MSAA_QUALITY2["HIGH"] = 8] = "HIGH";
return MSAA_QUALITY2;
})(MSAA_QUALITY || {});
var BUFFER_TYPE = /* @__PURE__ */ ((BUFFER_TYPE2) => {
BUFFER_TYPE2[BUFFER_TYPE2["ELEMENT_ARRAY_BUFFER"] = 34963] = "ELEMENT_ARRAY_BUFFER";
BUFFER_TYPE2[BUFFER_TYPE2["ARRAY_BUFFER"] = 34962] = "ARRAY_BUFFER";
BUFFER_TYPE2[BUFFER_TYPE2["UNIFORM_BUFFER"] = 35345] = "UNIFORM_BUFFER";
return BUFFER_TYPE2;
})(BUFFER_TYPE || {});
exports.ALPHA_MODES = ALPHA_MODES;
exports.BLEND_MODES = BLEND_MODES;
exports.BUFFER_BITS = BUFFER_BITS;
exports.BUFFER_TYPE = BUFFER_TYPE;
exports.CLEAR_MODES = CLEAR_MODES;
exports.COLOR_MASK_BITS = COLOR_MASK_BITS;
exports.DRAW_MODES = DRAW_MODES;
exports.ENV = ENV;
exports.FORMATS = FORMATS;
exports.GC_MODES = GC_MODES;
exports.MASK_TYPES = MASK_TYPES;
exports.MIPMAP_MODES = MIPMAP_MODES;
exports.MSAA_QUALITY = MSAA_QUALITY;
exports.PRECISION = PRECISION;
exports.RENDERER_TYPE = RENDERER_TYPE;
exports.SAMPLER_TYPES = SAMPLER_TYPES;
exports.SCALE_MODES = SCALE_MODES;
exports.TARGETS = TARGETS;
exports.TYPES = TYPES;
exports.WRAP_MODES = WRAP_MODES;
//# sourceMappingURL=constants.js.map

@@ -1,9 +0,8 @@

/*!
* @pixi/constants - v6.5.3
* Compiled Fri, 09 Sep 2022 13:55:20 UTC
"use strict";/*!
* @pixi/constants - v7.0.0-alpha
* Compiled Fri, 09 Sep 2022 16:09:18 UTC
*
* @pixi/constants is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/
"use strict";var E,_,T,R,N,A,I,S,O,L,P,U,D,M,o,G,C,e,p,r;Object.defineProperty(exports,"__esModule",{value:!0}),exports.ENV=void 0,(E=exports.ENV||(exports.ENV={}))[E.WEBGL_LEGACY=0]="WEBGL_LEGACY",E[E.WEBGL=1]="WEBGL",E[E.WEBGL2=2]="WEBGL2",exports.RENDERER_TYPE=void 0,(_=exports.RENDERER_TYPE||(exports.RENDERER_TYPE={}))[_.UNKNOWN=0]="UNKNOWN",_[_.WEBGL=1]="WEBGL",_[_.CANVAS=2]="CANVAS",exports.BUFFER_BITS=void 0,(T=exports.BUFFER_BITS||(exports.BUFFER_BITS={}))[T.COLOR=16384]="COLOR",T[T.DEPTH=256]="DEPTH",T[T.STENCIL=1024]="STENCIL",exports.BLEND_MODES=void 0,(R=exports.BLEND_MODES||(exports.BLEND_MODES={}))[R.NORMAL=0]="NORMAL",R[R.ADD=1]="ADD",R[R.MULTIPLY=2]="MULTIPLY",R[R.SCREEN=3]="SCREEN",R[R.OVERLAY=4]="OVERLAY",R[R.DARKEN=5]="DARKEN",R[R.LIGHTEN=6]="LIGHTEN",R[R.COLOR_DODGE=7]="COLOR_DODGE",R[R.COLOR_BURN=8]="COLOR_BURN",R[R.HARD_LIGHT=9]="HARD_LIGHT",R[R.SOFT_LIGHT=10]="SOFT_LIGHT",R[R.DIFFERENCE=11]="DIFFERENCE",R[R.EXCLUSION=12]="EXCLUSION",R[R.HUE=13]="HUE",R[R.SATURATION=14]="SATURATION",R[R.COLOR=15]="COLOR",R[R.LUMINOSITY=16]="LUMINOSITY",R[R.NORMAL_NPM=17]="NORMAL_NPM",R[R.ADD_NPM=18]="ADD_NPM",R[R.SCREEN_NPM=19]="SCREEN_NPM",R[R.NONE=20]="NONE",R[R.SRC_OVER=0]="SRC_OVER",R[R.SRC_IN=21]="SRC_IN",R[R.SRC_OUT=22]="SRC_OUT",R[R.SRC_ATOP=23]="SRC_ATOP",R[R.DST_OVER=24]="DST_OVER",R[R.DST_IN=25]="DST_IN",R[R.DST_OUT=26]="DST_OUT",R[R.DST_ATOP=27]="DST_ATOP",R[R.ERASE=26]="ERASE",R[R.SUBTRACT=28]="SUBTRACT",R[R.XOR=29]="XOR",exports.DRAW_MODES=void 0,(N=exports.DRAW_MODES||(exports.DRAW_MODES={}))[N.POINTS=0]="POINTS",N[N.LINES=1]="LINES",N[N.LINE_LOOP=2]="LINE_LOOP",N[N.LINE_STRIP=3]="LINE_STRIP",N[N.TRIANGLES=4]="TRIANGLES",N[N.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",N[N.TRIANGLE_FAN=6]="TRIANGLE_FAN",exports.FORMATS=void 0,(A=exports.FORMATS||(exports.FORMATS={}))[A.RGBA=6408]="RGBA",A[A.RGB=6407]="RGB",A[A.RG=33319]="RG",A[A.RED=6403]="RED",A[A.RGBA_INTEGER=36249]="RGBA_INTEGER",A[A.RGB_INTEGER=36248]="RGB_INTEGER",A[A.RG_INTEGER=33320]="RG_INTEGER",A[A.RED_INTEGER=36244]="RED_INTEGER",A[A.ALPHA=6406]="ALPHA",A[A.LUMINANCE=6409]="LUMINANCE",A[A.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",A[A.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",A[A.DEPTH_STENCIL=34041]="DEPTH_STENCIL",exports.TARGETS=void 0,(I=exports.TARGETS||(exports.TARGETS={}))[I.TEXTURE_2D=3553]="TEXTURE_2D",I[I.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",I[I.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",I[I.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",I[I.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",I[I.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",I[I.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",I[I.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",I[I.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",exports.TYPES=void 0,(S=exports.TYPES||(exports.TYPES={}))[S.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",S[S.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",S[S.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",S[S.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",S[S.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",S[S.UNSIGNED_INT=5125]="UNSIGNED_INT",S[S.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",S[S.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",S[S.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",S[S.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",S[S.BYTE=5120]="BYTE",S[S.SHORT=5122]="SHORT",S[S.INT=5124]="INT",S[S.FLOAT=5126]="FLOAT",S[S.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",S[S.HALF_FLOAT=36193]="HALF_FLOAT",exports.SAMPLER_TYPES=void 0,(O=exports.SAMPLER_TYPES||(exports.SAMPLER_TYPES={}))[O.FLOAT=0]="FLOAT",O[O.INT=1]="INT",O[O.UINT=2]="UINT",exports.SCALE_MODES=void 0,(L=exports.SCALE_MODES||(exports.SCALE_MODES={}))[L.NEAREST=0]="NEAREST",L[L.LINEAR=1]="LINEAR",exports.WRAP_MODES=void 0,(P=exports.WRAP_MODES||(exports.WRAP_MODES={}))[P.CLAMP=33071]="CLAMP",P[P.REPEAT=10497]="REPEAT",P[P.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",exports.MIPMAP_MODES=void 0,(U=exports.MIPMAP_MODES||(exports.MIPMAP_MODES={}))[U.OFF=0]="OFF",U[U.POW2=1]="POW2",U[U.ON=2]="ON",U[U.ON_MANUAL=3]="ON_MANUAL",exports.ALPHA_MODES=void 0,(D=exports.ALPHA_MODES||(exports.ALPHA_MODES={}))[D.NPM=0]="NPM",D[D.UNPACK=1]="UNPACK",D[D.PMA=2]="PMA",D[D.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",D[D.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",D[D.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",D[D.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",exports.CLEAR_MODES=void 0,(M=exports.CLEAR_MODES||(exports.CLEAR_MODES={}))[M.NO=0]="NO",M[M.YES=1]="YES",M[M.AUTO=2]="AUTO",M[M.BLEND=0]="BLEND",M[M.CLEAR=1]="CLEAR",M[M.BLIT=2]="BLIT",exports.GC_MODES=void 0,(o=exports.GC_MODES||(exports.GC_MODES={}))[o.AUTO=0]="AUTO",o[o.MANUAL=1]="MANUAL",exports.PRECISION=void 0,(G=exports.PRECISION||(exports.PRECISION={})).LOW="lowp",G.MEDIUM="mediump",G.HIGH="highp",exports.MASK_TYPES=void 0,(C=exports.MASK_TYPES||(exports.MASK_TYPES={}))[C.NONE=0]="NONE",C[C.SCISSOR=1]="SCISSOR",C[C.STENCIL=2]="STENCIL",C[C.SPRITE=3]="SPRITE",C[C.COLOR=4]="COLOR",exports.COLOR_MASK_BITS=void 0,(e=exports.COLOR_MASK_BITS||(exports.COLOR_MASK_BITS={}))[e.RED=1]="RED",e[e.GREEN=2]="GREEN",e[e.BLUE=4]="BLUE",e[e.ALPHA=8]="ALPHA",exports.MSAA_QUALITY=void 0,(p=exports.MSAA_QUALITY||(exports.MSAA_QUALITY={}))[p.NONE=0]="NONE",p[p.LOW=2]="LOW",p[p.MEDIUM=4]="MEDIUM",p[p.HIGH=8]="HIGH",exports.BUFFER_TYPE=void 0,(r=exports.BUFFER_TYPE||(exports.BUFFER_TYPE={}))[r.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",r[r.ARRAY_BUFFER=34962]="ARRAY_BUFFER",r[r.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER";
*/Object.defineProperty(exports,"__esModule",{value:!0});var _=(E=>(E[E.WEBGL_LEGACY=0]="WEBGL_LEGACY",E[E.WEBGL=1]="WEBGL",E[E.WEBGL2=2]="WEBGL2",E))(_||{}),T=(E=>(E[E.UNKNOWN=0]="UNKNOWN",E[E.WEBGL=1]="WEBGL",E[E.CANVAS=2]="CANVAS",E))(T||{}),N=(E=>(E[E.COLOR=16384]="COLOR",E[E.DEPTH=256]="DEPTH",E[E.STENCIL=1024]="STENCIL",E))(N||{}),R=(E=>(E[E.NORMAL=0]="NORMAL",E[E.ADD=1]="ADD",E[E.MULTIPLY=2]="MULTIPLY",E[E.SCREEN=3]="SCREEN",E[E.OVERLAY=4]="OVERLAY",E[E.DARKEN=5]="DARKEN",E[E.LIGHTEN=6]="LIGHTEN",E[E.COLOR_DODGE=7]="COLOR_DODGE",E[E.COLOR_BURN=8]="COLOR_BURN",E[E.HARD_LIGHT=9]="HARD_LIGHT",E[E.SOFT_LIGHT=10]="SOFT_LIGHT",E[E.DIFFERENCE=11]="DIFFERENCE",E[E.EXCLUSION=12]="EXCLUSION",E[E.HUE=13]="HUE",E[E.SATURATION=14]="SATURATION",E[E.COLOR=15]="COLOR",E[E.LUMINOSITY=16]="LUMINOSITY",E[E.NORMAL_NPM=17]="NORMAL_NPM",E[E.ADD_NPM=18]="ADD_NPM",E[E.SCREEN_NPM=19]="SCREEN_NPM",E[E.NONE=20]="NONE",E[E.SRC_OVER=0]="SRC_OVER",E[E.SRC_IN=21]="SRC_IN",E[E.SRC_OUT=22]="SRC_OUT",E[E.SRC_ATOP=23]="SRC_ATOP",E[E.DST_OVER=24]="DST_OVER",E[E.DST_IN=25]="DST_IN",E[E.DST_OUT=26]="DST_OUT",E[E.DST_ATOP=27]="DST_ATOP",E[E.ERASE=26]="ERASE",E[E.SUBTRACT=28]="SUBTRACT",E[E.XOR=29]="XOR",E))(R||{}),A=(E=>(E[E.POINTS=0]="POINTS",E[E.LINES=1]="LINES",E[E.LINE_LOOP=2]="LINE_LOOP",E[E.LINE_STRIP=3]="LINE_STRIP",E[E.TRIANGLES=4]="TRIANGLES",E[E.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",E[E.TRIANGLE_FAN=6]="TRIANGLE_FAN",E))(A||{}),O=(E=>(E[E.RGBA=6408]="RGBA",E[E.RGB=6407]="RGB",E[E.RG=33319]="RG",E[E.RED=6403]="RED",E[E.RGBA_INTEGER=36249]="RGBA_INTEGER",E[E.RGB_INTEGER=36248]="RGB_INTEGER",E[E.RG_INTEGER=33320]="RG_INTEGER",E[E.RED_INTEGER=36244]="RED_INTEGER",E[E.ALPHA=6406]="ALPHA",E[E.LUMINANCE=6409]="LUMINANCE",E[E.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",E[E.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",E[E.DEPTH_STENCIL=34041]="DEPTH_STENCIL",E))(O||{}),S=(E=>(E[E.TEXTURE_2D=3553]="TEXTURE_2D",E[E.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",E[E.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",E[E.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",E[E.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",E[E.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",E[E.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",E[E.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",E[E.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",E))(S||{}),L=(E=>(E[E.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",E[E.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",E[E.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",E[E.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",E[E.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",E[E.UNSIGNED_INT=5125]="UNSIGNED_INT",E[E.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",E[E.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",E[E.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",E[E.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",E[E.BYTE=5120]="BYTE",E[E.SHORT=5122]="SHORT",E[E.INT=5124]="INT",E[E.FLOAT=5126]="FLOAT",E[E.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",E[E.HALF_FLOAT=36193]="HALF_FLOAT",E))(L||{}),I=(E=>(E[E.FLOAT=0]="FLOAT",E[E.INT=1]="INT",E[E.UINT=2]="UINT",E))(I||{}),P=(E=>(E[E.NEAREST=0]="NEAREST",E[E.LINEAR=1]="LINEAR",E))(P||{}),D=(E=>(E[E.CLAMP=33071]="CLAMP",E[E.REPEAT=10497]="REPEAT",E[E.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",E))(D||{}),M=(E=>(E[E.OFF=0]="OFF",E[E.POW2=1]="POW2",E[E.ON=2]="ON",E[E.ON_MANUAL=3]="ON_MANUAL",E))(M||{}),U=(E=>(E[E.NPM=0]="NPM",E[E.UNPACK=1]="UNPACK",E[E.PMA=2]="PMA",E[E.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",E[E.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",E[E.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",E))(U||{}),G=(E=>(E[E.NO=0]="NO",E[E.YES=1]="YES",E[E.AUTO=2]="AUTO",E[E.BLEND=0]="BLEND",E[E.CLEAR=1]="CLEAR",E[E.BLIT=2]="BLIT",E))(G||{}),C=(E=>(E[E.AUTO=0]="AUTO",E[E.MANUAL=1]="MANUAL",E))(C||{}),B=(E=>(E.LOW="lowp",E.MEDIUM="mediump",E.HIGH="highp",E))(B||{}),F=(E=>(E[E.NONE=0]="NONE",E[E.SCISSOR=1]="SCISSOR",E[E.STENCIL=2]="STENCIL",E[E.SPRITE=3]="SPRITE",E[E.COLOR=4]="COLOR",E))(F||{}),H=(E=>(E[E.RED=1]="RED",E[E.GREEN=2]="GREEN",E[E.BLUE=4]="BLUE",E[E.ALPHA=8]="ALPHA",E))(H||{}),Y=(E=>(E[E.NONE=0]="NONE",E[E.LOW=2]="LOW",E[E.MEDIUM=4]="MEDIUM",E[E.HIGH=8]="HIGH",E))(Y||{}),V=(E=>(E[E.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",E[E.ARRAY_BUFFER=34962]="ARRAY_BUFFER",E[E.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",E))(V||{});exports.ALPHA_MODES=U,exports.BLEND_MODES=R,exports.BUFFER_BITS=N,exports.BUFFER_TYPE=V,exports.CLEAR_MODES=G,exports.COLOR_MASK_BITS=H,exports.DRAW_MODES=A,exports.ENV=_,exports.FORMATS=O,exports.GC_MODES=C,exports.MASK_TYPES=F,exports.MIPMAP_MODES=M,exports.MSAA_QUALITY=Y,exports.PRECISION=B,exports.RENDERER_TYPE=T,exports.SAMPLER_TYPES=I,exports.SCALE_MODES=P,exports.TARGETS=S,exports.TYPES=L,exports.WRAP_MODES=D;
//# sourceMappingURL=constants.min.js.map

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

PREMULTIPLY_ON_UPLOAD = 1,
PREMULTIPLY_ALPHA = 2,
PREMULTIPLIED_ALPHA = 2

@@ -26,0 +25,0 @@ }

{
"name": "@pixi/constants",
"version": "6.5.3",
"version": "7.0.0-alpha",
"main": "dist/cjs/constants.js",
"module": "dist/esm/constants.mjs",
"bundle": "dist/browser/constants.js",
"types": "index.d.ts",

@@ -36,7 +35,6 @@ "exports": {

"files": [
"lib",
"dist",
"*.d.ts"
],
"gitHead": "28e6b2841a65837a5e2873a3d5a9c27cabbe795a"
"gitHead": "da993226df64b804a9c00ed9ee4d011191467b8a"
}

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

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