@jetprint/editor-sdk 1.0.4 → 1.0.6

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.
@@ -48,7 +48,10 @@ export interface BackgroundRenderJob {
48
48
  export declare function putRenderTaskPlaceholder(taskId: string): Promise<void>;
49
49
  export declare function startBackgroundRender(job: BackgroundRenderJob): Promise<void>;
50
50
  /** 将 renderBundle 内所有模板合成为 Blob 列表(不写 IndexedDB,供多颜色同步渲染) */
51
- export declare function renderBundleToBlobs(bundle: RenderBundle, licenseSnapshot?: ReturnType<typeof getLicenseInfo>): Promise<Array<{
51
+ export declare function renderBundleToBlobs(bundle: RenderBundle, licenseSnapshot?: ReturnType<typeof getLicenseInfo>, onBlob?: (img: {
52
+ index: number;
53
+ blob: Blob;
54
+ }) => void): Promise<Array<{
52
55
  index: number;
53
56
  blob: Blob;
54
57
  }>>;
@@ -3,7 +3,7 @@
3
3
  * 此文件由 vite-plugins/serverEncrypt.ts 在构建时自动生成
4
4
  * 请勿手动编辑
5
5
  *
6
- * 生成时间: 2026-06-11T07:53:19.412Z
6
+ * 生成时间: 2026-06-13T16:01:04.673Z
7
7
  * 构建模式: production
8
8
  * 加密模块数量: 13
9
9
  * 构建种子: Kx9mP2qR5s... (已隐藏)
@@ -1,8 +1,11 @@
1
1
  import { ISmartObject } from "./types";
2
2
  /**
3
- * 获取或创建指定 faceId 的 deform worker
3
+ * 获取一个 deform worker(worker 池,真正多线程并行)。
4
+ * worker 每请求无状态(layerData/designBitmap 每次随消息传入),故按 round-robin 分发即可:
5
+ * 池未满先创建新 worker(前 MAX 个请求各得独立 worker → 并行),满后 round-robin 复用。
6
+ * faceId 仅保留签名兼容,不再用于路由。
4
7
  */
5
- export declare function getDeformWorker(faceId: number): Worker;
8
+ export declare function getDeformWorker(_faceId: number): Worker;
6
9
  /**
7
10
  * 规范化 layerData,将 Vue Proxy 对象转换为普通对象
8
11
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetprint/editor-sdk",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "scripts": {