@orangecatai/adgen-canvas 0.0.2 → 0.0.4
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/{chunk-UV7ECD7A.js → chunk-3FGOYDLK.js} +3 -3
- package/dist/dev/{chunk-X2WWSILD.js → chunk-IRIUFXMO.js} +2 -2
- package/dist/dev/data/{image-H4O52A73.js → image-HH4XNQRO.js} +3 -3
- package/dist/dev/index.css +880 -1
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +2970 -232
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/{chunk-DOJFO2UO.js → chunk-LUZI7MFZ.js} +2 -2
- package/dist/prod/{chunk-O3WJMHIE.js → chunk-SG4RCQVC.js} +1 -1
- package/dist/prod/data/image-J2ZJZU4A.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +84 -29
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- 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/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/types.d.ts +1 -1
- package/dist/types/excalidraw/components/AIChatPanel.d.ts +49 -3
- package/dist/types/excalidraw/components/Actions.d.ts +3 -0
- package/dist/types/excalidraw/components/DefaultSidebar.d.ts +1 -1
- package/dist/types/excalidraw/components/ImageGeneratorPanel.d.ts +6 -1
- package/dist/types/excalidraw/components/ImageQuickEditPanel.d.ts +6 -1
- package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +2 -2
- package/dist/types/excalidraw/components/ai-chat/agentLoop.d.ts +13 -0
- package/dist/types/excalidraw/components/ai-chat/audioUtils.d.ts +10 -0
- package/dist/types/excalidraw/index.d.ts +5 -0
- package/dist/types/excalidraw/types.d.ts +14 -0
- package/dist/types/excalidraw/utils/openRouterApiKey.d.ts +1 -0
- package/package.json +1 -1
- package/dist/prod/data/image-43FV5SMF.js +0 -1
- /package/dist/dev/{chunk-UV7ECD7A.js.map → chunk-3FGOYDLK.js.map} +0 -0
- /package/dist/dev/{chunk-X2WWSILD.js.map → chunk-IRIUFXMO.js.map} +0 -0
- /package/dist/dev/data/{image-H4O52A73.js.map → image-HH4XNQRO.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d}from"./chunk-Z5NKEFVG.js";import"./chunk-
|
|
1
|
+
import{a,b,c,d}from"./chunk-Z5NKEFVG.js";import"./chunk-SG4RCQVC.js";import"./chunk-SRAX5OIU.js";export{a as Commands,b as subsetToBase64,c as subsetToBinary,d as toBase64};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r,c as t}from"./chunk-Z5NKEFVG.js";import"./chunk-
|
|
1
|
+
import{a as r,c as t}from"./chunk-Z5NKEFVG.js";import"./chunk-SG4RCQVC.js";import"./chunk-SRAX5OIU.js";var s=import.meta.url?new URL(import.meta.url):void 0;typeof window>"u"&&typeof self<"u"&&(self.onmessage=async e=>{switch(e.data.command){case r.Subset:let a=await t(e.data.arrayBuffer,e.data.codePoints);self.postMessage(a,{transfer:[a]});break}});export{s as WorkerUrl};
|
|
@@ -3,7 +3,7 @@ export declare const actionAddToLibrary: {
|
|
|
3
3
|
trackEvent: {
|
|
4
4
|
category: "element";
|
|
5
5
|
};
|
|
6
|
-
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("
|
|
6
|
+
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("..").AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<{
|
|
7
7
|
captureUpdate: "EVENTUALLY";
|
|
8
8
|
appState: {
|
|
9
9
|
toast: {
|
|
@@ -706,6 +706,7 @@ export declare const actionResetZoom: {
|
|
|
706
706
|
} & {
|
|
707
707
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
708
708
|
};
|
|
709
|
+
export declare const getNearestContentCluster: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => ExcalidrawElement[];
|
|
709
710
|
export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
|
|
710
711
|
bounds: SceneBounds;
|
|
711
712
|
canvasOffsets?: Offsets;
|
|
@@ -1580,6 +1581,182 @@ export declare const actionZoomToFit: {
|
|
|
1580
1581
|
} & {
|
|
1581
1582
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1582
1583
|
};
|
|
1584
|
+
export declare const actionScrollBackToContent: {
|
|
1585
|
+
name: "scrollBackToContent";
|
|
1586
|
+
label: string;
|
|
1587
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
1588
|
+
viewMode: true;
|
|
1589
|
+
trackEvent: {
|
|
1590
|
+
category: "canvas";
|
|
1591
|
+
};
|
|
1592
|
+
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => false | {
|
|
1593
|
+
appState: {
|
|
1594
|
+
scrollX: number;
|
|
1595
|
+
scrollY: number;
|
|
1596
|
+
zoom: {
|
|
1597
|
+
value: import("../types").NormalizedZoomValue;
|
|
1598
|
+
};
|
|
1599
|
+
contextMenu: {
|
|
1600
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1601
|
+
top: number;
|
|
1602
|
+
left: number;
|
|
1603
|
+
} | null;
|
|
1604
|
+
showWelcomeScreen: boolean;
|
|
1605
|
+
isLoading: boolean;
|
|
1606
|
+
errorMessage: React.ReactNode;
|
|
1607
|
+
activeEmbeddable: {
|
|
1608
|
+
element: import("@orangecatai/element/types").NonDeletedExcalidrawElement;
|
|
1609
|
+
state: "hover" | "active";
|
|
1610
|
+
} | null;
|
|
1611
|
+
newElement: import("@orangecatai/element/types").NonDeleted<import("@orangecatai/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1612
|
+
resizingElement: import("@orangecatai/element/types").NonDeletedExcalidrawElement | null;
|
|
1613
|
+
multiElement: import("@orangecatai/element/types").NonDeleted<import("@orangecatai/element/types").ExcalidrawLinearElement> | null;
|
|
1614
|
+
selectionElement: import("@orangecatai/element/types").NonDeletedExcalidrawElement | null;
|
|
1615
|
+
isBindingEnabled: boolean;
|
|
1616
|
+
startBoundElement: import("@orangecatai/element/types").NonDeleted<import("@orangecatai/element/types").ExcalidrawBindableElement> | null;
|
|
1617
|
+
suggestedBinding: {
|
|
1618
|
+
element: import("@orangecatai/element/types").NonDeleted<import("@orangecatai/element/types").ExcalidrawBindableElement>;
|
|
1619
|
+
midPoint?: import("@orangecatai/math").GlobalPoint;
|
|
1620
|
+
} | null;
|
|
1621
|
+
frameToHighlight: import("@orangecatai/element/types").NonDeleted<import("@orangecatai/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1622
|
+
frameRendering: {
|
|
1623
|
+
enabled: boolean;
|
|
1624
|
+
name: boolean;
|
|
1625
|
+
outline: boolean;
|
|
1626
|
+
clip: boolean;
|
|
1627
|
+
};
|
|
1628
|
+
editingFrame: string | null;
|
|
1629
|
+
elementsToHighlight: import("@orangecatai/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1630
|
+
editingTextElement: import("@orangecatai/element/types").NonDeletedExcalidrawElement | null;
|
|
1631
|
+
activeTool: {
|
|
1632
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
1633
|
+
locked: boolean;
|
|
1634
|
+
fromSelection: boolean;
|
|
1635
|
+
} & import("../types").ActiveTool;
|
|
1636
|
+
preferredSelectionTool: {
|
|
1637
|
+
type: "selection" | "lasso";
|
|
1638
|
+
initialized: boolean;
|
|
1639
|
+
};
|
|
1640
|
+
penMode: boolean;
|
|
1641
|
+
penDetected: boolean;
|
|
1642
|
+
exportBackground: boolean;
|
|
1643
|
+
exportEmbedScene: boolean;
|
|
1644
|
+
exportWithDarkMode: boolean;
|
|
1645
|
+
exportScale: number;
|
|
1646
|
+
currentItemStrokeColor: string;
|
|
1647
|
+
currentItemBackgroundColor: string;
|
|
1648
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1649
|
+
currentItemStrokeWidth: number;
|
|
1650
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1651
|
+
currentItemRoughness: number;
|
|
1652
|
+
currentItemOpacity: number;
|
|
1653
|
+
currentItemFontFamily: import("@orangecatai/element/types").FontFamilyValues;
|
|
1654
|
+
currentItemFontSize: number;
|
|
1655
|
+
currentItemTextAlign: import("@orangecatai/element/types").TextAlign;
|
|
1656
|
+
currentItemStartArrowhead: import("@orangecatai/element/types").Arrowhead | null;
|
|
1657
|
+
currentItemEndArrowhead: import("@orangecatai/element/types").Arrowhead | null;
|
|
1658
|
+
currentHoveredFontFamily: import("@orangecatai/element/types").FontFamilyValues | null;
|
|
1659
|
+
currentItemRoundness: import("@orangecatai/element/types").StrokeRoundness;
|
|
1660
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1661
|
+
viewBackgroundColor: string;
|
|
1662
|
+
cursorButton: "up" | "down";
|
|
1663
|
+
scrolledOutside: boolean;
|
|
1664
|
+
name: string | null;
|
|
1665
|
+
isResizing: boolean;
|
|
1666
|
+
isRotating: boolean;
|
|
1667
|
+
openMenu: "canvas" | null;
|
|
1668
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1669
|
+
openSidebar: {
|
|
1670
|
+
name: import("../types").SidebarName;
|
|
1671
|
+
tab?: import("../types").SidebarTabName;
|
|
1672
|
+
} | null;
|
|
1673
|
+
openDialog: null | {
|
|
1674
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
1675
|
+
} | {
|
|
1676
|
+
name: "ttd";
|
|
1677
|
+
tab: "text-to-diagram" | "mermaid";
|
|
1678
|
+
} | {
|
|
1679
|
+
name: "commandPalette";
|
|
1680
|
+
} | {
|
|
1681
|
+
name: "settings";
|
|
1682
|
+
} | {
|
|
1683
|
+
name: "elementLinkSelector";
|
|
1684
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
1685
|
+
};
|
|
1686
|
+
defaultSidebarDockedPreference: boolean;
|
|
1687
|
+
lastPointerDownWith: import("@orangecatai/element/types").PointerType;
|
|
1688
|
+
selectedElementIds: Readonly<{
|
|
1689
|
+
[id: string]: true;
|
|
1690
|
+
}>;
|
|
1691
|
+
hoveredElementIds: Readonly<{
|
|
1692
|
+
[id: string]: true;
|
|
1693
|
+
}>;
|
|
1694
|
+
previousSelectedElementIds: {
|
|
1695
|
+
[id: string]: true;
|
|
1696
|
+
};
|
|
1697
|
+
selectedElementsAreBeingDragged: boolean;
|
|
1698
|
+
shouldCacheIgnoreZoom: boolean;
|
|
1699
|
+
toast: {
|
|
1700
|
+
message: string;
|
|
1701
|
+
closable?: boolean;
|
|
1702
|
+
duration?: number;
|
|
1703
|
+
} | null;
|
|
1704
|
+
zenModeEnabled: boolean;
|
|
1705
|
+
theme: import("@orangecatai/element/types").Theme;
|
|
1706
|
+
gridSize: number;
|
|
1707
|
+
gridStep: number;
|
|
1708
|
+
gridModeEnabled: boolean;
|
|
1709
|
+
viewModeEnabled: boolean;
|
|
1710
|
+
selectedGroupIds: {
|
|
1711
|
+
[groupId: string]: boolean;
|
|
1712
|
+
};
|
|
1713
|
+
editingGroupId: import("@orangecatai/element/types").GroupId | null;
|
|
1714
|
+
width: number;
|
|
1715
|
+
height: number;
|
|
1716
|
+
offsetTop: number;
|
|
1717
|
+
offsetLeft: number;
|
|
1718
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1719
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1720
|
+
stats: {
|
|
1721
|
+
open: boolean;
|
|
1722
|
+
panels: number;
|
|
1723
|
+
};
|
|
1724
|
+
currentChartType: import("@orangecatai/element/types").ChartType;
|
|
1725
|
+
pasteDialog: {
|
|
1726
|
+
shown: false;
|
|
1727
|
+
data: null;
|
|
1728
|
+
} | {
|
|
1729
|
+
shown: true;
|
|
1730
|
+
data: import("../charts").Spreadsheet;
|
|
1731
|
+
};
|
|
1732
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1733
|
+
selectedLinearElement: import("@orangecatai/element").LinearElementEditor | null;
|
|
1734
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1735
|
+
originSnapOffset: {
|
|
1736
|
+
x: number;
|
|
1737
|
+
y: number;
|
|
1738
|
+
} | null;
|
|
1739
|
+
objectsSnapModeEnabled: boolean;
|
|
1740
|
+
userToFollow: import("../types").UserToFollow | null;
|
|
1741
|
+
followedBy: Set<import("../types").SocketId>;
|
|
1742
|
+
isCropping: boolean;
|
|
1743
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
1744
|
+
searchMatches: Readonly<{
|
|
1745
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
1746
|
+
matches: readonly import("../types").SearchMatch[];
|
|
1747
|
+
}> | null;
|
|
1748
|
+
activeLockedId: string | null;
|
|
1749
|
+
lockedMultiSelections: {
|
|
1750
|
+
[groupId: string]: true;
|
|
1751
|
+
};
|
|
1752
|
+
bindMode: import("@orangecatai/element/types").BindMode;
|
|
1753
|
+
};
|
|
1754
|
+
captureUpdate: "EVENTUALLY";
|
|
1755
|
+
};
|
|
1756
|
+
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1757
|
+
} & {
|
|
1758
|
+
keyTest?: undefined;
|
|
1759
|
+
};
|
|
1583
1760
|
export declare const actionToggleTheme: import("./types").Action<import("@orangecatai/element/types").Theme> & {
|
|
1584
1761
|
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
1585
1762
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const actionCopy: import("./types").Action<ClipboardEvent | null> & {
|
|
2
|
-
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: import("
|
|
2
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: import("..").AppState, elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
3
3
|
};
|
|
4
4
|
export declare const actionPaste: {
|
|
5
5
|
name: "paste";
|
|
@@ -7,7 +7,7 @@ export declare const actionPaste: {
|
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "element";
|
|
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>, data: unknown, app: import("../types").AppClassProperties) => Promise<false | {
|
|
11
11
|
captureUpdate: "EVENTUALLY";
|
|
12
12
|
appState: {
|
|
13
13
|
errorMessage: string;
|
|
@@ -177,7 +177,7 @@ export declare const actionPaste: {
|
|
|
177
177
|
keyTest?: undefined;
|
|
178
178
|
};
|
|
179
179
|
export declare const actionCut: import("./types").Action<ClipboardEvent | null> & {
|
|
180
|
-
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: import("
|
|
180
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: import("..").AppState, elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
181
181
|
};
|
|
182
182
|
export declare const actionCopyAsSvg: {
|
|
183
183
|
name: "copyAsSvg";
|
|
@@ -186,7 +186,7 @@ export declare const actionCopyAsSvg: {
|
|
|
186
186
|
trackEvent: {
|
|
187
187
|
category: "element";
|
|
188
188
|
};
|
|
189
|
-
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("
|
|
189
|
+
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("..").AppState>, _data: unknown, app: import("../types").AppClassProperties) => Promise<{
|
|
190
190
|
captureUpdate: "EVENTUALLY";
|
|
191
191
|
appState?: undefined;
|
|
192
192
|
} | {
|
|
@@ -216,7 +216,7 @@ export declare const actionCopyAsPng: {
|
|
|
216
216
|
trackEvent: {
|
|
217
217
|
category: "element";
|
|
218
218
|
};
|
|
219
|
-
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("
|
|
219
|
+
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("..").AppState>, _data: unknown, app: import("../types").AppClassProperties) => Promise<{
|
|
220
220
|
captureUpdate: "EVENTUALLY";
|
|
221
221
|
appState?: undefined;
|
|
222
222
|
} | {
|
|
@@ -393,10 +393,10 @@ export declare const copyText: {
|
|
|
393
393
|
trackEvent: {
|
|
394
394
|
category: "element";
|
|
395
395
|
};
|
|
396
|
-
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("
|
|
396
|
+
perform: (elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[], appState: Readonly<import("..").AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
397
397
|
captureUpdate: "EVENTUALLY";
|
|
398
398
|
};
|
|
399
|
-
predicate: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: import("
|
|
399
|
+
predicate: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: import("..").AppState, _: import("..").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
400
400
|
keywords: string[];
|
|
401
401
|
} & {
|
|
402
402
|
keyTest?: undefined;
|
|
@@ -7,7 +7,7 @@ export declare const actionToggleCropEditor: {
|
|
|
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>, _: unknown, app: import("../types").AppClassProperties): {
|
|
11
11
|
appState: {
|
|
12
12
|
isCropping: false;
|
|
13
13
|
croppingElementId: string;
|
|
@@ -169,7 +169,7 @@ export declare const actionToggleCropEditor: {
|
|
|
169
169
|
};
|
|
170
170
|
captureUpdate: "IMMEDIATELY";
|
|
171
171
|
};
|
|
172
|
-
predicate: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: import("
|
|
172
|
+
predicate: (elements: readonly import("@orangecatai/element/types").ExcalidrawElement[], appState: import("..").AppState, _: import("..").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
173
173
|
PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
174
174
|
} & {
|
|
175
175
|
keyTest?: undefined;
|
|
@@ -5,9 +5,9 @@ export declare const actionDuplicateSelection: {
|
|
|
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>, formData: unknown, app: import("../types").AppClassProperties) => false | {
|
|
9
9
|
elements: readonly import("@orangecatai/element/types").OrderedExcalidrawElement[];
|
|
10
|
-
appState: import("
|
|
10
|
+
appState: import("..").AppState;
|
|
11
11
|
captureUpdate: "IMMEDIATELY";
|
|
12
12
|
};
|
|
13
13
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -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: {
|
|
@@ -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;
|