@kitschpatrol/tldraw-cli 4.3.1 → 4.4.0

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.
@@ -1,5 +1,4 @@
1
1
  import type { TldrawToImageOptions } from './tldraw-to-image';
2
- type DownloadOptions = Omit<TldrawToImageOptions, 'frames'>;
3
2
  export default class TldrawController {
4
3
  private readonly href;
5
4
  private page?;
@@ -9,18 +8,19 @@ export default class TldrawController {
9
8
  private get isLocal();
10
9
  start(): Promise<void>;
11
10
  close(): Promise<void>;
12
- download(options: DownloadOptions): Promise<string[]>;
13
- downloadFrame(frameNameOrId: string, options: DownloadOptions): Promise<string[]>;
14
- downloadFrames(frameNamesOrIds: string[], options: DownloadOptions): Promise<string[]>;
15
- downloadAllFrames(options: DownloadOptions): Promise<string[]>;
11
+ download(options: TldrawToImageOptions): Promise<string[]>;
16
12
  loadFile(filePath: string): Promise<void>;
17
13
  getShareUrl(): Promise<string>;
18
- private _download;
19
14
  private closeMenus;
20
15
  private clickButtonTitles;
21
- private getPageFrameWithNameOrId;
16
+ private validatePages;
17
+ private validateFrames;
18
+ private getDownloadPlans;
19
+ private getSketchStructure;
20
+ private getPages;
22
21
  private getPageFrames;
22
+ private getCurrentPage;
23
+ private setCurrentPage;
23
24
  private stripStyleElement;
24
25
  private stripUndefined;
25
26
  }
26
- export {};
@@ -6,6 +6,7 @@ export type TldrawToImageOptions = {
6
6
  name?: string;
7
7
  output?: string;
8
8
  padding?: number;
9
+ pages?: boolean | number[] | string[];
9
10
  print?: boolean;
10
11
  scale?: number;
11
12
  stripStyle?: boolean;