diff --git a/__tests__/integration/snapshots/Gallery_fujian.png b/__tests__/integration/snapshots/Gallery_fujian.png index d726b46dbf..a3c5829313 100644 Binary files a/__tests__/integration/snapshots/Gallery_fujian.png and b/__tests__/integration/snapshots/Gallery_fujian.png differ diff --git a/__tests__/integration/snapshots/Line_arc.png b/__tests__/integration/snapshots/Line_arc.png index 2412d3c6c2..776f196e68 100644 Binary files a/__tests__/integration/snapshots/Line_arc.png and b/__tests__/integration/snapshots/Line_arc.png differ diff --git a/__tests__/integration/snapshots/Line_arc_plane.png b/__tests__/integration/snapshots/Line_arc_plane.png index 358bd912ca..fd35924e2e 100644 Binary files a/__tests__/integration/snapshots/Line_arc_plane.png and b/__tests__/integration/snapshots/Line_arc_plane.png differ diff --git a/__tests__/integration/snapshots/Line_dash.png b/__tests__/integration/snapshots/Line_dash.png index 7d71dbf1cd..33ada38a88 100644 Binary files a/__tests__/integration/snapshots/Line_dash.png and b/__tests__/integration/snapshots/Line_dash.png differ diff --git a/__tests__/integration/snapshots/Line_flow.png b/__tests__/integration/snapshots/Line_flow.png index 6629485215..dda247b428 100644 Binary files a/__tests__/integration/snapshots/Line_flow.png and b/__tests__/integration/snapshots/Line_flow.png differ diff --git a/__tests__/integration/snapshots/Mask_single.png b/__tests__/integration/snapshots/Mask_single.png index 4773702def..0376e32ba5 100644 Binary files a/__tests__/integration/snapshots/Mask_single.png and b/__tests__/integration/snapshots/Mask_single.png differ diff --git a/__tests__/integration/snapshots/Point_column.png b/__tests__/integration/snapshots/Point_column.png index 2b3530ed18..64c4af9e57 100644 Binary files a/__tests__/integration/snapshots/Point_column.png and b/__tests__/integration/snapshots/Point_column.png differ diff --git a/__tests__/integration/snapshots/Polygon_extrude.png b/__tests__/integration/snapshots/Polygon_extrude.png index b764f2ad37..768cb016b6 100644 Binary files a/__tests__/integration/snapshots/Polygon_extrude.png and b/__tests__/integration/snapshots/Polygon_extrude.png differ diff --git a/package.json b/package.json index 6489e46a99..49763f4eb0 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "pnpm": ">=8" }, "resolutions": { - "d3-array": "1" + "d3-array": "2" }, "dependencies": { "@antv/g-device-api": "^1.6.4", diff --git a/packages/layers/package.json b/packages/layers/package.json index 6e2aae4dba..eff3387402 100644 --- a/packages/layers/package.json +++ b/packages/layers/package.json @@ -34,7 +34,7 @@ "@turf/meta": "^6.0.2", "@turf/polygon-to-line": "^6.5.0", "@turf/union": "^6.5.0", - "d3-array": "1", + "d3-array": "2", "d3-color": "^1.4.0", "d3-interpolate": "1.4.0", "d3-scale": "2", diff --git a/packages/renderer/src/device/index.ts b/packages/renderer/src/device/index.ts index 7a7e25a9e9..3095bd0060 100644 --- a/packages/renderer/src/device/index.ts +++ b/packages/renderer/src/device/index.ts @@ -73,12 +73,11 @@ export default class DeviceRendererService implements IRendererService { private viewportOrigin: ViewportOrigin; async init(canvas: HTMLCanvasElement, cfg: IRenderConfig): Promise { - const { enableWebGPU, shaderCompilerPath } = cfg; + const { enableWebGPU, shaderCompilerPath, antialias } = cfg; // this.$container = $container; this.canvas = canvas; - // TODO: use antialias from cfg const deviceContribution = enableWebGPU ? new WebGPUDeviceContribution({ shaderCompilerPath, @@ -86,6 +85,7 @@ export default class DeviceRendererService implements IRendererService { : new WebGLDeviceContribution({ // Use WebGL2 first and downgrade to WebGL1 if WebGL2 is not supported. targets: ['webgl2', 'webgl1'], + antialias, onContextLost(e) { console.warn('context lost', e); },