@zsviczian/excalidraw 0.17.1-obsidian-25 → 0.17.1-obsidian-28
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 +190 -36
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +9 -0
- package/dist/styles.development.css +139 -41
- package/dist/styles.production.css +3 -3
- package/package.json +1 -1
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +12 -3
- package/types/excalidraw/actions/actionBoundText.d.ts +8 -2
- package/types/excalidraw/actions/actionCanvas.d.ts +56 -14
- package/types/excalidraw/actions/actionClipboard.d.ts +28 -7
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +12 -3
- package/types/excalidraw/actions/actionElementLock.d.ts +8 -2
- package/types/excalidraw/actions/actionExport.d.ts +36 -9
- package/types/excalidraw/actions/actionFinalize.d.ts +8 -2
- package/types/excalidraw/actions/actionFrame.d.ts +16 -4
- package/types/excalidraw/actions/actionGroup.d.ts +8 -2
- package/types/excalidraw/actions/actionLinearEditor.d.ts +4 -1
- package/types/excalidraw/actions/actionLink.d.ts +4 -1
- package/types/excalidraw/actions/actionMenu.d.ts +12 -3
- package/types/excalidraw/actions/actionNavigate.d.ts +8 -2
- package/types/excalidraw/actions/actionProperties.d.ts +52 -13
- package/types/excalidraw/actions/actionSelectAll.d.ts +4 -1
- package/types/excalidraw/actions/actionStyles.d.ts +4 -1
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +4 -1
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +4 -1
- package/types/excalidraw/actions/actionToggleStats.d.ts +5 -1
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +4 -1
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +4 -1
- package/types/excalidraw/actions/types.d.ts +1 -1
- package/types/excalidraw/appState.d.ts +4 -1
- package/types/excalidraw/components/App.d.ts +3 -1
- package/types/excalidraw/components/Stats/Angle.d.ts +7 -0
- package/types/excalidraw/components/Stats/Collapsible.d.ts +8 -0
- package/types/excalidraw/components/Stats/Dimension.d.ts +8 -0
- package/types/excalidraw/components/Stats/DragInput.d.ts +22 -0
- package/types/excalidraw/components/Stats/FontSize.d.ts +7 -0
- package/types/excalidraw/components/Stats/MultiAngle.d.ts +9 -0
- package/types/excalidraw/components/Stats/MultiDimension.d.ts +12 -0
- package/types/excalidraw/components/Stats/MultiFontSize.d.ts +9 -0
- package/types/excalidraw/components/Stats/MultiPosition.d.ts +12 -0
- package/types/excalidraw/components/Stats/Position.d.ts +8 -0
- package/types/excalidraw/components/Stats/index.d.ts +15 -0
- package/types/excalidraw/components/Stats/utils.d.ts +15 -0
- package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -1
- package/types/excalidraw/components/icons.d.ts +3 -0
- package/types/excalidraw/constants.d.ts +6 -0
- package/types/excalidraw/element/dragElements.d.ts +2 -2
- package/types/excalidraw/element/embeddable.d.ts +4 -1
- package/types/excalidraw/element/linearElementEditor.d.ts +4 -1
- package/types/excalidraw/element/resizeElements.d.ts +9 -1
- package/types/excalidraw/element/textElement.d.ts +1 -0
- package/types/excalidraw/element/textWysiwyg.d.ts +2 -1
- package/types/excalidraw/groups.d.ts +1 -1
- package/types/excalidraw/math.d.ts +2 -0
- package/types/excalidraw/mermaid.d.ts +2 -0
- package/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
- package/types/excalidraw/renderer/renderElement.d.ts +2 -2
- package/types/excalidraw/scene/Scene.d.ts +3 -0
- package/types/excalidraw/scene/types.d.ts +2 -1
- package/types/excalidraw/types.d.ts +7 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExcalidrawElement, ExcalidrawTextElement, NonDeletedExcalidrawElement, ExcalidrawFreeDrawElement, ExcalidrawFrameLikeElement, NonDeletedSceneElementsMap } from "../element/types";
|
|
2
2
|
import type { RoughCanvas } from "roughjs/bin/canvas";
|
|
3
|
-
import type { StaticCanvasRenderConfig, RenderableElementsMap } from "../scene/types";
|
|
3
|
+
import type { StaticCanvasRenderConfig, RenderableElementsMap, InteractiveCanvasRenderConfig } from "../scene/types";
|
|
4
4
|
import type { AppState, StaticCanvasAppState, InteractiveCanvasAppState, ElementsPendingErasure } from "../types";
|
|
5
5
|
export declare const IMAGE_INVERT_FILTER = "invert(100%) hue-rotate(180deg) saturate(1.25)";
|
|
6
6
|
export declare const getRenderOpacity: (element: ExcalidrawElement, containingFrame: ExcalidrawFrameLikeElement | null, elementsPendingErasure: ElementsPendingErasure) => number;
|
|
@@ -17,7 +17,7 @@ export interface ExcalidrawElementWithCanvas {
|
|
|
17
17
|
}
|
|
18
18
|
export declare const DEFAULT_LINK_SIZE = 14;
|
|
19
19
|
export declare const elementWithCanvasCache: WeakMap<ExcalidrawElement, ExcalidrawElementWithCanvas>;
|
|
20
|
-
export declare const renderSelectionElement: (element: NonDeletedExcalidrawElement, context: CanvasRenderingContext2D, appState: InteractiveCanvasAppState) => void;
|
|
20
|
+
export declare const renderSelectionElement: (element: NonDeletedExcalidrawElement, context: CanvasRenderingContext2D, appState: InteractiveCanvasAppState, selectionColor: InteractiveCanvasRenderConfig["selectionColor"]) => void;
|
|
21
21
|
export declare const renderElement: (element: NonDeletedExcalidrawElement, elementsMap: RenderableElementsMap, allElementsMap: NonDeletedSceneElementsMap, rc: RoughCanvas, context: CanvasRenderingContext2D, renderConfig: StaticCanvasRenderConfig, appState: StaticCanvasAppState) => void;
|
|
22
22
|
export declare const pathsCache: WeakMap<ExcalidrawFreeDrawElement, Path2D>;
|
|
23
23
|
export declare function generateFreeDrawShape(element: ExcalidrawFreeDrawElement): Path2D;
|
|
@@ -10,6 +10,9 @@ declare class Scene {
|
|
|
10
10
|
private static sceneMapByElement;
|
|
11
11
|
private static sceneMapById;
|
|
12
12
|
static mapElementToScene(elementKey: ElementKey, scene: Scene): void;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated pass down `app.scene` and use it directly
|
|
15
|
+
*/
|
|
13
16
|
static getScene(elementKey: ElementKey): Scene | null;
|
|
14
17
|
private callbacks;
|
|
15
18
|
private nonDeletedElements;
|
|
@@ -34,7 +34,7 @@ export type InteractiveCanvasRenderConfig = {
|
|
|
34
34
|
remotePointerUserStates: Map<SocketId, UserIdleState>;
|
|
35
35
|
remotePointerUsernames: Map<SocketId, string>;
|
|
36
36
|
remotePointerButton: Map<SocketId, string | undefined>;
|
|
37
|
-
selectionColor
|
|
37
|
+
selectionColor: string;
|
|
38
38
|
renderScrollbars?: boolean;
|
|
39
39
|
};
|
|
40
40
|
export type RenderInteractiveSceneCallback = {
|
|
@@ -57,6 +57,7 @@ export type InteractiveSceneRenderConfig = {
|
|
|
57
57
|
elementsMap: RenderableElementsMap;
|
|
58
58
|
visibleElements: readonly NonDeletedExcalidrawElement[];
|
|
59
59
|
selectedElements: readonly NonDeletedExcalidrawElement[];
|
|
60
|
+
allElementsMap: NonDeletedSceneElementsMap;
|
|
60
61
|
scale: number;
|
|
61
62
|
appState: InteractiveCanvasAppState;
|
|
62
63
|
renderConfig: InteractiveCanvasRenderConfig;
|
|
@@ -138,6 +138,7 @@ export type InteractiveCanvasAppState = Readonly<_CommonCanvasAppState & {
|
|
|
138
138
|
collaborators: AppState["collaborators"];
|
|
139
139
|
snapLines: AppState["snapLines"];
|
|
140
140
|
zenModeEnabled: AppState["zenModeEnabled"];
|
|
141
|
+
editingElement: AppState["editingElement"];
|
|
141
142
|
}>;
|
|
142
143
|
export type ObservedAppState = ObservedStandaloneAppState & ObservedElementsAppState;
|
|
143
144
|
export type ObservedStandaloneAppState = {
|
|
@@ -276,7 +277,11 @@ export interface AppState {
|
|
|
276
277
|
offsetLeft: number;
|
|
277
278
|
fileHandle: FileSystemHandle | null;
|
|
278
279
|
collaborators: Map<SocketId, Collaborator>;
|
|
279
|
-
|
|
280
|
+
stats: {
|
|
281
|
+
open: boolean;
|
|
282
|
+
/** bitmap. Use `STATS_PANELS` bit values */
|
|
283
|
+
panels: number;
|
|
284
|
+
};
|
|
280
285
|
currentChartType: ChartType;
|
|
281
286
|
pasteDialog: {
|
|
282
287
|
shown: false;
|
|
@@ -501,6 +506,7 @@ export type AppClassProperties = {
|
|
|
501
506
|
files: BinaryFiles;
|
|
502
507
|
device: App["device"];
|
|
503
508
|
scene: App["scene"];
|
|
509
|
+
syncActionResult: App["syncActionResult"];
|
|
504
510
|
pasteFromClipboard: App["pasteFromClipboard"];
|
|
505
511
|
id: App["id"];
|
|
506
512
|
onInsertElements: App["onInsertElements"];
|