@antv/l7-renderer 2.12.2 → 2.13.1
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/ReglTexture2D.js
CHANGED
|
@@ -111,6 +111,11 @@ var ReglTexture2D = /*#__PURE__*/function () {
|
|
|
111
111
|
this.width = width;
|
|
112
112
|
this.height = height;
|
|
113
113
|
}
|
|
114
|
+
}, {
|
|
115
|
+
key: "getSize",
|
|
116
|
+
value: function getSize() {
|
|
117
|
+
return [this.width, this.height];
|
|
118
|
+
}
|
|
114
119
|
}, {
|
|
115
120
|
key: "destroy",
|
|
116
121
|
value: function destroy() {
|
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(
|
|
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(
|
|
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();
|
package/lib/regl/ReglModel.js
CHANGED
|
@@ -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(
|
|
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(
|
|
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(
|
|
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(
|
|
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/l7-renderer",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.13.1",
|
|
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.
|
|
28
|
+
"@antv/l7-test-utils": "2.13.1",
|
|
29
29
|
"gl": "^5.0.3"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@antv/l7-core": "2.
|
|
33
|
-
"@antv/l7-utils": "2.
|
|
32
|
+
"@antv/l7-core": "2.13.1",
|
|
33
|
+
"@antv/l7-utils": "2.13.1",
|
|
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": "
|
|
40
|
+
"gitHead": "6a7cbf5974ee1b3f38f926b3eaac97a144013ef2",
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
}
|