pmx-canvas 0.1.8 → 0.1.10

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.
@@ -0,0 +1,5 @@
1
+ import type { CanvasNodeState } from '../types';
2
+ export declare const AUTO_FIT_TITLEBAR_HEIGHT = 37;
3
+ export declare const AUTO_FIT_MAX_HEIGHT = 600;
4
+ export declare function shouldAutoFitNode(node: CanvasNodeState): boolean;
5
+ export declare function computeAutoFitHeight(node: CanvasNodeState, contentHeight: number): number | null;
@@ -5,6 +5,8 @@ type IframeLoadTarget = Pick<HTMLIFrameElement, 'addEventListener' | 'removeEven
5
5
  type ExtAppBridgeNotifications = Pick<AppBridge, 'sendToolInput' | 'sendToolResult'>;
6
6
  type DisplayMode = 'inline' | 'fullscreen' | 'pip';
7
7
  interface ExtAppHostDimensionsTarget {
8
+ clientWidth?: number;
9
+ clientHeight?: number;
8
10
  getBoundingClientRect(): Pick<DOMRectReadOnly, 'width' | 'height'>;
9
11
  }
10
12
  export declare function waitForExtAppFrameLoad(target: IframeLoadTarget): Promise<void>;