Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release #1450

Merged
merged 2 commits into from
Jul 31, 2023
Merged

Release #1450

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
14 changes: 8 additions & 6 deletions packages/g-gesture/src/gesture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,14 @@ class Gesture extends EventEmitter {
el.ownerDocument?.defaultView.addEventListener('pointermove', this._move);
} else {
el.isMutationObserved = true;
el.on(ElementEvent.MOUNTED, (e) =>
el.on(ElementEvent.MOUNTED, (e) => {
e.stopPropagation();
el.ownerDocument?.defaultView.addEventListener(
'pointermove',
// @ts-ignore
this._move,
),
);
);
});
}

el.addEventListener('pointerdown', this._start);
Expand All @@ -105,10 +106,11 @@ class Gesture extends EventEmitter {
// @ts-ignore
el.ownerDocument?.defaultView.addEventListener('pointerup', this._end);
} else {
el.on(ElementEvent.MOUNTED, (e) =>
el.on(ElementEvent.MOUNTED, (e) => {
e.stopPropagation();
// @ts-ignore
el.ownerDocument?.defaultView.addEventListener('pointerup', this._end),
);
el.ownerDocument?.defaultView.addEventListener('pointerup', this._end);
});
}

el.addEventListener('pointercancel', this._cancel);
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/[email protected]
- @antv/[email protected]

## 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/[email protected]

## 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/[email protected]

## 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/[email protected]

## 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/[email protected]

## 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/[email protected]

## 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/[email protected]
- @antv/[email protected]

## 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/[email protected]
- @antv/[email protected]

## 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