Skip to content

Commit

Permalink
Release (#1829)
Browse files Browse the repository at this point in the history
* fix: when image src is an image instance, rendering will not be triggered by default (#1827)

* Version Packages (#1828)

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 Nov 11, 2024
1 parent 57fd6ac commit dd3e8f2
Show file tree
Hide file tree
Showing 31 changed files with 136 additions and 29 deletions.
9 changes: 9 additions & 0 deletions packages/g-canvas/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @antv/g-canvas

## 2.0.24

### Patch Changes

- Updated dependencies [92b43d13]
- @antv/g-plugin-image-loader@2.1.3
- @antv/g-plugin-canvas-renderer@2.2.3
- @antv/g-plugin-canvas-picker@2.1.3

## 2.0.23

### 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.23",
"version": "2.0.24",
"description": "A renderer implemented by Canvas 2D API",
"keywords": [
"antv",
Expand Down
9 changes: 9 additions & 0 deletions packages/g-canvaskit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @antv/g-canvaskit

## 1.0.23

### Patch Changes

- Updated dependencies [92b43d13]
- @antv/g-plugin-image-loader@2.1.3
- @antv/g-plugin-canvaskit-renderer@2.1.3
- @antv/g-plugin-canvas-picker@2.1.3

## 1.0.22

### 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.22",
"version": "1.0.23",
"description": "A renderer implemented by CanvasKit",
"keywords": [
"antv",
Expand Down
9 changes: 9 additions & 0 deletions packages/g-mobile-canvas/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @antv/g-mobile-canvas

## 1.0.21

### Patch Changes

- Updated dependencies [92b43d13]
- @antv/g-plugin-image-loader@2.1.3
- @antv/g-plugin-canvas-renderer@2.2.3
- @antv/g-plugin-canvas-picker@2.1.3

## 1.0.20

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

## 1.0.28

### Patch Changes

- Updated dependencies [92b43d13]
- @antv/g-plugin-image-loader@2.1.3
- @antv/g-plugin-device-renderer@2.2.3

## 1.0.27

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

## 2.0.26

### Patch Changes

- @antv/g-plugin-device-renderer@2.2.3

## 2.0.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": "2.0.25",
"version": "2.0.26",
"description": "Provide 3D extension for G",
"keywords": [
"antv",
Expand Down
6 changes: 6 additions & 0 deletions packages/g-plugin-canvas-picker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @antv/g-plugin-canvas-picker

## 2.1.3

### Patch Changes

- @antv/g-plugin-canvas-renderer@2.2.3

## 2.1.2

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

## 2.2.3

### Patch Changes

- Updated dependencies [92b43d13]
- @antv/g-plugin-image-loader@2.1.3

## 2.2.2

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

## 2.1.3

### Patch Changes

- Updated dependencies [92b43d13]
- @antv/g-plugin-image-loader@2.1.3

## 2.1.2

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

## 2.2.3

### Patch Changes

- Updated dependencies [92b43d13]
- @antv/g-plugin-image-loader@2.1.3

## 2.2.2

### 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.2.2",
"version": "2.2.3",
"description": "A G plugin of renderer implementation with GPUDevice",
"keywords": [
"antv",
Expand Down
6 changes: 6 additions & 0 deletions packages/g-plugin-image-loader/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @antv/g-plugin-image-loader

## 2.1.3

### Patch Changes

- 92b43d13: fix: when image src is an image instance, rendering will not be triggered by default

## 2.1.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/g-plugin-image-loader/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-plugin-image-loader",
"version": "2.1.2",
"version": "2.1.3",
"description": "A G plugin for loading image",
"keywords": [
"antv",
Expand Down
26 changes: 12 additions & 14 deletions packages/g-plugin-image-loader/src/LoadImagePlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,19 @@ export class LoadImagePlugin implements RenderingPlugin {
if (nodeName === Shape.IMAGE) {
const { src, keepAspectRatio } = attributes;

if (isString(src)) {
imagePool.getImageSync(
src,
object as DisplayObject,
({ img: { width, height } }) => {
if (keepAspectRatio) {
calculateWithAspectRatio(object, width, height);
}
imagePool.getImageSync(
src,
object as DisplayObject,
({ img: { width, height } }) => {
if (keepAspectRatio) {
calculateWithAspectRatio(object, width, height);
}

// set dirty rectangle flag
object.renderable.dirty = true;
renderingService.dirtify();
},
);
}
// set dirty rectangle flag
object.renderable.dirty = true;
renderingService.dirtify();
},
);
}
};

Expand Down
6 changes: 6 additions & 0 deletions packages/g-plugin-rough-canvas-renderer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @antv/g-plugin-rough-canvas-renderer

## 2.0.24

### Patch Changes

- @antv/g-canvas@2.0.24

## 2.0.23

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

## 2.0.23

### Patch Changes

- @antv/g-canvas@2.0.24

## 2.0.22

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

## 2.0.29

### Patch Changes

- @antv/g-canvas@2.0.24
- @antv/g-webgl@2.0.28

## 2.0.28

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

## 2.0.28

### Patch Changes

- Updated dependencies [92b43d13]
- @antv/g-plugin-image-loader@2.1.3
- @antv/g-plugin-device-renderer@2.2.3

## 2.0.27

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

## 2.0.28

### Patch Changes

- Updated dependencies [92b43d13]
- @antv/g-plugin-image-loader@2.1.3
- @antv/g-plugin-device-renderer@2.2.3

## 2.0.27

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

0 comments on commit dd3e8f2

Please sign in to comment.