@zsviczian/excalidraw 0.17.1-obsidian-49 → 0.17.1-obsidian-51
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 +1 -1
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +30 -0
- package/types/excalidraw/actions/actionBoundText.d.ts +20 -0
- package/types/excalidraw/actions/actionCanvas.d.ts +140 -0
- package/types/excalidraw/actions/actionClipboard.d.ts +70 -0
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +30 -0
- package/types/excalidraw/actions/actionElementLock.d.ts +20 -0
- package/types/excalidraw/actions/actionExport.d.ts +90 -0
- package/types/excalidraw/actions/actionFinalize.d.ts +20 -0
- package/types/excalidraw/actions/actionFrame.d.ts +40 -0
- package/types/excalidraw/actions/actionGroup.d.ts +20 -0
- package/types/excalidraw/actions/actionLinearEditor.d.ts +10 -0
- package/types/excalidraw/actions/actionLink.d.ts +10 -0
- package/types/excalidraw/actions/actionMenu.d.ts +30 -0
- package/types/excalidraw/actions/actionNavigate.d.ts +20 -0
- package/types/excalidraw/actions/actionProperties.d.ts +150 -0
- package/types/excalidraw/actions/actionSelectAll.d.ts +10 -0
- package/types/excalidraw/actions/actionStyles.d.ts +10 -0
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +10 -0
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +10 -0
- package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +406 -0
- package/types/excalidraw/actions/actionToggleStats.d.ts +10 -0
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +10 -0
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +10 -0
- package/types/excalidraw/actions/index.d.ts +1 -0
- package/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/types/excalidraw/actions/types.d.ts +2 -2
- package/types/excalidraw/components/App.d.ts +12 -2
- package/types/excalidraw/components/DefaultSidebar.d.ts +1 -0
- package/types/excalidraw/components/SearchMenu.d.ts +5 -0
- package/types/excalidraw/components/SearchSidebar.d.ts +1 -0
- package/types/excalidraw/components/TextField.d.ts +2 -0
- package/types/excalidraw/components/icons.d.ts +1 -0
- package/types/excalidraw/components/main-menu/DefaultItems.d.ts +6 -0
- package/types/excalidraw/constants.d.ts +4 -0
- package/types/excalidraw/element/embeddable.d.ts +10 -0
- package/types/excalidraw/element/textElement.d.ts +1 -1
- package/types/excalidraw/fonts/ExcalidrawFont.d.ts +2 -2
- package/types/excalidraw/types.d.ts +15 -0
- package/dist/excalidraw.development.js +0 -6944
- package/dist/excalidraw.production.min.js +0 -2
- package/dist/excalidraw.production.min.js.LICENSE.txt +0 -121
- package/dist/styles.development.css +0 -6708
- package/dist/styles.production.css +0 -65
|
@@ -141,6 +141,7 @@ export type InteractiveCanvasAppState = Readonly<_CommonCanvasAppState & {
|
|
|
141
141
|
editingTextElement: AppState["editingTextElement"];
|
|
142
142
|
gridColor: AppState["gridColor"];
|
|
143
143
|
highlightSearchResult: AppState["highlightSearchResult"];
|
|
144
|
+
searchMatches: AppState["searchMatches"];
|
|
144
145
|
}>;
|
|
145
146
|
export type ObservedAppState = ObservedStandaloneAppState & ObservedElementsAppState;
|
|
146
147
|
export type ObservedStandaloneAppState = {
|
|
@@ -357,7 +358,18 @@ export interface AppState {
|
|
|
357
358
|
userToFollow: UserToFollow | null;
|
|
358
359
|
/** the socket ids of the users following the current user */
|
|
359
360
|
followedBy: Set<SocketId>;
|
|
361
|
+
searchMatches: readonly SearchMatch[];
|
|
360
362
|
}
|
|
363
|
+
type SearchMatch = {
|
|
364
|
+
id: string;
|
|
365
|
+
focus: boolean;
|
|
366
|
+
matchedLines: {
|
|
367
|
+
offsetX: number;
|
|
368
|
+
offsetY: number;
|
|
369
|
+
width: number;
|
|
370
|
+
height: number;
|
|
371
|
+
}[];
|
|
372
|
+
};
|
|
361
373
|
export type UIAppState = Omit<AppState, "suggestedBindings" | "startBoundElement" | "cursorButton" | "scrollX" | "scrollY">;
|
|
362
374
|
export type NormalizedZoomValue = number & {
|
|
363
375
|
_brand: "normalizedZoom";
|
|
@@ -552,6 +564,9 @@ export type AppClassProperties = {
|
|
|
552
564
|
getEffectiveGridSize: App["getEffectiveGridSize"];
|
|
553
565
|
setPlugins: App["setPlugins"];
|
|
554
566
|
plugins: App["plugins"];
|
|
567
|
+
getEditorUIOffsets: App["getEditorUIOffsets"];
|
|
568
|
+
visibleElements: App["visibleElements"];
|
|
569
|
+
excalidrawContainerValue: App["excalidrawContainerValue"];
|
|
555
570
|
};
|
|
556
571
|
export type PointerDownState = Readonly<{
|
|
557
572
|
origin: Readonly<{
|