Refactor Element Functions (#233)
* Remove `generatedraw` from element object - Create a function that renders a single element - Refactor rendering selected elements * Replace getElementAbsoluteXY with getElementAbsoluteCoords
This commit is contained in:
@ -1,9 +1,6 @@
|
||||
export { newElement } from "./newElement";
|
||||
export {
|
||||
getElementAbsoluteX1,
|
||||
getElementAbsoluteX2,
|
||||
getElementAbsoluteY1,
|
||||
getElementAbsoluteY2,
|
||||
getElementAbsoluteCoords,
|
||||
getDiamondPoints,
|
||||
getArrowPoints
|
||||
} from "./bounds";
|
||||
@ -11,5 +8,4 @@ export {
|
||||
export { handlerRectangles } from "./handlerRectangles";
|
||||
export { hitTest } from "./collision";
|
||||
export { resizeTest } from "./resizeTest";
|
||||
export { generateDraw } from "./generateDraw";
|
||||
export { isTextElement } from "./typeChecks";
|
||||
|
Reference in New Issue
Block a user