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:
Daishi Kato
2020-05-28 07:17:15 +09:00
committed by GitHub
parent 5327e8a3dc
commit 7edcea9a93
4 changed files with 152 additions and 47 deletions

View File

@ -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) {