mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Extract scene functions to their respective modules (#208)
- Also, extract utilities into utils module -- capitalizeString, getDateTime, isInputLike
This commit is contained in:
parent
01805f734d
commit
86a1c29eec
12 changed files with 695 additions and 530 deletions
19
src/scene/index.ts
Normal file
19
src/scene/index.ts
Normal file
|
@ -0,0 +1,19 @@
|
|||
export { isOverScrollBars } from "./scrollbars";
|
||||
export { renderScene } from "./render";
|
||||
export {
|
||||
clearSelection,
|
||||
getSelectedIndices,
|
||||
deleteSelectedElements,
|
||||
someElementIsSelected,
|
||||
setSelection,
|
||||
getSelectedAttribute
|
||||
} from "./selection";
|
||||
export {
|
||||
exportAsPNG,
|
||||
loadFromJSON,
|
||||
saveAsJSON,
|
||||
restoreFromLocalStorage,
|
||||
saveToLocalStorage
|
||||
} from "./data";
|
||||
export { hasBackground, hasStroke, getElementAtPosition } from "./comparisons";
|
||||
export { createScene } from "./createScene";
|
Loading…
Add table
Add a link
Reference in a new issue