Skip to content

Commit

Permalink
Release (#1396)
Browse files Browse the repository at this point in the history
* fix: remove this syntax in g-math (#1394)

* fix: remove spreadArray from SyncWaterfallHook to enhance perf

* fix: remove this syntax in g-math since it use ESM now

* chore: commit changesets

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

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 Jun 29, 2023
1 parent eca0e3f commit e629f56
Show file tree
Hide file tree
Showing 123 changed files with 797 additions and 271 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ module.exports = {

globals: {
G: true,
window: true,
document: true,
module: true,
},

ignorePatterns: [
Expand Down
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.1

### Patch Changes

- b0dd4788: Remove this syntax in @antv/g-math since it's already an ESM now
- Updated dependencies [b0dd4788]
- @antv/g-lite@1.2.1

## 1.2.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions 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.0",
"version": "1.2.1",
"description": "A simple implementation of Camera API.",
"keywords": [
"antv",
Expand Down Expand Up @@ -43,7 +43,7 @@
"dependencies": {
"@antv/g-lite": "workspace:*",
"@antv/util": "^3.3.1",
"gl-matrix": "^3.3.0",
"gl-matrix": "^3.4.3",
"tslib": "^2.5.3"
},
"publishConfig": {
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

## 1.11.1

### Patch Changes

- Updated dependencies [b0dd4788]
- @antv/g-plugin-canvas-renderer@1.9.1
- @antv/g-plugin-canvas-picker@1.10.1
- @antv/g-plugin-html-renderer@1.9.1
- @antv/g-plugin-image-loader@1.3.1
- @antv/g-lite@1.2.1
- @antv/g-plugin-canvas-path-generator@1.3.1
- @antv/g-plugin-dom-interaction@1.9.1

## 1.11.0

### Minor 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.0",
"version": "1.11.1",
"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

## 0.10.1

### Patch Changes

- Updated dependencies [b0dd4788]
- @antv/g-plugin-canvaskit-renderer@1.3.1
- @antv/g-plugin-canvas-picker@1.10.1
- @antv/g-plugin-html-renderer@1.9.1
- @antv/g-plugin-image-loader@1.3.1
- @antv/g-lite@1.2.1
- @antv/g-plugin-canvas-path-generator@1.3.1
- @antv/g-plugin-dom-interaction@1.9.1

## 0.10.0

### Minor 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.0",
"version": "0.10.1",
"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.1

### Patch Changes

- b0dd4788: Remove this syntax in @antv/g-math since it's already an ESM now
- Updated dependencies [b0dd4788]
- @antv/g-lite@1.2.1

## 1.9.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions 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.0",
"version": "1.9.1",
"description": "Components for g",
"keywords": [
"antv",
Expand Down Expand Up @@ -41,7 +41,7 @@
"dependencies": {
"@antv/g-lite": "workspace:*",
"@antv/util": "^3.3.1",
"gl-matrix": "^3.3.0",
"gl-matrix": "^3.4.3",
"tslib": "^2.5.3"
},
"devDependencies": {
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

## 1.2.1

### Patch Changes

- Updated dependencies [b0dd4788]
- @antv/g-lite@1.2.1

## 1.2.0

### Minor 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.0",
"version": "1.2.1",
"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

## 2.2.1

### Patch Changes

- Updated dependencies [b0dd4788]
- @antv/g-lite@1.2.1

## 2.2.0

### Minor 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.0",
"version": "2.2.1",
"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

## 0.7.1

### Patch Changes

- Updated dependencies [b0dd4788]
- @antv/g-lite@1.2.1

## 0.7.0

### Minor 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.0",
"version": "0.7.1",
"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.1

### Patch Changes

- b0dd4788: Remove this syntax in @antv/g-math since it's already an ESM now
- Updated dependencies [b0dd4788]
- @antv/g-math@2.0.1

## 1.2.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions 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.0",
"version": "1.2.1",
"description": "A core module for rendering engine implements DOM API.",
"keywords": [
"antv",
Expand Down Expand Up @@ -45,7 +45,7 @@
"@antv/util": "^3.3.1",
"d3-color": "^1.4.0",
"eventemitter3": "^5.0.1",
"gl-matrix": "^3.3.0",
"gl-matrix": "^3.4.3",
"rbush": "^3.0.1",
"tslib": "^2.5.3"
},
Expand Down
5 changes: 4 additions & 1 deletion packages/g-lite/src/utils/tapable/SyncWaterfallHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ export class SyncWaterfallHook<T, R> {

call(...args: AsArray<T>): R {
if (this.callbacks.length) {
let result: R = this.callbacks[0](...args);
/* eslint-disable-next-line prefer-rest-params */
const argsArr = arguments;
/* eslint-disable-next-line prefer-spread */
let result: R = this.callbacks[0].apply(void 0, argsArr);
for (let i = 0; i < this.callbacks.length - 1; i++) {
const callback = this.callbacks[i];
// @ts-ignore
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

## 0.2.1

### Patch Changes

- Updated dependencies [b0dd4788]
- @antv/g-lite@1.2.1

## 0.2.0

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

## 2.0.1

### Patch Changes

- b0dd4788: Remove this syntax in @antv/g-math since it's already an ESM now

## 2.0.0

### Major Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/g-math/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-math",
"version": "2.0.0",
"version": "2.0.1",
"description": "Geometry util",
"keywords": [
"antv",
Expand Down Expand Up @@ -39,7 +39,7 @@
},
"dependencies": {
"@antv/util": "^3.3.1",
"gl-matrix": "^3.1.0",
"gl-matrix": "^3.4.3",
"tslib": "^2.5.3"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/g-math/src/arc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export function pointDistance(
x0: number,
y0: number,
) {
const nearestPoint = this.nearestPoint(
const np = nearestPoint(
cx,
cy,
rx,
Expand All @@ -227,7 +227,7 @@ export function pointDistance(
x0,
y0,
);
return distance(nearestPoint.x, nearestPoint.y, x0, y0);
return distance(np.x, np.y, x0, y0);
}

export function pointAt(
Expand Down
14 changes: 1 addition & 13 deletions packages/g-math/src/cubic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,19 +203,7 @@ export function pointDistance(
y0: number,
length?: number,
) {
const point = this.nearestPoint(
x1,
y1,
x2,
y2,
x3,
y3,
x4,
y4,
x0,
y0,
length,
);
const point = nearestPoint(x1, y1, x2, y2, x3, y3, x4, y4, x0, y0, length);
return distance(point.x, point.y, x0, y0);
}

Expand Down
4 changes: 2 additions & 2 deletions packages/g-math/src/ellipse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ export function pointDistance(
x0: number,
y0: number,
) {
const nearestPoint = this.nearestPoint(x, y, rx, ry, x0, y0);
return distance(nearestPoint.x, nearestPoint.y, x0, y0);
const np = nearestPoint(x, y, rx, ry, x0, y0);
return distance(np.x, np.y, x0, y0);
}
export function pointAt(
x: number,
Expand Down
2 changes: 1 addition & 1 deletion packages/g-math/src/line.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function pointDistance(
if (cross > lengthSquare) {
return distance(x2, y2, x, y);
}
return this.pointToLine(x1, y1, x2, y2, x, y);
return pointToLine(x1, y1, x2, y2, x, y);
}

export function pointToLine(
Expand Down
2 changes: 1 addition & 1 deletion packages/g-math/src/quadratic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export function pointDistance(
x0: number,
y0: number,
) {
const point = this.nearestPoint(x1, y1, x2, y2, x3, y3, x0, y0);
const point = nearestPoint(x1, y1, x2, y2, x3, y3, x0, y0);
return distance(point.x, point.y, x0, y0);
}

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

## 0.8.1

### Patch Changes

- Updated dependencies [b0dd4788]
- @antv/g-lite@1.2.1

## 0.8.0

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

## 0.10.1

### Patch Changes

- Updated dependencies [b0dd4788]
- @antv/g-plugin-canvas-renderer@1.9.1
- @antv/g-plugin-canvas-picker@1.10.1
- @antv/g-plugin-image-loader@1.3.1
- @antv/g-lite@1.2.1
- @antv/g-plugin-canvas-path-generator@1.3.1
- @antv/g-plugin-dragndrop@1.8.1
- @antv/g-plugin-mobile-interaction@0.9.1

## 0.10.0

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

0 comments on commit e629f56

Please sign in to comment.