feat: resize multiple elements including two-point lines (#1607)

This commit is contained in:
Daishi Kato 2020-05-18 17:36:30 +09:00 committed by GitHub
parent 6b628bb1a6
commit 4d2e8f9ad1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 12 deletions

View file

@ -407,7 +407,7 @@ export const canResizeMutlipleElements = (
return elements.every(
(element) =>
["rectangle", "diamond", "ellipse"].includes(element.type) ||
(isLinearElement(element) && element.points.length > 2),
isLinearElement(element),
);
};