@netless/appliance-plugin 1.1.22-beta.2 → 1.1.22-beta.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/cdn/cdn.js +1 -1
- package/cdn/{fullWorker-C2mqiS.js → fullWorker-CtYtKA.js} +95 -95
- package/cdn/{subWorker-D4IDQn.js → subWorker-pL9rWG.js} +95 -95
- package/dist/appliance-plugin.js +1 -1
- package/dist/appliance-plugin.mjs +1 -1
- package/dist/core/mainEngine.d.ts +13 -0
- package/dist/core/utils/indexDB.d.ts +17 -0
- package/dist/fullWorker.js +95 -95
- package/dist/index-CZGYaTCW.js +1 -0
- package/dist/{index-ChQedSu7.mjs → index-D7QizWai.mjs} +4704 -4649
- package/dist/{index-C-JUkHdV.mjs → index-DKEMLABe.mjs} +1 -1
- package/dist/{index-8SjVoT5b.js → index-utKTWCwZ.js} +1 -1
- package/dist/plugin/baseViewContainerManager.d.ts +26 -68
- package/dist/subWorker.js +95 -95
- package/package.json +1 -1
- package/dist/index-BUrnEVL4.js +0 -1
package/dist/appliance-plugin.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CZGYaTCW.js");exports.ActiveContainerType=e.ActiveContainerType;exports.ApplianceMultiPlugin=e.ApplianceMultiPlugin;exports.ApplianceNames=e.ApplianceNames;exports.ApplianceSigleWrapper=e.ApplianceSigleWrapper;exports.ApplianceSinglePlugin=e.ApplianceSinglePlugin;exports.AutoDrawPlugin=e.AutoDrawPlugin;exports.ECanvasShowType=e.ECanvasShowType;exports.EDataType=e.EDataType;exports.EForceStopReason=e.EForceStopReason;exports.EImageType=e.EImageType;exports.EMatrixrRelationType=e.EMatrixrRelationType;exports.EOperationType=e.EOperationType;exports.EPostMessageType=e.EPostMessageType;exports.ERenderFilterType=e.ERenderFilterType;exports.EScaleType=e.EScaleType;exports.EStrokeType=e.EStrokeType;exports.EToolsKey=e.EToolsKey;exports.ElayerType=e.ElayerType;exports.EmitEventType=e.EmitEventType;exports.EventMessageType=e.EventMessageType;exports.EvevtWorkState=e.EvevtWorkState;exports.EvevtWorkType=e.EvevtWorkType;exports.InternalMsgEmitterType=e.InternalMsgEmitterType;exports.Plugin=e.Plugin;exports.ShapeType=e.ShapeType;exports.fullWorkerUrl=e.fullWorker;exports.subWorkerUrl=e.subWorker;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as s, A as p, B as r, z as t, y as l, U as n, k as i, b as o, J as y, m as E, o as T, P as g, c, Q as u, N as v, F as S, a as A, L as k, l as m, K as P, E as M, O as W, I as R, R as w, G as x, w as F, x as I } from "./index-
|
|
1
|
+
import { H as s, A as p, B as r, z as t, y as l, U as n, k as i, b as o, J as y, m as E, o as T, P as g, c, Q as u, N as v, F as S, a as A, L as k, l as m, K as P, E as M, O as W, I as R, R as w, G as x, w as F, x as I } from "./index-D7QizWai.mjs";
|
|
2
2
|
export {
|
|
3
3
|
s as ActiveContainerType,
|
|
4
4
|
p as ApplianceMultiPlugin,
|
|
@@ -158,6 +158,8 @@ export declare class MasterControlForWorker extends MasterController {
|
|
|
158
158
|
private getVNodeInfoResolveMap;
|
|
159
159
|
private setFontFacesResolve;
|
|
160
160
|
private isLocalWorkActive;
|
|
161
|
+
/** IndexedDB工具类实例 */
|
|
162
|
+
private readonly indexDBUtils;
|
|
161
163
|
constructor(props: BaseSubWorkModuleProps);
|
|
162
164
|
get isBezier(): boolean;
|
|
163
165
|
destroy(): void;
|
|
@@ -178,6 +180,17 @@ export declare class MasterControlForWorker extends MasterController {
|
|
|
178
180
|
init(): Promise<void>;
|
|
179
181
|
private useMainThread;
|
|
180
182
|
on(): Promise<void>;
|
|
183
|
+
/**
|
|
184
|
+
* 清理字体缓存数据库
|
|
185
|
+
*/
|
|
186
|
+
clearFontCache(): Promise<boolean>;
|
|
187
|
+
/**
|
|
188
|
+
* 获取字体缓存状态
|
|
189
|
+
*/
|
|
190
|
+
getFontCacheStatus(): Promise<{
|
|
191
|
+
count: number;
|
|
192
|
+
totalSize: number;
|
|
193
|
+
}>;
|
|
181
194
|
loadFontInMainThread(url: string): Promise<ArrayBuffer | undefined>;
|
|
182
195
|
private validateFontData;
|
|
183
196
|
clearReRenders(num?: number): void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class IndexDBUtils {
|
|
2
|
+
private static instance;
|
|
3
|
+
private fontDB?;
|
|
4
|
+
private readonly FONT_DB_NAME;
|
|
5
|
+
private readonly FONT_STORE_NAME;
|
|
6
|
+
private readonly FONT_DB_VERSION;
|
|
7
|
+
private constructor();
|
|
8
|
+
static getInstance(): IndexDBUtils;
|
|
9
|
+
initFontDB(): Promise<IDBDatabase>;
|
|
10
|
+
getFontFromDB(fontFamily: string): Promise<ArrayBuffer | null>;
|
|
11
|
+
saveFontToDB(fontFamily: string, url: string, buffer: ArrayBuffer): Promise<boolean>;
|
|
12
|
+
clearFontCache(): Promise<boolean>;
|
|
13
|
+
getFontCacheStatus(): Promise<{
|
|
14
|
+
count: number;
|
|
15
|
+
totalSize: number;
|
|
16
|
+
}>;
|
|
17
|
+
}
|