Skip to content

Commit

Permalink
build: release 0.54.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pubuzhixing8 committed Apr 3, 2024
1 parent 7b6c2cb commit 854fb62
Show file tree
Hide file tree
Showing 29 changed files with 111 additions and 121 deletions.
5 changes: 0 additions & 5 deletions .changeset/bright-colts-hide.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cool-starfishes-promise.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cyan-dodos-brake.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/few-bats-study.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/hungry-falcons-try.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/khaki-pumpkins-suffer.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/quick-tips-relax.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/quiet-chairs-rest.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/shy-ravens-enjoy.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/silent-clouds-build.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/ten-stingrays-wink.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tender-cobras-applaud.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/three-numbers-worry.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/unlucky-llamas-end.md

This file was deleted.

29 changes: 0 additions & 29 deletions .changeset/weak-pumpkins-count.md

This file was deleted.

14 changes: 14 additions & 0 deletions packages/common/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# @plait/common

## 0.54.0

### Minor Changes

- [`9b25c6d6`](https://github.com/worktile/plait/commit/9b25c6d6cbebbb172540df5f1faeb7f499963557) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - support assign the origin data when invoke getRelatedFragment

### Patch Changes

- [#807](https://github.com/worktile/plait/pull/807) [`7b6c2cb4`](https://github.com/worktile/plait/commit/7b6c2cb4d0a1c1868bf9c6bd559775a20a73cbaa) Thanks [@MissLixf](https://github.com/MissLixf)! - fix(common): set angle for group hover rectangle and selected rectangle

* [`ad997d91`](https://github.com/worktile/plait/commit/ad997d9155fd94ad39bf594d47158253b2c4e4b4) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - use getCornerPointsByPoints to get correct corners and add fail data and unit test case

- [#796](https://github.com/worktile/plait/pull/796) [`b218fadb`](https://github.com/worktile/plait/commit/b218fadbf4663663e16053a867236e33315cfc74) Thanks [@huanhuanwa](https://github.com/huanhuanwa)! - add test for withGroup plugin

## 0.53.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@plait/common",
"version": "0.53.0",
"version": "0.54.0",
"peerDependencies": {
"@angular/common": "^17.2.4",
"@angular/core": "^17.2.4",
Expand Down
48 changes: 48 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,53 @@
# plait

## 0.54.0

### Minor Changes

- [`c16b08ab`](https://github.com/worktile/plait/commit/c16b08ab502fb1b7d2f4b52b24f6b463766c3147) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - update line snapping logic:

1. snapping when the point is close to edge or connector

2. no snapping when the end point is at inside element

* [`89e9acd0`](https://github.com/worktile/plait/commit/89e9acd02c0c1342bc9f52f711d250c6ec1f8290) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - add alive state to avoid executing callback in requestAnimationFrame

- [`2cd8d926`](https://github.com/worktile/plait/commit/2cd8d926092a88b3a117e32f1170053e6546fd73) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - rename align to snap

* [`9b25c6d6`](https://github.com/worktile/plait/commit/9b25c6d6cbebbb172540df5f1faeb7f499963557) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - support assign the origin data when invoke getRelatedFragment

- [#797](https://github.com/worktile/plait/pull/797) [`15e9069c`](https://github.com/worktile/plait/commit/15e9069c0b5a03a678ec06a87df634fe61506c9d) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - rename getDeletedFragment method to getDeleteFragment

* [#797](https://github.com/worktile/plait/pull/797) [`15e9069c`](https://github.com/worktile/plait/commit/15e9069c0b5a03a678ec06a87df634fe61506c9d) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - Guaranteed that the `getDeletedFragment` overridable function is called before the `deleteFragment` overridable function

Remove the `getDeletedFragment` call from the default implementation of `deleteFragment` and call it externally, while encapsulating the tool function `deleteFragment`:

```
export const deleteFragment = (board: PlaitBoard) => {
const elements = board.getDeletedFragment([]);
board.deleteFragment(elements);
}
```
Where board.deleteFragment(null) was used before, the tool function `deleteFragment()` is now uniformly called.
保证 `getDeletedFragment` 可重写函数调用先于 `deleteFragment` 可重写函数
将 `getDeletedFragment` 调用从 `deleteFragment` 默认实现中移除,改为在外部调用,同时封装工具函数 `deleteFragment`:
```
export const deleteFragment = (board: PlaitBoard) => {
const elements = board.getDeletedFragment([]);
board.deleteFragment(elements);
}
```
以前使用 board.deleteFragment(null) 的地方现在统一改为调用工具函数 `deleteFragment()`
### Patch Changes
- [#805](https://github.com/worktile/plait/pull/805) [`a5139e8a`](https://github.com/worktile/plait/commit/a5139e8a65636068d203027193dbcf3efdf4c104) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - add overridable method drawActiveRectangle to implement custom drawing active rectangle
## 0.53.0
### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@plait/core",
"version": "0.53.0",
"version": "0.54.0",
"peerDependencies": {
"@angular/common": "^17.2.4",
"@angular/core": "^17.2.4",
Expand Down
34 changes: 34 additions & 0 deletions packages/draw/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,39 @@
# @plait/draw

## 0.54.0

### Minor Changes

- [`c16b08ab`](https://github.com/worktile/plait/commit/c16b08ab502fb1b7d2f4b52b24f6b463766c3147) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - update line snapping logic:

1. snapping when the point is close to edge or connector

2. no snapping when the end point is at inside element

* [`2cd8d926`](https://github.com/worktile/plait/commit/2cd8d926092a88b3a117e32f1170053e6546fd73) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - rename align to snap

- [#801](https://github.com/worktile/plait/pull/801) [`a301c889`](https://github.com/worktile/plait/commit/a301c8899b9f84d97f0f94bbb9a09f5c9ac9221d) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - When batching `Resize`, if the element has a rotation angle, the axis of `Resize` will be re-determined based on the rotation angle.

`plait/core`: Extract the `isAxisChangedByAngle` method to determine whether the rotation angle will cause the `Resize` axis of the element to change.

批量`Resize`时,如果元素有旋转角度则根据旋转角度重新确定`Resize`的轴

`plait/core`: 提取`isAxisChangedByAngle`方法用于判断旋转角度是会造成元素的`Resize`轴线是否发生变化

* [`9b25c6d6`](https://github.com/worktile/plait/commit/9b25c6d6cbebbb172540df5f1faeb7f499963557) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - support assign the origin data when invoke getRelatedFragment

- [`0f4fe824`](https://github.com/worktile/plait/commit/0f4fe8243bc5e3b7154244131dd762dab4ee9584) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - handle self-loop line route

### Patch Changes

- [#799](https://github.com/worktile/plait/pull/799) [`52b78c14`](https://github.com/worktile/plait/commit/52b78c1465510909f003d2b4d4cdce23e32a0770) Thanks [@huanhuanwa](https://github.com/huanhuanwa)! - align elbow line points without custom points

* [#798](https://github.com/worktile/plait/pull/798) [`1af71bf8`](https://github.com/worktile/plait/commit/1af71bf8f0166a733a43e6839e2d426493502ef7) Thanks [@MissLixf](https://github.com/MissLixf)! - fix(draw): check element angle when rotate

- [#803](https://github.com/worktile/plait/pull/803) [`fa314cf4`](https://github.com/worktile/plait/commit/fa314cf4a9f6c04200bc80c616f533ed3f4ea1a8) Thanks [@MissLixf](https://github.com/MissLixf)! - fix(draw): align for rotate element

* [#805](https://github.com/worktile/plait/pull/805) [`a5139e8a`](https://github.com/worktile/plait/commit/a5139e8a65636068d203027193dbcf3efdf4c104) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - add overridable method drawActiveRectangle to implement custom drawing active rectangle

## 0.53.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/draw/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@plait/draw",
"version": "0.53.0",
"version": "0.54.0",
"peerDependencies": {
"@angular/common": "^17.2.4",
"@angular/core": "^17.2.4",
Expand Down
2 changes: 2 additions & 0 deletions packages/flow/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @plait/flow

## 0.54.0

## 0.53.0

## 0.51.4
Expand Down
2 changes: 1 addition & 1 deletion packages/flow/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@plait/flow",
"version": "0.53.0",
"version": "0.54.0",
"peerDependencies": {
"@angular/common": "^17.2.4",
"@angular/core": "^17.2.4"
Expand Down
2 changes: 2 additions & 0 deletions packages/layouts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# layouts

## 0.54.0

## 0.53.0

## 0.51.4
Expand Down
2 changes: 1 addition & 1 deletion packages/layouts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@plait/layouts",
"version": "0.53.0",
"version": "0.54.0",
"peerDependencies": {
"@angular/common": "^17.2.4",
"@angular/core": "^17.2.4"
Expand Down
2 changes: 2 additions & 0 deletions packages/mind/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# mind

## 0.54.0

## 0.53.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/mind/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@plait/mind",
"version": "0.53.0",
"version": "0.54.0",
"peerDependencies": {
"@angular/common": "^17.2.4",
"@angular/core": "^17.2.4"
Expand Down
2 changes: 2 additions & 0 deletions packages/text/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# text

## 0.54.0

## 0.53.0

## 0.51.4
Expand Down
2 changes: 1 addition & 1 deletion packages/text/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@plait/text",
"version": "0.53.0",
"version": "0.54.0",
"peerDependencies": {
"@angular/common": "^17.2.4",
"@angular/core": "^17.2.4",
Expand Down

0 comments on commit 854fb62

Please sign in to comment.