@zsviczian/excalidraw 0.10.0-obsidian-47 → 0.10.0-obsidian-48
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/excalidraw.development.js +8 -8
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +18 -0
- package/types/actions/actionCanvas.d.ts +48 -0
- package/types/actions/actionClipboard.d.ts +30 -0
- package/types/actions/actionDeleteSelected.d.ts +18 -0
- package/types/actions/actionExport.d.ts +54 -0
- package/types/actions/actionFinalize.d.ts +12 -0
- package/types/actions/actionMenu.d.ts +18 -0
- package/types/actions/actionProperties.d.ts +72 -0
- package/types/actions/actionStyles.d.ts +6 -0
- package/types/actions/actionToggleGridMode.d.ts +6 -0
- package/types/actions/actionToggleStats.d.ts +6 -0
- package/types/actions/actionToggleViewMode.d.ts +6 -0
- package/types/actions/actionToggleZenMode.d.ts +6 -0
- package/types/components/ColorPicker.d.ts +6 -1
- package/types/element/Hyperlink.d.ts +6 -0
- package/types/element/linearElementEditor.d.ts +6 -0
- package/types/types.d.ts +6 -1
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import "./ColorPicker.scss";
|
|
3
|
-
export declare const ColorPicker: ({ type, color, onChange, label, isActive, setActive, }: {
|
|
3
|
+
export declare const ColorPicker: ({ type, color, onChange, label, isActive, setActive, colorPalette, }: {
|
|
4
4
|
type: "canvasBackground" | "elementBackground" | "elementStroke";
|
|
5
5
|
color: string | null;
|
|
6
6
|
onChange: (color: string) => void;
|
|
7
7
|
label: string;
|
|
8
8
|
isActive: boolean;
|
|
9
9
|
setActive: (active: boolean) => void;
|
|
10
|
+
colorPalette: {
|
|
11
|
+
canvasBackground?: string[];
|
|
12
|
+
elementBackground?: string[];
|
|
13
|
+
elementStroke?: string[];
|
|
14
|
+
};
|
|
10
15
|
}) => JSX.Element;
|
|
@@ -100,6 +100,12 @@ export declare const actionLink: {
|
|
|
100
100
|
};
|
|
101
101
|
pendingImageElement: import("./types").NonDeleted<import("./types").ExcalidrawImageElement> | null;
|
|
102
102
|
linkOpacity: number;
|
|
103
|
+
isMobile: boolean;
|
|
104
|
+
colorPalette: {
|
|
105
|
+
canvasBackground?: string[] | undefined;
|
|
106
|
+
elementBackground?: string[] | undefined;
|
|
107
|
+
elementStroke?: string[] | undefined;
|
|
108
|
+
};
|
|
103
109
|
};
|
|
104
110
|
commitToHistory: true;
|
|
105
111
|
};
|
|
@@ -168,6 +168,12 @@ export declare class LinearElementEditor {
|
|
|
168
168
|
pendingImageElement: NonDeleted<import("./types").ExcalidrawImageElement> | null;
|
|
169
169
|
showHyperlinkPopup: false | "info" | "editor";
|
|
170
170
|
linkOpacity: number;
|
|
171
|
+
isMobile: boolean;
|
|
172
|
+
colorPalette: {
|
|
173
|
+
canvasBackground?: string[] | undefined;
|
|
174
|
+
elementBackground?: string[] | undefined;
|
|
175
|
+
elementStroke?: string[] | undefined;
|
|
176
|
+
};
|
|
171
177
|
};
|
|
172
178
|
};
|
|
173
179
|
static deletePoints(element: NonDeleted<ExcalidrawLinearElement>, pointIndices: readonly number[]): void;
|
package/types/types.d.ts
CHANGED
|
@@ -127,6 +127,12 @@ export declare type AppState = {
|
|
|
127
127
|
pendingImageElement: NonDeleted<ExcalidrawImageElement> | null;
|
|
128
128
|
showHyperlinkPopup: false | "info" | "editor";
|
|
129
129
|
linkOpacity: number;
|
|
130
|
+
isMobile: boolean;
|
|
131
|
+
colorPalette: {
|
|
132
|
+
canvasBackground?: string[];
|
|
133
|
+
elementBackground?: string[];
|
|
134
|
+
elementStroke?: string[];
|
|
135
|
+
};
|
|
130
136
|
};
|
|
131
137
|
export declare type NormalizedZoomValue = number & {
|
|
132
138
|
_brand: "normalizedZoom";
|
|
@@ -209,7 +215,6 @@ export interface ExcalidrawProps {
|
|
|
209
215
|
nativeEvent: MouseEvent | React.PointerEvent<HTMLCanvasElement>;
|
|
210
216
|
}>) => void;
|
|
211
217
|
onLinkHover?: (element: NonDeletedExcalidrawElement, event: React.PointerEvent<HTMLCanvasElement>) => void;
|
|
212
|
-
linkOpacity?: number;
|
|
213
218
|
}
|
|
214
219
|
export declare type SceneData = {
|
|
215
220
|
elements?: ImportedDataState["elements"];
|