@antv/l7-renderer 2.21.9 → 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/index.js +2 -1
- package/lib/device/index.js +2 -1
- package/package.json +4 -4
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
|
},
|
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",
|