excalidraw/src/scene/index.ts
Enzo Ferey 6ebd41734f
Resize handler detection should not be active when moving multip… (#767)
* Fix bug.

* Implement `getSelectedElements`.

* Explicit condition.

* Respect variable naming.

* Keep state consistent.

* Use `isSomeElementSelected` abstraction.

* Missing ones.
2020-02-16 22:54:50 +01:00

32 lines
733 B
TypeScript

export { isOverScrollBars } from "./scrollbars";
export {
clearSelection,
getSelectedIndices,
deleteSelectedElements,
isSomeElementSelected,
getElementsWithinSelection,
getCommonAttributeOfSelectedElements,
getSelectedElements,
} from "./selection";
export {
exportCanvas,
loadFromJSON,
loadFromBlob,
saveAsJSON,
restoreFromLocalStorage,
saveToLocalStorage,
exportToBackend,
importFromBackend,
loadScene,
calculateScrollCenter,
} from "./data";
export {
hasBackground,
hasStroke,
getElementAtPosition,
getElementContainingPosition,
hasText,
} from "./comparisons";
export { createScene } from "./createScene";
export { getZoomOrigin, getZoomTranslation, getNormalizedZoom } from "./zoom";