Skip to content

Commit

Permalink
Release (#1585)
Browse files Browse the repository at this point in the history
* Fix 1458 (#1583)

* fix: avoid generating redundant dom structure for document element #1578 (#1580)

* chore: commit changeset

* fix: isBillboard should work on Path

* chore: commit changeset

* feat: add keep aspect ratio in image #1577

* chore: commit changeset

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

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 committed Nov 16, 2023
1 parent d3771f1 commit 6d0af1d
Show file tree
Hide file tree
Showing 126 changed files with 1,283 additions and 174 deletions.
8 changes: 8 additions & 0 deletions packages/g-camera-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @antv/g-camera-api

## 1.2.19

### Patch Changes

- Updated dependencies [4fdee19f]
- Updated dependencies [4fdee19f]
- @antv/g-lite@1.2.18

## 1.2.18

### 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": "1.2.18",
"version": "1.2.19",
"description": "A simple implementation of Camera API.",
"keywords": [
"antv",
Expand Down
14 changes: 14 additions & 0 deletions packages/g-canvas/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# @antv/g-canvas

## 1.11.23

### Patch Changes

- Updated dependencies [4fdee19f]
- Updated dependencies [4fdee19f]
- @antv/g-plugin-image-loader@1.3.18
- @antv/g-lite@1.2.18
- @antv/g-plugin-canvas-renderer@1.9.20
- @antv/g-plugin-canvas-path-generator@1.3.18
- @antv/g-plugin-canvas-picker@1.10.20
- @antv/g-plugin-dom-interaction@1.9.18
- @antv/g-plugin-html-renderer@1.9.21

## 1.11.22

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

## 0.10.23

### Patch Changes

- Updated dependencies [4fdee19f]
- Updated dependencies [4fdee19f]
- @antv/g-plugin-image-loader@1.3.18
- @antv/g-lite@1.2.18
- @antv/g-plugin-canvaskit-renderer@1.3.19
- @antv/g-plugin-canvas-path-generator@1.3.18
- @antv/g-plugin-canvas-picker@1.10.20
- @antv/g-plugin-dom-interaction@1.9.18
- @antv/g-plugin-html-renderer@1.9.21

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

## 1.9.18

### Patch Changes

- Updated dependencies [4fdee19f]
- Updated dependencies [4fdee19f]
- @antv/g-lite@1.2.18

## 1.9.17

### 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": "1.9.17",
"version": "1.9.18",
"description": "Components for g",
"keywords": [
"antv",
Expand Down
8 changes: 8 additions & 0 deletions packages/g-dom-mutation-observer-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @antv/g-dom-mutation-observer-api

## 1.2.18

### Patch Changes

- Updated dependencies [4fdee19f]
- Updated dependencies [4fdee19f]
- @antv/g-lite@1.2.18

## 1.2.17

### 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": "1.2.17",
"version": "1.2.18",
"description": "A simple implementation of DOM MutationObserver API.",
"keywords": [
"antv",
Expand Down
8 changes: 8 additions & 0 deletions packages/g-gesture/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @antv/g-gesture

## 2.2.21

### Patch Changes

- Updated dependencies [4fdee19f]
- Updated dependencies [4fdee19f]
- @antv/g-lite@1.2.18

## 2.2.20

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

## 0.7.18

### Patch Changes

- Updated dependencies [4fdee19f]
- Updated dependencies [4fdee19f]
- @antv/g-lite@1.2.18

## 0.7.17

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

## 1.2.18

### Patch Changes

- 4fdee19f: Keep aspect ration in image.
- 4fdee19f: Fix picking error when isBillboard enabled.

## 1.2.17

### 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": "1.2.17",
"version": "1.2.18",
"description": "A core module for rendering engine implements DOM API.",
"keywords": [
"antv",
Expand Down
20 changes: 20 additions & 0 deletions packages/g-lite/src/display-objects/Circle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,38 @@ import { Shape } from '../types';
import { DisplayObject } from './DisplayObject';

export interface CircleStyleProps extends BaseStyleProps {
/**
* X coordinate of the center of the circle.
*/
cx?: number | string | null;
/**
* Y coordinate of the center of the circle.
*/
cy?: number | string | null;
/**
* Z coordinate of the center of the circle.
*/
cz?: number | string | null;
/**
* Radius of the circle.
*/
r: number | string | null;
/**
* Whether the circle is billboard.
*/
isBillboard?: boolean;
/**
* Whether the circle is size attenuation.
*/
isSizeAttenuation?: boolean;
}
export interface ParsedCircleStyleProps extends ParsedBaseStyleProps {
cx: number;
cy: number;
cz?: number;
r: number;
isBillboard?: boolean;
isSizeAttenuation?: boolean;
}
export class Circle extends DisplayObject<
CircleStyleProps,
Expand Down
16 changes: 15 additions & 1 deletion packages/g-lite/src/display-objects/Image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,22 @@ export interface ImageStyleProps extends BaseStyleProps {
src?: string | HTMLImageElement;
width?: number | string;
height?: number | string;
/**
* Whether the circle is billboard.
*/
isBillboard?: boolean;
billboardRotation?: number;
/**
* When isBillboard enabled, whether the circle is size attenuation.
*/
isSizeAttenuation?: boolean;
/**
* When isBillboard enabled, the rotation.
*/
billboardRotation?: number;
/**
* Whether to keep the aspect ratio of the image, under such circumstances, either the width or height can be omitted.
*/
keepAspectRatio?: boolean;
}
export interface ParsedImageStyleProps extends ParsedBaseStyleProps {
x: number;
Expand All @@ -27,6 +40,7 @@ export interface ParsedImageStyleProps extends ParsedBaseStyleProps {
isBillboard?: boolean;
billboardRotation?: number;
isSizeAttenuation?: boolean;
keepAspectRatio?: boolean;
}
export class Image extends DisplayObject<
ImageStyleProps,
Expand Down
27 changes: 26 additions & 1 deletion packages/g-lite/src/display-objects/Line.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,38 @@ import { Shape } from '../types';
import { DisplayObject, isDisplayObject } from './DisplayObject';

export interface LineStyleProps extends BaseStyleProps {
/**
* X coordinate of the start of the line.
*/
x1: number;
/**
* Y coordinate of the start of the line.
*/
y1: number;
/**
* X coordinate of the end of the line.
*/
x2: number;
/**
* Y coordinate of the end of the line.
*/
y2: number;
/**
* Z coordinate of the start of the line.
*/
z1?: number;
/**
* Z coordinate of the end of the line.
*/
z2?: number;
/**
* Whether the line is billboard.
*/
isBillboard?: boolean;
/**
* Whether the line is size attenuation.
*/
isSizeAttenuation?: boolean;
/**
* marker will be positioned at x1/y1
*/
Expand Down Expand Up @@ -44,6 +69,7 @@ export interface ParsedLineStyleProps extends ParsedBaseStyleProps {
defX: number;
defY: number;
isBillboard?: boolean;
isSizeAttenuation?: boolean;
markerStart?: DisplayObject | null;
markerEnd?: DisplayObject | null;
markerStartOffset?: number;
Expand All @@ -70,7 +96,6 @@ export class Line extends DisplayObject<LineStyleProps, ParsedLineStyleProps> {
y2: 0,
z1: 0,
z2: 0,
isBillboard: false,
...style,
},
...rest,
Expand Down
8 changes: 8 additions & 0 deletions packages/g-lite/src/display-objects/Path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,14 @@ export interface PathStyleProps extends BaseStyleProps {
*/
markerEndOffset?: number;

/**
* Whether the circle is billboard.
*/
isBillboard?: boolean;
/**
* Whether the circle is size attenuation.
*/
isSizeAttenuation?: boolean;
}

export interface PathSegmentBBox {
Expand Down Expand Up @@ -108,6 +115,7 @@ export interface ParsedPathStyleProps extends ParsedBaseStyleProps {
markerStartOffset?: number;
markerEndOffset?: number;
isBillboard?: boolean;
isSizeAttenuation?: boolean;
}
export class Path extends DisplayObject<PathStyleProps, ParsedPathStyleProps> {
private markerStartAngle = 0;
Expand Down
7 changes: 7 additions & 0 deletions packages/g-lite/src/display-objects/Polyline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@ export interface PolylineStyleProps extends BaseStyleProps {
* offset relative to original position
*/
markerEndOffset?: number;
/**
* Whether the circle is billboard.
*/
isBillboard?: boolean;
/**
* Whether the circle is size attenuation.
*/
isSizeAttenuation?: boolean;
}
export interface ParsedPolylineStyleProps extends ParsedBaseStyleProps {
points: {
Expand Down
8 changes: 8 additions & 0 deletions packages/g-lottie-player/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @antv/g-lottie-player

## 0.2.18

### Patch Changes

- Updated dependencies [4fdee19f]
- Updated dependencies [4fdee19f]
- @antv/g-lite@1.2.18

## 0.2.17

### 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": "0.2.17",
"version": "0.2.18",
"description": "A lottie player for G",
"keywords": [
"antv",
Expand Down
8 changes: 8 additions & 0 deletions packages/g-mobile-canvas-element/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @antv/g-mobile-canvas-element

## 0.8.18

### Patch Changes

- Updated dependencies [4fdee19f]
- Updated dependencies [4fdee19f]
- @antv/g-lite@1.2.18

## 0.8.17

### 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": "0.8.17",
"version": "0.8.18",
"description": "Create a CanvasLike element from existed context in mobile environment",
"keywords": [
"antv",
Expand Down
Loading

0 comments on commit 6d0af1d

Please sign in to comment.