///
import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement } from "@excalidraw/element/types";
import type { AppClassProperties, AppState, Primitive } from "../types";
export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
export declare const getFormValue: (elements: readonly ExcalidrawElement[], appState: AppState, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
export declare const actionChangeStrokeColor: {
name: "changeStrokeColor";
label: string;
trackEvent: false;
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly, value: any) => any;
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
} & {
keyTest?: undefined;
};
export declare const actionChangeBackgroundColor: {
name: "changeBackgroundColor";
label: string;
trackEvent: false;
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly, value: any) => any;
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
} & {
keyTest?: undefined;
};
export declare const actionChangeFillStyle: {
name: "changeFillStyle";
label: string;
trackEvent: false;
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly, value: any, app: AppClassProperties) => {
elements: ExcalidrawElement[];
appState: {
currentItemFillStyle: any;
contextMenu: {
items: import("../components/ContextMenu").ContextMenuItems;
top: number;
left: number;
} | null;
showWelcomeScreen: boolean;
isLoading: boolean;
errorMessage: import("react").ReactNode;
activeEmbeddable: {
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
state: "hover" | "active";
} | null;
newElement: import("@excalidraw/element/types").NonDeleted | null;
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
multiElement: import("@excalidraw/element/types").NonDeleted | null;
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
isBindingEnabled: boolean;
startBoundElement: import("@excalidraw/element/types").NonDeleted | null;
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
frameToHighlight: import("@excalidraw/element/types").NonDeleted | null;
frameRendering: {
enabled: boolean;
name: boolean;
outline: boolean;
clip: boolean;
};
editingFrame: string | null;
elementsToHighlight: import("@excalidraw/element/types").NonDeleted[] | null;
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
editingLinearElement: LinearElementEditor | null;
activeTool: {
lastActiveTool: import("../types").ActiveTool | null;
locked: boolean;
fromSelection: boolean;
} & import("../types").ActiveTool;
penMode: boolean;
penDetected: boolean;
exportBackground: boolean;
exportEmbedScene: boolean;
exportWithDarkMode: boolean;
exportScale: number;
currentItemStrokeColor: string;
currentItemBackgroundColor: string;
currentItemStrokeWidth: number;
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
currentItemRoughness: number;
currentItemOpacity: number;
currentItemFontFamily: number;
currentItemFontSize: number;
currentItemTextAlign: string;
currentItemStartArrowhead: Arrowhead | null;
currentItemEndArrowhead: Arrowhead | null;
currentHoveredFontFamily: number | null;
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
currentItemArrowType: "round" | "sharp" | "elbow";
viewBackgroundColor: string;
scrollX: number;
scrollY: number;
cursorButton: "up" | "down";
scrolledOutside: boolean;
name: string | null;
isResizing: boolean;
isRotating: boolean;
zoom: Readonly<{
value: import("../types").NormalizedZoomValue;
}>;
openMenu: "canvas" | "shape" | null;
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
openSidebar: {
name: string;
tab?: string | undefined;
} | null;
openDialog: {
name: "imageExport" | "help" | "jsonExport";
} | {
name: "ttd";
tab: "text-to-diagram" | "mermaid";
} | {
name: "commandPalette";
} | {
name: "elementLinkSelector";
sourceElementId: string;
} | null;
defaultSidebarDockedPreference: boolean;
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
selectedElementIds: Readonly<{
[id: string]: true;
}>;
hoveredElementIds: Readonly<{
[id: string]: true;
}>;
previousSelectedElementIds: {
[id: string]: true;
};
selectedElementsAreBeingDragged: boolean;
shouldCacheIgnoreZoom: boolean;
toast: {
message: string;
closable?: boolean | undefined;
duration?: number | undefined;
} | null;
zenModeEnabled: boolean;
theme: import("@excalidraw/element/types").Theme;
gridSize: number;
gridStep: number;
gridModeEnabled: boolean;
viewModeEnabled: boolean;
selectedGroupIds: {
[groupId: string]: boolean;
};
editingGroupId: string | null;
width: number;
height: number;
offsetTop: number;
offsetLeft: number;
fileHandle: import("browser-fs-access").FileSystemHandle | null;
collaborators: Map | undefined;
username?: string | null | undefined;
userState?: import("@excalidraw/common").UserIdleState | undefined;
color?: {
background: string;
stroke: string;
} | undefined;
avatarUrl?: string | undefined;
id?: string | undefined;
socketId?: import("../types").SocketId | undefined;
isCurrentUser?: boolean | undefined;
isInCall?: boolean | undefined;
isSpeaking?: boolean | undefined;
isMuted?: boolean | undefined;
}>>;
stats: {
open: boolean;
panels: number;
};
currentChartType: import("@excalidraw/element/types").ChartType;
pasteDialog: {
shown: false;
data: null;
} | {
shown: true;
data: import("../charts").Spreadsheet;
};
pendingImageElementId: string | null;
showHyperlinkPopup: false | "editor" | "info";
selectedLinearElement: LinearElementEditor | null;
snapLines: readonly import("../snapping").SnapLine[];
originSnapOffset: {
x: number;
y: number;
} | null;
objectsSnapModeEnabled: boolean;
userToFollow: import("../types").UserToFollow | null;
followedBy: Set;
isCropping: boolean;
croppingElementId: string | null;
searchMatches: readonly {
id: string;
focus: boolean;
matchedLines: {
offsetX: number;
offsetY: number;
width: number;
height: number;
}[];
}[];
};
captureUpdate: "IMMEDIATELY";
};
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
} & {
keyTest?: undefined;
};
export declare const actionChangeStrokeWidth: {
name: "changeStrokeWidth";
label: string;
trackEvent: false;
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly, value: any) => {
elements: ExcalidrawElement[];
appState: {
currentItemStrokeWidth: any;
contextMenu: {
items: import("../components/ContextMenu").ContextMenuItems;
top: number;
left: number;
} | null;
showWelcomeScreen: boolean;
isLoading: boolean;
errorMessage: import("react").ReactNode;
activeEmbeddable: {
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
state: "hover" | "active";
} | null;
newElement: import("@excalidraw/element/types").NonDeleted | null;
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
multiElement: import("@excalidraw/element/types").NonDeleted | null;
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
isBindingEnabled: boolean;
startBoundElement: import("@excalidraw/element/types").NonDeleted | null;
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
frameToHighlight: import("@excalidraw/element/types").NonDeleted | null;
frameRendering: {
enabled: boolean;
name: boolean;
outline: boolean;
clip: boolean;
};
editingFrame: string | null;
elementsToHighlight: import("@excalidraw/element/types").NonDeleted[] | null;
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
editingLinearElement: LinearElementEditor | null;
activeTool: {
lastActiveTool: import("../types").ActiveTool | null;
locked: boolean;
fromSelection: boolean;
} & import("../types").ActiveTool;
penMode: boolean;
penDetected: boolean;
exportBackground: boolean;
exportEmbedScene: boolean;
exportWithDarkMode: boolean;
exportScale: number;
currentItemStrokeColor: string;
currentItemBackgroundColor: string;
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
currentItemRoughness: number;
currentItemOpacity: number;
currentItemFontFamily: number;
currentItemFontSize: number;
currentItemTextAlign: string;
currentItemStartArrowhead: Arrowhead | null;
currentItemEndArrowhead: Arrowhead | null;
currentHoveredFontFamily: number | null;
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
currentItemArrowType: "round" | "sharp" | "elbow";
viewBackgroundColor: string;
scrollX: number;
scrollY: number;
cursorButton: "up" | "down";
scrolledOutside: boolean;
name: string | null;
isResizing: boolean;
isRotating: boolean;
zoom: Readonly<{
value: import("../types").NormalizedZoomValue;
}>;
openMenu: "canvas" | "shape" | null;
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
openSidebar: {
name: string;
tab?: string | undefined;
} | null;
openDialog: {
name: "imageExport" | "help" | "jsonExport";
} | {
name: "ttd";
tab: "text-to-diagram" | "mermaid";
} | {
name: "commandPalette";
} | {
name: "elementLinkSelector";
sourceElementId: string;
} | null;
defaultSidebarDockedPreference: boolean;
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
selectedElementIds: Readonly<{
[id: string]: true;
}>;
hoveredElementIds: Readonly<{
[id: string]: true;
}>;
previousSelectedElementIds: {
[id: string]: true;
};
selectedElementsAreBeingDragged: boolean;
shouldCacheIgnoreZoom: boolean;
toast: {
message: string;
closable?: boolean | undefined;
duration?: number | undefined;
} | null;
zenModeEnabled: boolean;
theme: import("@excalidraw/element/types").Theme;
gridSize: number;
gridStep: number;
gridModeEnabled: boolean;
viewModeEnabled: boolean;
selectedGroupIds: {
[groupId: string]: boolean;
};
editingGroupId: string | null;
width: number;
height: number;
offsetTop: number;
offsetLeft: number;
fileHandle: import("browser-fs-access").FileSystemHandle | null;
collaborators: Map | undefined;
username?: string | null | undefined;
userState?: import("@excalidraw/common").UserIdleState | undefined;
color?: {
background: string;
stroke: string;
} | undefined;
avatarUrl?: string | undefined;
id?: string | undefined;
socketId?: import("../types").SocketId | undefined;
isCurrentUser?: boolean | undefined;
isInCall?: boolean | undefined;
isSpeaking?: boolean | undefined;
isMuted?: boolean | undefined;
}>>;
stats: {
open: boolean;
panels: number;
};
currentChartType: import("@excalidraw/element/types").ChartType;
pasteDialog: {
shown: false;
data: null;
} | {
shown: true;
data: import("../charts").Spreadsheet;
};
pendingImageElementId: string | null;
showHyperlinkPopup: false | "editor" | "info";
selectedLinearElement: LinearElementEditor | null;
snapLines: readonly import("../snapping").SnapLine[];
originSnapOffset: {
x: number;
y: number;
} | null;
objectsSnapModeEnabled: boolean;
userToFollow: import("../types").UserToFollow | null;
followedBy: Set;
isCropping: boolean;
croppingElementId: string | null;
searchMatches: readonly {
id: string;
focus: boolean;
matchedLines: {
offsetX: number;
offsetY: number;
width: number;
height: number;
}[];
}[];
};
captureUpdate: "IMMEDIATELY";
};
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
} & {
keyTest?: undefined;
};
export declare const actionChangeSloppiness: {
name: "changeSloppiness";
label: string;
trackEvent: false;
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly, value: any) => {
elements: ExcalidrawElement[];
appState: {
currentItemRoughness: any;
contextMenu: {
items: import("../components/ContextMenu").ContextMenuItems;
top: number;
left: number;
} | null;
showWelcomeScreen: boolean;
isLoading: boolean;
errorMessage: import("react").ReactNode;
activeEmbeddable: {
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
state: "hover" | "active";
} | null;
newElement: import("@excalidraw/element/types").NonDeleted | null;
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
multiElement: import("@excalidraw/element/types").NonDeleted | null;
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
isBindingEnabled: boolean;
startBoundElement: import("@excalidraw/element/types").NonDeleted | null;
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
frameToHighlight: import("@excalidraw/element/types").NonDeleted | null;
frameRendering: {
enabled: boolean;
name: boolean;
outline: boolean;
clip: boolean;
};
editingFrame: string | null;
elementsToHighlight: import("@excalidraw/element/types").NonDeleted[] | null;
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
editingLinearElement: LinearElementEditor | null;
activeTool: {
lastActiveTool: import("../types").ActiveTool | null;
locked: boolean;
fromSelection: boolean;
} & import("../types").ActiveTool;
penMode: boolean;
penDetected: boolean;
exportBackground: boolean;
exportEmbedScene: boolean;
exportWithDarkMode: boolean;
exportScale: number;
currentItemStrokeColor: string;
currentItemBackgroundColor: string;
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
currentItemStrokeWidth: number;
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
currentItemOpacity: number;
currentItemFontFamily: number;
currentItemFontSize: number;
currentItemTextAlign: string;
currentItemStartArrowhead: Arrowhead | null;
currentItemEndArrowhead: Arrowhead | null;
currentHoveredFontFamily: number | null;
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
currentItemArrowType: "round" | "sharp" | "elbow";
viewBackgroundColor: string;
scrollX: number;
scrollY: number;
cursorButton: "up" | "down";
scrolledOutside: boolean;
name: string | null;
isResizing: boolean;
isRotating: boolean;
zoom: Readonly<{
value: import("../types").NormalizedZoomValue;
}>;
openMenu: "canvas" | "shape" | null;
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
openSidebar: {
name: string;
tab?: string | undefined;
} | null;
openDialog: {
name: "imageExport" | "help" | "jsonExport";
} | {
name: "ttd";
tab: "text-to-diagram" | "mermaid";
} | {
name: "commandPalette";
} | {
name: "elementLinkSelector";
sourceElementId: string;
} | null;
defaultSidebarDockedPreference: boolean;
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
selectedElementIds: Readonly<{
[id: string]: true;
}>;
hoveredElementIds: Readonly<{
[id: string]: true;
}>;
previousSelectedElementIds: {
[id: string]: true;
};
selectedElementsAreBeingDragged: boolean;
shouldCacheIgnoreZoom: boolean;
toast: {
message: string;
closable?: boolean | undefined;
duration?: number | undefined;
} | null;
zenModeEnabled: boolean;
theme: import("@excalidraw/element/types").Theme;
gridSize: number;
gridStep: number;
gridModeEnabled: boolean;
viewModeEnabled: boolean;
selectedGroupIds: {
[groupId: string]: boolean;
};
editingGroupId: string | null;
width: number;
height: number;
offsetTop: number;
offsetLeft: number;
fileHandle: import("browser-fs-access").FileSystemHandle | null;
collaborators: Map | undefined;
username?: string | null | undefined;
userState?: import("@excalidraw/common").UserIdleState | undefined;
color?: {
background: string;
stroke: string;
} | undefined;
avatarUrl?: string | undefined;
id?: string | undefined;
socketId?: import("../types").SocketId | undefined;
isCurrentUser?: boolean | undefined;
isInCall?: boolean | undefined;
isSpeaking?: boolean | undefined;
isMuted?: boolean | undefined;
}>>;
stats: {
open: boolean;
panels: number;
};
currentChartType: import("@excalidraw/element/types").ChartType;
pasteDialog: {
shown: false;
data: null;
} | {
shown: true;
data: import("../charts").Spreadsheet;
};
pendingImageElementId: string | null;
showHyperlinkPopup: false | "editor" | "info";
selectedLinearElement: LinearElementEditor | null;
snapLines: readonly import("../snapping").SnapLine[];
originSnapOffset: {
x: number;
y: number;
} | null;
objectsSnapModeEnabled: boolean;
userToFollow: import("../types").UserToFollow | null;
followedBy: Set;
isCropping: boolean;
croppingElementId: string | null;
searchMatches: readonly {
id: string;
focus: boolean;
matchedLines: {
offsetX: number;
offsetY: number;
width: number;
height: number;
}[];
}[];
};
captureUpdate: "IMMEDIATELY";
};
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
} & {
keyTest?: undefined;
};
export declare const actionChangeStrokeStyle: {
name: "changeStrokeStyle";
label: string;
trackEvent: false;
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly, value: any) => {
elements: ExcalidrawElement[];
appState: {
currentItemStrokeStyle: any;
contextMenu: {
items: import("../components/ContextMenu").ContextMenuItems;
top: number;
left: number;
} | null;
showWelcomeScreen: boolean;
isLoading: boolean;
errorMessage: import("react").ReactNode;
activeEmbeddable: {
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
state: "hover" | "active";
} | null;
newElement: import("@excalidraw/element/types").NonDeleted | null;
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
multiElement: import("@excalidraw/element/types").NonDeleted | null;
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
isBindingEnabled: boolean;
startBoundElement: import("@excalidraw/element/types").NonDeleted | null;
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
frameToHighlight: import("@excalidraw/element/types").NonDeleted | null;
frameRendering: {
enabled: boolean;
name: boolean;
outline: boolean;
clip: boolean;
};
editingFrame: string | null;
elementsToHighlight: import("@excalidraw/element/types").NonDeleted[] | null;
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
editingLinearElement: LinearElementEditor | null;
activeTool: {
lastActiveTool: import("../types").ActiveTool | null;
locked: boolean;
fromSelection: boolean;
} & import("../types").ActiveTool;
penMode: boolean;
penDetected: boolean;
exportBackground: boolean;
exportEmbedScene: boolean;
exportWithDarkMode: boolean;
exportScale: number;
currentItemStrokeColor: string;
currentItemBackgroundColor: string;
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
currentItemStrokeWidth: number;
currentItemRoughness: number;
currentItemOpacity: number;
currentItemFontFamily: number;
currentItemFontSize: number;
currentItemTextAlign: string;
currentItemStartArrowhead: Arrowhead | null;
currentItemEndArrowhead: Arrowhead | null;
currentHoveredFontFamily: number | null;
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
currentItemArrowType: "round" | "sharp" | "elbow";
viewBackgroundColor: string;
scrollX: number;
scrollY: number;
cursorButton: "up" | "down";
scrolledOutside: boolean;
name: string | null;
isResizing: boolean;
isRotating: boolean;
zoom: Readonly<{
value: import("../types").NormalizedZoomValue;
}>;
openMenu: "canvas" | "shape" | null;
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
openSidebar: {
name: string;
tab?: string | undefined;
} | null;
openDialog: {
name: "imageExport" | "help" | "jsonExport";
} | {
name: "ttd";
tab: "text-to-diagram" | "mermaid";
} | {
name: "commandPalette";
} | {
name: "elementLinkSelector";
sourceElementId: string;
} | null;
defaultSidebarDockedPreference: boolean;
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
selectedElementIds: Readonly<{
[id: string]: true;
}>;
hoveredElementIds: Readonly<{
[id: string]: true;
}>;
previousSelectedElementIds: {
[id: string]: true;
};
selectedElementsAreBeingDragged: boolean;
shouldCacheIgnoreZoom: boolean;
toast: {
message: string;
closable?: boolean | undefined;
duration?: number | undefined;
} | null;
zenModeEnabled: boolean;
theme: import("@excalidraw/element/types").Theme;
gridSize: number;
gridStep: number;
gridModeEnabled: boolean;
viewModeEnabled: boolean;
selectedGroupIds: {
[groupId: string]: boolean;
};
editingGroupId: string | null;
width: number;
height: number;
offsetTop: number;
offsetLeft: number;
fileHandle: import("browser-fs-access").FileSystemHandle | null;
collaborators: Map | undefined;
username?: string | null | undefined;
userState?: import("@excalidraw/common").UserIdleState | undefined;
color?: {
background: string;
stroke: string;
} | undefined;
avatarUrl?: string | undefined;
id?: string | undefined;
socketId?: import("../types").SocketId | undefined;
isCurrentUser?: boolean | undefined;
isInCall?: boolean | undefined;
isSpeaking?: boolean | undefined;
isMuted?: boolean | undefined;
}>>;
stats: {
open: boolean;
panels: number;
};
currentChartType: import("@excalidraw/element/types").ChartType;
pasteDialog: {
shown: false;
data: null;
} | {
shown: true;
data: import("../charts").Spreadsheet;
};
pendingImageElementId: string | null;
showHyperlinkPopup: false | "editor" | "info";
selectedLinearElement: LinearElementEditor | null;
snapLines: readonly import("../snapping").SnapLine[];
originSnapOffset: {
x: number;
y: number;
} | null;
objectsSnapModeEnabled: boolean;
userToFollow: import("../types").UserToFollow | null;
followedBy: Set;
isCropping: boolean;
croppingElementId: string | null;
searchMatches: readonly {
id: string;
focus: boolean;
matchedLines: {
offsetX: number;
offsetY: number;
width: number;
height: number;
}[];
}[];
};
captureUpdate: "IMMEDIATELY";
};
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
} & {
keyTest?: undefined;
};
export declare const actionChangeOpacity: {
name: "changeOpacity";
label: string;
trackEvent: false;
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly, value: any) => {
elements: ExcalidrawElement[];
appState: {
currentItemOpacity: any;
contextMenu: {
items: import("../components/ContextMenu").ContextMenuItems;
top: number;
left: number;
} | null;
showWelcomeScreen: boolean;
isLoading: boolean;
errorMessage: import("react").ReactNode;
activeEmbeddable: {
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
state: "hover" | "active";
} | null;
newElement: import("@excalidraw/element/types").NonDeleted | null;
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
multiElement: import("@excalidraw/element/types").NonDeleted | null;
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
isBindingEnabled: boolean;
startBoundElement: import("@excalidraw/element/types").NonDeleted | null;
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
frameToHighlight: import("@excalidraw/element/types").NonDeleted | null;
frameRendering: {
enabled: boolean;
name: boolean;
outline: boolean;
clip: boolean;
};
editingFrame: string | null;
elementsToHighlight: import("@excalidraw/element/types").NonDeleted[] | null;
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
editingLinearElement: LinearElementEditor | null;
activeTool: {
lastActiveTool: import("../types").ActiveTool | null;
locked: boolean;
fromSelection: boolean;
} & import("../types").ActiveTool;
penMode: boolean;
penDetected: boolean;
exportBackground: boolean;
exportEmbedScene: boolean;
exportWithDarkMode: boolean;
exportScale: number;
currentItemStrokeColor: string;
currentItemBackgroundColor: string;
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
currentItemStrokeWidth: number;
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
currentItemRoughness: number;
currentItemFontFamily: number;
currentItemFontSize: number;
currentItemTextAlign: string;
currentItemStartArrowhead: Arrowhead | null;
currentItemEndArrowhead: Arrowhead | null;
currentHoveredFontFamily: number | null;
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
currentItemArrowType: "round" | "sharp" | "elbow";
viewBackgroundColor: string;
scrollX: number;
scrollY: number;
cursorButton: "up" | "down";
scrolledOutside: boolean;
name: string | null;
isResizing: boolean;
isRotating: boolean;
zoom: Readonly<{
value: import("../types").NormalizedZoomValue;
}>;
openMenu: "canvas" | "shape" | null;
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
openSidebar: {
name: string;
tab?: string | undefined;
} | null;
openDialog: {
name: "imageExport" | "help" | "jsonExport";
} | {
name: "ttd";
tab: "text-to-diagram" | "mermaid";
} | {
name: "commandPalette";
} | {
name: "elementLinkSelector";
sourceElementId: string;
} | null;
defaultSidebarDockedPreference: boolean;
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
selectedElementIds: Readonly<{
[id: string]: true;
}>;
hoveredElementIds: Readonly<{
[id: string]: true;
}>;
previousSelectedElementIds: {
[id: string]: true;
};
selectedElementsAreBeingDragged: boolean;
shouldCacheIgnoreZoom: boolean;
toast: {
message: string;
closable?: boolean | undefined;
duration?: number | undefined;
} | null;
zenModeEnabled: boolean;
theme: import("@excalidraw/element/types").Theme;
gridSize: number;
gridStep: number;
gridModeEnabled: boolean;
viewModeEnabled: boolean;
selectedGroupIds: {
[groupId: string]: boolean;
};
editingGroupId: string | null;
width: number;
height: number;
offsetTop: number;
offsetLeft: number;
fileHandle: import("browser-fs-access").FileSystemHandle | null;
collaborators: Map | undefined;
username?: string | null | undefined;
userState?: import("@excalidraw/common").UserIdleState | undefined;
color?: {
background: string;
stroke: string;
} | undefined;
avatarUrl?: string | undefined;
id?: string | undefined;
socketId?: import("../types").SocketId | undefined;
isCurrentUser?: boolean | undefined;
isInCall?: boolean | undefined;
isSpeaking?: boolean | undefined;
isMuted?: boolean | undefined;
}>>;
stats: {
open: boolean;
panels: number;
};
currentChartType: import("@excalidraw/element/types").ChartType;
pasteDialog: {
shown: false;
data: null;
} | {
shown: true;
data: import("../charts").Spreadsheet;
};
pendingImageElementId: string | null;
showHyperlinkPopup: false | "editor" | "info";
selectedLinearElement: LinearElementEditor | null;
snapLines: readonly import("../snapping").SnapLine[];
originSnapOffset: {
x: number;
y: number;
} | null;
objectsSnapModeEnabled: boolean;
userToFollow: import("../types").UserToFollow | null;
followedBy: Set;
isCropping: boolean;
croppingElementId: string | null;
searchMatches: readonly {
id: string;
focus: boolean;
matchedLines: {
offsetX: number;
offsetY: number;
width: number;
height: number;
}[];
}[];
};
captureUpdate: "IMMEDIATELY";
};
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
} & {
keyTest?: undefined;
};
export declare const actionChangeFontSize: {
name: "changeFontSize";
label: string;
trackEvent: false;
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly, value: any, app: AppClassProperties) => {
elements: ExcalidrawElement[];
appState: {
currentItemFontSize: number;
contextMenu: {
items: import("../components/ContextMenu").ContextMenuItems;
top: number;
left: number;
} | null;
showWelcomeScreen: boolean;
isLoading: boolean;
errorMessage: import("react").ReactNode;
activeEmbeddable: {
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
state: "hover" | "active";
} | null;
newElement: import("@excalidraw/element/types").NonDeleted | null;
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
multiElement: import("@excalidraw/element/types").NonDeleted | null;
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
isBindingEnabled: boolean;
startBoundElement: import("@excalidraw/element/types").NonDeleted | null;
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
frameToHighlight: import("@excalidraw/element/types").NonDeleted | null;
frameRendering: {
enabled: boolean;
name: boolean;
outline: boolean;
clip: boolean;
};
editingFrame: string | null;
elementsToHighlight: import("@excalidraw/element/types").NonDeleted[] | null;
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
editingLinearElement: LinearElementEditor | null;
activeTool: {
lastActiveTool: import("../types").ActiveTool | null;
locked: boolean;
fromSelection: boolean;
} & import("../types").ActiveTool;
penMode: boolean;
penDetected: boolean;
exportBackground: boolean;
exportEmbedScene: boolean;
exportWithDarkMode: boolean;
exportScale: number;
currentItemStrokeColor: string;
currentItemBackgroundColor: string;
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
currentItemStrokeWidth: number;
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
currentItemRoughness: number;
currentItemOpacity: number;
currentItemFontFamily: number;
currentItemTextAlign: string;
currentItemStartArrowhead: Arrowhead | null;
currentItemEndArrowhead: Arrowhead | null;
currentHoveredFontFamily: number | null;
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
currentItemArrowType: "round" | "sharp" | "elbow";
viewBackgroundColor: string;
scrollX: number;
scrollY: number;
cursorButton: "up" | "down";
scrolledOutside: boolean;
name: string | null;
isResizing: boolean;
isRotating: boolean;
zoom: Readonly<{
value: import("../types").NormalizedZoomValue;
}>;
openMenu: "canvas" | "shape" | null;
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
openSidebar: {
name: string;
tab?: string | undefined;
} | null;
openDialog: {
name: "imageExport" | "help" | "jsonExport";
} | {
name: "ttd";
tab: "text-to-diagram" | "mermaid";
} | {
name: "commandPalette";
} | {
name: "elementLinkSelector";
sourceElementId: string;
} | null;
defaultSidebarDockedPreference: boolean;
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
selectedElementIds: Readonly<{
[id: string]: true;
}>;
hoveredElementIds: Readonly<{
[id: string]: true;
}>;
previousSelectedElementIds: {
[id: string]: true;
};
selectedElementsAreBeingDragged: boolean;
shouldCacheIgnoreZoom: boolean;
toast: {
message: string;
closable?: boolean | undefined;
duration?: number | undefined;
} | null;
zenModeEnabled: boolean;
theme: import("@excalidraw/element/types").Theme;
gridSize: number;
gridStep: number;
gridModeEnabled: boolean;
viewModeEnabled: boolean;
selectedGroupIds: {
[groupId: string]: boolean;
};
editingGroupId: string | null;
width: number;
height: number;
offsetTop: number;
offsetLeft: number;
fileHandle: import("browser-fs-access").FileSystemHandle | null;
collaborators: Map | undefined;
username?: string | null | undefined;
userState?: import("@excalidraw/common").UserIdleState | undefined;
color?: {
background: string;
stroke: string;
} | undefined;
avatarUrl?: string | undefined;
id?: string | undefined;
socketId?: import("../types").SocketId | undefined;
isCurrentUser?: boolean | undefined;
isInCall?: boolean | undefined;
isSpeaking?: boolean | undefined;
isMuted?: boolean | undefined;
}>>;
stats: {
open: boolean;
panels: number;
};
currentChartType: import("@excalidraw/element/types").ChartType;
pasteDialog: {
shown: false;
data: null;
} | {
shown: true;
data: import("../charts").Spreadsheet;
};
pendingImageElementId: string | null;
showHyperlinkPopup: false | "editor" | "info";
selectedLinearElement: LinearElementEditor | null;
snapLines: readonly import("../snapping").SnapLine[];
originSnapOffset: {
x: number;
y: number;
} | null;
objectsSnapModeEnabled: boolean;
userToFollow: import("../types").UserToFollow | null;
followedBy: Set;
isCropping: boolean;
croppingElementId: string | null;
searchMatches: readonly {
id: string;
focus: boolean;
matchedLines: {
offsetX: number;
offsetY: number;
width: number;
height: number;
}[];
}[];
};
captureUpdate: "IMMEDIATELY";
};
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
} & {
keyTest?: undefined;
};
export declare const actionDecreaseFontSize: {
name: "decreaseFontSize";
label: string;
icon: import("react/jsx-runtime").JSX.Element;
trackEvent: false;
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly, value: any, app: AppClassProperties) => {
elements: ExcalidrawElement[];
appState: {
currentItemFontSize: number;
contextMenu: {
items: import("../components/ContextMenu").ContextMenuItems;
top: number;
left: number;
} | null;
showWelcomeScreen: boolean;
isLoading: boolean;
errorMessage: import("react").ReactNode;
activeEmbeddable: {
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
state: "hover" | "active";
} | null;
newElement: import("@excalidraw/element/types").NonDeleted | null;
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
multiElement: import("@excalidraw/element/types").NonDeleted | null;
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
isBindingEnabled: boolean;
startBoundElement: import("@excalidraw/element/types").NonDeleted | null;
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
frameToHighlight: import("@excalidraw/element/types").NonDeleted | null;
frameRendering: {
enabled: boolean;
name: boolean;
outline: boolean;
clip: boolean;
};
editingFrame: string | null;
elementsToHighlight: import("@excalidraw/element/types").NonDeleted[] | null;
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
editingLinearElement: LinearElementEditor | null;
activeTool: {
lastActiveTool: import("../types").ActiveTool | null;
locked: boolean;
fromSelection: boolean;
} & import("../types").ActiveTool;
penMode: boolean;
penDetected: boolean;
exportBackground: boolean;
exportEmbedScene: boolean;
exportWithDarkMode: boolean;
exportScale: number;
currentItemStrokeColor: string;
currentItemBackgroundColor: string;
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
currentItemStrokeWidth: number;
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
currentItemRoughness: number;
currentItemOpacity: number;
currentItemFontFamily: number;
currentItemTextAlign: string;
currentItemStartArrowhead: Arrowhead | null;
currentItemEndArrowhead: Arrowhead | null;
currentHoveredFontFamily: number | null;
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
currentItemArrowType: "round" | "sharp" | "elbow";
viewBackgroundColor: string;
scrollX: number;
scrollY: number;
cursorButton: "up" | "down";
scrolledOutside: boolean;
name: string | null;
isResizing: boolean;
isRotating: boolean;
zoom: Readonly<{
value: import("../types").NormalizedZoomValue;
}>;
openMenu: "canvas" | "shape" | null;
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
openSidebar: {
name: string;
tab?: string | undefined;
} | null;
openDialog: {
name: "imageExport" | "help" | "jsonExport";
} | {
name: "ttd";
tab: "text-to-diagram" | "mermaid";
} | {
name: "commandPalette";
} | {
name: "elementLinkSelector";
sourceElementId: string;
} | null;
defaultSidebarDockedPreference: boolean;
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
selectedElementIds: Readonly<{
[id: string]: true;
}>;
hoveredElementIds: Readonly<{
[id: string]: true;
}>;
previousSelectedElementIds: {
[id: string]: true;
};
selectedElementsAreBeingDragged: boolean;
shouldCacheIgnoreZoom: boolean;
toast: {
message: string;
closable?: boolean | undefined;
duration?: number | undefined;
} | null;
zenModeEnabled: boolean;
theme: import("@excalidraw/element/types").Theme;
gridSize: number;
gridStep: number;
gridModeEnabled: boolean;
viewModeEnabled: boolean;
selectedGroupIds: {
[groupId: string]: boolean;
};
editingGroupId: string | null;
width: number;
height: number;
offsetTop: number;
offsetLeft: number;
fileHandle: import("browser-fs-access").FileSystemHandle | null;
collaborators: Map | undefined;
username?: string | null | undefined;
userState?: import("@excalidraw/common").UserIdleState | undefined;
color?: {
background: string;
stroke: string;
} | undefined;
avatarUrl?: string | undefined;
id?: string | undefined;
socketId?: import("../types").SocketId | undefined;
isCurrentUser?: boolean | undefined;
isInCall?: boolean | undefined;
isSpeaking?: boolean | undefined;
isMuted?: boolean | undefined;
}>>;
stats: {
open: boolean;
panels: number;
};
currentChartType: import("@excalidraw/element/types").ChartType;
pasteDialog: {
shown: false;
data: null;
} | {
shown: true;
data: import("../charts").Spreadsheet;
};
pendingImageElementId: string | null;
showHyperlinkPopup: false | "editor" | "info";
selectedLinearElement: LinearElementEditor | null;
snapLines: readonly import("../snapping").SnapLine[];
originSnapOffset: {
x: number;
y: number;
} | null;
objectsSnapModeEnabled: boolean;
userToFollow: import("../types").UserToFollow | null;
followedBy: Set;
isCropping: boolean;
croppingElementId: string | null;
searchMatches: readonly {
id: string;
focus: boolean;
matchedLines: {
offsetX: number;
offsetY: number;
width: number;
height: number;
}[];
}[];
};
captureUpdate: "IMMEDIATELY";
};
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent) => boolean;
} & {
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent) => boolean) | undefined;
};
export declare const actionIncreaseFontSize: {
name: "increaseFontSize";
label: string;
icon: import("react/jsx-runtime").JSX.Element;
trackEvent: false;
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly, value: any, app: AppClassProperties) => {
elements: ExcalidrawElement[];
appState: {
currentItemFontSize: number;
contextMenu: {
items: import("../components/ContextMenu").ContextMenuItems;
top: number;
left: number;
} | null;
showWelcomeScreen: boolean;
isLoading: boolean;
errorMessage: import("react").ReactNode;
activeEmbeddable: {
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
state: "hover" | "active";
} | null;
newElement: import("@excalidraw/element/types").NonDeleted | null;
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
multiElement: import("@excalidraw/element/types").NonDeleted | null;
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
isBindingEnabled: boolean;
startBoundElement: import("@excalidraw/element/types").NonDeleted | null;
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
frameToHighlight: import("@excalidraw/element/types").NonDeleted | null;
frameRendering: {
enabled: boolean;
name: boolean;
outline: boolean;
clip: boolean;
};
editingFrame: string | null;
elementsToHighlight: import("@excalidraw/element/types").NonDeleted[] | null;
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
editingLinearElement: LinearElementEditor | null;
activeTool: {
lastActiveTool: import("../types").ActiveTool | null;
locked: boolean;
fromSelection: boolean;
} & import("../types").ActiveTool;
penMode: boolean;
penDetected: boolean;
exportBackground: boolean;
exportEmbedScene: boolean;
exportWithDarkMode: boolean;
exportScale: number;
currentItemStrokeColor: string;
currentItemBackgroundColor: string;
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
currentItemStrokeWidth: number;
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
currentItemRoughness: number;
currentItemOpacity: number;
currentItemFontFamily: number;
currentItemTextAlign: string;
currentItemStartArrowhead: Arrowhead | null;
currentItemEndArrowhead: Arrowhead | null;
currentHoveredFontFamily: number | null;
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
currentItemArrowType: "round" | "sharp" | "elbow";
viewBackgroundColor: string;
scrollX: number;
scrollY: number;
cursorButton: "up" | "down";
scrolledOutside: boolean;
name: string | null;
isResizing: boolean;
isRotating: boolean;
zoom: Readonly<{
value: import("../types").NormalizedZoomValue;
}>;
openMenu: "canvas" | "shape" | null;
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
openSidebar: {
name: string;
tab?: string | undefined;
} | null;
openDialog: {
name: "imageExport" | "help" | "jsonExport";
} | {
name: "ttd";
tab: "text-to-diagram" | "mermaid";
} | {
name: "commandPalette";
} | {
name: "elementLinkSelector";
sourceElementId: string;
} | null;
defaultSidebarDockedPreference: boolean;
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
selectedElementIds: Readonly<{
[id: string]: true;
}>;
hoveredElementIds: Readonly<{
[id: string]: true;
}>;
previousSelectedElementIds: {
[id: string]: true;
};
selectedElementsAreBeingDragged: boolean;
shouldCacheIgnoreZoom: boolean;
toast: {
message: string;
closable?: boolean | undefined;
duration?: number | undefined;
} | null;
zenModeEnabled: boolean;
theme: import("@excalidraw/element/types").Theme;
gridSize: number;
gridStep: number;
gridModeEnabled: boolean;
viewModeEnabled: boolean;
selectedGroupIds: {
[groupId: string]: boolean;
};
editingGroupId: string | null;
width: number;
height: number;
offsetTop: number;
offsetLeft: number;
fileHandle: import("browser-fs-access").FileSystemHandle | null;
collaborators: Map | undefined;
username?: string | null | undefined;
userState?: import("@excalidraw/common").UserIdleState | undefined;
color?: {
background: string;
stroke: string;
} | undefined;
avatarUrl?: string | undefined;
id?: string | undefined;
socketId?: import("../types").SocketId | undefined;
isCurrentUser?: boolean | undefined;
isInCall?: boolean | undefined;
isSpeaking?: boolean | undefined;
isMuted?: boolean | undefined;
}>>;
stats: {
open: boolean;
panels: number;
};
currentChartType: import("@excalidraw/element/types").ChartType;
pasteDialog: {
shown: false;
data: null;
} | {
shown: true;
data: import("../charts").Spreadsheet;
};
pendingImageElementId: string | null;
showHyperlinkPopup: false | "editor" | "info";
selectedLinearElement: LinearElementEditor | null;
snapLines: readonly import("../snapping").SnapLine[];
originSnapOffset: {
x: number;
y: number;
} | null;
objectsSnapModeEnabled: boolean;
userToFollow: import("../types").UserToFollow | null;
followedBy: Set;
isCropping: boolean;
croppingElementId: string | null;
searchMatches: readonly {
id: string;
focus: boolean;
matchedLines: {
offsetX: number;
offsetY: number;
width: number;
height: number;
}[];
}[];
};
captureUpdate: "IMMEDIATELY";
};
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent) => boolean;
} & {
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent) => boolean) | undefined;
};
export declare const actionChangeFontFamily: {
name: "changeFontFamily";
label: string;
trackEvent: false;
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly, value: any, app: AppClassProperties) => {
appState: {
currentItemFontFamily: number;
currentHoveredFontFamily: number | null;
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
contextMenu: {
items: import("../components/ContextMenu").ContextMenuItems;
top: number;
left: number;
} | null;
showWelcomeScreen: boolean;
isLoading: boolean;
errorMessage: import("react").ReactNode;
activeEmbeddable: {
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
state: "hover" | "active";
} | null;
newElement: import("@excalidraw/element/types").NonDeleted | null;
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
multiElement: import("@excalidraw/element/types").NonDeleted | null;
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
isBindingEnabled: boolean;
startBoundElement: import("@excalidraw/element/types").NonDeleted | null;
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
frameToHighlight: import("@excalidraw/element/types").NonDeleted | null;
frameRendering: {
enabled: boolean;
name: boolean;
outline: boolean;
clip: boolean;
};
editingFrame: string | null;
elementsToHighlight: import("@excalidraw/element/types").NonDeleted[] | null;
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
editingLinearElement: LinearElementEditor | null;
activeTool: {
lastActiveTool: import("../types").ActiveTool | null;
locked: boolean;
fromSelection: boolean;
} & import("../types").ActiveTool;
penMode: boolean;
penDetected: boolean;
exportBackground: boolean;
exportEmbedScene: boolean;
exportWithDarkMode: boolean;
exportScale: number;
currentItemStrokeColor: string;
currentItemBackgroundColor: string;
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
currentItemStrokeWidth: number;
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
currentItemRoughness: number;
currentItemOpacity: number;
currentItemFontSize: number;
currentItemTextAlign: string;
currentItemStartArrowhead: Arrowhead | null;
currentItemEndArrowhead: Arrowhead | null;
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
currentItemArrowType: "round" | "sharp" | "elbow";
viewBackgroundColor: string;
scrollX: number;
scrollY: number;
cursorButton: "up" | "down";
scrolledOutside: boolean;
name: string | null;
isResizing: boolean;
isRotating: boolean;
zoom: Readonly<{
value: import("../types").NormalizedZoomValue;
}>;
openMenu: "canvas" | "shape" | null;
openSidebar: {
name: string;
tab?: string | undefined;
} | null;
openDialog: {
name: "imageExport" | "help" | "jsonExport";
} | {
name: "ttd";
tab: "text-to-diagram" | "mermaid";
} | {
name: "commandPalette";
} | {
name: "elementLinkSelector";
sourceElementId: string;
} | null;
defaultSidebarDockedPreference: boolean;
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
selectedElementIds: Readonly<{
[id: string]: true;
}>;
hoveredElementIds: Readonly<{
[id: string]: true;
}>;
previousSelectedElementIds: {
[id: string]: true;
};
selectedElementsAreBeingDragged: boolean;
shouldCacheIgnoreZoom: boolean;
toast: {
message: string;
closable?: boolean | undefined;
duration?: number | undefined;
} | null;
zenModeEnabled: boolean;
theme: import("@excalidraw/element/types").Theme;
gridSize: number;
gridStep: number;
gridModeEnabled: boolean;
viewModeEnabled: boolean;
selectedGroupIds: {
[groupId: string]: boolean;
};
editingGroupId: string | null;
width: number;
height: number;
offsetTop: number;
offsetLeft: number;
fileHandle: import("browser-fs-access").FileSystemHandle | null;
collaborators: Map | undefined;
username?: string | null | undefined;
userState?: import("@excalidraw/common").UserIdleState | undefined;
color?: {
background: string;
stroke: string;
} | undefined;
avatarUrl?: string | undefined;
id?: string | undefined;
socketId?: import("../types").SocketId | undefined;
isCurrentUser?: boolean | undefined;
isInCall?: boolean | undefined;
isSpeaking?: boolean | undefined;
isMuted?: boolean | undefined;
}>>;
stats: {
open: boolean;
panels: number;
};
currentChartType: import("@excalidraw/element/types").ChartType;
pasteDialog: {
shown: false;
data: null;
} | {
shown: true;
data: import("../charts").Spreadsheet;
};
pendingImageElementId: string | null;
showHyperlinkPopup: false | "editor" | "info";
selectedLinearElement: LinearElementEditor | null;
snapLines: readonly import("../snapping").SnapLine[];
originSnapOffset: {
x: number;
y: number;
} | null;
objectsSnapModeEnabled: boolean;
userToFollow: import("../types").UserToFollow | null;
followedBy: Set;
isCropping: boolean;
croppingElementId: string | null;
searchMatches: readonly {
id: string;
focus: boolean;
matchedLines: {
offsetX: number;
offsetY: number;
width: number;
height: number;
}[];
}[];
};
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
} | {
elements: ExcalidrawElement[];
appState: {
currentItemFontFamily: number;
currentHoveredFontFamily: number | null;
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
contextMenu: {
items: import("../components/ContextMenu").ContextMenuItems;
top: number;
left: number;
} | null;
showWelcomeScreen: boolean;
isLoading: boolean;
errorMessage: import("react").ReactNode;
activeEmbeddable: {
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
state: "hover" | "active";
} | null;
newElement: import("@excalidraw/element/types").NonDeleted | null;
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
multiElement: import("@excalidraw/element/types").NonDeleted | null;
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
isBindingEnabled: boolean;
startBoundElement: import("@excalidraw/element/types").NonDeleted | null;
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
frameToHighlight: import("@excalidraw/element/types").NonDeleted | null;
frameRendering: {
enabled: boolean;
name: boolean;
outline: boolean;
clip: boolean;
};
editingFrame: string | null;
elementsToHighlight: import("@excalidraw/element/types").NonDeleted[] | null;
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
editingLinearElement: LinearElementEditor | null;
activeTool: {
lastActiveTool: import("../types").ActiveTool | null;
locked: boolean;
fromSelection: boolean;
} & import("../types").ActiveTool;
penMode: boolean;
penDetected: boolean;
exportBackground: boolean;
exportEmbedScene: boolean;
exportWithDarkMode: boolean;
exportScale: number;
currentItemStrokeColor: string;
currentItemBackgroundColor: string;
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
currentItemStrokeWidth: number;
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
currentItemRoughness: number;
currentItemOpacity: number;
currentItemFontSize: number;
currentItemTextAlign: string;
currentItemStartArrowhead: Arrowhead | null;
currentItemEndArrowhead: Arrowhead | null;
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
currentItemArrowType: "round" | "sharp" | "elbow";
viewBackgroundColor: string;
scrollX: number;
scrollY: number;
cursorButton: "up" | "down";
scrolledOutside: boolean;
name: string | null;
isResizing: boolean;
isRotating: boolean;
zoom: Readonly<{
value: import("../types").NormalizedZoomValue;
}>;
openMenu: "canvas" | "shape" | null;
openSidebar: {
name: string;
tab?: string | undefined;
} | null;
openDialog: {
name: "imageExport" | "help" | "jsonExport";
} | {
name: "ttd";
tab: "text-to-diagram" | "mermaid";
} | {
name: "commandPalette";
} | {
name: "elementLinkSelector";
sourceElementId: string;
} | null;
defaultSidebarDockedPreference: boolean;
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
selectedElementIds: Readonly<{
[id: string]: true;
}>;
hoveredElementIds: Readonly<{
[id: string]: true;
}>;
previousSelectedElementIds: {
[id: string]: true;
};
selectedElementsAreBeingDragged: boolean;
shouldCacheIgnoreZoom: boolean;
toast: {
message: string;
closable?: boolean | undefined;
duration?: number | undefined;
} | null;
zenModeEnabled: boolean;
theme: import("@excalidraw/element/types").Theme;
gridSize: number;
gridStep: number;
gridModeEnabled: boolean;
viewModeEnabled: boolean;
selectedGroupIds: {
[groupId: string]: boolean;
};
editingGroupId: string | null;
width: number;
height: number;
offsetTop: number;
offsetLeft: number;
fileHandle: import("browser-fs-access").FileSystemHandle | null;
collaborators: Map | undefined;
username?: string | null | undefined;
userState?: import("@excalidraw/common").UserIdleState | undefined;
color?: {
background: string;
stroke: string;
} | undefined;
avatarUrl?: string | undefined;
id?: string | undefined;
socketId?: import("../types").SocketId | undefined;
isCurrentUser?: boolean | undefined;
isInCall?: boolean | undefined;
isSpeaking?: boolean | undefined;
isMuted?: boolean | undefined;
}>>;
stats: {
open: boolean;
panels: number;
};
currentChartType: import("@excalidraw/element/types").ChartType;
pasteDialog: {
shown: false;
data: null;
} | {
shown: true;
data: import("../charts").Spreadsheet;
};
pendingImageElementId: string | null;
showHyperlinkPopup: false | "editor" | "info";
selectedLinearElement: LinearElementEditor | null;
snapLines: readonly import("../snapping").SnapLine[];
originSnapOffset: {
x: number;
y: number;
} | null;
objectsSnapModeEnabled: boolean;
userToFollow: import("../types").UserToFollow | null;
followedBy: Set;
isCropping: boolean;
croppingElementId: string | null;
searchMatches: readonly {
id: string;
focus: boolean;
matchedLines: {
offsetX: number;
offsetY: number;
width: number;
height: number;
}[];
}[];
};
captureUpdate: "NEVER";
};
PanelComponent: ({ elements, appState, app, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
} & {
keyTest?: undefined;
};
export declare const actionChangeTextAlign: {
name: "changeTextAlign";
label: string;
trackEvent: false;
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly, value: any, app: AppClassProperties) => {
elements: ExcalidrawElement[];
appState: {
currentItemTextAlign: any;
contextMenu: {
items: import("../components/ContextMenu").ContextMenuItems;
top: number;
left: number;
} | null;
showWelcomeScreen: boolean;
isLoading: boolean;
errorMessage: import("react").ReactNode;
activeEmbeddable: {
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
state: "hover" | "active";
} | null;
newElement: import("@excalidraw/element/types").NonDeleted | null;
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
multiElement: import("@excalidraw/element/types").NonDeleted | null;
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
isBindingEnabled: boolean;
startBoundElement: import("@excalidraw/element/types").NonDeleted | null;
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
frameToHighlight: import("@excalidraw/element/types").NonDeleted | null;
frameRendering: {
enabled: boolean;
name: boolean;
outline: boolean;
clip: boolean;
};
editingFrame: string | null;
elementsToHighlight: import("@excalidraw/element/types").NonDeleted[] | null;
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
editingLinearElement: LinearElementEditor | null;
activeTool: {
lastActiveTool: import("../types").ActiveTool | null;
locked: boolean;
fromSelection: boolean;
} & import("../types").ActiveTool;
penMode: boolean;
penDetected: boolean;
exportBackground: boolean;
exportEmbedScene: boolean;
exportWithDarkMode: boolean;
exportScale: number;
currentItemStrokeColor: string;
currentItemBackgroundColor: string;
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
currentItemStrokeWidth: number;
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
currentItemRoughness: number;
currentItemOpacity: number;
currentItemFontFamily: number;
currentItemFontSize: number;
currentItemStartArrowhead: Arrowhead | null;
currentItemEndArrowhead: Arrowhead | null;
currentHoveredFontFamily: number | null;
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
currentItemArrowType: "round" | "sharp" | "elbow";
viewBackgroundColor: string;
scrollX: number;
scrollY: number;
cursorButton: "up" | "down";
scrolledOutside: boolean;
name: string | null;
isResizing: boolean;
isRotating: boolean;
zoom: Readonly<{
value: import("../types").NormalizedZoomValue;
}>;
openMenu: "canvas" | "shape" | null;
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
openSidebar: {
name: string;
tab?: string | undefined;
} | null;
openDialog: {
name: "imageExport" | "help" | "jsonExport";
} | {
name: "ttd";
tab: "text-to-diagram" | "mermaid";
} | {
name: "commandPalette";
} | {
name: "elementLinkSelector";
sourceElementId: string;
} | null;
defaultSidebarDockedPreference: boolean;
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
selectedElementIds: Readonly<{
[id: string]: true;
}>;
hoveredElementIds: Readonly<{
[id: string]: true;
}>;
previousSelectedElementIds: {
[id: string]: true;
};
selectedElementsAreBeingDragged: boolean;
shouldCacheIgnoreZoom: boolean;
toast: {
message: string;
closable?: boolean | undefined;
duration?: number | undefined;
} | null;
zenModeEnabled: boolean;
theme: import("@excalidraw/element/types").Theme;
gridSize: number;
gridStep: number;
gridModeEnabled: boolean;
viewModeEnabled: boolean;
selectedGroupIds: {
[groupId: string]: boolean;
};
editingGroupId: string | null;
width: number;
height: number;
offsetTop: number;
offsetLeft: number;
fileHandle: import("browser-fs-access").FileSystemHandle | null;
collaborators: Map | undefined;
username?: string | null | undefined;
userState?: import("@excalidraw/common").UserIdleState | undefined;
color?: {
background: string;
stroke: string;
} | undefined;
avatarUrl?: string | undefined;
id?: string | undefined;
socketId?: import("../types").SocketId | undefined;
isCurrentUser?: boolean | undefined;
isInCall?: boolean | undefined;
isSpeaking?: boolean | undefined;
isMuted?: boolean | undefined;
}>>;
stats: {
open: boolean;
panels: number;
};
currentChartType: import("@excalidraw/element/types").ChartType;
pasteDialog: {
shown: false;
data: null;
} | {
shown: true;
data: import("../charts").Spreadsheet;
};
pendingImageElementId: string | null;
showHyperlinkPopup: false | "editor" | "info";
selectedLinearElement: LinearElementEditor | null;
snapLines: readonly import("../snapping").SnapLine[];
originSnapOffset: {
x: number;
y: number;
} | null;
objectsSnapModeEnabled: boolean;
userToFollow: import("../types").UserToFollow | null;
followedBy: Set;
isCropping: boolean;
croppingElementId: string | null;
searchMatches: readonly {
id: string;
focus: boolean;
matchedLines: {
offsetX: number;
offsetY: number;
width: number;
height: number;
}[];
}[];
};
captureUpdate: "IMMEDIATELY";
};
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
} & {
keyTest?: undefined;
};
export declare const actionChangeVerticalAlign: {
name: "changeVerticalAlign";
label: string;
trackEvent: {
category: "element";
};
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly, value: any, app: AppClassProperties) => {
elements: ExcalidrawElement[];
appState: {
contextMenu: {
items: import("../components/ContextMenu").ContextMenuItems;
top: number;
left: number;
} | null;
showWelcomeScreen: boolean;
isLoading: boolean;
errorMessage: import("react").ReactNode;
activeEmbeddable: {
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
state: "hover" | "active";
} | null;
newElement: import("@excalidraw/element/types").NonDeleted | null;
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
multiElement: import("@excalidraw/element/types").NonDeleted | null;
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
isBindingEnabled: boolean;
startBoundElement: import("@excalidraw/element/types").NonDeleted | null;
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
frameToHighlight: import("@excalidraw/element/types").NonDeleted | null;
frameRendering: {
enabled: boolean;
name: boolean;
outline: boolean;
clip: boolean;
};
editingFrame: string | null;
elementsToHighlight: import("@excalidraw/element/types").NonDeleted[] | null;
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
editingLinearElement: LinearElementEditor | null;
activeTool: {
lastActiveTool: import("../types").ActiveTool | null;
locked: boolean;
fromSelection: boolean;
} & import("../types").ActiveTool;
penMode: boolean;
penDetected: boolean;
exportBackground: boolean;
exportEmbedScene: boolean;
exportWithDarkMode: boolean;
exportScale: number;
currentItemStrokeColor: string;
currentItemBackgroundColor: string;
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
currentItemStrokeWidth: number;
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
currentItemRoughness: number;
currentItemOpacity: number;
currentItemFontFamily: number;
currentItemFontSize: number;
currentItemTextAlign: string;
currentItemStartArrowhead: Arrowhead | null;
currentItemEndArrowhead: Arrowhead | null;
currentHoveredFontFamily: number | null;
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
currentItemArrowType: "round" | "sharp" | "elbow";
viewBackgroundColor: string;
scrollX: number;
scrollY: number;
cursorButton: "up" | "down";
scrolledOutside: boolean;
name: string | null;
isResizing: boolean;
isRotating: boolean;
zoom: Readonly<{
value: import("../types").NormalizedZoomValue;
}>;
openMenu: "canvas" | "shape" | null;
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
openSidebar: {
name: string;
tab?: string | undefined;
} | null;
openDialog: {
name: "imageExport" | "help" | "jsonExport";
} | {
name: "ttd";
tab: "text-to-diagram" | "mermaid";
} | {
name: "commandPalette";
} | {
name: "elementLinkSelector";
sourceElementId: string;
} | null;
defaultSidebarDockedPreference: boolean;
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
selectedElementIds: Readonly<{
[id: string]: true;
}>;
hoveredElementIds: Readonly<{
[id: string]: true;
}>;
previousSelectedElementIds: {
[id: string]: true;
};
selectedElementsAreBeingDragged: boolean;
shouldCacheIgnoreZoom: boolean;
toast: {
message: string;
closable?: boolean | undefined;
duration?: number | undefined;
} | null;
zenModeEnabled: boolean;
theme: import("@excalidraw/element/types").Theme;
gridSize: number;
gridStep: number;
gridModeEnabled: boolean;
viewModeEnabled: boolean;
selectedGroupIds: {
[groupId: string]: boolean;
};
editingGroupId: string | null;
width: number;
height: number;
offsetTop: number;
offsetLeft: number;
fileHandle: import("browser-fs-access").FileSystemHandle | null;
collaborators: Map | undefined;
username?: string | null | undefined;
userState?: import("@excalidraw/common").UserIdleState | undefined;
color?: {
background: string;
stroke: string;
} | undefined;
avatarUrl?: string | undefined;
id?: string | undefined;
socketId?: import("../types").SocketId | undefined;
isCurrentUser?: boolean | undefined;
isInCall?: boolean | undefined;
isSpeaking?: boolean | undefined;
isMuted?: boolean | undefined;
}>>;
stats: {
open: boolean;
panels: number;
};
currentChartType: import("@excalidraw/element/types").ChartType;
pasteDialog: {
shown: false;
data: null;
} | {
shown: true;
data: import("../charts").Spreadsheet;
};
pendingImageElementId: string | null;
showHyperlinkPopup: false | "editor" | "info";
selectedLinearElement: LinearElementEditor | null;
snapLines: readonly import("../snapping").SnapLine[];
originSnapOffset: {
x: number;
y: number;
} | null;
objectsSnapModeEnabled: boolean;
userToFollow: import("../types").UserToFollow | null;
followedBy: Set;
isCropping: boolean;
croppingElementId: string | null;
searchMatches: readonly {
id: string;
focus: boolean;
matchedLines: {
offsetX: number;
offsetY: number;
width: number;
height: number;
}[];
}[];
};
captureUpdate: "IMMEDIATELY";
};
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
} & {
keyTest?: undefined;
};
export declare const actionChangeRoundness: {
name: "changeRoundness";
label: string;
trackEvent: false;
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly, value: any) => {
elements: ExcalidrawElement[];
appState: {
currentItemRoundness: any;
contextMenu: {
items: import("../components/ContextMenu").ContextMenuItems;
top: number;
left: number;
} | null;
showWelcomeScreen: boolean;
isLoading: boolean;
errorMessage: import("react").ReactNode;
activeEmbeddable: {
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
state: "hover" | "active";
} | null;
newElement: import("@excalidraw/element/types").NonDeleted | null;
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
multiElement: import("@excalidraw/element/types").NonDeleted | null;
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
isBindingEnabled: boolean;
startBoundElement: import("@excalidraw/element/types").NonDeleted | null;
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
frameToHighlight: import("@excalidraw/element/types").NonDeleted | null;
frameRendering: {
enabled: boolean;
name: boolean;
outline: boolean;
clip: boolean;
};
editingFrame: string | null;
elementsToHighlight: import("@excalidraw/element/types").NonDeleted[] | null;
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
editingLinearElement: LinearElementEditor | null;
activeTool: {
lastActiveTool: import("../types").ActiveTool | null;
locked: boolean;
fromSelection: boolean;
} & import("../types").ActiveTool;
penMode: boolean;
penDetected: boolean;
exportBackground: boolean;
exportEmbedScene: boolean;
exportWithDarkMode: boolean;
exportScale: number;
currentItemStrokeColor: string;
currentItemBackgroundColor: string;
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
currentItemStrokeWidth: number;
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
currentItemRoughness: number;
currentItemOpacity: number;
currentItemFontFamily: number;
currentItemFontSize: number;
currentItemTextAlign: string;
currentItemStartArrowhead: Arrowhead | null;
currentItemEndArrowhead: Arrowhead | null;
currentHoveredFontFamily: number | null;
currentItemArrowType: "round" | "sharp" | "elbow";
viewBackgroundColor: string;
scrollX: number;
scrollY: number;
cursorButton: "up" | "down";
scrolledOutside: boolean;
name: string | null;
isResizing: boolean;
isRotating: boolean;
zoom: Readonly<{
value: import("../types").NormalizedZoomValue;
}>;
openMenu: "canvas" | "shape" | null;
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
openSidebar: {
name: string;
tab?: string | undefined;
} | null;
openDialog: {
name: "imageExport" | "help" | "jsonExport";
} | {
name: "ttd";
tab: "text-to-diagram" | "mermaid";
} | {
name: "commandPalette";
} | {
name: "elementLinkSelector";
sourceElementId: string;
} | null;
defaultSidebarDockedPreference: boolean;
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
selectedElementIds: Readonly<{
[id: string]: true;
}>;
hoveredElementIds: Readonly<{
[id: string]: true;
}>;
previousSelectedElementIds: {
[id: string]: true;
};
selectedElementsAreBeingDragged: boolean;
shouldCacheIgnoreZoom: boolean;
toast: {
message: string;
closable?: boolean | undefined;
duration?: number | undefined;
} | null;
zenModeEnabled: boolean;
theme: import("@excalidraw/element/types").Theme;
gridSize: number;
gridStep: number;
gridModeEnabled: boolean;
viewModeEnabled: boolean;
selectedGroupIds: {
[groupId: string]: boolean;
};
editingGroupId: string | null;
width: number;
height: number;
offsetTop: number;
offsetLeft: number;
fileHandle: import("browser-fs-access").FileSystemHandle | null;
collaborators: Map | undefined;
username?: string | null | undefined;
userState?: import("@excalidraw/common").UserIdleState | undefined;
color?: {
background: string;
stroke: string;
} | undefined;
avatarUrl?: string | undefined;
id?: string | undefined;
socketId?: import("../types").SocketId | undefined;
isCurrentUser?: boolean | undefined;
isInCall?: boolean | undefined;
isSpeaking?: boolean | undefined;
isMuted?: boolean | undefined;
}>>;
stats: {
open: boolean;
panels: number;
};
currentChartType: import("@excalidraw/element/types").ChartType;
pasteDialog: {
shown: false;
data: null;
} | {
shown: true;
data: import("../charts").Spreadsheet;
};
pendingImageElementId: string | null;
showHyperlinkPopup: false | "editor" | "info";
selectedLinearElement: LinearElementEditor | null;
snapLines: readonly import("../snapping").SnapLine[];
originSnapOffset: {
x: number;
y: number;
} | null;
objectsSnapModeEnabled: boolean;
userToFollow: import("../types").UserToFollow | null;
followedBy: Set;
isCropping: boolean;
croppingElementId: string | null;
searchMatches: readonly {
id: string;
focus: boolean;
matchedLines: {
offsetX: number;
offsetY: number;
width: number;
height: number;
}[];
}[];
};
captureUpdate: "IMMEDIATELY";
};
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
} & {
keyTest?: undefined;
};
export declare const actionChangeArrowhead: {
name: "changeArrowhead";
label: string;
trackEvent: false;
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly, value: {
position: "start" | "end";
type: Arrowhead;
}) => {
elements: ExcalidrawElement[];
appState: {
contextMenu: {
items: import("../components/ContextMenu").ContextMenuItems;
top: number;
left: number;
} | null;
showWelcomeScreen: boolean;
isLoading: boolean;
errorMessage: import("react").ReactNode;
activeEmbeddable: {
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
state: "hover" | "active";
} | null;
newElement: import("@excalidraw/element/types").NonDeleted | null;
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
multiElement: import("@excalidraw/element/types").NonDeleted | null;
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
isBindingEnabled: boolean;
startBoundElement: import("@excalidraw/element/types").NonDeleted | null;
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
frameToHighlight: import("@excalidraw/element/types").NonDeleted | null;
frameRendering: {
enabled: boolean;
name: boolean;
outline: boolean;
clip: boolean;
};
editingFrame: string | null;
elementsToHighlight: import("@excalidraw/element/types").NonDeleted[] | null;
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
editingLinearElement: LinearElementEditor | null;
activeTool: {
lastActiveTool: import("../types").ActiveTool | null;
locked: boolean;
fromSelection: boolean;
} & import("../types").ActiveTool;
penMode: boolean;
penDetected: boolean;
exportBackground: boolean;
exportEmbedScene: boolean;
exportWithDarkMode: boolean;
exportScale: number;
currentItemStrokeColor: string;
currentItemBackgroundColor: string;
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
currentItemStrokeWidth: number;
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
currentItemRoughness: number;
currentItemOpacity: number;
currentItemFontFamily: number;
currentItemFontSize: number;
currentItemTextAlign: string;
currentItemStartArrowhead: Arrowhead | null;
currentItemEndArrowhead: Arrowhead | null;
currentHoveredFontFamily: number | null;
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
currentItemArrowType: "round" | "sharp" | "elbow";
viewBackgroundColor: string;
scrollX: number;
scrollY: number;
cursorButton: "up" | "down";
scrolledOutside: boolean;
name: string | null;
isResizing: boolean;
isRotating: boolean;
zoom: Readonly<{
value: import("../types").NormalizedZoomValue;
}>;
openMenu: "canvas" | "shape" | null;
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
openSidebar: {
name: string;
tab?: string | undefined;
} | null;
openDialog: {
name: "imageExport" | "help" | "jsonExport";
} | {
name: "ttd";
tab: "text-to-diagram" | "mermaid";
} | {
name: "commandPalette";
} | {
name: "elementLinkSelector";
sourceElementId: string;
} | null;
defaultSidebarDockedPreference: boolean;
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
selectedElementIds: Readonly<{
[id: string]: true;
}>;
hoveredElementIds: Readonly<{
[id: string]: true;
}>;
previousSelectedElementIds: {
[id: string]: true;
};
selectedElementsAreBeingDragged: boolean;
shouldCacheIgnoreZoom: boolean;
toast: {
message: string;
closable?: boolean | undefined;
duration?: number | undefined;
} | null;
zenModeEnabled: boolean;
theme: import("@excalidraw/element/types").Theme;
gridSize: number;
gridStep: number;
gridModeEnabled: boolean;
viewModeEnabled: boolean;
selectedGroupIds: {
[groupId: string]: boolean;
};
editingGroupId: string | null;
width: number;
height: number;
offsetTop: number;
offsetLeft: number;
fileHandle: import("browser-fs-access").FileSystemHandle | null;
collaborators: Map | undefined;
username?: string | null | undefined;
userState?: import("@excalidraw/common").UserIdleState | undefined;
color?: {
background: string;
stroke: string;
} | undefined;
avatarUrl?: string | undefined;
id?: string | undefined;
socketId?: import("../types").SocketId | undefined;
isCurrentUser?: boolean | undefined;
isInCall?: boolean | undefined;
isSpeaking?: boolean | undefined;
isMuted?: boolean | undefined;
}>>;
stats: {
open: boolean;
panels: number;
};
currentChartType: import("@excalidraw/element/types").ChartType;
pasteDialog: {
shown: false;
data: null;
} | {
shown: true;
data: import("../charts").Spreadsheet;
};
pendingImageElementId: string | null;
showHyperlinkPopup: false | "editor" | "info";
selectedLinearElement: LinearElementEditor | null;
snapLines: readonly import("../snapping").SnapLine[];
originSnapOffset: {
x: number;
y: number;
} | null;
objectsSnapModeEnabled: boolean;
userToFollow: import("../types").UserToFollow | null;
followedBy: Set;
isCropping: boolean;
croppingElementId: string | null;
searchMatches: readonly {
id: string;
focus: boolean;
matchedLines: {
offsetX: number;
offsetY: number;
width: number;
height: number;
}[];
}[];
};
captureUpdate: "IMMEDIATELY";
};
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
} & {
keyTest?: undefined;
};
export declare const actionChangeArrowType: {
name: "changeArrowType";
label: string;
trackEvent: false;
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly, value: any, app: AppClassProperties) => {
elements: ExcalidrawElement[];
appState: {
currentItemArrowType: any;
contextMenu: {
items: import("../components/ContextMenu").ContextMenuItems;
top: number;
left: number;
} | null;
showWelcomeScreen: boolean;
isLoading: boolean;
errorMessage: import("react").ReactNode;
activeEmbeddable: {
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
state: "hover" | "active";
} | null;
newElement: import("@excalidraw/element/types").NonDeleted | null;
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
multiElement: import("@excalidraw/element/types").NonDeleted | null;
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
isBindingEnabled: boolean;
startBoundElement: import("@excalidraw/element/types").NonDeleted | null;
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
frameToHighlight: import("@excalidraw/element/types").NonDeleted | null;
frameRendering: {
enabled: boolean;
name: boolean;
outline: boolean;
clip: boolean;
};
editingFrame: string | null;
elementsToHighlight: import("@excalidraw/element/types").NonDeleted[] | null;
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
editingLinearElement: LinearElementEditor | null;
activeTool: {
lastActiveTool: import("../types").ActiveTool | null;
locked: boolean;
fromSelection: boolean;
} & import("../types").ActiveTool;
penMode: boolean;
penDetected: boolean;
exportBackground: boolean;
exportEmbedScene: boolean;
exportWithDarkMode: boolean;
exportScale: number;
currentItemStrokeColor: string;
currentItemBackgroundColor: string;
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
currentItemStrokeWidth: number;
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
currentItemRoughness: number;
currentItemOpacity: number;
currentItemFontFamily: number;
currentItemFontSize: number;
currentItemTextAlign: string;
currentItemStartArrowhead: Arrowhead | null;
currentItemEndArrowhead: Arrowhead | null;
currentHoveredFontFamily: number | null;
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
viewBackgroundColor: string;
scrollX: number;
scrollY: number;
cursorButton: "up" | "down";
scrolledOutside: boolean;
name: string | null;
isResizing: boolean;
isRotating: boolean;
zoom: Readonly<{
value: import("../types").NormalizedZoomValue;
}>;
openMenu: "canvas" | "shape" | null;
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
openSidebar: {
name: string;
tab?: string | undefined;
} | null;
openDialog: {
name: "imageExport" | "help" | "jsonExport";
} | {
name: "ttd";
tab: "text-to-diagram" | "mermaid";
} | {
name: "commandPalette";
} | {
name: "elementLinkSelector";
sourceElementId: string;
} | null;
defaultSidebarDockedPreference: boolean;
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
selectedElementIds: Readonly<{
[id: string]: true;
}>;
hoveredElementIds: Readonly<{
[id: string]: true;
}>;
previousSelectedElementIds: {
[id: string]: true;
};
selectedElementsAreBeingDragged: boolean;
shouldCacheIgnoreZoom: boolean;
toast: {
message: string;
closable?: boolean | undefined;
duration?: number | undefined;
} | null;
zenModeEnabled: boolean;
theme: import("@excalidraw/element/types").Theme;
gridSize: number;
gridStep: number;
gridModeEnabled: boolean;
viewModeEnabled: boolean;
selectedGroupIds: {
[groupId: string]: boolean;
};
editingGroupId: string | null;
width: number;
height: number;
offsetTop: number;
offsetLeft: number;
fileHandle: import("browser-fs-access").FileSystemHandle | null;
collaborators: Map | undefined;
username?: string | null | undefined;
userState?: import("@excalidraw/common").UserIdleState | undefined;
color?: {
background: string;
stroke: string;
} | undefined;
avatarUrl?: string | undefined;
id?: string | undefined;
socketId?: import("../types").SocketId | undefined;
isCurrentUser?: boolean | undefined;
isInCall?: boolean | undefined;
isSpeaking?: boolean | undefined;
isMuted?: boolean | undefined;
}>>;
stats: {
open: boolean;
panels: number;
};
currentChartType: import("@excalidraw/element/types").ChartType;
pasteDialog: {
shown: false;
data: null;
} | {
shown: true;
data: import("../charts").Spreadsheet;
};
pendingImageElementId: string | null;
showHyperlinkPopup: false | "editor" | "info";
selectedLinearElement: LinearElementEditor | null;
snapLines: readonly import("../snapping").SnapLine[];
originSnapOffset: {
x: number;
y: number;
} | null;
objectsSnapModeEnabled: boolean;
userToFollow: import("../types").UserToFollow | null;
followedBy: Set;
isCropping: boolean;
croppingElementId: string | null;
searchMatches: readonly {
id: string;
focus: boolean;
matchedLines: {
offsetX: number;
offsetY: number;
width: number;
height: number;
}[];
}[];
};
captureUpdate: "IMMEDIATELY";
};
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
} & {
keyTest?: undefined;
};