@antv/l7-renderer 2.9.19 → 2.9.22-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/es/index.js +5 -3
  2. package/es/regl/ReglAttribute.js +5 -8
  3. package/es/regl/ReglBuffer.js +9 -8
  4. package/es/regl/ReglElements.js +8 -8
  5. package/es/regl/ReglFramebuffer.js +8 -7
  6. package/es/regl/ReglModel.js +63 -42
  7. package/es/regl/ReglRenderbuffer.js +7 -7
  8. package/es/regl/ReglTexture2D.js +12 -10
  9. package/es/regl/constants.js +5 -2
  10. package/es/regl/index.js +43 -31
  11. package/lib/index.js +29 -13
  12. package/lib/regl/ReglAttribute.js +38 -48
  13. package/lib/regl/ReglBuffer.js +46 -52
  14. package/lib/regl/ReglElements.js +45 -51
  15. package/lib/regl/ReglFramebuffer.js +43 -58
  16. package/lib/regl/ReglModel.js +217 -283
  17. package/lib/regl/ReglRenderbuffer.js +42 -50
  18. package/lib/regl/ReglTexture2D.js +90 -122
  19. package/lib/regl/constants.js +168 -42
  20. package/lib/regl/index.js +204 -272
  21. package/package.json +12 -8
  22. package/es/index.js.map +0 -1
  23. package/es/regl/ReglAttribute.js.map +0 -1
  24. package/es/regl/ReglBuffer.js.map +0 -1
  25. package/es/regl/ReglElements.js.map +0 -1
  26. package/es/regl/ReglFramebuffer.js.map +0 -1
  27. package/es/regl/ReglModel.js.map +0 -1
  28. package/es/regl/ReglRenderbuffer.js.map +0 -1
  29. package/es/regl/ReglTexture2D.js.map +0 -1
  30. package/es/regl/constants.js.map +0 -1
  31. package/es/regl/index.js.map +0 -1
  32. package/lib/index.js.map +0 -1
  33. package/lib/regl/ReglAttribute.js.map +0 -1
  34. package/lib/regl/ReglBuffer.js.map +0 -1
  35. package/lib/regl/ReglElements.js.map +0 -1
  36. package/lib/regl/ReglFramebuffer.js.map +0 -1
  37. package/lib/regl/ReglModel.js.map +0 -1
  38. package/lib/regl/ReglRenderbuffer.js.map +0 -1
  39. package/lib/regl/ReglTexture2D.js.map +0 -1
  40. package/lib/regl/constants.js.map +0 -1
  41. package/lib/regl/index.js.map +0 -1
@@ -1,135 +1,103 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4
18
 
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
19
+ // src/regl/ReglTexture2D.ts
20
+ var ReglTexture2D_exports = {};
21
+ __export(ReglTexture2D_exports, {
22
+ default: () => ReglTexture2D
7
23
  });
8
- exports.default = void 0;
9
-
10
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
-
12
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
-
14
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
-
16
- var _l7Core = require("@antv/l7-core");
17
-
18
- var _constants = require("./constants");
19
-
20
- var ReglTexture2D = function () {
21
- function ReglTexture2D(reGl, options) {
22
- (0, _classCallCheck2.default)(this, ReglTexture2D);
23
- (0, _defineProperty2.default)(this, "texture", void 0);
24
- (0, _defineProperty2.default)(this, "width", void 0);
25
- (0, _defineProperty2.default)(this, "height", void 0);
26
- (0, _defineProperty2.default)(this, "isDistroy", false);
27
- var data = options.data,
28
- _options$type = options.type,
29
- type = _options$type === void 0 ? _l7Core.gl.UNSIGNED_BYTE : _options$type,
30
- width = options.width,
31
- height = options.height,
32
- _options$flipY = options.flipY,
33
- flipY = _options$flipY === void 0 ? false : _options$flipY,
34
- _options$format = options.format,
35
- format = _options$format === void 0 ? _l7Core.gl.RGBA : _options$format,
36
- _options$mipmap = options.mipmap,
37
- mipmap = _options$mipmap === void 0 ? false : _options$mipmap,
38
- _options$wrapS = options.wrapS,
39
- wrapS = _options$wrapS === void 0 ? _l7Core.gl.CLAMP_TO_EDGE : _options$wrapS,
40
- _options$wrapT = options.wrapT,
41
- wrapT = _options$wrapT === void 0 ? _l7Core.gl.CLAMP_TO_EDGE : _options$wrapT,
42
- _options$aniso = options.aniso,
43
- aniso = _options$aniso === void 0 ? 0 : _options$aniso,
44
- _options$alignment = options.alignment,
45
- alignment = _options$alignment === void 0 ? 1 : _options$alignment,
46
- _options$premultiplyA = options.premultiplyAlpha,
47
- premultiplyAlpha = _options$premultiplyA === void 0 ? false : _options$premultiplyA,
48
- _options$mag = options.mag,
49
- mag = _options$mag === void 0 ? _l7Core.gl.NEAREST : _options$mag,
50
- _options$min = options.min,
51
- min = _options$min === void 0 ? _l7Core.gl.NEAREST : _options$min,
52
- _options$colorSpace = options.colorSpace,
53
- colorSpace = _options$colorSpace === void 0 ? _l7Core.gl.BROWSER_DEFAULT_WEBGL : _options$colorSpace,
54
- _options$x = options.x,
55
- x = _options$x === void 0 ? 0 : _options$x,
56
- _options$y = options.y,
57
- y = _options$y === void 0 ? 0 : _options$y,
58
- _options$copy = options.copy,
59
- copy = _options$copy === void 0 ? false : _options$copy;
24
+ module.exports = __toCommonJS(ReglTexture2D_exports);
25
+ var import_l7_core = require("@antv/l7-core");
26
+ var import_constants = require("./constants");
27
+ var ReglTexture2D = class {
28
+ constructor(reGl, options) {
29
+ this.isDistroy = false;
30
+ const {
31
+ data,
32
+ type = import_l7_core.gl.UNSIGNED_BYTE,
33
+ width,
34
+ height,
35
+ flipY = false,
36
+ format = import_l7_core.gl.RGBA,
37
+ mipmap = false,
38
+ wrapS = import_l7_core.gl.CLAMP_TO_EDGE,
39
+ wrapT = import_l7_core.gl.CLAMP_TO_EDGE,
40
+ aniso = 0,
41
+ alignment = 1,
42
+ premultiplyAlpha = false,
43
+ mag = import_l7_core.gl.NEAREST,
44
+ min = import_l7_core.gl.NEAREST,
45
+ colorSpace = import_l7_core.gl.BROWSER_DEFAULT_WEBGL,
46
+ x = 0,
47
+ y = 0,
48
+ copy = false
49
+ } = options;
60
50
  this.width = width;
61
51
  this.height = height;
62
- var textureOptions = {
63
- width: width,
64
- height: height,
65
- type: _constants.dataTypeMap[type],
66
- format: _constants.formatMap[format],
67
- wrapS: _constants.wrapModeMap[wrapS],
68
- wrapT: _constants.wrapModeMap[wrapT],
69
- mag: _constants.filterMap[mag],
70
- min: _constants.filterMap[min],
71
- alignment: alignment,
72
- flipY: flipY,
73
- colorSpace: _constants.colorSpaceMap[colorSpace],
74
- premultiplyAlpha: premultiplyAlpha,
75
- aniso: aniso,
76
- x: x,
77
- y: y,
78
- copy: copy
52
+ const textureOptions = {
53
+ width,
54
+ height,
55
+ type: import_constants.dataTypeMap[type],
56
+ format: import_constants.formatMap[format],
57
+ wrapS: import_constants.wrapModeMap[wrapS],
58
+ wrapT: import_constants.wrapModeMap[wrapT],
59
+ mag: import_constants.filterMap[mag],
60
+ min: import_constants.filterMap[min],
61
+ alignment,
62
+ flipY,
63
+ colorSpace: import_constants.colorSpaceMap[colorSpace],
64
+ premultiplyAlpha,
65
+ aniso,
66
+ x,
67
+ y,
68
+ copy
79
69
  };
80
-
81
70
  if (data) {
82
71
  textureOptions.data = data;
83
72
  }
84
-
85
- if (typeof mipmap === 'number') {
86
- textureOptions.mipmap = _constants.mipmapMap[mipmap];
87
- } else if (typeof mipmap === 'boolean') {
73
+ if (typeof mipmap === "number") {
74
+ textureOptions.mipmap = import_constants.mipmapMap[mipmap];
75
+ } else if (typeof mipmap === "boolean") {
88
76
  textureOptions.mipmap = mipmap;
89
77
  }
90
-
91
78
  this.texture = reGl.texture(textureOptions);
92
79
  }
93
-
94
- (0, _createClass2.default)(ReglTexture2D, [{
95
- key: "get",
96
- value: function get() {
97
- return this.texture;
98
- }
99
- }, {
100
- key: "update",
101
- value: function update() {
102
- var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
103
- this.texture(props);
104
- }
105
- }, {
106
- key: "bind",
107
- value: function bind() {
108
- this.texture._texture.bind();
109
- }
110
- }, {
111
- key: "resize",
112
- value: function resize(_ref) {
113
- var width = _ref.width,
114
- height = _ref.height;
115
- this.texture.resize(width, height);
116
- this.width = width;
117
- this.height = height;
118
- }
119
- }, {
120
- key: "destroy",
121
- value: function destroy() {
122
- if (!this.isDistroy) {
123
- var _this$texture;
124
-
125
- (_this$texture = this.texture) === null || _this$texture === void 0 ? void 0 : _this$texture.destroy();
126
- }
127
-
128
- this.isDistroy = true;
80
+ get() {
81
+ return this.texture;
82
+ }
83
+ update(props = {}) {
84
+ this.texture(props);
85
+ }
86
+ bind() {
87
+ this.texture._texture.bind();
88
+ }
89
+ resize({ width, height }) {
90
+ this.texture.resize(width, height);
91
+ this.width = width;
92
+ this.height = height;
93
+ }
94
+ destroy() {
95
+ var _a;
96
+ if (!this.isDistroy) {
97
+ (_a = this.texture) == null ? void 0 : _a.destroy();
129
98
  }
130
- }]);
131
- return ReglTexture2D;
132
- }();
133
-
134
- exports.default = ReglTexture2D;
135
- //# sourceMappingURL=ReglTexture2D.js.map
99
+ this.isDistroy = true;
100
+ }
101
+ };
102
+ // Annotate the CommonJS export names for ESM import in node:
103
+ 0 && (module.exports = {});
@@ -1,44 +1,170 @@
1
- "use strict";
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2
18
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
19
+ // src/regl/constants.ts
20
+ var constants_exports = {};
21
+ __export(constants_exports, {
22
+ blendEquationMap: () => blendEquationMap,
23
+ blendFuncMap: () => blendFuncMap,
24
+ colorSpaceMap: () => colorSpaceMap,
25
+ cullFaceMap: () => cullFaceMap,
26
+ dataTypeMap: () => dataTypeMap,
27
+ depthFuncMap: () => depthFuncMap,
28
+ filterMap: () => filterMap,
29
+ formatMap: () => formatMap,
30
+ mipmapMap: () => mipmapMap,
31
+ primitiveMap: () => primitiveMap,
32
+ stencilFuncMap: () => stencilFuncMap,
33
+ stencilOpMap: () => stencilOpMap,
34
+ usageMap: () => usageMap,
35
+ wrapModeMap: () => wrapModeMap
36
+ });
37
+ module.exports = __toCommonJS(constants_exports);
38
+ var import_l7_core = require("@antv/l7-core");
39
+ var primitiveMap = {
40
+ [import_l7_core.gl.POINTS]: "points",
41
+ [import_l7_core.gl.LINES]: "lines",
42
+ [import_l7_core.gl.LINE_LOOP]: "line loop",
43
+ [import_l7_core.gl.LINE_STRIP]: "line strip",
44
+ [import_l7_core.gl.TRIANGLES]: "triangles",
45
+ [import_l7_core.gl.TRIANGLE_FAN]: "triangle fan",
46
+ [import_l7_core.gl.TRIANGLE_STRIP]: "triangle strip"
47
+ };
48
+ var usageMap = {
49
+ [import_l7_core.gl.STATIC_DRAW]: "static",
50
+ [import_l7_core.gl.DYNAMIC_DRAW]: "dynamic",
51
+ [import_l7_core.gl.STREAM_DRAW]: "stream"
52
+ };
53
+ var dataTypeMap = {
54
+ [import_l7_core.gl.BYTE]: "int8",
55
+ [import_l7_core.gl.UNSIGNED_INT]: "int16",
56
+ [import_l7_core.gl.INT]: "int32",
57
+ [import_l7_core.gl.UNSIGNED_BYTE]: "uint8",
58
+ [import_l7_core.gl.UNSIGNED_SHORT]: "uint16",
59
+ [import_l7_core.gl.UNSIGNED_INT]: "uint32",
60
+ [import_l7_core.gl.FLOAT]: "float"
61
+ };
62
+ var formatMap = {
63
+ [import_l7_core.gl.ALPHA]: "alpha",
64
+ [import_l7_core.gl.LUMINANCE]: "luminance",
65
+ [import_l7_core.gl.LUMINANCE_ALPHA]: "luminance alpha",
66
+ [import_l7_core.gl.RGB]: "rgb",
67
+ [import_l7_core.gl.RGBA]: "rgba",
68
+ [import_l7_core.gl.RGBA4]: "rgba4",
69
+ [import_l7_core.gl.RGB5_A1]: "rgb5 a1",
70
+ [import_l7_core.gl.RGB565]: "rgb565",
71
+ [import_l7_core.gl.DEPTH_COMPONENT]: "depth",
72
+ [import_l7_core.gl.DEPTH_STENCIL]: "depth stencil"
73
+ };
74
+ var mipmapMap = {
75
+ [import_l7_core.gl.DONT_CARE]: "dont care",
76
+ [import_l7_core.gl.NICEST]: "nice",
77
+ [import_l7_core.gl.FASTEST]: "fast"
78
+ };
79
+ var filterMap = {
80
+ [import_l7_core.gl.NEAREST]: "nearest",
81
+ [import_l7_core.gl.LINEAR]: "linear",
82
+ [import_l7_core.gl.LINEAR_MIPMAP_LINEAR]: "mipmap",
83
+ [import_l7_core.gl.NEAREST_MIPMAP_LINEAR]: "nearest mipmap linear",
84
+ [import_l7_core.gl.LINEAR_MIPMAP_NEAREST]: "linear mipmap nearest",
85
+ [import_l7_core.gl.NEAREST_MIPMAP_NEAREST]: "nearest mipmap nearest"
86
+ };
87
+ var wrapModeMap = {
88
+ [import_l7_core.gl.REPEAT]: "repeat",
89
+ [import_l7_core.gl.CLAMP_TO_EDGE]: "clamp",
90
+ [import_l7_core.gl.MIRRORED_REPEAT]: "mirror"
91
+ };
92
+ var colorSpaceMap = {
93
+ [import_l7_core.gl.NONE]: "none",
94
+ [import_l7_core.gl.BROWSER_DEFAULT_WEBGL]: "browser"
95
+ };
96
+ var depthFuncMap = {
97
+ [import_l7_core.gl.NEVER]: "never",
98
+ [import_l7_core.gl.ALWAYS]: "always",
99
+ [import_l7_core.gl.LESS]: "less",
100
+ [import_l7_core.gl.LEQUAL]: "lequal",
101
+ [import_l7_core.gl.GREATER]: "greater",
102
+ [import_l7_core.gl.GEQUAL]: "gequal",
103
+ [import_l7_core.gl.EQUAL]: "equal",
104
+ [import_l7_core.gl.NOTEQUAL]: "notequal"
105
+ };
106
+ var blendEquationMap = {
107
+ [import_l7_core.gl.FUNC_ADD]: "add",
108
+ [import_l7_core.gl.MIN_EXT]: "min",
109
+ [import_l7_core.gl.MAX_EXT]: "max",
110
+ [import_l7_core.gl.FUNC_SUBTRACT]: "subtract",
111
+ [import_l7_core.gl.FUNC_REVERSE_SUBTRACT]: "reverse subtract"
112
+ };
113
+ var blendFuncMap = {
114
+ [import_l7_core.gl.ZERO]: "zero",
115
+ [import_l7_core.gl.ONE]: "one",
116
+ [import_l7_core.gl.SRC_COLOR]: "src color",
117
+ [import_l7_core.gl.ONE_MINUS_SRC_COLOR]: "one minus src color",
118
+ [import_l7_core.gl.SRC_ALPHA]: "src alpha",
119
+ [import_l7_core.gl.ONE_MINUS_SRC_ALPHA]: "one minus src alpha",
120
+ [import_l7_core.gl.DST_COLOR]: "dst color",
121
+ [import_l7_core.gl.ONE_MINUS_DST_COLOR]: "one minus dst color",
122
+ [import_l7_core.gl.DST_ALPHA]: "dst alpha",
123
+ [import_l7_core.gl.ONE_MINUS_DST_ALPHA]: "one minus dst alpha",
124
+ [import_l7_core.gl.CONSTANT_COLOR]: "constant color",
125
+ [import_l7_core.gl.ONE_MINUS_CONSTANT_COLOR]: "one minus constant color",
126
+ [import_l7_core.gl.CONSTANT_ALPHA]: "constant alpha",
127
+ [import_l7_core.gl.ONE_MINUS_CONSTANT_ALPHA]: "one minus constant alpha",
128
+ [import_l7_core.gl.SRC_ALPHA_SATURATE]: "src alpha saturate"
129
+ };
130
+ var stencilFuncMap = {
131
+ [import_l7_core.gl.NEVER]: "never",
132
+ [import_l7_core.gl.ALWAYS]: "always",
133
+ [import_l7_core.gl.LESS]: "less",
134
+ [import_l7_core.gl.LEQUAL]: "lequal",
135
+ [import_l7_core.gl.GREATER]: "greater",
136
+ [import_l7_core.gl.GEQUAL]: "gequal",
137
+ [import_l7_core.gl.EQUAL]: "equal",
138
+ [import_l7_core.gl.NOTEQUAL]: "notequal"
139
+ };
140
+ var stencilOpMap = {
141
+ [import_l7_core.gl.ZERO]: "zero",
142
+ [import_l7_core.gl.KEEP]: "keep",
143
+ [import_l7_core.gl.REPLACE]: "replace",
144
+ [import_l7_core.gl.INVERT]: "invert",
145
+ [import_l7_core.gl.INCR]: "increment",
146
+ [import_l7_core.gl.DECR]: "decrement",
147
+ [import_l7_core.gl.INCR_WRAP]: "increment wrap",
148
+ [import_l7_core.gl.DECR_WRAP]: "decrement wrap"
149
+ };
150
+ var cullFaceMap = {
151
+ [import_l7_core.gl.FRONT]: "front",
152
+ [import_l7_core.gl.BACK]: "back"
153
+ };
154
+ // Annotate the CommonJS export names for ESM import in node:
155
+ 0 && (module.exports = {
156
+ blendEquationMap,
157
+ blendFuncMap,
158
+ colorSpaceMap,
159
+ cullFaceMap,
160
+ dataTypeMap,
161
+ depthFuncMap,
162
+ filterMap,
163
+ formatMap,
164
+ mipmapMap,
165
+ primitiveMap,
166
+ stencilFuncMap,
167
+ stencilOpMap,
168
+ usageMap,
169
+ wrapModeMap
7
170
  });
8
- exports.wrapModeMap = exports.usageMap = exports.stencilOpMap = exports.stencilFuncMap = exports.primitiveMap = exports.mipmapMap = exports.formatMap = exports.filterMap = exports.depthFuncMap = exports.dataTypeMap = exports.cullFaceMap = exports.colorSpaceMap = exports.blendFuncMap = exports.blendEquationMap = void 0;
9
-
10
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
-
12
- var _l7Core = require("@antv/l7-core");
13
-
14
- var _primitiveMap, _usageMap, _dataTypeMap, _formatMap, _mipmapMap, _filterMap, _wrapModeMap, _colorSpaceMap, _depthFuncMap, _blendEquationMap, _blendFuncMap, _stencilFuncMap, _stencilOpMap, _cullFaceMap;
15
-
16
- var primitiveMap = (_primitiveMap = {}, (0, _defineProperty2.default)(_primitiveMap, _l7Core.gl.POINTS, 'points'), (0, _defineProperty2.default)(_primitiveMap, _l7Core.gl.LINES, 'lines'), (0, _defineProperty2.default)(_primitiveMap, _l7Core.gl.LINE_LOOP, 'line loop'), (0, _defineProperty2.default)(_primitiveMap, _l7Core.gl.LINE_STRIP, 'line strip'), (0, _defineProperty2.default)(_primitiveMap, _l7Core.gl.TRIANGLES, 'triangles'), (0, _defineProperty2.default)(_primitiveMap, _l7Core.gl.TRIANGLE_FAN, 'triangle fan'), (0, _defineProperty2.default)(_primitiveMap, _l7Core.gl.TRIANGLE_STRIP, 'triangle strip'), _primitiveMap);
17
- exports.primitiveMap = primitiveMap;
18
- var usageMap = (_usageMap = {}, (0, _defineProperty2.default)(_usageMap, _l7Core.gl.STATIC_DRAW, 'static'), (0, _defineProperty2.default)(_usageMap, _l7Core.gl.DYNAMIC_DRAW, 'dynamic'), (0, _defineProperty2.default)(_usageMap, _l7Core.gl.STREAM_DRAW, 'stream'), _usageMap);
19
- exports.usageMap = usageMap;
20
- var dataTypeMap = (_dataTypeMap = {}, (0, _defineProperty2.default)(_dataTypeMap, _l7Core.gl.BYTE, 'int8'), (0, _defineProperty2.default)(_dataTypeMap, _l7Core.gl.UNSIGNED_INT, 'int16'), (0, _defineProperty2.default)(_dataTypeMap, _l7Core.gl.INT, 'int32'), (0, _defineProperty2.default)(_dataTypeMap, _l7Core.gl.UNSIGNED_BYTE, 'uint8'), (0, _defineProperty2.default)(_dataTypeMap, _l7Core.gl.UNSIGNED_SHORT, 'uint16'), (0, _defineProperty2.default)(_dataTypeMap, _l7Core.gl.UNSIGNED_INT, 'uint32'), (0, _defineProperty2.default)(_dataTypeMap, _l7Core.gl.FLOAT, 'float'), _dataTypeMap);
21
- exports.dataTypeMap = dataTypeMap;
22
- var formatMap = (_formatMap = {}, (0, _defineProperty2.default)(_formatMap, _l7Core.gl.ALPHA, 'alpha'), (0, _defineProperty2.default)(_formatMap, _l7Core.gl.LUMINANCE, 'luminance'), (0, _defineProperty2.default)(_formatMap, _l7Core.gl.LUMINANCE_ALPHA, 'luminance alpha'), (0, _defineProperty2.default)(_formatMap, _l7Core.gl.RGB, 'rgb'), (0, _defineProperty2.default)(_formatMap, _l7Core.gl.RGBA, 'rgba'), (0, _defineProperty2.default)(_formatMap, _l7Core.gl.RGBA4, 'rgba4'), (0, _defineProperty2.default)(_formatMap, _l7Core.gl.RGB5_A1, 'rgb5 a1'), (0, _defineProperty2.default)(_formatMap, _l7Core.gl.RGB565, 'rgb565'), (0, _defineProperty2.default)(_formatMap, _l7Core.gl.DEPTH_COMPONENT, 'depth'), (0, _defineProperty2.default)(_formatMap, _l7Core.gl.DEPTH_STENCIL, 'depth stencil'), _formatMap);
23
- exports.formatMap = formatMap;
24
- var mipmapMap = (_mipmapMap = {}, (0, _defineProperty2.default)(_mipmapMap, _l7Core.gl.DONT_CARE, 'dont care'), (0, _defineProperty2.default)(_mipmapMap, _l7Core.gl.NICEST, 'nice'), (0, _defineProperty2.default)(_mipmapMap, _l7Core.gl.FASTEST, 'fast'), _mipmapMap);
25
- exports.mipmapMap = mipmapMap;
26
- var filterMap = (_filterMap = {}, (0, _defineProperty2.default)(_filterMap, _l7Core.gl.NEAREST, 'nearest'), (0, _defineProperty2.default)(_filterMap, _l7Core.gl.LINEAR, 'linear'), (0, _defineProperty2.default)(_filterMap, _l7Core.gl.LINEAR_MIPMAP_LINEAR, 'mipmap'), (0, _defineProperty2.default)(_filterMap, _l7Core.gl.NEAREST_MIPMAP_LINEAR, 'nearest mipmap linear'), (0, _defineProperty2.default)(_filterMap, _l7Core.gl.LINEAR_MIPMAP_NEAREST, 'linear mipmap nearest'), (0, _defineProperty2.default)(_filterMap, _l7Core.gl.NEAREST_MIPMAP_NEAREST, 'nearest mipmap nearest'), _filterMap);
27
- exports.filterMap = filterMap;
28
- var wrapModeMap = (_wrapModeMap = {}, (0, _defineProperty2.default)(_wrapModeMap, _l7Core.gl.REPEAT, 'repeat'), (0, _defineProperty2.default)(_wrapModeMap, _l7Core.gl.CLAMP_TO_EDGE, 'clamp'), (0, _defineProperty2.default)(_wrapModeMap, _l7Core.gl.MIRRORED_REPEAT, 'mirror'), _wrapModeMap);
29
- exports.wrapModeMap = wrapModeMap;
30
- var colorSpaceMap = (_colorSpaceMap = {}, (0, _defineProperty2.default)(_colorSpaceMap, _l7Core.gl.NONE, 'none'), (0, _defineProperty2.default)(_colorSpaceMap, _l7Core.gl.BROWSER_DEFAULT_WEBGL, 'browser'), _colorSpaceMap);
31
- exports.colorSpaceMap = colorSpaceMap;
32
- var depthFuncMap = (_depthFuncMap = {}, (0, _defineProperty2.default)(_depthFuncMap, _l7Core.gl.NEVER, 'never'), (0, _defineProperty2.default)(_depthFuncMap, _l7Core.gl.ALWAYS, 'always'), (0, _defineProperty2.default)(_depthFuncMap, _l7Core.gl.LESS, 'less'), (0, _defineProperty2.default)(_depthFuncMap, _l7Core.gl.LEQUAL, 'lequal'), (0, _defineProperty2.default)(_depthFuncMap, _l7Core.gl.GREATER, 'greater'), (0, _defineProperty2.default)(_depthFuncMap, _l7Core.gl.GEQUAL, 'gequal'), (0, _defineProperty2.default)(_depthFuncMap, _l7Core.gl.EQUAL, 'equal'), (0, _defineProperty2.default)(_depthFuncMap, _l7Core.gl.NOTEQUAL, 'notequal'), _depthFuncMap);
33
- exports.depthFuncMap = depthFuncMap;
34
- var blendEquationMap = (_blendEquationMap = {}, (0, _defineProperty2.default)(_blendEquationMap, _l7Core.gl.FUNC_ADD, 'add'), (0, _defineProperty2.default)(_blendEquationMap, _l7Core.gl.MIN_EXT, 'min'), (0, _defineProperty2.default)(_blendEquationMap, _l7Core.gl.MAX_EXT, 'max'), (0, _defineProperty2.default)(_blendEquationMap, _l7Core.gl.FUNC_SUBTRACT, 'subtract'), (0, _defineProperty2.default)(_blendEquationMap, _l7Core.gl.FUNC_REVERSE_SUBTRACT, 'reverse subtract'), _blendEquationMap);
35
- exports.blendEquationMap = blendEquationMap;
36
- var blendFuncMap = (_blendFuncMap = {}, (0, _defineProperty2.default)(_blendFuncMap, _l7Core.gl.ZERO, 'zero'), (0, _defineProperty2.default)(_blendFuncMap, _l7Core.gl.ONE, 'one'), (0, _defineProperty2.default)(_blendFuncMap, _l7Core.gl.SRC_COLOR, 'src color'), (0, _defineProperty2.default)(_blendFuncMap, _l7Core.gl.ONE_MINUS_SRC_COLOR, 'one minus src color'), (0, _defineProperty2.default)(_blendFuncMap, _l7Core.gl.SRC_ALPHA, 'src alpha'), (0, _defineProperty2.default)(_blendFuncMap, _l7Core.gl.ONE_MINUS_SRC_ALPHA, 'one minus src alpha'), (0, _defineProperty2.default)(_blendFuncMap, _l7Core.gl.DST_COLOR, 'dst color'), (0, _defineProperty2.default)(_blendFuncMap, _l7Core.gl.ONE_MINUS_DST_COLOR, 'one minus dst color'), (0, _defineProperty2.default)(_blendFuncMap, _l7Core.gl.DST_ALPHA, 'dst alpha'), (0, _defineProperty2.default)(_blendFuncMap, _l7Core.gl.ONE_MINUS_DST_ALPHA, 'one minus dst alpha'), (0, _defineProperty2.default)(_blendFuncMap, _l7Core.gl.CONSTANT_COLOR, 'constant color'), (0, _defineProperty2.default)(_blendFuncMap, _l7Core.gl.ONE_MINUS_CONSTANT_COLOR, 'one minus constant color'), (0, _defineProperty2.default)(_blendFuncMap, _l7Core.gl.CONSTANT_ALPHA, 'constant alpha'), (0, _defineProperty2.default)(_blendFuncMap, _l7Core.gl.ONE_MINUS_CONSTANT_ALPHA, 'one minus constant alpha'), (0, _defineProperty2.default)(_blendFuncMap, _l7Core.gl.SRC_ALPHA_SATURATE, 'src alpha saturate'), _blendFuncMap);
37
- exports.blendFuncMap = blendFuncMap;
38
- var stencilFuncMap = (_stencilFuncMap = {}, (0, _defineProperty2.default)(_stencilFuncMap, _l7Core.gl.NEVER, 'never'), (0, _defineProperty2.default)(_stencilFuncMap, _l7Core.gl.ALWAYS, 'always'), (0, _defineProperty2.default)(_stencilFuncMap, _l7Core.gl.LESS, 'less'), (0, _defineProperty2.default)(_stencilFuncMap, _l7Core.gl.LEQUAL, 'lequal'), (0, _defineProperty2.default)(_stencilFuncMap, _l7Core.gl.GREATER, 'greater'), (0, _defineProperty2.default)(_stencilFuncMap, _l7Core.gl.GEQUAL, 'gequal'), (0, _defineProperty2.default)(_stencilFuncMap, _l7Core.gl.EQUAL, 'equal'), (0, _defineProperty2.default)(_stencilFuncMap, _l7Core.gl.NOTEQUAL, 'notequal'), _stencilFuncMap);
39
- exports.stencilFuncMap = stencilFuncMap;
40
- var stencilOpMap = (_stencilOpMap = {}, (0, _defineProperty2.default)(_stencilOpMap, _l7Core.gl.ZERO, 'zero'), (0, _defineProperty2.default)(_stencilOpMap, _l7Core.gl.KEEP, 'keep'), (0, _defineProperty2.default)(_stencilOpMap, _l7Core.gl.REPLACE, 'replace'), (0, _defineProperty2.default)(_stencilOpMap, _l7Core.gl.INVERT, 'invert'), (0, _defineProperty2.default)(_stencilOpMap, _l7Core.gl.INCR, 'increment'), (0, _defineProperty2.default)(_stencilOpMap, _l7Core.gl.DECR, 'decrement'), (0, _defineProperty2.default)(_stencilOpMap, _l7Core.gl.INCR_WRAP, 'increment wrap'), (0, _defineProperty2.default)(_stencilOpMap, _l7Core.gl.DECR_WRAP, 'decrement wrap'), _stencilOpMap);
41
- exports.stencilOpMap = stencilOpMap;
42
- var cullFaceMap = (_cullFaceMap = {}, (0, _defineProperty2.default)(_cullFaceMap, _l7Core.gl.FRONT, 'front'), (0, _defineProperty2.default)(_cullFaceMap, _l7Core.gl.BACK, 'back'), _cullFaceMap);
43
- exports.cullFaceMap = cullFaceMap;
44
- //# sourceMappingURL=constants.js.map