@zsviczian/excalidraw 0.12.0-obsidian-7 → 0.12.0-obsidian-9

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.
Files changed (75) hide show
  1. package/README.md +10 -4
  2. package/dist/excalidraw.development.js +369 -488
  3. package/dist/excalidraw.production.min.js +1 -1
  4. package/dist/excalidraw.production.min.js.LICENSE.txt +0 -9
  5. package/package.json +1 -1
  6. package/types/actions/actionCanvas.d.ts +5 -5
  7. package/types/actions/actionClipboard.d.ts +1 -1
  8. package/types/actions/actionDeleteSelected.d.ts +1 -1
  9. package/types/actions/actionExport.d.ts +1 -1
  10. package/types/components/Actions.d.ts +2 -2
  11. package/types/components/BackgroundPickerAndDarkModeToggle.d.ts +1 -6
  12. package/types/components/InitializeApp.d.ts +2 -0
  13. package/types/components/LayerUI.d.ts +1 -2
  14. package/types/components/LoadingMessage.d.ts +2 -0
  15. package/types/components/MobileMenu.d.ts +1 -2
  16. package/types/data/blob.d.ts +1 -1
  17. package/types/element/linearElementEditor.d.ts +18 -7
  18. package/types/math.d.ts +8 -1
  19. package/types/packages/common.webpack.dev.config.d.ts +71 -0
  20. package/types/packages/common.webpack.prod.config.d.ts +83 -0
  21. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ar-SA-json-4ff31c0432fe4c84d726.d.ts +0 -0
  22. package/types/packages/excalidraw/dist/excalidraw-assets/locales/bg-BG-json-1c6eb789a5c90a61edf8.d.ts +0 -0
  23. package/types/packages/excalidraw/dist/excalidraw-assets/locales/bn-BD-json-906099d3f665de611389.d.ts +0 -0
  24. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ca-ES-json-7f3f0a2c7f428fa60e01.d.ts +0 -0
  25. package/types/packages/excalidraw/dist/excalidraw-assets/locales/cs-CZ-json-304d08cac870aa0684ec.d.ts +0 -0
  26. package/types/packages/excalidraw/dist/excalidraw-assets/locales/da-DK-json-80c7153473e1427a9a3b.d.ts +0 -0
  27. package/types/packages/excalidraw/dist/excalidraw-assets/locales/de-DE-json-9b88838b2648d7d61f1b.d.ts +0 -0
  28. package/types/packages/excalidraw/dist/excalidraw-assets/locales/el-GR-json-18ce48894d32ca4895b8.d.ts +0 -0
  29. package/types/packages/excalidraw/dist/excalidraw-assets/locales/es-ES-json-69a6c81b0e5dc370ea1a.d.ts +0 -0
  30. package/types/packages/excalidraw/dist/excalidraw-assets/locales/eu-ES-json-a61838a778c9eacb61ec.d.ts +0 -0
  31. package/types/packages/excalidraw/dist/excalidraw-assets/locales/fa-IR-json-2d0cb1044744ed8e4139.d.ts +0 -0
  32. package/types/packages/excalidraw/dist/excalidraw-assets/locales/fi-FI-json-32bcb6481756ef8af590.d.ts +0 -0
  33. package/types/packages/excalidraw/dist/excalidraw-assets/locales/fr-FR-json-935424b03b86c1d82dcd.d.ts +0 -0
  34. package/types/packages/excalidraw/dist/excalidraw-assets/locales/gl-ES-json-5b417484d91976bce190.d.ts +0 -0
  35. package/types/packages/excalidraw/dist/excalidraw-assets/locales/he-IL-json-3f5bfefb1ad0baf19b6c.d.ts +0 -0
  36. package/types/packages/excalidraw/dist/excalidraw-assets/locales/hi-IN-json-71a38dbb2202baec2bad.d.ts +0 -0
  37. package/types/packages/excalidraw/dist/excalidraw-assets/locales/hu-HU-json-e1275f2b1e6ae6ef4427.d.ts +0 -0
  38. package/types/packages/excalidraw/dist/excalidraw-assets/locales/id-ID-json-da38cd847aaf195c3c20.d.ts +0 -0
  39. package/types/packages/excalidraw/dist/excalidraw-assets/locales/it-IT-json-10923c290e23bd31a5b4.d.ts +0 -0
  40. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ja-JP-json-4c357f8206b88dc44840.d.ts +0 -0
  41. package/types/packages/excalidraw/dist/excalidraw-assets/locales/kab-KAB-json-8303afee283a95237f2b.d.ts +0 -0
  42. package/types/packages/excalidraw/dist/excalidraw-assets/locales/kk-KZ-json-ccf0876179807d1d685a.d.ts +0 -0
  43. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ko-KR-json-8e7ae1bb19a7677a8190.d.ts +0 -0
  44. package/types/packages/excalidraw/dist/excalidraw-assets/locales/lt-LT-json-4147c3543dce75362050.d.ts +0 -0
  45. package/types/packages/excalidraw/dist/excalidraw-assets/locales/lv-LV-json-cc5e03ed2a09f8f8b60b.d.ts +0 -0
  46. package/types/packages/excalidraw/dist/excalidraw-assets/locales/mr-IN-json-cb316f30d7b40d3e6766.d.ts +0 -0
  47. package/types/packages/excalidraw/dist/excalidraw-assets/locales/my-MM-json-5dcc8e9cb97a4aa1d8bc.d.ts +0 -0
  48. package/types/packages/excalidraw/dist/excalidraw-assets/locales/nb-NO-json-61192c4af6e2231d38ae.d.ts +0 -0
  49. package/types/packages/excalidraw/dist/excalidraw-assets/locales/nl-NL-json-861ac93c048b5296b791.d.ts +0 -0
  50. package/types/packages/excalidraw/dist/excalidraw-assets/locales/nn-NO-json-808362c0cd4eccb6a885.d.ts +0 -0
  51. package/types/packages/excalidraw/dist/excalidraw-assets/locales/oc-FR-json-d5706569ab4023f94c66.d.ts +0 -0
  52. package/types/packages/excalidraw/dist/excalidraw-assets/locales/pa-IN-json-eb38ce8bfc1b974c1455.d.ts +0 -0
  53. package/types/packages/excalidraw/dist/excalidraw-assets/locales/pl-PL-json-55d8dd8a44917364ef63.d.ts +0 -0
  54. package/types/packages/excalidraw/dist/excalidraw-assets/locales/pt-BR-json-4ffa2f70c2863bca4f91.d.ts +0 -0
  55. package/types/packages/excalidraw/dist/excalidraw-assets/locales/pt-PT-json-4368eca89d2b2b3fb444.d.ts +0 -0
  56. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ro-RO-json-232ea1e0c18745ec6ed9.d.ts +0 -0
  57. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ru-RU-json-ce5fedd8812aa76a0b41.d.ts +0 -0
  58. package/types/packages/excalidraw/dist/excalidraw-assets/locales/si-LK-json-f48a64dfd1cb9c075d2e.d.ts +0 -0
  59. package/types/packages/excalidraw/dist/excalidraw-assets/locales/sk-SK-json-537132ec043d4db7f328.d.ts +0 -0
  60. package/types/packages/excalidraw/dist/excalidraw-assets/locales/sl-SI-json-b69c9fd9b85dac1310c6.d.ts +0 -0
  61. package/types/packages/excalidraw/dist/excalidraw-assets/locales/sv-SE-json-9a8520b202b7181625cf.d.ts +0 -0
  62. package/types/packages/excalidraw/dist/excalidraw-assets/locales/ta-IN-json-15175d03785f7a482568.d.ts +0 -0
  63. package/types/packages/excalidraw/dist/excalidraw-assets/locales/tr-TR-json-c53ae37e848043dd0b89.d.ts +0 -0
  64. package/types/packages/excalidraw/dist/excalidraw-assets/locales/uk-UA-json-15fda426e55236408ef9.d.ts +0 -0
  65. package/types/packages/excalidraw/dist/excalidraw-assets/locales/vi-VN-json-929afcbc15b2c06a64f2.d.ts +0 -0
  66. package/types/packages/excalidraw/dist/excalidraw-assets/locales/zh-CN-json-a670f2b6ddaac05b44fb.d.ts +0 -0
  67. package/types/packages/excalidraw/dist/excalidraw-assets/locales/zh-HK-json-9e8b36ecb4c8399449b1.d.ts +0 -0
  68. package/types/packages/excalidraw/dist/excalidraw-assets/locales/zh-TW-json-441a30840e0721d7f2e2.d.ts +0 -0
  69. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-e516a81320b8c48e3114.d.ts +0 -0
  70. package/types/packages/excalidraw/dist/excalidraw.development.d.ts +4 -2
  71. package/types/packages/excalidraw/webpack.dev.config.d.ts +61 -82
  72. package/types/packages/excalidraw/webpack.prod.config.d.ts +70 -85
  73. package/types/packages/utils.d.ts +4 -1
  74. package/types/random.d.ts +1 -0
  75. package/types/types.d.ts +1 -1
@@ -11,15 +11,6 @@ https://github.com/nodeca/pica
11
11
 
12
12
  */
13
13
 
14
- /**
15
- * @license
16
- * Lodash <https://lodash.com/>
17
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
18
- * Released under MIT license <https://lodash.com/license>
19
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
20
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
21
- */
22
-
23
14
  /**
24
15
  * @license React
25
16
  * react-jsx-runtime.production.min.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zsviczian/excalidraw",
3
- "version": "0.12.0-obsidian-7",
3
+ "version": "0.12.0-obsidian-9",
4
4
  "main": "main.js",
5
5
  "types": "types/packages/excalidraw/index.d.ts",
6
6
  "files": [
@@ -46,6 +46,11 @@ export declare const actionClearCanvas: {
46
46
  lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
47
47
  locked: boolean;
48
48
  };
49
+ colorPalette: {
50
+ canvasBackground?: string[] | undefined;
51
+ elementBackground?: string[] | undefined;
52
+ elementStroke?: string[] | undefined;
53
+ };
49
54
  scrollX: number;
50
55
  scrollY: number;
51
56
  viewBackgroundColor: string;
@@ -115,11 +120,6 @@ export declare const actionClearCanvas: {
115
120
  showHyperlinkPopup: false | "info" | "editor";
116
121
  linkOpacity: number;
117
122
  trayModeEnabled: boolean;
118
- colorPalette: {
119
- canvasBackground?: string[] | undefined;
120
- elementBackground?: string[] | undefined;
121
- elementStroke?: string[] | undefined;
122
- };
123
123
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
124
124
  };
125
125
  commitToHistory: true;
@@ -147,7 +147,7 @@ export declare const actionCut: {
147
147
  y: number;
148
148
  }>;
149
149
  hoverPointIndex: number;
150
- midPointHovered: boolean;
150
+ segmentMidPointHoveredCoords: readonly [number, number] | null;
151
151
  };
152
152
  isLoading: boolean;
153
153
  errorMessage: string | null;
@@ -138,7 +138,7 @@ export declare const actionDeleteSelected: {
138
138
  y: number;
139
139
  }>;
140
140
  hoverPointIndex: number;
141
- midPointHovered: boolean;
141
+ segmentMidPointHoveredCoords: readonly [number, number] | null;
142
142
  };
143
143
  isLoading: boolean;
144
144
  errorMessage: string | null;
@@ -938,7 +938,7 @@ export declare const actionLoadScene: {
938
938
  commitToHistory: false;
939
939
  }>;
940
940
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
941
- PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
941
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
942
942
  } & {
943
943
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
944
944
  };
@@ -25,8 +25,8 @@ export declare const UndoRedoActions: ({ renderAction, className, }: {
25
25
  renderAction: ActionManager["renderAction"];
26
26
  className?: string | undefined;
27
27
  }) => JSX.Element;
28
- export declare const ExitZenModeAction: ({ executeAction, showExitZenModeBtn, }: {
29
- executeAction: ActionManager["executeAction"];
28
+ export declare const ExitZenModeAction: ({ actionManager, showExitZenModeBtn, }: {
29
+ actionManager: ActionManager;
30
30
  showExitZenModeBtn: boolean;
31
31
  }) => JSX.Element;
32
32
  export declare const FinalizeAction: ({ renderAction, className, }: {
@@ -1,9 +1,4 @@
1
- import React from "react";
2
1
  import { ActionManager } from "../actions/manager";
3
- import { AppState } from "../types";
4
- export declare const BackgroundPickerAndDarkModeToggle: ({ appState, setAppState, actionManager, showThemeBtn, }: {
2
+ export declare const BackgroundPickerAndDarkModeToggle: ({ actionManager, }: {
5
3
  actionManager: ActionManager;
6
- appState: AppState;
7
- setAppState: React.Component<any, AppState>["setState"];
8
- showThemeBtn: boolean;
9
4
  }) => JSX.Element;
@@ -1,8 +1,10 @@
1
1
  import React from "react";
2
2
  import { Language } from "../i18n";
3
+ import { Theme } from "../element/types";
3
4
  interface Props {
4
5
  langCode: Language["code"];
5
6
  children: React.ReactElement;
7
+ theme?: Theme;
6
8
  }
7
9
  export declare const InitializeApp: (props: Props) => JSX.Element;
8
10
  export {};
@@ -18,7 +18,6 @@ interface LayerUIProps {
18
18
  onPenModeToggle: () => void;
19
19
  onInsertElements: (elements: readonly NonDeletedExcalidrawElement[]) => void;
20
20
  showExitZenModeBtn: boolean;
21
- showThemeBtn: boolean;
22
21
  langCode: Language["code"];
23
22
  isCollaborating: boolean;
24
23
  renderTopRightUI?: ExcalidrawProps["renderTopRightUI"];
@@ -33,5 +32,5 @@ interface LayerUIProps {
33
32
  insertOnCanvasDirectly: boolean;
34
33
  }) => void;
35
34
  }
36
- declare const _default: React.MemoExoticComponent<({ actionManager, appState, files, setAppState, elements, canvas, onCollabButtonClick, onLockToggle, onPenModeToggle, onInsertElements, showExitZenModeBtn, showThemeBtn, isCollaborating, renderTopRightUI, renderCustomFooter, renderCustomStats, libraryReturnUrl, UIOptions, focusContainer, library, id, onImageAction, }: LayerUIProps) => JSX.Element>;
35
+ declare const _default: React.MemoExoticComponent<({ actionManager, appState, files, setAppState, elements, canvas, onCollabButtonClick, onLockToggle, onPenModeToggle, onInsertElements, showExitZenModeBtn, isCollaborating, renderTopRightUI, renderCustomFooter, renderCustomStats, libraryReturnUrl, UIOptions, focusContainer, library, id, onImageAction, }: LayerUIProps) => JSX.Element>;
37
36
  export default _default;
@@ -1,4 +1,6 @@
1
1
  /// <reference types="react" />
2
+ import { Theme } from "../element/types";
2
3
  export declare const LoadingMessage: React.FC<{
3
4
  delay?: number;
5
+ theme?: Theme;
4
6
  }>;
@@ -16,12 +16,11 @@ declare type MobileMenuProps = {
16
16
  canvas: HTMLCanvasElement | null;
17
17
  isCollaborating: boolean;
18
18
  renderCustomFooter?: (isMobile: boolean, appState: AppState) => JSX.Element | null;
19
- showThemeBtn: boolean;
20
19
  onImageAction: (data: {
21
20
  insertOnCanvasDirectly: boolean;
22
21
  }) => void;
23
22
  renderTopRightUI?: (isMobile: boolean, appState: AppState) => JSX.Element | null;
24
23
  renderCustomStats?: ExcalidrawProps["renderCustomStats"];
25
24
  };
26
- export declare const MobileMenu: ({ appState, elements, libraryMenu, actionManager, renderJSONExportDialog, renderImageExportDialog, setAppState, onCollabButtonClick, onLockToggle, onPenModeToggle, canvas, isCollaborating, renderCustomFooter, showThemeBtn, onImageAction, renderTopRightUI, renderCustomStats, }: MobileMenuProps) => JSX.Element;
25
+ export declare const MobileMenu: ({ appState, elements, libraryMenu, actionManager, renderJSONExportDialog, renderImageExportDialog, setAppState, onCollabButtonClick, onLockToggle, onPenModeToggle, canvas, isCollaborating, renderCustomFooter, onImageAction, renderTopRightUI, renderCustomStats, }: MobileMenuProps) => JSX.Element;
27
26
  export {};
@@ -40,7 +40,7 @@ export declare const getFileFromEvent: (event: React.DragEvent<HTMLDivElement>)
40
40
  }>;
41
41
  export declare const getFileHandle: (event: React.DragEvent<HTMLDivElement>) => Promise<FileSystemHandle | null>;
42
42
  export declare const createFile: (blob: File | Blob | ArrayBuffer, mimeType: ValueOf<typeof MIME_TYPES>, name: string | undefined) => File;
43
- /** attemps to detect correct mimeType if none is set, or if an image
43
+ /** attempts to detect correct mimeType if none is set, or if an image
44
44
  * has an incorrect extension.
45
45
  * Note: doesn't handle missing .excalidraw/.excalidrawlib extension */
46
46
  export declare const normalizeFile: (file: File) => Promise<File>;
@@ -3,6 +3,11 @@ import { NonDeleted, ExcalidrawLinearElement, ExcalidrawElement, PointBinding, E
3
3
  import { Point, AppState } from "../types";
4
4
  import History from "../history";
5
5
  import Scene from "../scene/Scene";
6
+ declare const editorMidPointsCache: {
7
+ version: number | null;
8
+ points: (Point | null)[];
9
+ zoom: number | null;
10
+ };
6
11
  export declare class LinearElementEditor {
7
12
  readonly elementId: ExcalidrawElement["id"] & {
8
13
  _brand: "excalidrawLinearElementId";
@@ -24,7 +29,7 @@ export declare class LinearElementEditor {
24
29
  readonly startBindingElement: ExcalidrawBindableElement | null | "keep";
25
30
  readonly endBindingElement: ExcalidrawBindableElement | null | "keep";
26
31
  readonly hoverPointIndex: number;
27
- readonly midPointHovered: boolean;
32
+ readonly segmentMidPointHoveredCoords: Point | null;
28
33
  constructor(element: NonDeleted<ExcalidrawLinearElement>, scene: Scene);
29
34
  static POINT_HANDLE_SIZE: number;
30
35
  /**
@@ -39,11 +44,15 @@ export declare class LinearElementEditor {
39
44
  y: number;
40
45
  }[]) => void, linearElementEditor: LinearElementEditor): boolean;
41
46
  static handlePointerUp(event: PointerEvent, editingLinearElement: LinearElementEditor, appState: AppState): LinearElementEditor;
42
- static isHittingMidPoint: (linearElementEditor: LinearElementEditor, scenePointer: {
47
+ static getEditorMidPoints: (element: NonDeleted<ExcalidrawLinearElement>, appState: AppState) => (typeof editorMidPointsCache)["points"];
48
+ static updateEditorMidPointsCache: (element: NonDeleted<ExcalidrawLinearElement>, appState: AppState) => void;
49
+ static getSegmentMidpointHitCoords: (linearElementEditor: LinearElementEditor, scenePointer: {
43
50
  x: number;
44
51
  y: number;
45
- }, appState: AppState) => boolean;
46
- static getMidPoint(linearElementEditor: LinearElementEditor): readonly [number, number] | null;
52
+ }, appState: AppState) => readonly [number, number] | null;
53
+ static isSegmentTooShort(element: NonDeleted<ExcalidrawLinearElement>, startPoint: Point, endPoint: Point, zoom: AppState["zoom"]): boolean;
54
+ static getSegmentMidPoint(element: NonDeleted<ExcalidrawLinearElement>, startPoint: Point, endPoint: Point, endPointIndex: number): readonly [number, number];
55
+ static getSegmentMidPointIndex(linearElementEditor: LinearElementEditor, appState: AppState, midPoint: Point): number;
47
56
  static handlePointerDown(event: React.PointerEvent<HTMLCanvasElement>, appState: AppState, history: History, scenePointer: {
48
57
  x: number;
49
58
  y: number;
@@ -53,7 +62,8 @@ export declare class LinearElementEditor {
53
62
  linearElementEditor: LinearElementEditor | null;
54
63
  isMidPoint: boolean;
55
64
  };
56
- static handlePointerMove(event: React.PointerEvent<HTMLCanvasElement>, scenePointerX: number, scenePointerY: number, linearElementEditor: LinearElementEditor, gridSize: number | null): LinearElementEditor;
65
+ static arePointsEqual(point1: Point | null, point2: Point | null): boolean;
66
+ static handlePointerMove(event: React.PointerEvent<HTMLCanvasElement>, scenePointerX: number, scenePointerY: number, appState: AppState): LinearElementEditor | null;
57
67
  /** scene coords */
58
68
  static getPointGlobalCoordinates(element: NonDeleted<ExcalidrawLinearElement>, point: Point): readonly [number, number];
59
69
  /** scene coords */
@@ -94,7 +104,7 @@ export declare class LinearElementEditor {
94
104
  startBindingElement: ExcalidrawBindableElement | "keep" | null;
95
105
  endBindingElement: ExcalidrawBindableElement | "keep" | null;
96
106
  hoverPointIndex: number;
97
- midPointHovered: boolean;
107
+ segmentMidPointHoveredCoords: readonly [number, number] | null;
98
108
  };
99
109
  isLoading: boolean;
100
110
  errorMessage: string | null;
@@ -202,7 +212,7 @@ export declare class LinearElementEditor {
202
212
  };
203
213
  };
204
214
  static deletePoints(element: NonDeleted<ExcalidrawLinearElement>, pointIndices: readonly number[]): void;
205
- static addPoints(element: NonDeleted<ExcalidrawLinearElement>, targetPoints: {
215
+ static addPoints(element: NonDeleted<ExcalidrawLinearElement>, appState: AppState, targetPoints: {
206
216
  point: Point;
207
217
  }[]): void;
208
218
  static movePoints(element: NonDeleted<ExcalidrawLinearElement>, targetPoints: {
@@ -216,3 +226,4 @@ export declare class LinearElementEditor {
216
226
  private static _updatePoints;
217
227
  private static _getShiftLockedDelta;
218
228
  }
229
+ export {};
package/types/math.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Point, Zoom } from "./types";
2
- import { ExcalidrawLinearElement } from "./element/types";
2
+ import { ExcalidrawLinearElement, NonDeleted } from "./element/types";
3
3
  export declare const rotate: (x1: number, y1: number, x2: number, y2: number, angle: number) => [number, number];
4
4
  export declare const rotatePoint: (point: readonly [number, number], center: readonly [number, number], angle: number) => [number, number];
5
5
  export declare const adjustXYWithRotation: (sides: {
@@ -18,3 +18,10 @@ export declare const centerPoint: (a: readonly [number, number], b: readonly [nu
18
18
  export declare const isPathALoop: (points: ExcalidrawLinearElement["points"], zoomValue?: Zoom["value"]) => boolean;
19
19
  export declare const isPointInPolygon: (points: Point[], x: number, y: number) => boolean;
20
20
  export declare const getGridPoint: (x: number, y: number, gridSize: number | null) => [number, number];
21
+ export declare const getControlPointsForBezierCurve: (element: NonDeleted<ExcalidrawLinearElement>, endPoint: readonly [number, number]) => [number, number][] | null;
22
+ export declare const getBezierXY: (p0: readonly [number, number], p1: readonly [number, number], p2: readonly [number, number], p3: readonly [number, number], t: number) => number[];
23
+ export declare const getPointsInBezierCurve: (element: NonDeleted<ExcalidrawLinearElement>, endPoint: readonly [number, number]) => [number, number][];
24
+ export declare const getBezierCurveArcLengths: (element: NonDeleted<ExcalidrawLinearElement>, endPoint: readonly [number, number]) => number[];
25
+ export declare const getBezierCurveLength: (element: NonDeleted<ExcalidrawLinearElement>, endPoint: readonly [number, number]) => number;
26
+ export declare const mapIntervalToBezierT: (element: NonDeleted<ExcalidrawLinearElement>, endPoint: readonly [number, number], interval: number) => number;
27
+ export declare const arePointsEqual: (p1: readonly [number, number], p2: readonly [number, number]) => boolean;
@@ -0,0 +1,71 @@
1
+ import webpack = require("webpack");
2
+ export const mode: string;
3
+ export const devtool: boolean;
4
+ export namespace output {
5
+ const libraryTarget: string;
6
+ const filename: string;
7
+ const publicPath: string;
8
+ }
9
+ export namespace resolve {
10
+ const extensions: string[];
11
+ }
12
+ export namespace module {
13
+ const rules: ({
14
+ test: RegExp;
15
+ exclude: RegExp;
16
+ use: (string | {
17
+ loader: string;
18
+ options?: undefined;
19
+ } | {
20
+ loader: string;
21
+ options: {
22
+ postcssOptions: {
23
+ plugins: any[];
24
+ };
25
+ };
26
+ })[];
27
+ type?: undefined;
28
+ } | {
29
+ test: RegExp;
30
+ exclude: RegExp;
31
+ use: {
32
+ loader: string;
33
+ options: {
34
+ transpileOnly: boolean;
35
+ configFile: string;
36
+ };
37
+ }[];
38
+ type?: undefined;
39
+ } | {
40
+ test: RegExp;
41
+ type: string;
42
+ exclude?: undefined;
43
+ use?: undefined;
44
+ })[];
45
+ }
46
+ export namespace optimization {
47
+ namespace splitChunks {
48
+ const chunks: string;
49
+ namespace cacheGroups {
50
+ namespace vendors {
51
+ const test: RegExp;
52
+ const name: string;
53
+ }
54
+ }
55
+ }
56
+ }
57
+ export const plugins: (webpack.EvalSourceMapDevToolPlugin | webpack.DefinePlugin)[];
58
+ export const externals: {
59
+ react: {
60
+ root: string;
61
+ commonjs2: string;
62
+ commonjs: string;
63
+ amd: string;
64
+ };
65
+ "react-dom": {
66
+ root: string;
67
+ commonjs2: string;
68
+ commonjs: string;
69
+ amd: string;
70
+ };
71
+ };
@@ -0,0 +1,83 @@
1
+ export const mode: string;
2
+ export namespace output {
3
+ const libraryTarget: string;
4
+ const filename: string;
5
+ const publicPath: string;
6
+ }
7
+ export namespace resolve {
8
+ const extensions: string[];
9
+ }
10
+ export namespace module {
11
+ const rules: ({
12
+ test: RegExp;
13
+ exclude: RegExp;
14
+ use: (string | {
15
+ loader: string;
16
+ options?: undefined;
17
+ } | {
18
+ loader: string;
19
+ options: {
20
+ postcssOptions: {
21
+ plugins: any[];
22
+ };
23
+ };
24
+ })[];
25
+ type?: undefined;
26
+ } | {
27
+ test: RegExp;
28
+ exclude: RegExp;
29
+ use: ({
30
+ loader: string;
31
+ options: {
32
+ transpileOnly: boolean;
33
+ configFile: string;
34
+ presets?: undefined;
35
+ plugins?: undefined;
36
+ };
37
+ } | {
38
+ loader: string;
39
+ options: {
40
+ presets: (string | (string | {
41
+ runtime: string;
42
+ })[])[];
43
+ plugins: string[];
44
+ transpileOnly?: undefined;
45
+ configFile?: undefined;
46
+ };
47
+ })[];
48
+ type?: undefined;
49
+ } | {
50
+ test: RegExp;
51
+ type: string;
52
+ exclude?: undefined;
53
+ use?: undefined;
54
+ })[];
55
+ }
56
+ export namespace optimization {
57
+ const minimize: boolean;
58
+ const minimizer: any[];
59
+ namespace splitChunks {
60
+ const chunks: string;
61
+ namespace cacheGroups {
62
+ namespace vendors {
63
+ const test: RegExp;
64
+ const name: string;
65
+ }
66
+ }
67
+ }
68
+ }
69
+ export const plugins: any[];
70
+ export const externals: {
71
+ react: {
72
+ root: string;
73
+ commonjs2: string;
74
+ commonjs: string;
75
+ amd: string;
76
+ };
77
+ "react-dom": {
78
+ root: string;
79
+ commonjs2: string;
80
+ commonjs: string;
81
+ amd: string;
82
+ };
83
+ };
@@ -1,2 +1,4 @@
1
- export = __WEBPACK_EXTERNAL_MODULE_react_dom__;
2
- export = __WEBPACK_EXTERNAL_MODULE_react_dom__;
1
+ declare const _exports: any;
2
+ export = _exports;
3
+ export const __esModule: boolean;
4
+ export const ExcalidrawLib: {};