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

Merged
merged 3 commits into from
Nov 3, 2023
Merged

Release #1576

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
8 changes: 8 additions & 0 deletions packages/g-mobile-svg/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @antv/g-mobile-svg

## 0.10.21

### Patch Changes

- Updated dependencies [a5adc20f]
- @antv/[email protected]
- @antv/[email protected]

## 0.10.20

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-mobile-svg/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-mobile-svg",
"version": "0.10.20",
"version": "0.10.21",
"description": "A renderer implemented by SVG in mobile environment",
"keywords": [
"antv",
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

## 0.9.30

### Patch Changes

- Updated dependencies [a5adc20f]
- @antv/[email protected]

## 0.9.29

### 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.29",
"version": "0.9.30",
"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

## 1.9.26

### Patch Changes

- Updated dependencies [a5adc20f]
- @antv/[email protected]

## 1.9.25

### 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.25",
"version": "1.9.26",
"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

## 1.9.26

### Patch Changes

- a5adc20f: Check buffer descriptor before updating vertex buffer.

## 1.9.25

### 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.25",
"version": "1.9.26",
"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 @@ -188,8 +188,12 @@ export class BufferGeometry<GeometryProps = any> extends EventEmitter {
index: number,
data: Uint8Array,
) {
const { arrayStride } =
const bufferDescriptor =
this.inputLayoutDescriptor.vertexBufferDescriptors[bufferIndex];
if (!bufferDescriptor) {
return;
}
const { arrayStride } = bufferDescriptor;

const descriptor = this.inputLayoutDescriptor.vertexBufferDescriptors[
bufferIndex
Expand Down
6 changes: 6 additions & 0 deletions packages/g-plugin-rough-svg-renderer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @antv/g-plugin-rough-svg-renderer

## 1.9.21

### Patch Changes

- @antv/[email protected]

## 1.9.20

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-plugin-rough-svg-renderer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-plugin-rough-svg-renderer",
"version": "1.9.20",
"version": "1.9.21",
"description": "A G plugin of renderer implementation with rough.js",
"keywords": [
"antv",
Expand Down
7 changes: 7 additions & 0 deletions packages/g-plugin-svg-picker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @antv/g-plugin-svg-picker

## 1.9.20

### Patch Changes

- Updated dependencies [a5adc20f]
- @antv/[email protected]

## 1.9.19

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-plugin-svg-picker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-plugin-svg-picker",
"version": "1.9.19",
"version": "1.9.20",
"description": "A G plugin for picking in SVG",
"keywords": [
"antv",
Expand Down
6 changes: 6 additions & 0 deletions packages/g-plugin-svg-renderer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @antv/g-plugin-svg-renderer

## 1.10.20

### Patch Changes

- a5adc20f: Reset pattern counter in svg renderer when destroyed.

## 1.10.19

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-plugin-svg-renderer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-plugin-svg-renderer",
"version": "1.10.19",
"version": "1.10.20",
"description": "A G plugin of renderer implementation with SVG",
"keywords": [
"antv",
Expand Down
3 changes: 2 additions & 1 deletion packages/g-plugin-svg-renderer/src/SVGRendererPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
import { isNil } from '@antv/util';
import { mat4 } from 'gl-matrix';
import { ElementSVG } from './components/ElementSVG';
import type { DefElementManager } from './shapes/defs';
import { resetPatternCounter, type DefElementManager } from './shapes/defs';
import type { SVGRendererPluginOptions } from './interfaces';
import { createSVGElement } from './utils/dom';
import { numberToLongString } from './utils/format';
Expand Down Expand Up @@ -317,6 +317,7 @@ export class SVGRendererPlugin implements RenderingPlugin {
ElementEvent.BOUNDS_CHANGED,
handleGeometryBoundsChanged,
);
resetPatternCounter();
});

renderingService.hooks.render.tap(
Expand Down
7 changes: 6 additions & 1 deletion packages/g-plugin-svg-renderer/src/shapes/defs/Pattern.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,14 @@ import { createSVGElement } from '../../utils/dom';
import { FILTER_PREFIX } from './Filter';

export const PATTERN_PREFIX = 'g-pattern-';
const cacheKey2IDMap: Record<string, string> = {};
let cacheKey2IDMap: Record<string, string> = {};
let counter = 0;

export function resetPatternCounter() {
counter = 0;
cacheKey2IDMap = {};
}

export function createOrUpdateGradientAndPattern(
document: Document,
$def: SVGDefsElement,
Expand Down
8 changes: 8 additions & 0 deletions packages/g-plugin-zdog-svg-renderer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @antv/g-plugin-zdog-svg-renderer

## 1.2.21

### Patch Changes

- Updated dependencies [a5adc20f]
- @antv/[email protected]
- @antv/[email protected]

## 1.2.20

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-plugin-zdog-svg-renderer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-plugin-zdog-svg-renderer",
"version": "1.2.20",
"version": "1.2.21",
"description": "A G plugin of renderer implementation with Zdog",
"keywords": [
"antv",
Expand Down
8 changes: 8 additions & 0 deletions packages/g-svg/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @antv/g-svg

## 1.10.20

### Patch Changes

- Updated dependencies [a5adc20f]
- @antv/[email protected]
- @antv/[email protected]

## 1.10.19

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-svg/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-svg",
"version": "1.10.19",
"version": "1.10.20",
"description": "A renderer implemented by SVG",
"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.30

### Patch Changes

- @antv/[email protected]

## 1.9.29

### 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.29",
"version": "1.9.30",
"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

## 1.9.29

### Patch Changes

- Updated dependencies [a5adc20f]
- @antv/[email protected]

## 1.9.28

### 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.28",
"version": "1.9.29",
"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

## 1.9.29

### Patch Changes

- Updated dependencies [a5adc20f]
- @antv/[email protected]

## 1.9.28

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