@antv/l7-renderer 2.13.9 → 2.14.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.
package/lib/index.js CHANGED
@@ -16,10 +16,7 @@ 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(
20
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
- mod
22
- ));
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));
23
20
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
21
 
25
22
  // src/index.ts
@@ -30,9 +30,7 @@ var ReglFramebuffer = class {
30
30
  height
31
31
  };
32
32
  if (Array.isArray(colors)) {
33
- framebufferOptions.colors = colors.map(
34
- (c) => c.get()
35
- );
33
+ framebufferOptions.colors = colors.map((c) => c.get());
36
34
  }
37
35
  if (color && typeof color !== "boolean") {
38
36
  framebufferOptions.color = color.get();
@@ -244,12 +244,7 @@ var ReglModel = class {
244
244
  extractUniforms(uniforms) {
245
245
  const extractedUniforms = {};
246
246
  Object.keys(uniforms).forEach((uniformName) => {
247
- this.extractUniformsRecursively(
248
- uniformName,
249
- uniforms[uniformName],
250
- extractedUniforms,
251
- ""
252
- );
247
+ this.extractUniformsRecursively(uniformName, uniforms[uniformName], extractedUniforms, "");
253
248
  });
254
249
  return extractedUniforms;
255
250
  }
@@ -260,23 +255,13 @@ var ReglModel = class {
260
255
  }
261
256
  if ((0, import_lodash.isPlainObject)(uniformValue)) {
262
257
  Object.keys(uniformValue).forEach((childName) => {
263
- this.extractUniformsRecursively(
264
- childName,
265
- uniformValue[childName],
266
- uniforms,
267
- `${prefix && prefix + "."}${uniformName}`
268
- );
258
+ this.extractUniformsRecursively(childName, uniformValue[childName], uniforms, `${prefix && prefix + "."}${uniformName}`);
269
259
  });
270
260
  }
271
261
  if (Array.isArray(uniformValue)) {
272
262
  uniformValue.forEach((child, idx) => {
273
263
  Object.keys(child).forEach((childName) => {
274
- this.extractUniformsRecursively(
275
- childName,
276
- child[childName],
277
- uniforms,
278
- `${prefix && prefix + "."}${uniformName}[${idx}]`
279
- );
264
+ this.extractUniformsRecursively(childName, child[childName], uniforms, `${prefix && prefix + "."}${uniformName}[${idx}]`);
280
265
  });
281
266
  });
282
267
  }
package/lib/regl/index.js CHANGED
@@ -16,10 +16,7 @@ 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(
20
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
- mod
22
- ));
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));
23
20
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
21
  var __decorateClass = (decorators, target, key, kind) => {
25
22
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/l7-renderer",
3
- "version": "2.13.9",
3
+ "version": "2.14.0",
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.9",
28
+ "@antv/l7-test-utils": "2.14.0",
29
29
  "gl": "^5.0.3"
30
30
  },
31
31
  "dependencies": {
32
- "@antv/l7-core": "2.13.9",
33
- "@antv/l7-utils": "2.13.9",
32
+ "@antv/l7-core": "2.14.0",
33
+ "@antv/l7-utils": "2.14.0",
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": "be693790ae71475ad104c301aaa119ab0a059bd5",
40
+ "gitHead": "752b36c937ee41fd2bea2ef0248f4fd86d38b834",
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  }