@excalidraw/excalidraw 0.15.2-d73cd14 → 0.15.2-eb020d0
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/package.json
CHANGED
|
@@ -2,6 +2,7 @@ interface ColorInputProps {
|
|
|
2
2
|
color: string;
|
|
3
3
|
onChange: (color: string) => void;
|
|
4
4
|
label: string;
|
|
5
|
+
eyeDropperType: "strokeColor" | "backgroundColor";
|
|
5
6
|
}
|
|
6
|
-
export declare const ColorInput: ({ color, onChange, label }: ColorInputProps) => JSX.Element;
|
|
7
|
+
export declare const ColorInput: ({ color, onChange, label, eyeDropperType, }: ColorInputProps) => JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -2,8 +2,8 @@ import "./EyeDropper.scss";
|
|
|
2
2
|
type EyeDropperProperties = {
|
|
3
3
|
keepOpenOnAlt: boolean;
|
|
4
4
|
swapPreviewOnAlt?: boolean;
|
|
5
|
-
onSelect
|
|
6
|
-
previewType
|
|
5
|
+
onSelect: (color: string, event: PointerEvent) => void;
|
|
6
|
+
previewType: "strokeColor" | "backgroundColor";
|
|
7
7
|
};
|
|
8
8
|
export declare const activeEyeDropperAtom: import("jotai").PrimitiveAtom<EyeDropperProperties | null> & {
|
|
9
9
|
init: EyeDropperProperties | null;
|
|
@@ -12,6 +12,6 @@ export declare const EyeDropper: React.FC<{
|
|
|
12
12
|
onCancel: () => void;
|
|
13
13
|
onSelect: Required<EyeDropperProperties>["onSelect"];
|
|
14
14
|
swapPreviewOnAlt?: EyeDropperProperties["swapPreviewOnAlt"];
|
|
15
|
-
previewType
|
|
15
|
+
previewType: EyeDropperProperties["previewType"];
|
|
16
16
|
}>;
|
|
17
17
|
export {};
|
package/types/types.d.ts
CHANGED
|
@@ -369,8 +369,9 @@ export type AppProps = Merge<ExcalidrawProps, {
|
|
|
369
369
|
* in the app, eg Manager. Factored out into a separate type to keep DRY. */
|
|
370
370
|
export type AppClassProperties = {
|
|
371
371
|
props: AppProps;
|
|
372
|
-
canvas: HTMLCanvasElement;
|
|
373
372
|
interactiveCanvas: HTMLCanvasElement | null;
|
|
373
|
+
/** static canvas */
|
|
374
|
+
canvas: HTMLCanvasElement;
|
|
374
375
|
focusContainer(): void;
|
|
375
376
|
library: Library;
|
|
376
377
|
imageCache: Map<FileId, {
|