From 3597b79f3a947731e93b7f53b1c2f6ba17cc7501 Mon Sep 17 00:00:00 2001 From: xiaoiver Date: Sun, 28 Apr 2024 17:05:10 +0800 Subject: [PATCH] Release (#1676) * Fix webxr (#1674) * fix: flipY in webxr * chore: commit changeset * chore(release): bump version (#1675) Co-authored-by: github-actions[bot] --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] --- __tests__/demos/3d/webar.ts | 4 +++- packages/g-mobile-webgl/CHANGELOG.md | 7 +++++++ packages/g-mobile-webgl/package.json | 2 +- packages/g-plugin-3d/CHANGELOG.md | 7 +++++++ packages/g-plugin-3d/package.json | 2 +- packages/g-plugin-device-renderer/CHANGELOG.md | 6 ++++++ packages/g-plugin-device-renderer/package.json | 2 +- packages/g-plugin-device-renderer/src/RenderGraphPlugin.ts | 2 +- packages/g-web-components/CHANGELOG.md | 6 ++++++ packages/g-web-components/package.json | 2 +- packages/g-webgl/CHANGELOG.md | 7 +++++++ packages/g-webgl/package.json | 2 +- packages/g-webgpu/CHANGELOG.md | 7 +++++++ packages/g-webgpu/package.json | 2 +- 14 files changed, 50 insertions(+), 8 deletions(-) diff --git a/__tests__/demos/3d/webar.ts b/__tests__/demos/3d/webar.ts index ad0dadf22..2f8c51c55 100644 --- a/__tests__/demos/3d/webar.ts +++ b/__tests__/demos/3d/webar.ts @@ -11,6 +11,8 @@ import { ARButton, DeviceRenderer } from '../../../packages/g-webgl'; export async function ar(context) { const { canvas, renderer, container } = context; + // renderer.getConfig().enableDirtyCheck = false; + // wait for canvas' initialization complete await canvas.ready; @@ -52,7 +54,7 @@ export async function ar(context) { canvas.appendChild(cube); canvas.addEventListener(CanvasEvent.AFTER_RENDER, () => { - cube.rotate(1, 0, 0); + cube.rotate(0, 0, 0); }); canvas.getConfig().disableHitTesting = true; diff --git a/packages/g-mobile-webgl/CHANGELOG.md b/packages/g-mobile-webgl/CHANGELOG.md index e00cffcec..23f0fc4a0 100644 --- a/packages/g-mobile-webgl/CHANGELOG.md +++ b/packages/g-mobile-webgl/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-mobile-webgl +## 1.0.4 + +### Patch Changes + +- Updated dependencies [0a1855c0] + - @antv/g-plugin-device-renderer@2.0.4 + ## 1.0.3 ### Patch Changes diff --git a/packages/g-mobile-webgl/package.json b/packages/g-mobile-webgl/package.json index 422ba1d3c..36270c425 100644 --- a/packages/g-mobile-webgl/package.json +++ b/packages/g-mobile-webgl/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-mobile-webgl", - "version": "1.0.3", + "version": "1.0.4", "description": "A renderer implemented by WebGL1/2 in mobile environment", "keywords": [ "antv", diff --git a/packages/g-plugin-3d/CHANGELOG.md b/packages/g-plugin-3d/CHANGELOG.md index fcfc74814..5c39a9f12 100644 --- a/packages/g-plugin-3d/CHANGELOG.md +++ b/packages/g-plugin-3d/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-plugin-3d +## 2.0.4 + +### Patch Changes + +- Updated dependencies [0a1855c0] + - @antv/g-plugin-device-renderer@2.0.4 + ## 2.0.3 ### Patch Changes diff --git a/packages/g-plugin-3d/package.json b/packages/g-plugin-3d/package.json index d8edefd22..f349a11c1 100644 --- a/packages/g-plugin-3d/package.json +++ b/packages/g-plugin-3d/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-3d", - "version": "2.0.3", + "version": "2.0.4", "description": "Provide 3D extension for G", "keywords": [ "antv", diff --git a/packages/g-plugin-device-renderer/CHANGELOG.md b/packages/g-plugin-device-renderer/CHANGELOG.md index f8725de5b..790275e03 100644 --- a/packages/g-plugin-device-renderer/CHANGELOG.md +++ b/packages/g-plugin-device-renderer/CHANGELOG.md @@ -1,5 +1,11 @@ # @antv/g-plugin-device-renderer +## 2.0.4 + +### Patch Changes + +- 0a1855c0: FlipY in webar. + ## 2.0.3 ### Patch Changes diff --git a/packages/g-plugin-device-renderer/package.json b/packages/g-plugin-device-renderer/package.json index a004235f7..3c9690284 100644 --- a/packages/g-plugin-device-renderer/package.json +++ b/packages/g-plugin-device-renderer/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-plugin-device-renderer", - "version": "2.0.3", + "version": "2.0.4", "description": "A G plugin of renderer implementation with GPUDevice", "keywords": [ "antv", diff --git a/packages/g-plugin-device-renderer/src/RenderGraphPlugin.ts b/packages/g-plugin-device-renderer/src/RenderGraphPlugin.ts index 227c0b466..4ffc9071e 100644 --- a/packages/g-plugin-device-renderer/src/RenderGraphPlugin.ts +++ b/packages/g-plugin-device-renderer/src/RenderGraphPlugin.ts @@ -300,7 +300,7 @@ export class RenderGraphPlugin implements RenderingPlugin { // @ts-ignore const cameraMatrix = mat4.fromValues(...view.transform.matrix); cameraMatrix[12] *= width; - cameraMatrix[13] *= height; + cameraMatrix[13] *= -height; cameraMatrix[14] *= 500; cameraMatrix[12] += width / 2; diff --git a/packages/g-web-components/CHANGELOG.md b/packages/g-web-components/CHANGELOG.md index 649bafe12..1e3099f9b 100644 --- a/packages/g-web-components/CHANGELOG.md +++ b/packages/g-web-components/CHANGELOG.md @@ -1,5 +1,11 @@ # @antv/g-web-components +## 2.0.4 + +### Patch Changes + +- @antv/g-webgl@2.0.4 + ## 2.0.3 ### Patch Changes diff --git a/packages/g-web-components/package.json b/packages/g-web-components/package.json index 5dfa5ab00..db117faba 100644 --- a/packages/g-web-components/package.json +++ b/packages/g-web-components/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-web-components", - "version": "2.0.3", + "version": "2.0.4", "description": "A declarative usage for G implemented with WebComponents", "keywords": [ "antv", diff --git a/packages/g-webgl/CHANGELOG.md b/packages/g-webgl/CHANGELOG.md index 17ca3621f..c85eec42f 100644 --- a/packages/g-webgl/CHANGELOG.md +++ b/packages/g-webgl/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-webgl +## 2.0.4 + +### Patch Changes + +- Updated dependencies [0a1855c0] + - @antv/g-plugin-device-renderer@2.0.4 + ## 2.0.3 ### Patch Changes diff --git a/packages/g-webgl/package.json b/packages/g-webgl/package.json index 289076ed0..fbbecf288 100644 --- a/packages/g-webgl/package.json +++ b/packages/g-webgl/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-webgl", - "version": "2.0.3", + "version": "2.0.4", "description": "A renderer implemented by WebGL1/2", "keywords": [ "antv", diff --git a/packages/g-webgpu/CHANGELOG.md b/packages/g-webgpu/CHANGELOG.md index 9187ca539..791c31637 100644 --- a/packages/g-webgpu/CHANGELOG.md +++ b/packages/g-webgpu/CHANGELOG.md @@ -1,5 +1,12 @@ # @antv/g-webgpu +## 2.0.4 + +### Patch Changes + +- Updated dependencies [0a1855c0] + - @antv/g-plugin-device-renderer@2.0.4 + ## 2.0.3 ### Patch Changes diff --git a/packages/g-webgpu/package.json b/packages/g-webgpu/package.json index 5bf488bd1..ccc34e241 100644 --- a/packages/g-webgpu/package.json +++ b/packages/g-webgpu/package.json @@ -1,6 +1,6 @@ { "name": "@antv/g-webgpu", - "version": "2.0.3", + "version": "2.0.4", "description": "A renderer implemented by WebGPU", "keywords": [ "antv",