Skip to content

Commit

Permalink
Release (#1862)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarebecca authored Nov 27, 2024
1 parent d4752e2 commit db6f50b
Show file tree
Hide file tree
Showing 99 changed files with 448 additions and 51 deletions.
1 change: 1 addition & 0 deletions __tests__/demos/bugfix/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ export { test_pick } from './1747';
export { issue_1760 } from './1760';
export { textWordWrap } from './textWordWrap';
export { group_with_stroke } from './group-with-stroke';
export { switchRenderer } from './switch-renderer';
13 changes: 13 additions & 0 deletions __tests__/demos/bugfix/switch-renderer.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Renderer } from '@antv/g-canvas';

export async function switchRenderer(context) {
const { canvas } = context;

await canvas.ready;

const renderer = new Renderer();

canvas.setRenderer(renderer);

console.log('switched');
}
2 changes: 1 addition & 1 deletion __tests__/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ plot();
async function plot() {
if (currentContainer) {
currentContainer.remove();
if (canvas) canvas.destroy(false);
if (canvas) canvas.destroy();
if (prevAfter) prevAfter();
}
currentContainer = document.createElement('div');
Expand Down
1 change: 0 additions & 1 deletion __tests__/unit/abstract-renderer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ describe('Abstract renderer', () => {
enableRenderingOptimization: false,
enableDirtyRectangleRendering: true,
enableDirtyRectangleRenderingDebug: false,
enableRenderingOptimization: false,
enableSizeAttenuation: true,
});

Expand Down
7 changes: 7 additions & 0 deletions packages/g-camera-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @antv/g-camera-api

## 2.0.28

### Patch Changes

- Updated dependencies [840bf90]
- @antv/g-lite@2.2.9

## 2.0.27

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-camera-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-camera-api",
"version": "2.0.27",
"version": "2.0.28",
"description": "A simple implementation of Camera API.",
"keywords": [
"antv",
Expand Down
13 changes: 13 additions & 0 deletions packages/g-canvas/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @antv/g-canvas

## 2.0.32

### Patch Changes

- Updated dependencies [840bf90]
- @antv/g-lite@2.2.9
- @antv/g-plugin-canvas-path-generator@2.1.9
- @antv/g-plugin-canvas-picker@2.1.11
- @antv/g-plugin-canvas-renderer@2.2.11
- @antv/g-plugin-dom-interaction@2.1.14
- @antv/g-plugin-html-renderer@2.1.14
- @antv/g-plugin-image-loader@2.1.11

## 2.0.31

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-canvas/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-canvas",
"version": "2.0.31",
"version": "2.0.32",
"description": "A renderer implemented by Canvas 2D API",
"keywords": [
"antv",
Expand Down
13 changes: 13 additions & 0 deletions packages/g-canvaskit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @antv/g-canvaskit

## 1.0.31

### Patch Changes

- Updated dependencies [840bf90]
- @antv/g-lite@2.2.9
- @antv/g-plugin-canvas-path-generator@2.1.9
- @antv/g-plugin-canvas-picker@2.1.11
- @antv/g-plugin-canvaskit-renderer@2.1.11
- @antv/g-plugin-dom-interaction@2.1.14
- @antv/g-plugin-html-renderer@2.1.14
- @antv/g-plugin-image-loader@2.1.11

## 1.0.30

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-canvaskit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-canvaskit",
"version": "1.0.30",
"version": "1.0.31",
"description": "A renderer implemented by CanvasKit",
"keywords": [
"antv",
Expand Down
7 changes: 7 additions & 0 deletions packages/g-components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @antv/g-components

## 2.0.25

### Patch Changes

- Updated dependencies [840bf90]
- @antv/g-lite@2.2.9

## 2.0.24

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-components",
"version": "2.0.24",
"version": "2.0.25",
"description": "Components for g",
"keywords": [
"antv",
Expand Down
7 changes: 7 additions & 0 deletions packages/g-dom-mutation-observer-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @antv/g-dom-mutation-observer-api

## 2.0.25

### Patch Changes

- Updated dependencies [840bf90]
- @antv/g-lite@2.2.9

## 2.0.24

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-dom-mutation-observer-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-dom-mutation-observer-api",
"version": "2.0.24",
"version": "2.0.25",
"description": "A simple implementation of DOM MutationObserver API.",
"keywords": [
"antv",
Expand Down
7 changes: 7 additions & 0 deletions packages/g-gesture/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @antv/g-gesture

## 3.0.25

### Patch Changes

- Updated dependencies [840bf90]
- @antv/g-lite@2.2.9

## 3.0.24

### 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": "3.0.24",
"version": "3.0.25",
"description": "G Gesture",
"keywords": [
"antv",
Expand Down
7 changes: 7 additions & 0 deletions packages/g-image-exporter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @antv/g-image-exporter

## 1.0.25

### Patch Changes

- Updated dependencies [840bf90]
- @antv/g-lite@2.2.9

## 1.0.24

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-image-exporter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-image-exporter",
"version": "1.0.24",
"version": "1.0.25",
"description": "A image exporter for G using DOM API",
"keywords": [
"antv",
Expand Down
6 changes: 6 additions & 0 deletions packages/g-lite/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @antv/g-lite

## 2.2.9

### Patch Changes

- 840bf90: fix: fix error occured when setRenderer

## 2.2.8

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-lite/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-lite",
"version": "2.2.8",
"version": "2.2.9",
"description": "A core module for rendering engine implements DOM API.",
"keywords": [
"antv",
Expand Down
2 changes: 0 additions & 2 deletions packages/g-lite/src/Canvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,6 @@ export class Canvas extends EventTarget implements ICanvas {
if (this.context.rBushRoot) {
// clear rbush
this.context.rBushRoot.clear();
this.context.rBushRoot = null;
this.context.renderingContext.root = null;
}

if (!skipTriggerEvent) {
Expand Down
7 changes: 7 additions & 0 deletions packages/g-lottie-player/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @antv/g-lottie-player

## 1.0.25

### Patch Changes

- Updated dependencies [840bf90]
- @antv/g-lite@2.2.9

## 1.0.24

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-lottie-player/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-lottie-player",
"version": "1.0.24",
"version": "1.0.25",
"description": "A lottie player for G",
"keywords": [
"antv",
Expand Down
7 changes: 7 additions & 0 deletions packages/g-mobile-canvas-element/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @antv/g-mobile-canvas-element

## 1.0.25

### Patch Changes

- Updated dependencies [840bf90]
- @antv/g-lite@2.2.9

## 1.0.24

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-mobile-canvas-element/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-mobile-canvas-element",
"version": "1.0.24",
"version": "1.0.25",
"description": "Create a CanvasLike element from existed context in mobile environment",
"keywords": [
"antv",
Expand Down
14 changes: 14 additions & 0 deletions packages/g-mobile-canvas/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# @antv/g-mobile-canvas

## 1.0.29

### Patch Changes

- Updated dependencies [840bf90]
- @antv/g-lite@2.2.9
- @antv/g-plugin-canvas-path-generator@2.1.9
- @antv/g-plugin-canvas-picker@2.1.11
- @antv/g-plugin-canvas-renderer@2.2.11
- @antv/g-plugin-dragndrop@2.0.25
- @antv/g-plugin-gesture@2.0.25
- @antv/g-plugin-image-loader@2.1.11
- @antv/g-plugin-mobile-interaction@1.0.25

## 1.0.28

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-mobile-canvas/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-mobile-canvas",
"version": "1.0.28",
"version": "1.0.29",
"description": "A renderer implemented with Canvas2D API in mobile environment",
"keywords": [
"antv",
Expand Down
12 changes: 12 additions & 0 deletions packages/g-mobile-svg/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @antv/g-mobile-svg

## 1.0.27

### Patch Changes

- Updated dependencies [840bf90]
- @antv/g-lite@2.2.9
- @antv/g-plugin-dragndrop@2.0.25
- @antv/g-plugin-gesture@2.0.25
- @antv/g-plugin-mobile-interaction@1.0.25
- @antv/g-plugin-svg-picker@2.0.27
- @antv/g-plugin-svg-renderer@2.2.9

## 1.0.26

### 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": "1.0.26",
"version": "1.0.27",
"description": "A renderer implemented by SVG in mobile environment",
"keywords": [
"antv",
Expand Down
13 changes: 13 additions & 0 deletions packages/g-mobile-webgl/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @antv/g-mobile-webgl

## 1.0.36

### Patch Changes

- Updated dependencies [840bf90]
- @antv/g-lite@2.2.9
- @antv/g-plugin-device-renderer@2.2.11
- @antv/g-plugin-dragndrop@2.0.25
- @antv/g-plugin-gesture@2.0.25
- @antv/g-plugin-html-renderer@2.1.14
- @antv/g-plugin-image-loader@2.1.11
- @antv/g-plugin-mobile-interaction@1.0.25

## 1.0.35

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

## 2.0.25

### Patch Changes

- Updated dependencies [840bf90]
- @antv/g-lite@2.2.9

## 2.0.24

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-pattern/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-pattern",
"version": "2.0.24",
"version": "2.0.25",
"description": "A pattern libs for G",
"keywords": [
"antv",
Expand Down
8 changes: 8 additions & 0 deletions packages/g-plugin-3d/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @antv/g-plugin-3d

## 2.0.34

### Patch Changes

- Updated dependencies [840bf90]
- @antv/g-lite@2.2.9
- @antv/g-plugin-device-renderer@2.2.11

## 2.0.33

### 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.33",
"version": "2.0.34",
"description": "Provide 3D extension for G",
"keywords": [
"antv",
Expand Down
Loading

0 comments on commit db6f50b

Please sign in to comment.