@jetprint/editor-sdk 1.2.13 → 1.2.15

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.
@@ -35,6 +35,11 @@ export declare function useCompleteScreenshot(options: {
35
35
  };
36
36
  maskUrl: string;
37
37
  }>;
38
+ /**
39
+ * 截图前等画布 idle:仅等「分片切换」完成,避免切换中途截到下一分片/空画布。
40
+ * 不要在此等预览构建(会与调用方预览构建死锁)。
41
+ */
42
+ awaitCanvasIdle?: () => Promise<void>;
38
43
  }): {
39
44
  buildCompleteFabricScreenshotList: (diecutData: any, selectedSize?: string, baseBlob?: Blob | null) => Promise<IFabricScreenshot[]>;
40
45
  getCanvasBaseScreenshot: (snapshotOpts?: FabricMainCanvasSnapshotOptions) => Promise<Blob | null>;
@@ -38,6 +38,11 @@ export declare function useDiecutScreenshot(options: {
38
38
  * 返回 null 或缺某 id 时回退居中 mask 方案。
39
39
  */
40
40
  tryBuildZoneInverseMaskBlobs?: TryBuildZoneInverseMaskBlobs;
41
+ /**
42
+ * 截图前等画布 idle:仅等「分片切换(diecutSwitchInProgress)」这种会改主画布的操作完成,
43
+ * 避免在切换中途截到下一分片/空画布。**不要**在此等预览构建(会与调用方预览构建死锁)。
44
+ */
45
+ awaitCanvasIdle?: () => Promise<void>;
41
46
  }): {
42
47
  generateDiecutScreenshot: (diecutId: string, snapshotOpts?: FabricMainCanvasSnapshotOptions, precapturedBaseBlob?: Blob | null) => Promise<void>;
43
48
  generateDiecutScreenshotsForIds: (diecutIds: string[]) => Promise<void>;