@orangecatai/element 0.0.2 → 0.0.3
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/dist/dev/index.js +39 -2
- package/dist/dev/index.js.map +2 -2
- package/dist/prod/index.js +1 -1
- package/dist/types/common/src/keys.d.ts +2 -0
- package/dist/types/element/src/frame.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +177 -0
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +7 -7
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionFrame.d.ts +178 -0
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +7 -7
- package/dist/types/excalidraw/actions/actionLink.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionMenu.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionStyles.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/actions/index.d.ts +1 -1
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/components/AIChatPanel.d.ts +114 -0
- package/dist/types/excalidraw/components/Actions.d.ts +3 -0
- package/dist/types/excalidraw/components/CanvasBackgroundSwatch.d.ts +7 -0
- package/dist/types/excalidraw/components/ColorPicker/AdvancedColorPicker.d.ts +8 -0
- package/dist/types/excalidraw/components/ColorPicker/colorConversions.d.ts +27 -0
- package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/dist/types/excalidraw/components/DefaultSidebar.d.ts +1 -1
- package/dist/types/excalidraw/components/ElementCanvasButtons.d.ts +1 -1
- package/dist/types/excalidraw/components/FrameToolbar.d.ts +1 -1
- package/dist/types/excalidraw/components/HintViewer.d.ts +1 -1
- package/dist/types/excalidraw/components/ImageEditToolbar.d.ts +16 -0
- package/dist/types/excalidraw/components/ImageGeneratorPanel.d.ts +9 -4
- package/dist/types/excalidraw/components/ImageQuickEditPanel.d.ts +10 -1
- package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/index.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +1 -0
- package/dist/types/excalidraw/components/ToolButton.d.ts +1 -1
- package/dist/types/excalidraw/components/ai-chat/agentLoop.d.ts +112 -0
- package/dist/types/excalidraw/components/ai-chat/audioUtils.d.ts +10 -0
- package/dist/types/excalidraw/components/ai-chat/canvasTools.d.ts +685 -0
- package/dist/types/excalidraw/components/ai-chat/htmlToExcalidraw.d.ts +53 -0
- package/dist/types/excalidraw/components/ai-chat/openRouterStream.d.ts +50 -0
- package/dist/types/excalidraw/components/ai-chat/reviewerAgent.d.ts +64 -0
- package/dist/types/excalidraw/components/auto-resize/AutoResizePanel.d.ts +17 -0
- package/dist/types/excalidraw/components/auto-resize/AutoResizePanelHost.d.ts +4 -0
- package/dist/types/excalidraw/components/auto-resize/AutoResizeShimmerLayer.d.ts +11 -0
- package/dist/types/excalidraw/components/auto-resize/autoResizeEngine.d.ts +144 -0
- package/dist/types/excalidraw/components/auto-resize/autoResizePanelStore.d.ts +15 -0
- package/dist/types/excalidraw/components/auto-resize/autoResizeStore.d.ts +16 -0
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +1 -1
- package/dist/types/excalidraw/components/icons.d.ts +1 -0
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
- package/dist/types/excalidraw/components/template-builder/TemplateBuilderPanelHost.d.ts +4 -0
- package/dist/types/excalidraw/components/template-builder/TemplateBuilderTray.d.ts +4 -0
- package/dist/types/excalidraw/components/template-builder/slotTypes.d.ts +43 -0
- package/dist/types/excalidraw/components/template-builder/templateBuilderStore.d.ts +19 -0
- package/dist/types/excalidraw/components/ui/avatar.d.ts +6 -0
- package/dist/types/excalidraw/components/ui/button.d.ts +11 -0
- package/dist/types/excalidraw/components/ui/chat-container.d.ts +17 -0
- package/dist/types/excalidraw/components/ui/code-block.d.ts +16 -0
- package/dist/types/excalidraw/components/ui/markdown.d.ts +10 -0
- package/dist/types/excalidraw/components/ui/message.d.ts +35 -0
- package/dist/types/excalidraw/components/ui/scroll-button.d.ts +10 -0
- package/dist/types/excalidraw/fonts/Fonts.d.ts +17 -0
- package/dist/types/excalidraw/index.d.ts +8 -0
- package/dist/types/excalidraw/types.d.ts +220 -0
- package/dist/types/excalidraw/utils/leonardoApiKey.d.ts +1 -0
- package/dist/types/excalidraw/utils/openRouterApiKey.d.ts +1 -0
- package/dist/types/excalidraw/utils/removeBgApiKey.d.ts +1 -0
- package/package.json +2 -2
|
@@ -5,7 +5,7 @@ export declare const actionCopyElementLink: {
|
|
|
5
5
|
trackEvent: {
|
|
6
6
|
category: "element";
|
|
7
7
|
};
|
|
8
|
-
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("
|
|
8
|
+
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("..").AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<{
|
|
9
9
|
appState: {
|
|
10
10
|
toast: {
|
|
11
11
|
message: string;
|
|
@@ -16,12 +16,12 @@ export declare const actionCopyElementLink: {
|
|
|
16
16
|
elements?: undefined;
|
|
17
17
|
app?: undefined;
|
|
18
18
|
} | {
|
|
19
|
-
appState: Readonly<import("
|
|
19
|
+
appState: Readonly<import("..").AppState>;
|
|
20
20
|
elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[];
|
|
21
21
|
app: import("../types").AppClassProperties;
|
|
22
22
|
captureUpdate: "EVENTUALLY";
|
|
23
23
|
}>;
|
|
24
|
-
predicate: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: import("
|
|
24
|
+
predicate: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: import("..").AppState) => boolean;
|
|
25
25
|
} & {
|
|
26
26
|
keyTest?: undefined;
|
|
27
27
|
};
|
|
@@ -29,9 +29,9 @@ export declare const actionLinkToElement: {
|
|
|
29
29
|
name: "linkToElement";
|
|
30
30
|
label: string;
|
|
31
31
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
32
|
-
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("
|
|
32
|
+
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("..").AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
33
33
|
elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[];
|
|
34
|
-
appState: Readonly<import("
|
|
34
|
+
appState: Readonly<import("..").AppState>;
|
|
35
35
|
app: import("../types").AppClassProperties;
|
|
36
36
|
captureUpdate: "EVENTUALLY";
|
|
37
37
|
} | {
|
|
@@ -189,7 +189,7 @@ export declare const actionLinkToElement: {
|
|
|
189
189
|
elements?: undefined;
|
|
190
190
|
app?: undefined;
|
|
191
191
|
};
|
|
192
|
-
predicate: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: import("
|
|
192
|
+
predicate: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: import("..").AppState, appProps: import("..").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
193
193
|
trackEvent: false;
|
|
194
194
|
} & {
|
|
195
195
|
keyTest?: undefined;
|
|
@@ -5,7 +5,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
5
5
|
};
|
|
6
6
|
target: string;
|
|
7
7
|
label: string;
|
|
8
|
-
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("
|
|
8
|
+
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("..").AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
9
9
|
elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[];
|
|
10
10
|
appState: {
|
|
11
11
|
activeTool: {
|
|
@@ -701,6 +701,184 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
701
701
|
} & {
|
|
702
702
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
703
703
|
};
|
|
704
|
+
export declare const actionCycleThroughFrameChildren: {
|
|
705
|
+
name: "cycleThroughFrameChildren";
|
|
706
|
+
label: string;
|
|
707
|
+
trackEvent: {
|
|
708
|
+
category: "element";
|
|
709
|
+
};
|
|
710
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
711
|
+
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
712
|
+
elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[];
|
|
713
|
+
appState: Readonly<AppState>;
|
|
714
|
+
captureUpdate: "EVENTUALLY";
|
|
715
|
+
} | {
|
|
716
|
+
elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[];
|
|
717
|
+
appState: {
|
|
718
|
+
selectedElementIds: {
|
|
719
|
+
[x: string]: true;
|
|
720
|
+
};
|
|
721
|
+
contextMenu: {
|
|
722
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
723
|
+
top: number;
|
|
724
|
+
left: number;
|
|
725
|
+
} | null;
|
|
726
|
+
showWelcomeScreen: boolean;
|
|
727
|
+
isLoading: boolean;
|
|
728
|
+
errorMessage: React.ReactNode;
|
|
729
|
+
activeEmbeddable: {
|
|
730
|
+
element: import("@orangecatai/element/types").NonDeletedExcalidrawElement;
|
|
731
|
+
state: "hover" | "active";
|
|
732
|
+
} | null;
|
|
733
|
+
newElement: import("@orangecatai/element/types").NonDeleted<import("@orangecatai/element/types").ExcalidrawNonSelectionElement> | null;
|
|
734
|
+
resizingElement: import("@orangecatai/element/types").NonDeletedExcalidrawElement | null;
|
|
735
|
+
multiElement: import("@orangecatai/element/types").NonDeleted<import("@orangecatai/element/types").ExcalidrawLinearElement> | null;
|
|
736
|
+
selectionElement: import("@orangecatai/element/types").NonDeletedExcalidrawElement | null;
|
|
737
|
+
isBindingEnabled: boolean;
|
|
738
|
+
startBoundElement: import("@orangecatai/element/types").NonDeleted<import("@orangecatai/element/types").ExcalidrawBindableElement> | null;
|
|
739
|
+
suggestedBinding: {
|
|
740
|
+
element: import("@orangecatai/element/types").NonDeleted<import("@orangecatai/element/types").ExcalidrawBindableElement>;
|
|
741
|
+
midPoint?: import("@orangecatai/math").GlobalPoint;
|
|
742
|
+
} | null;
|
|
743
|
+
frameToHighlight: import("@orangecatai/element/types").NonDeleted<import("@orangecatai/element/types").ExcalidrawFrameLikeElement> | null;
|
|
744
|
+
frameRendering: {
|
|
745
|
+
enabled: boolean;
|
|
746
|
+
name: boolean;
|
|
747
|
+
outline: boolean;
|
|
748
|
+
clip: boolean;
|
|
749
|
+
};
|
|
750
|
+
editingFrame: string | null;
|
|
751
|
+
elementsToHighlight: import("@orangecatai/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
752
|
+
editingTextElement: import("@orangecatai/element/types").NonDeletedExcalidrawElement | null;
|
|
753
|
+
activeTool: {
|
|
754
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
755
|
+
locked: boolean;
|
|
756
|
+
fromSelection: boolean;
|
|
757
|
+
} & import("../types").ActiveTool;
|
|
758
|
+
preferredSelectionTool: {
|
|
759
|
+
type: "selection" | "lasso";
|
|
760
|
+
initialized: boolean;
|
|
761
|
+
};
|
|
762
|
+
penMode: boolean;
|
|
763
|
+
penDetected: boolean;
|
|
764
|
+
exportBackground: boolean;
|
|
765
|
+
exportEmbedScene: boolean;
|
|
766
|
+
exportWithDarkMode: boolean;
|
|
767
|
+
exportScale: number;
|
|
768
|
+
currentItemStrokeColor: string;
|
|
769
|
+
currentItemBackgroundColor: string;
|
|
770
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
771
|
+
currentItemStrokeWidth: number;
|
|
772
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
773
|
+
currentItemRoughness: number;
|
|
774
|
+
currentItemOpacity: number;
|
|
775
|
+
currentItemFontFamily: import("@orangecatai/element/types").FontFamilyValues;
|
|
776
|
+
currentItemFontSize: number;
|
|
777
|
+
currentItemTextAlign: import("@orangecatai/element/types").TextAlign;
|
|
778
|
+
currentItemStartArrowhead: import("@orangecatai/element/types").Arrowhead | null;
|
|
779
|
+
currentItemEndArrowhead: import("@orangecatai/element/types").Arrowhead | null;
|
|
780
|
+
currentHoveredFontFamily: import("@orangecatai/element/types").FontFamilyValues | null;
|
|
781
|
+
currentItemRoundness: import("@orangecatai/element/types").StrokeRoundness;
|
|
782
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
783
|
+
viewBackgroundColor: string;
|
|
784
|
+
scrollX: number;
|
|
785
|
+
scrollY: number;
|
|
786
|
+
cursorButton: "up" | "down";
|
|
787
|
+
scrolledOutside: boolean;
|
|
788
|
+
name: string | null;
|
|
789
|
+
isResizing: boolean;
|
|
790
|
+
isRotating: boolean;
|
|
791
|
+
zoom: import("../types").Zoom;
|
|
792
|
+
openMenu: "canvas" | null;
|
|
793
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
794
|
+
openSidebar: {
|
|
795
|
+
name: import("../types").SidebarName;
|
|
796
|
+
tab?: import("../types").SidebarTabName;
|
|
797
|
+
} | null;
|
|
798
|
+
openDialog: null | {
|
|
799
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
800
|
+
} | {
|
|
801
|
+
name: "ttd";
|
|
802
|
+
tab: "text-to-diagram" | "mermaid";
|
|
803
|
+
} | {
|
|
804
|
+
name: "commandPalette";
|
|
805
|
+
} | {
|
|
806
|
+
name: "settings";
|
|
807
|
+
} | {
|
|
808
|
+
name: "elementLinkSelector";
|
|
809
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
810
|
+
};
|
|
811
|
+
defaultSidebarDockedPreference: boolean;
|
|
812
|
+
lastPointerDownWith: import("@orangecatai/element/types").PointerType;
|
|
813
|
+
hoveredElementIds: Readonly<{
|
|
814
|
+
[id: string]: true;
|
|
815
|
+
}>;
|
|
816
|
+
previousSelectedElementIds: {
|
|
817
|
+
[id: string]: true;
|
|
818
|
+
};
|
|
819
|
+
selectedElementsAreBeingDragged: boolean;
|
|
820
|
+
shouldCacheIgnoreZoom: boolean;
|
|
821
|
+
toast: {
|
|
822
|
+
message: string;
|
|
823
|
+
closable?: boolean;
|
|
824
|
+
duration?: number;
|
|
825
|
+
} | null;
|
|
826
|
+
zenModeEnabled: boolean;
|
|
827
|
+
theme: import("@orangecatai/element/types").Theme;
|
|
828
|
+
gridSize: number;
|
|
829
|
+
gridStep: number;
|
|
830
|
+
gridModeEnabled: boolean;
|
|
831
|
+
viewModeEnabled: boolean;
|
|
832
|
+
selectedGroupIds: {
|
|
833
|
+
[groupId: string]: boolean;
|
|
834
|
+
};
|
|
835
|
+
editingGroupId: import("@orangecatai/element/types").GroupId | null;
|
|
836
|
+
width: number;
|
|
837
|
+
height: number;
|
|
838
|
+
offsetTop: number;
|
|
839
|
+
offsetLeft: number;
|
|
840
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
841
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
842
|
+
stats: {
|
|
843
|
+
open: boolean;
|
|
844
|
+
panels: number;
|
|
845
|
+
};
|
|
846
|
+
currentChartType: import("@orangecatai/element/types").ChartType;
|
|
847
|
+
pasteDialog: {
|
|
848
|
+
shown: false;
|
|
849
|
+
data: null;
|
|
850
|
+
} | {
|
|
851
|
+
shown: true;
|
|
852
|
+
data: import("../charts").Spreadsheet;
|
|
853
|
+
};
|
|
854
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
855
|
+
selectedLinearElement: import("@orangecatai/element").LinearElementEditor | null;
|
|
856
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
857
|
+
originSnapOffset: {
|
|
858
|
+
x: number;
|
|
859
|
+
y: number;
|
|
860
|
+
} | null;
|
|
861
|
+
objectsSnapModeEnabled: boolean;
|
|
862
|
+
userToFollow: import("../types").UserToFollow | null;
|
|
863
|
+
followedBy: Set<import("../types").SocketId>;
|
|
864
|
+
isCropping: boolean;
|
|
865
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
866
|
+
searchMatches: Readonly<{
|
|
867
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
868
|
+
matches: readonly import("../types").SearchMatch[];
|
|
869
|
+
}> | null;
|
|
870
|
+
activeLockedId: string | null;
|
|
871
|
+
lockedMultiSelections: {
|
|
872
|
+
[groupId: string]: true;
|
|
873
|
+
};
|
|
874
|
+
bindMode: import("@orangecatai/element/types").BindMode;
|
|
875
|
+
};
|
|
876
|
+
captureUpdate: "IMMEDIATELY";
|
|
877
|
+
};
|
|
878
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
879
|
+
} & {
|
|
880
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
881
|
+
};
|
|
704
882
|
export declare const actionWrapSelectionInFrame: {
|
|
705
883
|
name: "wrapSelectionInFrame";
|
|
706
884
|
label: string;
|
|
@@ -2,13 +2,13 @@ import type { ExcalidrawLinearElement } from "@orangecatai/element/types";
|
|
|
2
2
|
export declare const actionToggleLinearEditor: {
|
|
3
3
|
name: "toggleLinearEditor";
|
|
4
4
|
category: string;
|
|
5
|
-
label: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: Readonly<import("
|
|
5
|
+
label: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: Readonly<import("..").AppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.editArrow" | "labels.lineEditor.edit";
|
|
6
6
|
keywords: string[];
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "element";
|
|
9
9
|
};
|
|
10
|
-
predicate: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: import("
|
|
11
|
-
perform(elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("
|
|
10
|
+
predicate: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: import("..").AppState, _: import("..").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
11
|
+
perform(elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("..").AppState>, _: unknown, app: import("../types").AppClassProperties): {
|
|
12
12
|
appState: {
|
|
13
13
|
selectedLinearElement: {
|
|
14
14
|
isEditing: boolean;
|
|
@@ -211,12 +211,12 @@ export declare const actionTogglePolygon: {
|
|
|
211
211
|
category: string;
|
|
212
212
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
213
213
|
keywords: string[];
|
|
214
|
-
label: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: Readonly<import("
|
|
214
|
+
label: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: Readonly<import("..").AppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
|
|
215
215
|
trackEvent: {
|
|
216
216
|
category: "element";
|
|
217
217
|
};
|
|
218
|
-
predicate: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: import("
|
|
219
|
-
perform(elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("
|
|
218
|
+
predicate: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: import("..").AppState, _: import("..").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
219
|
+
perform(elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("..").AppState>, _: unknown, app: import("../types").AppClassProperties): false | {
|
|
220
220
|
elements: ((Readonly<{
|
|
221
221
|
id: string;
|
|
222
222
|
x: number;
|
|
@@ -654,7 +654,7 @@ export declare const actionTogglePolygon: {
|
|
|
654
654
|
}> & {
|
|
655
655
|
index: import("@orangecatai/element/types").FractionalIndex;
|
|
656
656
|
}))[];
|
|
657
|
-
appState: Readonly<import("
|
|
657
|
+
appState: Readonly<import("..").AppState>;
|
|
658
658
|
captureUpdate: "IMMEDIATELY";
|
|
659
659
|
};
|
|
660
660
|
PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const actionLink: {
|
|
2
2
|
name: "hyperlink";
|
|
3
|
-
label: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: Readonly<import("
|
|
3
|
+
label: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: Readonly<import("..").AppState>) => "labels.link.editEmbed" | "labels.link.edit" | "labels.link.create";
|
|
4
4
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("
|
|
5
|
+
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("..").AppState>) => false | {
|
|
6
6
|
elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[];
|
|
7
7
|
appState: {
|
|
8
8
|
showHyperlinkPopup: "editor";
|
|
@@ -170,7 +170,7 @@ export declare const actionLink: {
|
|
|
170
170
|
action: string;
|
|
171
171
|
};
|
|
172
172
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
173
|
-
predicate: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: import("
|
|
173
|
+
predicate: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: import("..").AppState) => boolean;
|
|
174
174
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
175
175
|
} & {
|
|
176
176
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -7,7 +7,7 @@ export declare const actionShortcuts: {
|
|
|
7
7
|
category: "menu";
|
|
8
8
|
action: string;
|
|
9
9
|
};
|
|
10
|
-
perform: (_elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("
|
|
10
|
+
perform: (_elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("..").AppState>, _: unknown, { focusContainer }: import("../types").AppClassProperties) => {
|
|
11
11
|
appState: {
|
|
12
12
|
openDialog: {
|
|
13
13
|
name: "help";
|
|
@@ -8,12 +8,12 @@ export declare const actionSelectAll: {
|
|
|
8
8
|
category: "canvas";
|
|
9
9
|
};
|
|
10
10
|
viewMode: false;
|
|
11
|
-
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("
|
|
11
|
+
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("..").AppState>, value: unknown, app: import("../types").AppClassProperties) => false | {
|
|
12
12
|
appState: {
|
|
13
13
|
selectedLinearElement: LinearElementEditor | null;
|
|
14
|
-
editingGroupId: import("
|
|
15
|
-
selectedElementIds: import("
|
|
16
|
-
selectedGroupIds: import("
|
|
14
|
+
editingGroupId: import("..").AppState["editingGroupId"];
|
|
15
|
+
selectedElementIds: import("..").AppState["selectedElementIds"];
|
|
16
|
+
selectedGroupIds: import("..").AppState["selectedGroupIds"];
|
|
17
17
|
contextMenu: {
|
|
18
18
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
19
19
|
top: number;
|
|
@@ -6,7 +6,7 @@ export declare const actionCopyStyles: {
|
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
|
-
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("
|
|
9
|
+
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("..").AppState>, formData: unknown, app: import("../types").AppClassProperties) => {
|
|
10
10
|
appState: {
|
|
11
11
|
toast: {
|
|
12
12
|
message: string;
|
|
@@ -177,7 +177,7 @@ export declare const actionPasteStyles: {
|
|
|
177
177
|
trackEvent: {
|
|
178
178
|
category: "element";
|
|
179
179
|
};
|
|
180
|
-
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("
|
|
180
|
+
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("..").AppState>, formData: unknown, app: import("../types").AppClassProperties) => {
|
|
181
181
|
elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[];
|
|
182
182
|
captureUpdate: "EVENTUALLY";
|
|
183
183
|
} | {
|
|
@@ -5,9 +5,9 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
5
5
|
viewMode: false;
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "canvas";
|
|
8
|
-
predicate: (appState: Readonly<import("
|
|
8
|
+
predicate: (appState: Readonly<import("..").AppState>) => boolean;
|
|
9
9
|
};
|
|
10
|
-
perform(elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("
|
|
10
|
+
perform(elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("..").AppState>): {
|
|
11
11
|
appState: {
|
|
12
12
|
objectsSnapModeEnabled: boolean;
|
|
13
13
|
gridModeEnabled: false;
|
|
@@ -169,8 +169,8 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
169
169
|
};
|
|
170
170
|
captureUpdate: "EVENTUALLY";
|
|
171
171
|
};
|
|
172
|
-
checked: (appState: Readonly<import("
|
|
173
|
-
predicate: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: import("
|
|
172
|
+
checked: (appState: Readonly<import("..").AppState>) => boolean;
|
|
173
|
+
predicate: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: import("..").AppState, appProps: import("..").ExcalidrawProps) => boolean;
|
|
174
174
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
175
175
|
} & {
|
|
176
176
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -9,11 +9,11 @@ export declare const actionToggleShapeSwitch: {
|
|
|
9
9
|
action: string;
|
|
10
10
|
};
|
|
11
11
|
keywords: string[];
|
|
12
|
-
perform(elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("
|
|
12
|
+
perform(elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("..").AppState>, _: unknown, app: import("../types").AppClassProperties): {
|
|
13
13
|
captureUpdate: "NEVER";
|
|
14
14
|
};
|
|
15
|
-
checked: (appState: Readonly<import("
|
|
16
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: import("
|
|
15
|
+
checked: (appState: Readonly<import("..").AppState>) => boolean;
|
|
16
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("..").AppState, props: import("..").ExcalidrawProps) => boolean;
|
|
17
17
|
} & {
|
|
18
18
|
keyTest?: undefined;
|
|
19
19
|
};
|
|
@@ -7,7 +7,7 @@ export declare const actionToggleStats: {
|
|
|
7
7
|
category: "menu";
|
|
8
8
|
};
|
|
9
9
|
keywords: string[];
|
|
10
|
-
perform(elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("
|
|
10
|
+
perform(elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("..").AppState>): {
|
|
11
11
|
appState: {
|
|
12
12
|
stats: {
|
|
13
13
|
open: boolean;
|
|
@@ -169,7 +169,7 @@ export declare const actionToggleStats: {
|
|
|
169
169
|
};
|
|
170
170
|
captureUpdate: "EVENTUALLY";
|
|
171
171
|
};
|
|
172
|
-
checked: (appState: Readonly<import("
|
|
172
|
+
checked: (appState: Readonly<import("..").AppState>) => boolean;
|
|
173
173
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
174
174
|
} & {
|
|
175
175
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -5,9 +5,9 @@ export declare const actionToggleViewMode: {
|
|
|
5
5
|
viewMode: true;
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "canvas";
|
|
8
|
-
predicate: (appState: Readonly<import("
|
|
8
|
+
predicate: (appState: Readonly<import("..").AppState>) => boolean;
|
|
9
9
|
};
|
|
10
|
-
perform(elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("
|
|
10
|
+
perform(elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("..").AppState>): {
|
|
11
11
|
appState: {
|
|
12
12
|
viewModeEnabled: boolean;
|
|
13
13
|
contextMenu: {
|
|
@@ -169,8 +169,8 @@ export declare const actionToggleViewMode: {
|
|
|
169
169
|
};
|
|
170
170
|
captureUpdate: "EVENTUALLY";
|
|
171
171
|
};
|
|
172
|
-
checked: (appState: Readonly<import("
|
|
173
|
-
predicate: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: import("
|
|
172
|
+
checked: (appState: Readonly<import("..").AppState>) => boolean;
|
|
173
|
+
predicate: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: import("..").AppState, appProps: import("..").ExcalidrawProps) => boolean;
|
|
174
174
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
175
175
|
} & {
|
|
176
176
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -5,9 +5,9 @@ export declare const actionToggleZenMode: {
|
|
|
5
5
|
viewMode: true;
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "canvas";
|
|
8
|
-
predicate: (appState: Readonly<import("
|
|
8
|
+
predicate: (appState: Readonly<import("..").AppState>) => boolean;
|
|
9
9
|
};
|
|
10
|
-
perform(elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("
|
|
10
|
+
perform(elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("..").AppState>): {
|
|
11
11
|
appState: {
|
|
12
12
|
zenModeEnabled: boolean;
|
|
13
13
|
contextMenu: {
|
|
@@ -169,8 +169,8 @@ export declare const actionToggleZenMode: {
|
|
|
169
169
|
};
|
|
170
170
|
captureUpdate: "EVENTUALLY";
|
|
171
171
|
};
|
|
172
|
-
checked: (appState: Readonly<import("
|
|
173
|
-
predicate: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: import("
|
|
172
|
+
checked: (appState: Readonly<import("..").AppState>) => boolean;
|
|
173
|
+
predicate: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: import("..").AppState, appProps: import("..").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
174
174
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
175
175
|
} & {
|
|
176
176
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -6,9 +6,9 @@ export declare const actionSendBackward: {
|
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
|
-
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("
|
|
9
|
+
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("..").AppState>, value: unknown, app: import("../types").AppClassProperties) => {
|
|
10
10
|
elements: readonly import("@orangecatai/element/types").ExcalidrawElement[];
|
|
11
|
-
appState: Readonly<import("
|
|
11
|
+
appState: Readonly<import("..").AppState>;
|
|
12
12
|
captureUpdate: "IMMEDIATELY";
|
|
13
13
|
};
|
|
14
14
|
keyPriority: number;
|
|
@@ -25,9 +25,9 @@ export declare const actionBringForward: {
|
|
|
25
25
|
trackEvent: {
|
|
26
26
|
category: "element";
|
|
27
27
|
};
|
|
28
|
-
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("
|
|
28
|
+
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("..").AppState>, value: unknown, app: import("../types").AppClassProperties) => {
|
|
29
29
|
elements: readonly import("@orangecatai/element/types").ExcalidrawElement[];
|
|
30
|
-
appState: Readonly<import("
|
|
30
|
+
appState: Readonly<import("..").AppState>;
|
|
31
31
|
captureUpdate: "IMMEDIATELY";
|
|
32
32
|
};
|
|
33
33
|
keyPriority: number;
|
|
@@ -44,9 +44,9 @@ export declare const actionSendToBack: {
|
|
|
44
44
|
trackEvent: {
|
|
45
45
|
category: "element";
|
|
46
46
|
};
|
|
47
|
-
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("
|
|
47
|
+
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("..").AppState>) => {
|
|
48
48
|
elements: readonly import("@orangecatai/element/types").ExcalidrawElement[] | import("@orangecatai/element/types").ExcalidrawElement[];
|
|
49
|
-
appState: Readonly<import("
|
|
49
|
+
appState: Readonly<import("..").AppState>;
|
|
50
50
|
captureUpdate: "IMMEDIATELY";
|
|
51
51
|
};
|
|
52
52
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -62,9 +62,9 @@ export declare const actionBringToFront: {
|
|
|
62
62
|
trackEvent: {
|
|
63
63
|
category: "element";
|
|
64
64
|
};
|
|
65
|
-
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("
|
|
65
|
+
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("..").AppState>) => {
|
|
66
66
|
elements: readonly import("@orangecatai/element/types").ExcalidrawElement[] | import("@orangecatai/element/types").ExcalidrawElement[];
|
|
67
|
-
appState: Readonly<import("
|
|
67
|
+
appState: Readonly<import("..").AppState>;
|
|
68
68
|
captureUpdate: "IMMEDIATELY";
|
|
69
69
|
};
|
|
70
70
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -3,7 +3,7 @@ export { actionBringForward, actionBringToFront, actionSendBackward, actionSendT
|
|
|
3
3
|
export { actionSelectAll } from "./actionSelectAll";
|
|
4
4
|
export { actionDuplicateSelection } from "./actionDuplicateSelection";
|
|
5
5
|
export { actionChangeStrokeColor, actionChangeBackgroundColor, actionChangeStrokeWidth, actionChangeFillStyle, actionChangeSloppiness, actionChangeOpacity, actionChangeFontSize, actionChangeFontFamily, actionChangeTextAlign, actionChangeVerticalAlign, actionChangeArrowProperties, } from "./actionProperties";
|
|
6
|
-
export { actionChangeViewBackgroundColor, actionClearCanvas, actionZoomIn, actionZoomOut, actionResetZoom, actionZoomToFit, actionToggleTheme, } from "./actionCanvas";
|
|
6
|
+
export { actionChangeViewBackgroundColor, actionClearCanvas, actionZoomIn, actionZoomOut, actionResetZoom, actionScrollBackToContent, actionZoomToFit, actionToggleTheme, } from "./actionCanvas";
|
|
7
7
|
export { actionSetEmbeddableAsActiveTool } from "./actionEmbeddable";
|
|
8
8
|
export { actionFinalize } from "./actionFinalize";
|
|
9
9
|
export { actionChangeProjectName, actionChangeExportBackground, actionSaveToActiveFile, actionSaveFileToDisk, actionLoadScene, } from "./actionExport";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { SubtypeOf } from "@orangecatai/common/utility-types";
|
|
2
2
|
import type { ActionName } from "./types";
|
|
3
|
-
export type ShortcutName = SubtypeOf<ActionName, "toggleTheme" | "loadScene" | "clearCanvas" | "cut" | "copy" | "paste" | "copyStyles" | "pasteStyles" | "selectAll" | "deleteSelectedElements" | "duplicateSelection" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyAsPng" | "group" | "ungroup" | "gridMode" | "zenMode" | "objectsSnapMode" | "stats" | "addToLibrary" | "viewMode" | "flipHorizontal" | "flipVertical" | "hyperlink" | "toggleElementLock" | "resetZoom" | "zoomOut" | "zoomIn" | "zoomToFit" | "zoomToFitSelectionInViewport" | "zoomToFitSelection" | "toggleEraserTool" | "toggleHandTool" | "setFrameAsActiveTool" | "saveFileToDisk" | "saveToActiveFile" | "toggleShortcuts" | "wrapSelectionInFrame"> | "saveScene" | "imageExport" | "commandPalette" | "searchMenu" | "toolLock";
|
|
3
|
+
export type ShortcutName = SubtypeOf<ActionName, "toggleTheme" | "loadScene" | "clearCanvas" | "cut" | "copy" | "paste" | "copyStyles" | "pasteStyles" | "selectAll" | "deleteSelectedElements" | "duplicateSelection" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyAsPng" | "group" | "ungroup" | "gridMode" | "zenMode" | "objectsSnapMode" | "stats" | "addToLibrary" | "viewMode" | "flipHorizontal" | "flipVertical" | "hyperlink" | "toggleElementLock" | "resetZoom" | "zoomOut" | "zoomIn" | "zoomToFit" | "zoomToFitSelectionInViewport" | "zoomToFitSelection" | "toggleEraserTool" | "toggleHandTool" | "setFrameAsActiveTool" | "cycleThroughFrameChildren" | "saveFileToDisk" | "saveToActiveFile" | "toggleShortcuts" | "wrapSelectionInFrame"> | "saveScene" | "imageExport" | "commandPalette" | "searchMenu" | "toolLock";
|
|
4
4
|
export declare const getShortcutFromShortcutName: (name: ShortcutName, idx?: number) => string;
|
|
@@ -14,7 +14,7 @@ export type ActionResult = {
|
|
|
14
14
|
type ActionFn<TData = any> = (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: TData | undefined, app: AppClassProperties) => ActionResult | Promise<ActionResult>;
|
|
15
15
|
export type UpdaterFn = (res: ActionResult) => void;
|
|
16
16
|
export type ActionFilterFn = (action: Action) => void;
|
|
17
|
-
export type ActionName = "copy" | "cut" | "paste" | "copyAsPng" | "copyAsSvg" | "copyText" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyStyles" | "selectAll" | "pasteStyles" | "gridMode" | "zenMode" | "objectsSnapMode" | "stats" | "changeStrokeColor" | "changeBackgroundColor" | "changeFillStyle" | "changeStrokeWidth" | "changeStrokeShape" | "changeSloppiness" | "changeStrokeStyle" | "changeArrowhead" | "changeArrowType" | "changeArrowProperties" | "changeOpacity" | "changeFontSize" | "undo" | "redo" | "finalize" | "changeProjectName" | "changeExportBackground" | "changeExportEmbedScene" | "changeExportScale" | "saveToActiveFile" | "saveFileToDisk" | "loadScene" | "duplicateSelection" | "deleteSelectedElements" | "changeViewBackgroundColor" | "clearCanvas" | "zoomIn" | "zoomOut" | "resetZoom" | "zoomToFit" | "zoomToFitSelection" | "zoomToFitSelectionInViewport" | "changeFontFamily" | "changeTextAlign" | "changeVerticalAlign" | "toggleFullScreen" | "toggleShortcuts" | "group" | "ungroup" | "goToCollaborator" | "addToLibrary" | "changeRoundness" | "alignTop" | "alignBottom" | "alignLeft" | "alignRight" | "alignVerticallyCentered" | "alignHorizontallyCentered" | "distributeHorizontally" | "distributeVertically" | "flipHorizontal" | "flipVertical" | "viewMode" | "exportWithDarkMode" | "toggleTheme" | "increaseFontSize" | "decreaseFontSize" | "unbindText" | "hyperlink" | "bindText" | "unlockAllElements" | "toggleElementLock" | "toggleLinearEditor" | "toggleEraserTool" | "toggleHandTool" | "selectAllElementsInFrame" | "removeAllElementsFromFrame" | "updateFrameRendering" | "setFrameAsActiveTool" | "setEmbeddableAsActiveTool" | "createContainerFromText" | "wrapTextInContainer" | "commandPalette" | "autoResize" | "elementStats" | "searchMenu" | "copyElementLink" | "linkToElement" | "cropEditor" | "wrapSelectionInFrame" | "toggleLassoTool" | "toggleShapeSwitch" | "togglePolygon";
|
|
17
|
+
export type ActionName = "copy" | "cut" | "paste" | "copyAsPng" | "copyAsSvg" | "copyText" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyStyles" | "selectAll" | "pasteStyles" | "gridMode" | "zenMode" | "objectsSnapMode" | "stats" | "changeStrokeColor" | "changeBackgroundColor" | "changeFillStyle" | "changeStrokeWidth" | "changeStrokeShape" | "changeSloppiness" | "changeStrokeStyle" | "changeArrowhead" | "changeArrowType" | "changeArrowProperties" | "changeOpacity" | "changeFontSize" | "undo" | "redo" | "finalize" | "changeProjectName" | "changeExportBackground" | "changeExportEmbedScene" | "changeExportScale" | "saveToActiveFile" | "saveFileToDisk" | "loadScene" | "duplicateSelection" | "deleteSelectedElements" | "changeViewBackgroundColor" | "clearCanvas" | "zoomIn" | "zoomOut" | "resetZoom" | "scrollBackToContent" | "zoomToFit" | "zoomToFitSelection" | "zoomToFitSelectionInViewport" | "changeFontFamily" | "changeTextAlign" | "changeVerticalAlign" | "toggleFullScreen" | "toggleShortcuts" | "group" | "ungroup" | "goToCollaborator" | "addToLibrary" | "changeRoundness" | "alignTop" | "alignBottom" | "alignLeft" | "alignRight" | "alignVerticallyCentered" | "alignHorizontallyCentered" | "distributeHorizontally" | "distributeVertically" | "flipHorizontal" | "flipVertical" | "viewMode" | "exportWithDarkMode" | "toggleTheme" | "increaseFontSize" | "decreaseFontSize" | "unbindText" | "hyperlink" | "bindText" | "unlockAllElements" | "toggleElementLock" | "toggleLinearEditor" | "toggleEraserTool" | "toggleHandTool" | "selectAllElementsInFrame" | "removeAllElementsFromFrame" | "updateFrameRendering" | "setFrameAsActiveTool" | "setEmbeddableAsActiveTool" | "createContainerFromText" | "wrapTextInContainer" | "commandPalette" | "autoResize" | "elementStats" | "searchMenu" | "copyElementLink" | "linkToElement" | "cropEditor" | "wrapSelectionInFrame" | "cycleThroughFrameChildren" | "toggleLassoTool" | "toggleShapeSwitch" | "togglePolygon";
|
|
18
18
|
export type PanelComponentProps = {
|
|
19
19
|
elements: readonly ExcalidrawElement[];
|
|
20
20
|
appState: AppState;
|