@antv/l7-renderer 2.17.4 → 2.17.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/ReglAttribute.js +5 -11
- package/es/regl/ReglBuffer.d.ts +1 -0
- package/es/regl/ReglBuffer.js +12 -11
- package/es/regl/ReglElements.js +6 -9
- package/es/regl/ReglFramebuffer.js +6 -12
- package/es/regl/ReglModel.js +73 -91
- package/es/regl/ReglRenderbuffer.js +4 -8
- package/es/regl/ReglTexture2D.js +34 -44
- package/es/regl/constants.js +0 -2
- package/es/regl/index.js +69 -106
- package/lib/index.js +4 -0
- package/lib/regl/ReglAttribute.js +0 -2
- package/lib/regl/ReglBuffer.js +6 -3
- package/lib/regl/ReglElements.js +0 -2
- package/lib/regl/ReglFramebuffer.js +0 -2
- package/lib/regl/ReglModel.js +34 -4
- package/lib/regl/ReglRenderbuffer.js +0 -2
- package/lib/regl/ReglTexture2D.js +3 -2
- package/lib/regl/index.js +10 -2
- package/package.json +5 -5
|
@@ -52,10 +52,12 @@ var ReglTexture2D = class {
|
|
|
52
52
|
const textureOptions = {
|
|
53
53
|
width,
|
|
54
54
|
height,
|
|
55
|
+
// @ts-ignore
|
|
55
56
|
type: import_constants.dataTypeMap[type],
|
|
56
57
|
format: import_constants.formatMap[format],
|
|
57
58
|
wrapS: import_constants.wrapModeMap[wrapS],
|
|
58
59
|
wrapT: import_constants.wrapModeMap[wrapT],
|
|
60
|
+
// @ts-ignore
|
|
59
61
|
mag: import_constants.filterMap[mag],
|
|
60
62
|
min: import_constants.filterMap[min],
|
|
61
63
|
alignment,
|
|
@@ -63,6 +65,7 @@ var ReglTexture2D = class {
|
|
|
63
65
|
colorSpace: import_constants.colorSpaceMap[colorSpace],
|
|
64
66
|
premultiplyAlpha,
|
|
65
67
|
aniso,
|
|
68
|
+
// copy pixels from current bind framebuffer
|
|
66
69
|
x,
|
|
67
70
|
y,
|
|
68
71
|
copy
|
|
@@ -102,5 +105,3 @@ var ReglTexture2D = class {
|
|
|
102
105
|
this.isDestroy = true;
|
|
103
106
|
}
|
|
104
107
|
};
|
|
105
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
106
|
-
0 && (module.exports = {});
|
package/lib/regl/index.js
CHANGED
|
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
24
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
25
|
mod
|
|
22
26
|
));
|
|
@@ -133,15 +137,20 @@ var ReglRendererService = class {
|
|
|
133
137
|
canvas: this.canvas,
|
|
134
138
|
attributes: {
|
|
135
139
|
alpha: true,
|
|
140
|
+
// use TAA instead of MSAA
|
|
141
|
+
// @see https://www.khronos.org/registry/webgl/specs/1.0/#5.2.1
|
|
136
142
|
antialias: cfg.antialias,
|
|
137
143
|
premultipliedAlpha: true,
|
|
138
144
|
preserveDrawingBuffer: cfg.preserveDrawingBuffer,
|
|
139
145
|
stencil: cfg.stencil
|
|
140
146
|
},
|
|
147
|
+
// TODO: use extensions
|
|
141
148
|
extensions: [
|
|
142
149
|
"OES_element_index_uint",
|
|
143
150
|
"OES_standard_derivatives",
|
|
151
|
+
// wireframe
|
|
144
152
|
"ANGLE_instanced_arrays"
|
|
153
|
+
// VSM shadow map
|
|
145
154
|
],
|
|
146
155
|
optionalExtensions: [
|
|
147
156
|
"oes_texture_float_linear",
|
|
@@ -171,6 +180,7 @@ var ReglRendererService = class {
|
|
|
171
180
|
testExtension(name) {
|
|
172
181
|
return !!this.getGLContext().getExtension(name);
|
|
173
182
|
}
|
|
183
|
+
// TODO: 临时方法
|
|
174
184
|
setState() {
|
|
175
185
|
this.gl({
|
|
176
186
|
cull: {
|
|
@@ -225,5 +235,3 @@ var ReglRendererService = class {
|
|
|
225
235
|
ReglRendererService = __decorateClass([
|
|
226
236
|
(0, import_inversify.injectable)()
|
|
227
237
|
], ReglRendererService);
|
|
228
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
229
|
-
0 && (module.exports = {});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/l7-renderer",
|
|
3
|
-
"version": "2.17.
|
|
3
|
+
"version": "2.17.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": "
|
|
28
|
+
"@antv/l7-test-utils": "2.17.6",
|
|
29
29
|
"gl": "^5.0.3"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@antv/l7-core": "
|
|
33
|
-
"@antv/l7-utils": "
|
|
32
|
+
"@antv/l7-core": "2.17.6",
|
|
33
|
+
"@antv/l7-utils": "2.17.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": "
|
|
40
|
+
"gitHead": "feea7d918912895a33493c62d0786598fc73faf6",
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
}
|