@excalidraw/excalidraw 0.17.2 → 0.17.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.
@@ -1,119 +0,0 @@
1
- /// <reference types="react" />
2
- import { ExcalidrawElement } from "../element/types";
3
- export declare const actionToggleLock: {
4
- name: "toggleLock";
5
- trackEvent: {
6
- category: "element";
7
- };
8
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => false | {
9
- elements: ExcalidrawElement[];
10
- appState: {
11
- selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
12
- contextMenu: {
13
- items: import("../components/ContextMenu").ContextMenuItems;
14
- top: number;
15
- left: number;
16
- } | null;
17
- showWelcomeScreen: boolean;
18
- isLoading: boolean;
19
- errorMessage: import("react").ReactNode;
20
- draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
21
- resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
22
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
23
- selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
24
- isBindingEnabled: boolean;
25
- startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
26
- suggestedBindings: import("../element/binding").SuggestedBinding[];
27
- editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
28
- editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
29
- activeTool: {
30
- lastActiveTool: import("../types").LastActiveTool;
31
- locked: boolean;
32
- } & ({
33
- type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
34
- customType: null;
35
- } | {
36
- type: "custom";
37
- customType: string;
38
- });
39
- penMode: boolean;
40
- penDetected: boolean;
41
- exportBackground: boolean;
42
- exportEmbedScene: boolean;
43
- exportWithDarkMode: boolean;
44
- exportScale: number;
45
- currentItemStrokeColor: string;
46
- currentItemBackgroundColor: string;
47
- currentItemFillStyle: import("../element/types").FillStyle;
48
- currentItemStrokeWidth: number;
49
- currentItemStrokeStyle: import("../element/types").StrokeStyle;
50
- currentItemRoughness: number;
51
- currentItemOpacity: number;
52
- currentItemFontFamily: number;
53
- currentItemFontSize: number;
54
- currentItemTextAlign: string;
55
- currentItemStartArrowhead: import("../element/types").Arrowhead | null;
56
- currentItemEndArrowhead: import("../element/types").Arrowhead | null;
57
- currentItemRoundness: import("../element/types").StrokeRoundness;
58
- viewBackgroundColor: string;
59
- scrollX: number;
60
- scrollY: number;
61
- cursorButton: "up" | "down";
62
- scrolledOutside: boolean;
63
- name: string;
64
- isResizing: boolean;
65
- isRotating: boolean;
66
- zoom: Readonly<{
67
- value: import("../types").NormalizedZoomValue;
68
- }>;
69
- openMenu: "canvas" | "shape" | null;
70
- openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
71
- openSidebar: "library" | "customSidebar" | null;
72
- openDialog: "imageExport" | "help" | "jsonExport" | null;
73
- isSidebarDocked: boolean;
74
- lastPointerDownWith: import("../element/types").PointerType;
75
- selectedElementIds: {
76
- [id: string]: boolean;
77
- };
78
- previousSelectedElementIds: {
79
- [id: string]: boolean;
80
- };
81
- shouldCacheIgnoreZoom: boolean;
82
- toast: {
83
- message: string;
84
- closable?: boolean | undefined;
85
- duration?: number | undefined;
86
- } | null;
87
- zenModeEnabled: boolean;
88
- theme: string;
89
- gridSize: number | null;
90
- viewModeEnabled: boolean;
91
- selectedGroupIds: {
92
- [groupId: string]: boolean;
93
- };
94
- editingGroupId: string | null;
95
- width: number;
96
- height: number;
97
- offsetTop: number;
98
- offsetLeft: number;
99
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
100
- collaborators: Map<string, import("../types").Collaborator>;
101
- showStats: boolean;
102
- currentChartType: import("../element/types").ChartType;
103
- pasteDialog: {
104
- shown: false;
105
- data: null;
106
- } | {
107
- shown: true;
108
- data: import("../charts").Spreadsheet;
109
- };
110
- pendingImageElementId: string | null;
111
- showHyperlinkPopup: false | "info" | "editor";
112
- };
113
- commitToHistory: true;
114
- };
115
- contextItemLabel: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => "labels.elementLock.unlock" | "labels.elementLock.lock" | "labels.elementLock.lockAll" | "labels.elementLock.unlockAll";
116
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[]) => boolean;
117
- } & {
118
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
119
- };
@@ -1,14 +0,0 @@
1
- import "./ColorPicker.scss";
2
- import { ExcalidrawElement } from "../element/types";
3
- import { AppState } from "../types";
4
- export declare const getCustomColors: (elements: readonly ExcalidrawElement[], type: "elementBackground" | "elementStroke") => string[];
5
- export declare const ColorPicker: ({ type, color, onChange, label, isActive, setActive, elements, appState, }: {
6
- type: "canvasBackground" | "elementBackground" | "elementStroke";
7
- color: string | null;
8
- onChange: (color: string) => void;
9
- label: string;
10
- isActive: boolean;
11
- setActive: (active: boolean) => void;
12
- elements: readonly ExcalidrawElement[];
13
- appState: AppState;
14
- }) => JSX.Element;
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import { AppState } from "../types";
3
- import "./LibraryButton.scss";
4
- export declare const LibraryButton: React.FC<{
5
- appState: AppState;
6
- setAppState: React.Component<any, AppState>["setState"];
7
- isMobile?: boolean;
8
- }>;
@@ -1,16 +0,0 @@
1
- import React from "react";
2
- import tunnel from "@dwelle/tunnel-rat";
3
- declare type Tunnel = ReturnType<typeof tunnel>;
4
- declare type TunnelsContextValue = {
5
- mainMenuTunnel: Tunnel;
6
- welcomeScreenMenuHintTunnel: Tunnel;
7
- welcomeScreenToolbarHintTunnel: Tunnel;
8
- welcomeScreenHelpHintTunnel: Tunnel;
9
- welcomeScreenCenterTunnel: Tunnel;
10
- footerCenterTunnel: Tunnel;
11
- jotaiScope: symbol;
12
- };
13
- export declare const TunnelsContext: React.Context<TunnelsContextValue>;
14
- export declare const useTunnels: () => TunnelsContextValue;
15
- export declare const useInitializeTunnels: () => TunnelsContextValue;
16
- export {};
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- export declare const withUpstreamOverride: <P>(Component: React.ComponentType<P>) => readonly [React.FC<{
3
- children: React.ReactNode;
4
- }>, {
5
- (props: P & {
6
- /** @private internal */
7
- __isFallback?: boolean | undefined;
8
- }): JSX.Element | null;
9
- displayName: string;
10
- }];