Skip to content

Commit

Permalink
Release (#1460)
Browse files Browse the repository at this point in the history
* fix: support rotation when applying billboard effect (#1456)

* fix: support rotation when applying billboard effect #1445

* chore: commit changeset

* fix: polyline should support 3D points #1457

* chore: commit changeset

* fix: support size attenuation #1445

* fix: calc dash correctly in 3D

* chore: commit changeset

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

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 Aug 4, 2023
1 parent 6f0a82e commit 801cc96
Show file tree
Hide file tree
Showing 147 changed files with 1,374 additions and 444 deletions.
9 changes: 9 additions & 0 deletions packages/g-camera-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @antv/g-camera-api

## 1.2.8

### Patch Changes

- Updated dependencies [3d4f5da7]
- Updated dependencies [3d4f5da7]
- Updated dependencies [3d4f5da7]
- @antv/g-lite@1.2.8

## 1.2.7

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

## 1.11.9

### Patch Changes

- Updated dependencies [3d4f5da7]
- Updated dependencies [3d4f5da7]
- Updated dependencies [3d4f5da7]
- @antv/g-lite@1.2.8
- @antv/g-plugin-canvas-path-generator@1.3.8
- @antv/g-plugin-canvas-picker@1.10.8
- @antv/g-plugin-canvas-renderer@1.9.8
- @antv/g-plugin-dom-interaction@1.9.8
- @antv/g-plugin-html-renderer@1.9.9
- @antv/g-plugin-image-loader@1.3.8

## 1.11.8

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

## 0.10.9

### Patch Changes

- Updated dependencies [3d4f5da7]
- Updated dependencies [3d4f5da7]
- Updated dependencies [3d4f5da7]
- @antv/g-lite@1.2.8
- @antv/g-plugin-canvas-path-generator@1.3.8
- @antv/g-plugin-canvas-picker@1.10.8
- @antv/g-plugin-canvaskit-renderer@1.3.8
- @antv/g-plugin-dom-interaction@1.9.8
- @antv/g-plugin-html-renderer@1.9.9
- @antv/g-plugin-image-loader@1.3.8

## 0.10.8

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

## 1.9.8

### Patch Changes

- Updated dependencies [3d4f5da7]
- Updated dependencies [3d4f5da7]
- Updated dependencies [3d4f5da7]
- @antv/g-lite@1.2.8

## 1.9.7

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

## 1.2.8

### Patch Changes

- Updated dependencies [3d4f5da7]
- Updated dependencies [3d4f5da7]
- Updated dependencies [3d4f5da7]
- @antv/g-lite@1.2.8

## 1.2.7

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

## 2.2.10

### Patch Changes

- Updated dependencies [3d4f5da7]
- Updated dependencies [3d4f5da7]
- Updated dependencies [3d4f5da7]
- @antv/g-lite@1.2.8

## 2.2.9

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

## 0.7.8

### Patch Changes

- Updated dependencies [3d4f5da7]
- Updated dependencies [3d4f5da7]
- Updated dependencies [3d4f5da7]
- @antv/g-lite@1.2.8

## 0.7.7

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

## 1.2.8

### Patch Changes

- 3d4f5da7: Support size attenuation.
- 3d4f5da7: Polyline should support 3D points.
- 3d4f5da7: Support rotation when applying billboard effect.

## 1.2.7

### 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.7",
"version": "1.2.8",
"description": "A core module for rendering engine implements DOM API.",
"keywords": [
"antv",
Expand Down
4 changes: 2 additions & 2 deletions packages/g-lite/src/css/properties/CSSPropertyPoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ export class CSSPropertyPoints
Partial<
CSSProperty<
{
points: [number, number][];
points: [number, number, number?][];
totalLength: number;
segments: [number, number][];
},
{
points: [number, number][];
points: [number, number, number?][];
totalLength: number;
segments: [number, number][];
}
Expand Down
4 changes: 4 additions & 0 deletions packages/g-lite/src/display-objects/Image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export interface ImageStyleProps extends BaseStyleProps {
width?: number | string;
height?: number | string;
isBillboard?: boolean;
billboardRotation?: number;
isSizeAttenuation?: boolean;
}
export interface ParsedImageStyleProps extends ParsedBaseStyleProps {
x: number;
Expand All @@ -23,6 +25,8 @@ export interface ParsedImageStyleProps extends ParsedBaseStyleProps {
width?: number;
height?: number;
isBillboard?: boolean;
billboardRotation?: number;
isSizeAttenuation?: boolean;
}
export class Image extends DisplayObject<
ImageStyleProps,
Expand Down
4 changes: 2 additions & 2 deletions packages/g-lite/src/display-objects/Polygon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Shape } from '../types';
import { DisplayObject, isDisplayObject } from './DisplayObject';

export interface PolygonStyleProps extends BaseStyleProps {
points: [number, number][];
points: [number, number, number?][];
/**
* marker will be positioned at the first point
*/
Expand All @@ -31,7 +31,7 @@ export interface PolygonStyleProps extends BaseStyleProps {
}
export interface ParsedPolygonStyleProps extends ParsedBaseStyleProps {
points: {
points: [number, number][];
points: [number, number, number?][];
segments: [number, number][];
totalLength: number;
};
Expand Down
4 changes: 2 additions & 2 deletions packages/g-lite/src/display-objects/Polyline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { DisplayObject } from './DisplayObject';
import { Polygon } from './Polygon';

export interface PolylineStyleProps extends BaseStyleProps {
points: [number, number][];
points: [number, number, number?][];
/**
* marker will be positioned at the first point
*/
Expand All @@ -34,7 +34,7 @@ export interface PolylineStyleProps extends BaseStyleProps {
}
export interface ParsedPolylineStyleProps extends ParsedBaseStyleProps {
points: {
points: [number, number][];
points: [number, number, number?][];
segments: [number, number][];
totalLength: number;
};
Expand Down
14 changes: 8 additions & 6 deletions packages/g-lite/src/display-objects/Text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,15 @@ export interface TextStyleProps extends BaseStyleProps {
*/
isBillboard?: boolean;

/**
* The rotation of the billboard in radians.
*/
billboardRotation?: number;

/**
* Whether the size of the sprite is attenuated by the camera depth. (Perspective camera only.)
*/
sizeAttenuation?: boolean;
isSizeAttenuation?: boolean;

text: number | string;

Expand Down Expand Up @@ -194,7 +199,8 @@ export interface ParsedTextStyleProps extends ParsedBaseStyleProps {
y: number;
z?: number;
isBillboard?: boolean;
sizeAttenuation?: boolean;
billboardRotation?: number;
isSizeAttenuation?: boolean;
text: string;
textAlign?: 'start' | 'center' | 'middle' | 'end' | 'left' | 'right';
textBaseline?:
Expand Down Expand Up @@ -268,8 +274,6 @@ export class Text extends DisplayObject<TextStyleProps, ParsedTextStyleProps> {
leading: 0,
dx: '',
dy: '',
isBillboard: false,
sizeAttenuation: true,
...style,
}
: {
Expand All @@ -295,8 +299,6 @@ export class Text extends DisplayObject<TextStyleProps, ParsedTextStyleProps> {
leading: 0,
dx: 0,
dy: 0,
isBillboard: false,
sizeAttenuation: true,
},
...rest,
});
Expand Down
2 changes: 1 addition & 1 deletion packages/g-lite/src/utils/path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ function ellipseToCommands(
}

function polygonToCommands(
points: [number, number][],
points: [number, number, number?][],
closed: boolean,
): AbsoluteArray {
const result = points.map((point, i) => {
Expand Down
9 changes: 9 additions & 0 deletions packages/g-lottie-player/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @antv/g-lottie-player

## 0.2.8

### Patch Changes

- Updated dependencies [3d4f5da7]
- Updated dependencies [3d4f5da7]
- Updated dependencies [3d4f5da7]
- @antv/g-lite@1.2.8

## 0.2.7

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

## 0.8.8

### Patch Changes

- Updated dependencies [3d4f5da7]
- Updated dependencies [3d4f5da7]
- Updated dependencies [3d4f5da7]
- @antv/g-lite@1.2.8

## 0.8.7

### 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.7",
"version": "0.8.8",
"description": "Create a CanvasLike element from existed context in mobile environment",
"keywords": [
"antv",
Expand Down
15 changes: 15 additions & 0 deletions packages/g-mobile-canvas/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# @antv/g-mobile-canvas

## 0.10.8

### Patch Changes

- Updated dependencies [3d4f5da7]
- Updated dependencies [3d4f5da7]
- Updated dependencies [3d4f5da7]
- @antv/g-lite@1.2.8
- @antv/g-plugin-canvas-path-generator@1.3.8
- @antv/g-plugin-canvas-picker@1.10.8
- @antv/g-plugin-canvas-renderer@1.9.8
- @antv/g-plugin-dragndrop@1.8.8
- @antv/g-plugin-image-loader@1.3.8
- @antv/g-plugin-mobile-interaction@0.9.8

## 0.10.7

### 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": "0.10.7",
"version": "0.10.8",
"description": "A renderer implemented with Canvas2D API in mobile environment",
"keywords": [
"antv",
Expand Down
Loading

0 comments on commit 801cc96

Please sign in to comment.