@zsviczian/excalidraw 0.10.0-obsidian-24 → 0.10.0-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zsviczian/excalidraw",
3
- "version": "0.10.0-obsidian-24",
3
+ "version": "0.10.0-obsidian-28",
4
4
  "main": "main.js",
5
5
  "types": "types/packages/excalidraw/index.d.ts",
6
6
  "files": [
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { RoughCanvas } from "roughjs/bin/canvas";
3
3
  import { ActionManager } from "../actions/manager";
4
- import { ExcalidrawElement } from "../element/types";
4
+ import { ExcalidrawElement, NonDeletedExcalidrawElement } from "../element/types";
5
5
  import History from "../history";
6
6
  import { AppClassProperties, AppProps, AppState, ExcalidrawImperativeAPI, BinaryFiles, LibraryItems, SceneData } from "../types";
7
7
  export declare const useIsMobile: () => boolean;
@@ -33,7 +33,7 @@ declare class App extends React.Component<AppProps, AppState> {
33
33
  render(): JSX.Element;
34
34
  focusContainer: AppClassProperties["focusContainer"];
35
35
  getSceneElementsIncludingDeleted: () => readonly ExcalidrawElement[];
36
- getSceneElements: () => readonly import("../element/types").NonDeletedExcalidrawElement[];
36
+ getSceneElements: () => readonly NonDeletedExcalidrawElement[];
37
37
  private syncActionResult;
38
38
  private onBlur;
39
39
  private onUnload;
@@ -71,6 +71,7 @@ declare class App extends React.Component<AppProps, AppState> {
71
71
  toggleStats: () => void;
72
72
  scrollToContent: (target?: ExcalidrawElement | readonly ExcalidrawElement[]) => void;
73
73
  zoomToFit: (target?: readonly ExcalidrawElement[], maxZoom?: number, margin?: number) => void;
74
+ handleBindTextResize: (containerElements: NonDeletedExcalidrawElement[]) => void;
74
75
  clearToast: () => void;
75
76
  setToastMessage: (toastMessage: string) => void;
76
77
  restoreFileFromShare: () => Promise<void>;
package/types/types.d.ts CHANGED
@@ -326,6 +326,7 @@ export declare type ExcalidrawImperativeAPI = {
326
326
  importLibrary: InstanceType<typeof App>["importLibraryFromUrl"];
327
327
  setToastMessage: InstanceType<typeof App>["setToastMessage"];
328
328
  addFiles: (data: BinaryFileData[]) => void;
329
+ handleBindTextResize: InstanceType<typeof App>["handleBindTextResize"];
329
330
  readyPromise: ResolvablePromise<ExcalidrawImperativeAPI>;
330
331
  ready: true;
331
332
  id: string;