Skip to content

Commit

Permalink
feat(draw): unclosed element can not set fill color #WIK-15921
Browse files Browse the repository at this point in the history
  • Loading branch information
MissLixf committed Jul 3, 2024
1 parent 8bcb314 commit 36ab2cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/draw/src/utils/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const isDrawElementsIncludeText = (elements: PlaitDrawElement[]) => {
};

export const isDrawElementClosed = (element: PlaitDrawElement) => {
if (PlaitDrawElement.isText(element) || PlaitDrawElement.isArrowLine(element)) {
if (PlaitDrawElement.isText(element) || PlaitDrawElement.isArrowLine(element) || PlaitDrawElement.isImage(element)) {
return false;
}

Expand Down

0 comments on commit 36ab2cd

Please sign in to comment.