mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
suppport disabling context menu in custom elements
This commit is contained in:
parent
2e8c4d25f2
commit
db9c9eb3d2
7 changed files with 24 additions and 7 deletions
|
@ -11,7 +11,7 @@ import {
|
|||
WINDOWS_EMOJI_FALLBACK_FONT,
|
||||
} from "./constants";
|
||||
import { FontFamilyValues, FontString } from "./element/types";
|
||||
import { AppState, DataURL, ExcalidrawProps, Zoom } from "./types";
|
||||
import { AppProps, AppState, DataURL, Zoom } from "./types";
|
||||
import { unstable_batchedUpdates } from "react-dom";
|
||||
import { isDarwin } from "./keys";
|
||||
|
||||
|
@ -627,7 +627,7 @@ export const getFrame = () => {
|
|||
};
|
||||
|
||||
export const getCustomElementConfig = (
|
||||
customElementConfig: ExcalidrawProps["customElementsConfig"],
|
||||
customElementConfig: AppProps["customElementsConfig"],
|
||||
customType: string,
|
||||
) => {
|
||||
if (!customElementConfig) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue