mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
improvement: change hint for 2-point lines on resize (#2655)
This commit is contained in:
parent
d7f314cda8
commit
8dfea49ec1
5 changed files with 17 additions and 11 deletions
|
@ -38,8 +38,8 @@ const getHints = ({ appState, elements }: Hint) => {
|
|||
selectedElements.length === 1
|
||||
) {
|
||||
const targetElement = selectedElements[0];
|
||||
if (isLinearElement(targetElement) && targetElement.points.length > 2) {
|
||||
return null;
|
||||
if (isLinearElement(targetElement) && targetElement.points.length === 2) {
|
||||
return t("hints.lockAngle");
|
||||
}
|
||||
return t("hints.resize");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue