mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
refactor: Move MathJax into src/element/subtypes
for the
`excalidraw-app` separation, maintaining lazy-loading of MathJax.
This commit is contained in:
parent
4d6d6cf129
commit
8eb3191b3f
23 changed files with 32 additions and 41 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import { useApp } from "./App";
|
|||
import { Dialog } from "./Dialog";
|
||||
|
||||
import "./PasteChartDialog.scss";
|
||||
import { ensureSubtypesLoaded } from "../subtypes";
|
||||
import { ensureSubtypesLoaded } from "../element/subtypes";
|
||||
import { isTextElement } from "../element";
|
||||
import {
|
||||
getContainerElement,
|
||||
|
|
|
@ -9,7 +9,7 @@ import {
|
|||
isSubtypeAction,
|
||||
isValidSubtype,
|
||||
subtypeCollides,
|
||||
} from "../subtypes";
|
||||
} from "../element/subtypes";
|
||||
import { ExcalidrawElement, Theme } from "../element/types";
|
||||
import {
|
||||
useExcalidrawActionManager,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue