excalidraw/src/element/index.ts
Günay Mert Karadoğan 926b4f24e6 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
2020-01-23 10:21:04 +01:00

19 lines
619 B
TypeScript

export { newElement, newTextElement, duplicateElement } from "./newElement";
export {
getElementAbsoluteCoords,
getDiamondPoints,
getArrowPoints,
getLinePoints
} from "./bounds";
export { handlerRectangles } from "./handlerRectangles";
export { hitTest } from "./collision";
export { resizeTest, getCursorForResizingElement } from "./resizeTest";
export { isTextElement } from "./typeChecks";
export { textWysiwyg } from "./textWysiwyg";
export { redrawTextBoundingBox } from "./textElement";
export {
getPerfectElementSize,
isInvisiblySmallElement,
resizePerfectLineForNWHandler
} from "./sizeHelpers";