mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: resize text element (#1650)
* feat: resize text element * ignore small font size change that leads jankiness Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
parent
5327e8a3dc
commit
7edcea9a93
4 changed files with 152 additions and 47 deletions
|
@ -45,11 +45,6 @@ export const resizeTest = (
|
|||
return "rotation" as HandlerRectanglesRet;
|
||||
}
|
||||
|
||||
if (element.type === "text") {
|
||||
// can't resize text elements
|
||||
return false;
|
||||
}
|
||||
|
||||
const filter = Object.keys(handlers).filter((key) => {
|
||||
const handler = handlers[key as Exclude<HandlerRectanglesRet, "rotation">]!;
|
||||
if (!handler) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue