@zsviczian/excalidraw 0.17.0-obsidian-2 → 0.17.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zsviczian/excalidraw",
3
- "version": "0.17.0-obsidian-2",
3
+ "version": "0.17.0-obsidian-3",
4
4
  "main": "main.js",
5
5
  "types": "types/packages/excalidraw/index.d.ts",
6
6
  "files": [
@@ -38,6 +38,7 @@ export declare const useExcalidrawElements: () => readonly NonDeletedExcalidrawE
38
38
  export declare const useExcalidrawAppState: () => AppState;
39
39
  export declare const useExcalidrawSetAppState: () => <K extends keyof AppState>(state: AppState | ((prevState: Readonly<AppState>, props: Readonly<any>) => AppState | Pick<AppState, K> | null) | Pick<AppState, K> | null, callback?: (() => void) | undefined) => void;
40
40
  export declare const useExcalidrawActionManager: () => ActionManager;
41
+ export declare let hostPlugin: any;
41
42
  declare class App extends React.Component<AppProps, AppState> {
42
43
  canvas: AppClassProperties["canvas"];
43
44
  interactiveCanvas: AppClassProperties["interactiveCanvas"];
@@ -12,9 +12,9 @@ export declare const computeBoundTextPosition: (container: ExcalidrawElement, bo
12
12
  y: number;
13
13
  };
14
14
  export declare const measureText: (text: string, font: FontString, lineHeight: ExcalidrawTextElement["lineHeight"]) => {
15
- width: number;
16
- height: number;
17
15
  baseline: number;
16
+ height: number;
17
+ width: number;
18
18
  };
19
19
  export declare const measureBaseline: (text: string, font: FontString, lineHeight: ExcalidrawTextElement["lineHeight"], wrapInContainer?: boolean) => number;
20
20
  /**
package/types/types.d.ts CHANGED
@@ -382,6 +382,7 @@ export interface ExcalidrawProps {
382
382
  renderMermaid?: boolean;
383
383
  onContextMenu?: (element: readonly NonDeletedExcalidrawElement[], appState: AppState, onClose: (callback?: () => void) => void) => JSX.Element | null;
384
384
  aiEnabled?: boolean;
385
+ obsidianHostPlugin?: any;
385
386
  }
386
387
  export type SceneData = {
387
388
  elements?: ImportedDataState["elements"];