@netless/appliance-plugin 1.1.43-beta.1 → 1.1.43-beta.2
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/dist/appliance-plugin.js +1 -1
- package/dist/appliance-plugin.mjs +1 -1
- package/dist/{bridge-nmqVpnZ5.mjs → bridge-DzcPAEgn.mjs} +1 -1
- package/dist/{bridge-CDqtVTPN.js → bridge-iTPNL78o.js} +1 -1
- package/dist/bridge.js +1 -1
- package/dist/bridge.mjs +1 -1
- package/dist/core/mainThread/subLocalThread.d.ts +3 -1
- package/dist/core/worker/fullWorkerLocal.d.ts +2 -1
- package/dist/fullWorker.js +72 -72
- package/dist/{index-Cjaia8CY.mjs → index-14J65ewZ.mjs} +58 -46
- package/dist/{index-BiqhUSZ0.js → index-B6nsfvHS.js} +2 -2
- package/dist/index-B9E9m3wQ.js +1 -0
- package/dist/{index-DhCFlEfW.mjs → index-BARnlEAY.mjs} +16 -15
- package/dist/{index-DdbAM7Xi.mjs → index-BGKGGHj6.mjs} +58 -46
- package/dist/{index-Cu0f4kha.js → index-Bgw8Yl5s.js} +1 -1
- package/dist/{index-DDd-30M7.js → index-Bp0tojzJ.js} +1 -1
- package/dist/{index-BJOPyRJn.js → index-C-LIZHUj.js} +1 -1
- package/dist/{index-BF310Wzc.mjs → index-D2r_A0b8.mjs} +1 -1
- package/dist/index-DVTWLAHF.js +1 -0
- package/dist/{index-mcBiJOLo.mjs → index-DWS4kyH2.mjs} +1 -1
- package/dist/{index-B44o9ggV.mjs → index-DkMJ7xR-.mjs} +15 -14
- package/dist/subWorker.js +2 -2
- package/package.json +1 -1
- package/dist/index-o1TaWHww.js +0 -1
- package/dist/index-puxStU6w.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-Bgw8Yl5s.js");exports.ActiveContainerType=e.ActiveContainerType;exports.ApplianceMultiPlugin=e.ApplianceMultiPlugin;exports.ApplianceNames=e.ApplianceNames;exports.AppliancePluginCursorNames=e.AppliancePluginCursorNames;exports.ApplianceSigleWrapper=e.ApplianceSigleWrapper;exports.ApplianceSinglePlugin=e.ApplianceSinglePlugin;exports.Camera_Ack_Slow_Timeout=e.Camera_Ack_Slow_Timeout;exports.Camera_Transport_Fallback_Timeout=e.Camera_Transport_Fallback_Timeout;exports.Camera_Update_Business_Timeout=e.Camera_Update_Business_Timeout;exports.Cursor_Hover_Id=e.Cursor_Hover_Id;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.ESVGType=e.ESVGType;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.EventWorkState=e.EventWorkState;exports.EvevtWorkState=e.EventWorkState;exports.FontFaceFallbackBlacklistLevel=e.FontFaceFallbackBlacklistLevel;exports.InternalMsgEmitterType=e.InternalMsgEmitterType;exports.Main_View_Id=e.Main_View_Id;exports.Plugin=e.Plugin;exports.Renderer_Business_Default_Timeout=e.Renderer_Business_Default_Timeout;exports.ShapeType=e.ShapeType;exports.Task_Time_Interval=e.Task_Time_Interval;exports.WorkerCanvasContextBlacklistLevel=e.WorkerCanvasContextBlacklistLevel;exports.WorkerMaskTextureFormatBlacklistLevel=e.WorkerMaskTextureFormatBlacklistLevel;exports.WorkerMaskTextureUploadBlacklistLevel=e.WorkerMaskTextureUploadBlacklistLevel;exports.WorkerRenderModeBlacklistLevel=e.WorkerRenderModeBlacklistLevel;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Y as s, Z as t, _ as r, $ as l, a0 as i, a1 as p, a2 as o, a3 as n, a4 as T, C as E, s as c, b as k, a5 as y, H as _, K as u, a6 as m, a as v, a7 as g, d as S, a8 as d, a9 as C, c as M, aa as A, E as B, ab as F, e as W, e as x, ac as I, ad as L, y as P, ae as R, af as b, ag as f, T as h, ah as w, ai as D, aj as H, ak as K } from "./index-
|
|
1
|
+
import { Y as s, Z as t, _ as r, $ as l, a0 as i, a1 as p, a2 as o, a3 as n, a4 as T, C as E, s as c, b as k, a5 as y, H as _, K as u, a6 as m, a as v, a7 as g, d as S, a8 as d, a9 as C, c as M, aa as A, E as B, ab as F, e as W, e as x, ac as I, ad as L, y as P, ae as R, af as b, ag as f, T as h, ah as w, ai as D, aj as H, ak as K } from "./index-DkMJ7xR-.mjs";
|
|
2
2
|
export {
|
|
3
3
|
s as ActiveContainerType,
|
|
4
4
|
t as ApplianceMultiPlugin,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var l=Object.defineProperty;var o=(i,e,t)=>e in i?l(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var n=(i,e,t)=>o(i,typeof e!="symbol"?e+"":e,t);let r;function c(i){r=i}function u(){if(!r)throw new Error("[@netless/appliance-plugin/bridge] white-web-sdk runtime has not been bound yet.");return r}class h{constructor(){n(this,"control");n(this,"_listeners",{})}_inject(e){this.control=e}_onEvent(e,t){this._listeners[e]&&this._listeners[e](...t)}callbacks(e,t){this._listeners[e]=t}removeCallback(e){delete this._listeners[e]}}class g{constructor(e){n(this,"control");n(this,"worker");n(this,"publicMsgEmitter");n(this,"plugins",new Map);const{control:t,publicMsgEmitter:s}=e;this.control=t,this.publicMsgEmitter=s,this.worker=t.worker}use(e){this.plugins.set(e.kind,e),e._inject(this.control),e.onCreate()}destroy(){this.plugins.forEach(e=>{this.plugins.delete(e.kind),e.onDestroy()})}dispatchPluginEvent(e,...t){this.plugins.forEach(s=>{s._onEvent(e,t)})}}async function a(i){return c(i),Promise.resolve().then(()=>require("./index-
|
|
1
|
+
"use strict";var l=Object.defineProperty;var o=(i,e,t)=>e in i?l(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var n=(i,e,t)=>o(i,typeof e!="symbol"?e+"":e,t);let r;function c(i){r=i}function u(){if(!r)throw new Error("[@netless/appliance-plugin/bridge] white-web-sdk runtime has not been bound yet.");return r}class h{constructor(){n(this,"control");n(this,"_listeners",{})}_inject(e){this.control=e}_onEvent(e,t){this._listeners[e]&&this._listeners[e](...t)}callbacks(e,t){this._listeners[e]=t}removeCallback(e){delete this._listeners[e]}}class g{constructor(e){n(this,"control");n(this,"worker");n(this,"publicMsgEmitter");n(this,"plugins",new Map);const{control:t,publicMsgEmitter:s}=e;this.control=t,this.publicMsgEmitter=s,this.worker=t.worker}use(e){this.plugins.set(e.kind,e),e._inject(this.control),e.onCreate()}destroy(){this.plugins.forEach(e=>{this.plugins.delete(e.kind),e.onDestroy()})}dispatchPluginEvent(e,...t){this.plugins.forEach(s=>{s._onEvent(e,t)})}}async function a(i){return c(i),Promise.resolve().then(()=>require("./index-B6nsfvHS.js")).then(e=>e.index)}exports.Plugin=h;exports.PluginManager=g;exports.getWhiteWebSdkBridgeRuntime=u;exports.loadAppliancePluginBridge=a;
|
package/dist/bridge.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./bridge-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./bridge-iTPNL78o.js");exports.Plugin=e.Plugin;exports.loadAppliancePluginBridge=e.loadAppliancePluginBridge;
|
package/dist/bridge.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IActiveToolsDataType, IWorkerMessage, IMainMessage, IUpdateSelectorPropsType, IBatchMainMessage } from "../types";
|
|
1
|
+
import { IActiveToolsDataType, IWorkerMessage, IMainMessage, IUpdateSelectorPropsType, IBatchMainMessage, BaseNodeMapItem } from "../types";
|
|
2
2
|
import type { BaseShapeTool, BaseShapeOptions, SelectorShape, ImageShape, ShapeToolsClass } from "../tools";
|
|
3
3
|
import { MainThreadEngineImpl, ISubThreadInitOption } from "./base";
|
|
4
4
|
import { VNodeManager } from "../vNodeManager";
|
|
@@ -17,6 +17,7 @@ export interface SubLocalThread {
|
|
|
17
17
|
clearAll(): void;
|
|
18
18
|
clearWorkShapeNodeCache(workId: string): void;
|
|
19
19
|
abortBitmapEraser(workId: string): void;
|
|
20
|
+
publishBitmapEraserBeforeImages(workId: string, beforeImages: Map<string, BaseNodeMapItem>): void;
|
|
20
21
|
setToolsOpt(opt: IActiveToolsDataType): void;
|
|
21
22
|
getToolsOpt(): IActiveToolsDataType | undefined;
|
|
22
23
|
createWorkShapeNode(opt: IActiveToolsDataType & {
|
|
@@ -112,6 +113,7 @@ export declare class SubLocalMainThreadImpl implements SubLocalThread {
|
|
|
112
113
|
clearWorkShapeNodeCache(workId: string): void;
|
|
113
114
|
/** Stop queued Bitmap Eraser work and restore Doing-time hidden nodes. */
|
|
114
115
|
abortBitmapEraser(workId: string): void;
|
|
116
|
+
publishBitmapEraserBeforeImages(workId: string, beforeImages: Map<string, BaseNodeMapItem>): void;
|
|
115
117
|
private drawBitMapEraserFull;
|
|
116
118
|
private drawPencilEraserFull;
|
|
117
119
|
private drawEraser;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IWorkerMessage, IMainMessage, IRectType, EToolsKey, IBatchMainMessage, EventWorkState, IUpdateSelectorPropsType } from "..";
|
|
1
|
+
import { IWorkerMessage, IMainMessage, IRectType, EToolsKey, IBatchMainMessage, EventWorkState, IUpdateSelectorPropsType, BaseNodeMapItem } from "..";
|
|
2
2
|
import { BaseShapeOptions, SelectorShape } from "../tools";
|
|
3
3
|
import { ISubWorkerInitOption, LocalWork } from "./base";
|
|
4
4
|
import { ServiceWorkForFullWorker } from "./fullWorkerService";
|
|
@@ -17,6 +17,7 @@ export declare class LocalWorkForFullWorker extends LocalWork {
|
|
|
17
17
|
private bitmapEraserRevalidationQueued;
|
|
18
18
|
/** Stop queued Bitmap Eraser work and restore Doing-time hidden nodes. */
|
|
19
19
|
abortBitmapEraser(workId: string): void;
|
|
20
|
+
publishBitmapEraserBeforeImages(workId: string, beforeImages: Map<string, BaseNodeMapItem>): void;
|
|
20
21
|
protected drawWorkActiveId?: string;
|
|
21
22
|
protected effectSelectNodeData: Set<IWorkerMessage>;
|
|
22
23
|
constructor(opt: ISubWorkerInitOption);
|