Skip to content

Commit

Permalink
Release (#1676)
Browse files Browse the repository at this point in the history
* Fix webxr (#1674)

* fix: flipY in webxr

* chore: commit changeset

* chore(release): bump version (#1675)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Apr 28, 2024
1 parent 5a09d9c commit 3597b79
Show file tree
Hide file tree
Showing 14 changed files with 50 additions and 8 deletions.
4 changes: 3 additions & 1 deletion __tests__/demos/3d/webar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down
7 changes: 7 additions & 0 deletions packages/g-mobile-webgl/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/g-mobile-webgl/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
7 changes: 7 additions & 0 deletions packages/g-plugin-3d/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/g-plugin-3d/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 6 additions & 0 deletions packages/g-plugin-device-renderer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @antv/g-plugin-device-renderer

## 2.0.4

### Patch Changes

- 0a1855c0: FlipY in webar.

## 2.0.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-plugin-device-renderer/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/g-plugin-device-renderer/src/RenderGraphPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 6 additions & 0 deletions packages/g-web-components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @antv/g-web-components

## 2.0.4

### Patch Changes

- @antv/g-webgl@2.0.4

## 2.0.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-web-components/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
7 changes: 7 additions & 0 deletions packages/g-webgl/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/g-webgl/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
7 changes: 7 additions & 0 deletions packages/g-webgpu/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/g-webgpu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-webgpu",
"version": "2.0.3",
"version": "2.0.4",
"description": "A renderer implemented by WebGPU",
"keywords": [
"antv",
Expand Down

0 comments on commit 3597b79

Please sign in to comment.