@antv/l7-renderer 2.21.9-beta.0 → 2.21.10
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/device/DeviceModel.js
CHANGED
|
@@ -104,7 +104,7 @@ var DeviceModel = class {
|
|
|
104
104
|
if (elements) {
|
|
105
105
|
this.indexBuffer = elements.get();
|
|
106
106
|
}
|
|
107
|
-
const inputLayout =
|
|
107
|
+
const inputLayout = device.createInputLayout({
|
|
108
108
|
vertexBufferDescriptors,
|
|
109
109
|
indexBufferFormat: elements ? Format.U32_R : null,
|
|
110
110
|
program: this.program
|
|
@@ -274,7 +274,6 @@ var DeviceModel = class {
|
|
|
274
274
|
}
|
|
275
275
|
destroy() {
|
|
276
276
|
var _a, _b, _c;
|
|
277
|
-
this.program.destroy();
|
|
278
277
|
(_a = this.vertexBuffers) == null ? void 0 : _a.forEach((buffer) => buffer.destroy());
|
|
279
278
|
(_b = this.indexBuffer) == null ? void 0 : _b.destroy();
|
|
280
279
|
(_c = this.bindings) == null ? void 0 : _c.destroy();
|
package/es/device/index.js
CHANGED
|
@@ -176,13 +176,14 @@ var DeviceRendererService = class {
|
|
|
176
176
|
}
|
|
177
177
|
init(canvas, cfg) {
|
|
178
178
|
return __async(this, null, function* () {
|
|
179
|
-
const { enableWebGPU, shaderCompilerPath } = cfg;
|
|
179
|
+
const { enableWebGPU, shaderCompilerPath, antialias } = cfg;
|
|
180
180
|
this.canvas = canvas;
|
|
181
181
|
const deviceContribution = enableWebGPU ? new WebGPUDeviceContribution({
|
|
182
182
|
shaderCompilerPath
|
|
183
183
|
}) : new WebGLDeviceContribution({
|
|
184
184
|
// Use WebGL2 first and downgrade to WebGL1 if WebGL2 is not supported.
|
|
185
185
|
targets: ["webgl2", "webgl1"],
|
|
186
|
+
antialias,
|
|
186
187
|
onContextLost(e) {
|
|
187
188
|
console.warn("context lost", e);
|
|
188
189
|
},
|
|
@@ -114,7 +114,7 @@ var DeviceModel = class {
|
|
|
114
114
|
if (elements) {
|
|
115
115
|
this.indexBuffer = elements.get();
|
|
116
116
|
}
|
|
117
|
-
const inputLayout =
|
|
117
|
+
const inputLayout = device.createInputLayout({
|
|
118
118
|
vertexBufferDescriptors,
|
|
119
119
|
indexBufferFormat: elements ? import_g_device_api.Format.U32_R : null,
|
|
120
120
|
program: this.program
|
|
@@ -284,7 +284,6 @@ var DeviceModel = class {
|
|
|
284
284
|
}
|
|
285
285
|
destroy() {
|
|
286
286
|
var _a, _b, _c;
|
|
287
|
-
this.program.destroy();
|
|
288
287
|
(_a = this.vertexBuffers) == null ? void 0 : _a.forEach((buffer) => buffer.destroy());
|
|
289
288
|
(_b = this.indexBuffer) == null ? void 0 : _b.destroy();
|
|
290
289
|
(_c = this.bindings) == null ? void 0 : _c.destroy();
|
package/lib/device/index.js
CHANGED
|
@@ -200,13 +200,14 @@ var DeviceRendererService = class {
|
|
|
200
200
|
}
|
|
201
201
|
init(canvas, cfg) {
|
|
202
202
|
return __async(this, null, function* () {
|
|
203
|
-
const { enableWebGPU, shaderCompilerPath } = cfg;
|
|
203
|
+
const { enableWebGPU, shaderCompilerPath, antialias } = cfg;
|
|
204
204
|
this.canvas = canvas;
|
|
205
205
|
const deviceContribution = enableWebGPU ? new import_g_device_api.WebGPUDeviceContribution({
|
|
206
206
|
shaderCompilerPath
|
|
207
207
|
}) : new import_g_device_api.WebGLDeviceContribution({
|
|
208
208
|
// Use WebGL2 first and downgrade to WebGL1 if WebGL2 is not supported.
|
|
209
209
|
targets: ["webgl2", "webgl1"],
|
|
210
|
+
antialias,
|
|
210
211
|
onContextLost(e) {
|
|
211
212
|
console.warn("context lost", e);
|
|
212
213
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/l7-renderer",
|
|
3
|
-
"version": "2.21.
|
|
3
|
+
"version": "2.21.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "https://github.com/orgs/antvis/people",
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"@antv/g-device-api": "^1.6.4",
|
|
17
17
|
"@babel/runtime": "^7.7.7",
|
|
18
18
|
"regl": "1.6.1",
|
|
19
|
-
"@antv/l7-core": "2.21.
|
|
20
|
-
"@antv/l7-utils": "2.21.
|
|
19
|
+
"@antv/l7-core": "2.21.10",
|
|
20
|
+
"@antv/l7-utils": "2.21.10"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@antv/l7-test-utils": "^2.21.
|
|
23
|
+
"@antv/l7-test-utils": "^2.21.10"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public",
|