refactor: Move MathJax into src/element/subtypes for the

`excalidraw-app` separation, maintaining lazy-loading of MathJax.
This commit is contained in:
Daniel J. Geiger 2023-09-22 14:25:15 -05:00
parent 4d6d6cf129
commit 8eb3191b3f
23 changed files with 32 additions and 41 deletions

View file

@ -278,7 +278,7 @@ import {
prepareSubtype,
selectSubtype,
subtypeActionPredicate,
} from "../subtypes";
} from "../element/subtypes";
import {
dataURLToFile,
generateIdFromFile,
@ -583,7 +583,6 @@ class App extends React.Component<AppProps, AppState> {
this.actionManager.registerAction(createUndoAction(this.history));
this.actionManager.registerAction(createRedoAction(this.history));
// Call `this.addSubtype()` here for `@excalidraw/excalidraw`-specific subtypes
this.actionManager.registerActionPredicate(subtypeActionPredicate);
}