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

Merged
merged 2 commits into from
Nov 16, 2023
Merged

Release #1585

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-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/[email protected]

## 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/[email protected]
- @antv/[email protected]
- @antv/[email protected]
- @antv/[email protected]
- @antv/[email protected]
- @antv/[email protected]
- @antv/[email protected]

## 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/[email protected]
- @antv/[email protected]
- @antv/[email protected]
- @antv/[email protected]
- @antv/[email protected]
- @antv/[email protected]
- @antv/[email protected]

## 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/[email protected]

## 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/[email protected]

## 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/[email protected]

## 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/[email protected]

## 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/[email protected]

## 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/[email protected]

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