@antv/l7-renderer 2.25.2 → 2.25.4
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 +16 -0
- package/lib/device/index.js +16 -0
- package/package.json +4 -4
package/es/device/index.js
CHANGED
|
@@ -278,10 +278,26 @@ var DeviceRendererService = class {
|
|
|
278
278
|
}
|
|
279
279
|
// TODO: 临时方法
|
|
280
280
|
setState() {
|
|
281
|
+
const gl = this.getGLContext();
|
|
282
|
+
if (gl) {
|
|
283
|
+
gl.disable(gl.CULL_FACE);
|
|
284
|
+
gl.blendEquation(gl.FUNC_ADD);
|
|
285
|
+
gl.blendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA);
|
|
286
|
+
}
|
|
281
287
|
}
|
|
282
288
|
setBaseState() {
|
|
289
|
+
const gl = this.getGLContext();
|
|
290
|
+
if (gl) {
|
|
291
|
+
gl.disable(gl.CULL_FACE);
|
|
292
|
+
gl.blendEquation(gl.FUNC_ADD);
|
|
293
|
+
gl.blendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA);
|
|
294
|
+
}
|
|
283
295
|
}
|
|
284
296
|
setCustomLayerDefaults() {
|
|
297
|
+
const gl = this.getGLContext();
|
|
298
|
+
if (gl) {
|
|
299
|
+
gl.disable(gl.CULL_FACE);
|
|
300
|
+
}
|
|
285
301
|
}
|
|
286
302
|
setDirty(flag) {
|
|
287
303
|
this.isDirty = flag;
|
package/lib/device/index.js
CHANGED
|
@@ -302,10 +302,26 @@ var DeviceRendererService = class {
|
|
|
302
302
|
}
|
|
303
303
|
// TODO: 临时方法
|
|
304
304
|
setState() {
|
|
305
|
+
const gl = this.getGLContext();
|
|
306
|
+
if (gl) {
|
|
307
|
+
gl.disable(gl.CULL_FACE);
|
|
308
|
+
gl.blendEquation(gl.FUNC_ADD);
|
|
309
|
+
gl.blendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA);
|
|
310
|
+
}
|
|
305
311
|
}
|
|
306
312
|
setBaseState() {
|
|
313
|
+
const gl = this.getGLContext();
|
|
314
|
+
if (gl) {
|
|
315
|
+
gl.disable(gl.CULL_FACE);
|
|
316
|
+
gl.blendEquation(gl.FUNC_ADD);
|
|
317
|
+
gl.blendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA);
|
|
318
|
+
}
|
|
307
319
|
}
|
|
308
320
|
setCustomLayerDefaults() {
|
|
321
|
+
const gl = this.getGLContext();
|
|
322
|
+
if (gl) {
|
|
323
|
+
gl.disable(gl.CULL_FACE);
|
|
324
|
+
}
|
|
309
325
|
}
|
|
310
326
|
setDirty(flag) {
|
|
311
327
|
this.isDirty = flag;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/l7-renderer",
|
|
3
|
-
"version": "2.25.
|
|
3
|
+
"version": "2.25.4",
|
|
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.25.
|
|
20
|
-
"@antv/l7-utils": "2.25.
|
|
19
|
+
"@antv/l7-core": "2.25.4",
|
|
20
|
+
"@antv/l7-utils": "2.25.4"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@antv/l7-test-utils": "^2.25.
|
|
23
|
+
"@antv/l7-test-utils": "^2.25.4"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public",
|