@zsviczian/excalidraw 0.10.0-obsidian-44 → 0.10.0-obsidian-45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/types/constants.d.ts
CHANGED
|
@@ -47,7 +47,8 @@ export declare enum EVENT {
|
|
|
47
47
|
TOUCH_END = "touchend",
|
|
48
48
|
HASHCHANGE = "hashchange",
|
|
49
49
|
VISIBILITY_CHANGE = "visibilitychange",
|
|
50
|
-
SCROLL = "scroll"
|
|
50
|
+
SCROLL = "scroll",
|
|
51
|
+
EXCALIDRAW_LINK = "excalidraw-link"
|
|
51
52
|
}
|
|
52
53
|
export declare const ENV: {
|
|
53
54
|
TEST: string;
|
package/types/types.d.ts
CHANGED
|
@@ -204,7 +204,9 @@ export interface ExcalidrawProps {
|
|
|
204
204
|
onBeforeTextSubmit?: (textElement: ExcalidrawTextElement, textToSubmit: string, originalText: string, isDeleted: boolean) => [string, string, string];
|
|
205
205
|
generateIdForFile?: (file: File) => string | Promise<string>;
|
|
206
206
|
onThemeChange?: (newTheme: string) => void;
|
|
207
|
-
onLinkOpen?: (element: NonDeletedExcalidrawElement
|
|
207
|
+
onLinkOpen?: (element: NonDeletedExcalidrawElement, event: CustomEvent<{
|
|
208
|
+
nativeEvent: MouseEvent;
|
|
209
|
+
}>) => void;
|
|
208
210
|
onLinkHover?: (element: NonDeletedExcalidrawElement, event: React.PointerEvent<HTMLCanvasElement>) => void;
|
|
209
211
|
}
|
|
210
212
|
export declare type SceneData = {
|
package/types/utils.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EVENT } from "./constants";
|
|
1
2
|
import { FontFamilyValues, FontString } from "./element/types";
|
|
2
3
|
import { Zoom } from "./types";
|
|
3
4
|
export declare const setDateTimeForTests: (dateTime: string) => void;
|
|
@@ -98,3 +99,6 @@ export declare const arrayToMap: <T extends string | {
|
|
|
98
99
|
id: string;
|
|
99
100
|
}>(items: readonly T[]) => Map<string, T>;
|
|
100
101
|
export declare const isTestEnv: () => boolean;
|
|
102
|
+
export declare const wrapEvent: <T extends Event>(name: EVENT, nativeEvent: T) => CustomEvent<{
|
|
103
|
+
nativeEvent: T;
|
|
104
|
+
}>;
|