David Luzar 51dbd4831b
refactor: make element type conversion more generic (#9504)
* feat: add `reduceToCommonValue()` & improve opacity slider

* feat: generalize and simplify type conversion cache

* refactor: change cache from atoms to Map

* feat: always attempt to reuse original fontSize when converting generic types
2025-05-10 20:06:16 +02:00

20 lines
425 B
TypeScript

export {
isSomeElementSelected,
getElementsWithinSelection,
getSelectedElements,
getTargetElements,
} from "@excalidraw/element";
export { calculateScrollCenter } from "./scroll";
export {
hasBackground,
hasStrokeWidth,
hasStrokeStyle,
canHaveArrowheads,
canChangeRoundness,
} from "@excalidraw/element";
export {
getNormalizedZoom,
getNormalizedGridSize,
getNormalizedGridStep,
} from "./normalize";