@zsviczian/excalidraw 0.12.0-obsidian-2 → 0.12.0-obsidian-3
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 +16 -16
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +3 -0
- package/types/actions/actionBoundText.d.ts +1 -0
- package/types/actions/actionCanvas.d.ts +9 -0
- package/types/actions/actionClipboard.d.ts +6 -0
- package/types/actions/actionDeleteSelected.d.ts +4 -0
- package/types/actions/actionExport.d.ts +9 -0
- package/types/actions/actionFinalize.d.ts +2 -0
- package/types/actions/actionMenu.d.ts +3 -0
- package/types/actions/actionProperties.d.ts +13 -0
- package/types/actions/actionSelectAll.d.ts +1 -1
- package/types/actions/actionStyles.d.ts +1 -0
- package/types/actions/actionToggleGridMode.d.ts +1 -0
- package/types/actions/actionToggleLock.d.ts +106 -1
- package/types/actions/actionToggleStats.d.ts +1 -0
- package/types/actions/actionToggleViewMode.d.ts +1 -0
- package/types/actions/actionToggleZenMode.d.ts +1 -0
- package/types/appState.d.ts +1 -1
- package/types/components/App.d.ts +2 -0
- package/types/element/Hyperlink.d.ts +1 -0
- package/types/element/linearElementEditor.d.ts +9 -5
- package/types/types.d.ts +1 -0
|
@@ -23,6 +23,7 @@ export declare class LinearElementEditor {
|
|
|
23
23
|
}>;
|
|
24
24
|
startBindingElement: ExcalidrawBindableElement | null | "keep";
|
|
25
25
|
endBindingElement: ExcalidrawBindableElement | null | "keep";
|
|
26
|
+
hoverPointIndex: number;
|
|
26
27
|
constructor(element: NonDeleted<ExcalidrawLinearElement>, scene: Scene);
|
|
27
28
|
static POINT_HANDLE_SIZE: number;
|
|
28
29
|
/**
|
|
@@ -32,19 +33,20 @@ export declare class LinearElementEditor {
|
|
|
32
33
|
static getElement(id: InstanceType<typeof LinearElementEditor>["elementId"]): NonDeleted<ExcalidrawLinearElement> | null;
|
|
33
34
|
static handleBoxSelection(event: PointerEvent, appState: AppState, setState: React.Component<any, AppState>["setState"]): false | undefined;
|
|
34
35
|
/** @returns whether point was dragged */
|
|
35
|
-
static handlePointDragging(appState: AppState,
|
|
36
|
+
static handlePointDragging(appState: AppState, scenePointerX: number, scenePointerY: number, maybeSuggestBinding: (element: NonDeleted<ExcalidrawLinearElement>, pointSceneCoords: {
|
|
36
37
|
x: number;
|
|
37
38
|
y: number;
|
|
38
|
-
}[]) => void): boolean;
|
|
39
|
+
}[]) => void, linearElementEditor: LinearElementEditor): boolean;
|
|
39
40
|
static handlePointerUp(event: PointerEvent, editingLinearElement: LinearElementEditor, appState: AppState): LinearElementEditor;
|
|
40
|
-
static handlePointerDown(event: React.PointerEvent<HTMLCanvasElement>, appState: AppState,
|
|
41
|
+
static handlePointerDown(event: React.PointerEvent<HTMLCanvasElement>, appState: AppState, history: History, scenePointer: {
|
|
41
42
|
x: number;
|
|
42
43
|
y: number;
|
|
43
|
-
}): {
|
|
44
|
+
}, linearElementEditor: LinearElementEditor): {
|
|
44
45
|
didAddPoint: boolean;
|
|
45
46
|
hitElement: NonDeleted<ExcalidrawElement> | null;
|
|
47
|
+
linearElementEditor: LinearElementEditor | null;
|
|
46
48
|
};
|
|
47
|
-
static handlePointerMove(event: React.PointerEvent<HTMLCanvasElement>, scenePointerX: number, scenePointerY: number,
|
|
49
|
+
static handlePointerMove(event: React.PointerEvent<HTMLCanvasElement>, scenePointerX: number, scenePointerY: number, linearElementEditor: LinearElementEditor, gridSize: number | null): LinearElementEditor;
|
|
48
50
|
/** scene coords */
|
|
49
51
|
static getPointGlobalCoordinates(element: NonDeleted<ExcalidrawLinearElement>, point: Point): readonly [number, number];
|
|
50
52
|
/** scene coords */
|
|
@@ -85,6 +87,7 @@ export declare class LinearElementEditor {
|
|
|
85
87
|
}>;
|
|
86
88
|
startBindingElement: ExcalidrawBindableElement | "keep" | null;
|
|
87
89
|
endBindingElement: ExcalidrawBindableElement | "keep" | null;
|
|
90
|
+
hoverPointIndex: number;
|
|
88
91
|
};
|
|
89
92
|
isLoading: boolean;
|
|
90
93
|
errorMessage: string | null;
|
|
@@ -188,6 +191,7 @@ export declare class LinearElementEditor {
|
|
|
188
191
|
elementBackground?: string[] | undefined;
|
|
189
192
|
elementStroke?: string[] | undefined;
|
|
190
193
|
};
|
|
194
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
191
195
|
};
|
|
192
196
|
};
|
|
193
197
|
static deletePoints(element: NonDeleted<ExcalidrawLinearElement>, pointIndices: readonly number[]): void;
|
package/types/types.d.ts
CHANGED