Draw horizontal/vertical lines/arrows when shift pressed (#430)

* Draw horizontal/vertical lines/arrows when shift pressed

* Refactor resizing with delta

* Resize arrows/lines perfectly when shift pressed
This commit is contained in:
Günay Mert Karadoğan 2020-01-23 09:21:04 +00:00 committed by David Luzar
parent dfb7c2b744
commit 926b4f24e6
4 changed files with 129 additions and 42 deletions

View file

@ -12,4 +12,8 @@ export { resizeTest, getCursorForResizingElement } from "./resizeTest";
export { isTextElement } from "./typeChecks";
export { textWysiwyg } from "./textWysiwyg";
export { redrawTextBoundingBox } from "./textElement";
export { isInvisiblySmallElement } from "./sizeChecks";
export {
getPerfectElementSize,
isInvisiblySmallElement,
resizePerfectLineForNWHandler
} from "./sizeHelpers";