@antv/l7-renderer 2.13.5 → 2.13.6

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.
package/es/regl/index.js CHANGED
@@ -197,7 +197,7 @@ var ReglRendererService = (_dec = injectable(), _dec(_class = /*#__PURE__*/funct
197
197
  extensions: ['OES_element_index_uint', 'OES_standard_derivatives', // wireframe
198
198
  'ANGLE_instanced_arrays' // VSM shadow map
199
199
  ],
200
- optionalExtensions: ['oes_texture_float_linear', 'OES_texture_float', 'EXT_texture_filter_anisotropic', 'EXT_blend_minmax', 'WEBGL_depth_texture'],
200
+ optionalExtensions: ['oes_texture_float_linear', 'OES_texture_float', 'EXT_texture_filter_anisotropic', 'EXT_blend_minmax', 'WEBGL_depth_texture', 'WEBGL_lose_context'],
201
201
  profile: true,
202
202
  onDone: function onDone(err, r) {
203
203
  if (err || !r) {
package/lib/index.js CHANGED
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
16
16
  }
17
17
  return to;
18
18
  };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
+ mod
22
+ ));
20
23
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
24
 
22
25
  // src/index.ts
@@ -30,7 +30,9 @@ var ReglFramebuffer = class {
30
30
  height
31
31
  };
32
32
  if (Array.isArray(colors)) {
33
- framebufferOptions.colors = colors.map((c) => c.get());
33
+ framebufferOptions.colors = colors.map(
34
+ (c) => c.get()
35
+ );
34
36
  }
35
37
  if (color && typeof color !== "boolean") {
36
38
  framebufferOptions.color = color.get();
@@ -244,7 +244,12 @@ var ReglModel = class {
244
244
  extractUniforms(uniforms) {
245
245
  const extractedUniforms = {};
246
246
  Object.keys(uniforms).forEach((uniformName) => {
247
- this.extractUniformsRecursively(uniformName, uniforms[uniformName], extractedUniforms, "");
247
+ this.extractUniformsRecursively(
248
+ uniformName,
249
+ uniforms[uniformName],
250
+ extractedUniforms,
251
+ ""
252
+ );
248
253
  });
249
254
  return extractedUniforms;
250
255
  }
@@ -255,13 +260,23 @@ var ReglModel = class {
255
260
  }
256
261
  if ((0, import_lodash.isPlainObject)(uniformValue)) {
257
262
  Object.keys(uniformValue).forEach((childName) => {
258
- this.extractUniformsRecursively(childName, uniformValue[childName], uniforms, `${prefix && prefix + "."}${uniformName}`);
263
+ this.extractUniformsRecursively(
264
+ childName,
265
+ uniformValue[childName],
266
+ uniforms,
267
+ `${prefix && prefix + "."}${uniformName}`
268
+ );
259
269
  });
260
270
  }
261
271
  if (Array.isArray(uniformValue)) {
262
272
  uniformValue.forEach((child, idx) => {
263
273
  Object.keys(child).forEach((childName) => {
264
- this.extractUniformsRecursively(childName, child[childName], uniforms, `${prefix && prefix + "."}${uniformName}[${idx}]`);
274
+ this.extractUniformsRecursively(
275
+ childName,
276
+ child[childName],
277
+ uniforms,
278
+ `${prefix && prefix + "."}${uniformName}[${idx}]`
279
+ );
265
280
  });
266
281
  });
267
282
  }
package/lib/regl/index.js CHANGED
@@ -16,7 +16,10 @@ var __copyProps = (to, from, except, desc) => {
16
16
  }
17
17
  return to;
18
18
  };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
+ mod
22
+ ));
20
23
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
24
  var __decorateClass = (decorators, target, key, kind) => {
22
25
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
@@ -145,7 +148,8 @@ var ReglRendererService = class {
145
148
  "OES_texture_float",
146
149
  "EXT_texture_filter_anisotropic",
147
150
  "EXT_blend_minmax",
148
- "WEBGL_depth_texture"
151
+ "WEBGL_depth_texture",
152
+ "WEBGL_lose_context"
149
153
  ],
150
154
  profile: true,
151
155
  onDone: (err, r) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/l7-renderer",
3
- "version": "2.13.5",
3
+ "version": "2.13.6",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -25,19 +25,19 @@
25
25
  "author": "xiaoiver",
26
26
  "license": "ISC",
27
27
  "devDependencies": {
28
- "@antv/l7-test-utils": "2.13.5",
28
+ "@antv/l7-test-utils": "2.13.6",
29
29
  "gl": "^5.0.3"
30
30
  },
31
31
  "dependencies": {
32
- "@antv/l7-core": "2.13.5",
33
- "@antv/l7-utils": "2.13.5",
32
+ "@antv/l7-core": "2.13.6",
33
+ "@antv/l7-utils": "2.13.6",
34
34
  "@babel/runtime": "^7.7.7",
35
35
  "inversify": "^5.0.1",
36
36
  "l7regl": "^0.0.20",
37
37
  "lodash": "^4.17.15",
38
38
  "reflect-metadata": "^0.1.13"
39
39
  },
40
- "gitHead": "0b3af09f76cb5e7ee27b495678ad4833fdb53434",
40
+ "gitHead": "dc11ec312f2078704e548ba540d3289e1f752441",
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  }