Skip to content

Commit

Permalink
Release (#1450)
Browse files Browse the repository at this point in the history
* fix: merge anchor into modelmatrix #1440 (#1441)

* fix: merge anchor into modelmatrix #1440

* chore: commit changeset

* fix: billboard effect should work for Line under ortho camera #1442

* fix: dashline should be displayed as same as Canvas / SVG #1446

* chore: commit changeset

* fix: 手势事件因为冒泡而多次绑定 (#1448)

* chore: commit changeset

---------

Co-authored-by: zengyue ye <[email protected]>

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

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

---------

Co-authored-by: zengyue ye <[email protected]>
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
4 people authored Jul 31, 2023
1 parent 586f3d7 commit deaa7d8
Show file tree
Hide file tree
Showing 27 changed files with 258 additions and 14 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __tests__/integration/__node__tests__/webgl/snapshots/line.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions packages/g-gesture/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @antv/g-gesture

## 2.2.8

### Patch Changes

- d9e769f2: Stop propagation in g-gesture.

## 2.2.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-gesture/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-gesture",
"version": "2.2.7",
"version": "2.2.8",
"description": "G Gesture",
"keywords": [
"antv",
Expand Down
10 changes: 10 additions & 0 deletions packages/g-mobile-webgl/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @antv/g-mobile-webgl

## 0.9.10

### Patch Changes

- Updated dependencies [d9e769f2]
- Updated dependencies [d9e769f2]
- Updated dependencies [d9e769f2]
- @antv/g-plugin-device-renderer@1.9.9
- @antv/g-plugin-webgl-device@1.9.9

## 0.9.9

### 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": "0.9.9",
"version": "0.9.10",
"description": "A renderer implemented by WebGL1/2 in mobile environment",
"keywords": [
"antv",
Expand Down
9 changes: 9 additions & 0 deletions packages/g-plugin-3d/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @antv/g-plugin-3d

## 1.9.9

### Patch Changes

- Updated dependencies [d9e769f2]
- Updated dependencies [d9e769f2]
- Updated dependencies [d9e769f2]
- @antv/g-plugin-device-renderer@1.9.9

## 1.9.8

### 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": "1.9.8",
"version": "1.9.9",
"description": "Provide 3D extension for G",
"keywords": [
"antv",
Expand Down
8 changes: 8 additions & 0 deletions packages/g-plugin-device-renderer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @antv/g-plugin-device-renderer

## 1.9.9

### Patch Changes

- d9e769f2: Merge anchor into modelmatrix.
- d9e769f2: Fix dash effect in webgl.
- d9e769f2: Stop propagation in g-gesture.

## 1.9.8

### 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": "1.9.8",
"version": "1.9.9",
"description": "A G plugin of renderer implementation with GPUDevice",
"keywords": [
"antv",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import { BatchContext } from '../renderer';
const SEGMENT_NUM = 12;

export class InstancedFillDrawcall extends Instanced {
protected mergeAnchorIntoModelMatrix = true;

constructor(
protected renderHelper: RenderHelper,
protected texturePool: TexturePool,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ void main() {
outputColor.a = outputColor.a
* blur
* u_Opacity * u_StrokeOpacity
* ceil(mod(v_Dash.x + u_dash_offset, u_dash_array) - (u_dash_array * u_dash_ratio));
* (u_dash_array < 1.0 ? (ceil((u_dash_array * u_dash_ratio) - mod(v_Dash.x + u_dash_offset, u_dash_array))) : 1.0);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ void main() {
float clampedStrokeWidth = max(strokeWidth, 1.0);

float isBillboard = a_Dash.w;
bool isPerspective = isPerspectiveMatrix(u_ProjectionMatrix);

if (isBillboard > 0.5 && isPerspective) {
if (isBillboard > 0.5) {
// clip space
vec4 clip0 = project(vec4(a_PointA, 1.0), u_ProjectionMatrix, u_ViewMatrix, u_ModelMatrix);
vec4 clip1 = project(vec4(a_PointB, 1.0), u_ProjectionMatrix, u_ViewMatrix, u_ModelMatrix);
Expand Down
6 changes: 6 additions & 0 deletions packages/g-plugin-gpgpu/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @antv/g-plugin-gpgpu

## 1.9.10

### Patch Changes

- @antv/g-webgpu@1.9.10

## 1.9.9

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-plugin-gpgpu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-plugin-gpgpu",
"version": "1.9.9",
"version": "1.9.10",
"description": "A G plugin for GPGPU based on WebGPU",
"keywords": [
"webgpu",
Expand Down
9 changes: 9 additions & 0 deletions packages/g-plugin-webgl-device/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @antv/g-plugin-webgl-device

## 1.9.9

### Patch Changes

- Updated dependencies [d9e769f2]
- Updated dependencies [d9e769f2]
- Updated dependencies [d9e769f2]
- @antv/g-plugin-device-renderer@1.9.9

## 1.9.8

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-plugin-webgl-device/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-plugin-webgl-device",
"version": "1.9.8",
"version": "1.9.9",
"description": "A G plugin implements GPUDevice interface with WebGL API",
"keywords": [
"antv",
Expand Down
9 changes: 9 additions & 0 deletions packages/g-plugin-webgpu-device/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @antv/g-plugin-webgpu-device

## 1.9.9

### Patch Changes

- Updated dependencies [d9e769f2]
- Updated dependencies [d9e769f2]
- Updated dependencies [d9e769f2]
- @antv/g-plugin-device-renderer@1.9.9

## 1.9.8

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-plugin-webgpu-device/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-plugin-webgpu-device",
"version": "1.9.8",
"version": "1.9.9",
"description": "A G plugin implements GPUDevice interface with WebGPU API",
"keywords": [
"antv",
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

## 1.9.10

### Patch Changes

- @antv/g-webgl@1.9.10

## 1.9.9

### 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": "1.9.9",
"version": "1.9.10",
"description": "A declarative usage for G implemented with WebComponents",
"keywords": [
"antv",
Expand Down
10 changes: 10 additions & 0 deletions packages/g-webgl/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @antv/g-webgl

## 1.9.10

### Patch Changes

- Updated dependencies [d9e769f2]
- Updated dependencies [d9e769f2]
- Updated dependencies [d9e769f2]
- @antv/g-plugin-device-renderer@1.9.9
- @antv/g-plugin-webgl-device@1.9.9

## 1.9.9

### 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": "1.9.9",
"version": "1.9.10",
"description": "A renderer implemented by WebGL1/2",
"keywords": [
"antv",
Expand Down
10 changes: 10 additions & 0 deletions packages/g-webgpu/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @antv/g-webgpu

## 1.9.10

### Patch Changes

- Updated dependencies [d9e769f2]
- Updated dependencies [d9e769f2]
- Updated dependencies [d9e769f2]
- @antv/g-plugin-device-renderer@1.9.9
- @antv/g-plugin-webgpu-device@1.9.9

## 1.9.9

### 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": "1.9.9",
"version": "1.9.10",
"description": "A renderer implemented by WebGPU",
"keywords": [
"antv",
Expand Down
Loading

0 comments on commit deaa7d8

Please sign in to comment.