Files
excalidraw/src/scene/index.ts
Timur Khazamov 1739540f00 Creating a text near the center of a shape should put it in the center (#270)
* Snap to element center

* Fixed typo

* Added comment

* Reduced threshold to 30

* Skip snapping if alt key is pressed

* Fixed creating text with shape tool
2020-01-09 01:09:09 +05:00

24 lines
492 B
TypeScript

export { isOverScrollBars } from "./scrollbars";
export {
clearSelection,
getSelectedIndices,
deleteSelectedElements,
someElementIsSelected,
setSelection,
getSelectedAttribute
} from "./selection";
export {
exportAsPNG,
loadFromJSON,
saveAsJSON,
restoreFromLocalStorage,
saveToLocalStorage
} from "./data";
export {
hasBackground,
hasStroke,
getElementAtPosition,
getElementContainingPosition
} from "./comparisons";
export { createScene } from "./createScene";