Skip to content

Commit

Permalink
fix(draw): fix the issue where the line cannot be resized when the te…
Browse files Browse the repository at this point in the history
…xt and drag point overlap
  • Loading branch information
huanhuanwa authored and pubuzhixing8 committed Apr 26, 2024
1 parent 94cc6da commit d2796e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .changeset/red-beers-camp.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
---

hide middlePoints on line when edit text

fix the issue where the line cannot be resized when the text and drag point overlap
10 changes: 5 additions & 5 deletions packages/draw/src/plugins/with-draw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ export const withDraw = (board: PlaitBoard) => {
};

return withDrawResize(
withLineTextMove(
withLineAutoCompleteReaction(
withLineText(
withLineBoundReaction(
withLineResize(
withLineResize(
withLineTextMove(
withLineAutoCompleteReaction(
withLineText(
withLineBoundReaction(
withGeometryResize(
withDrawRotate(
withLineCreateByDraw(
Expand Down

0 comments on commit d2796e0

Please sign in to comment.