antvis / L7

🌎 Large-scale WebGL-powered Geospatial Data Visualization analysis engine.
https://l7.antv.antgroup.com
MIT License
3.56k stars 626 forks source link

fix: use antialias option in webgl #2458

Closed xiaoiver closed 1 month ago

xiaoiver commented 1 month ago

[English Template / 英文模板]

🤔 这个变动的性质是?

🔗 相关 Issue

https://github.com/antvis/L7/issues/2431

创建 WebGLDeviceContribution 时会透传 antialias 配置项:

const { enableWebGPU, shaderCompilerPath, antialias } = cfg;

new WebGLDeviceContribution({
    targets: ['webgl2', 'webgl1'],
    antialias,
});

升级到 @antv/g-device-api@1.6.9 即可。效果可以看截图对比,锯齿会减少很多。

💡 需求背景和解决方案

📝 更新日志

语言 更新描述
🇺🇸 英文
🇨🇳 中文

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项。⚠️


xiaoiver commented 1 month ago

我遇到了另一个问题:如果使用 d3-array@1 启动项目时会报错:

✘ [ERROR] No matching export in "node_modules/.pnpm/d3-array@1.0.0/node_modules/d3-array/index.js" for import "tickIncrement"

    node_modules/.pnpm/d3-scale@2.0.0/node_modules/d3-scale/src/linear.js:1:15:
      1 │ import {ticks, tickIncrement} from "d3-array";

因此我换成了 d3-array@2,不知道之前是不是遇到其他问题才通过 resolution 锁定了低版本

lvisei commented 1 month ago

因此我换成了 d3-array@2,不知道之前是不是遇到其他问题才通过 resolution 锁定了低版本

应该是的,我看一下现在还需不需要锁定版本

xiaoiver commented 1 month ago

测试用例默认是开启抗锯齿的么?如果是的还得更新下截图

lvisei commented 1 month ago

测试用例默认是开启抗锯齿的么?如果是的还得更新下截图

回复,自动更新截图

image

lvisei commented 1 month ago

/update-snapshots