@netless/appliance-plugin 1.1.15-beta.3 → 1.1.15-beta.5
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-CPNiBM.js → fullWorker-bEbwnc.js} +71 -89
- package/cdn/{subWorker-dfYGd0.js → subWorker-Bg1EX5.js} +71 -89
- package/dist/appliance-plugin.js +1 -1
- package/dist/appliance-plugin.mjs +1 -1
- package/dist/core/mainThread/subLocalThread.d.ts +2 -0
- package/dist/core/tools/base.d.ts +1 -1
- package/dist/core/utils/math.d.ts +1 -0
- package/dist/core/utils/spriteNode.d.ts +3 -1
- package/dist/core/worker/base.d.ts +0 -1
- package/dist/fullWorker.js +71 -89
- package/dist/index-B6H2v3w2.js +1 -0
- package/dist/{index-k9CiWo_d.mjs → index-DWP-ZYG7.mjs} +42 -32
- package/dist/{index-Gx8Mq-8W.mjs → index-hMBtAh8b.mjs} +5568 -5560
- package/dist/index-oOVemmlO.js +1 -0
- package/dist/subWorker.js +71 -89
- package/package.json +1 -1
- package/dist/index-BMWIZfhW.js +0 -1
- package/dist/index-DX_ZeDrQ.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-oOVemmlO.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.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 { F as s, A as p, y as r, x as t, w as l, Q as i, G as n, b as y, k as E, m as T, N as o, c as g, O as u, K as v, z as c, a as A, J as S, j as k, H as m, E as P, L as M, I as W, P as w, B as x, u as I, v as b } from "./index-
|
|
1
|
+
import { F as s, A as p, y as r, x as t, w as l, Q as i, G as n, b as y, k as E, m as T, N as o, c as g, O as u, K as v, z as c, a as A, J as S, j as k, H as m, E as P, L as M, I as W, P as w, B as x, u as I, v as b } from "./index-hMBtAh8b.mjs";
|
|
2
2
|
export {
|
|
3
3
|
s as ActiveContainerType,
|
|
4
4
|
p as ApplianceMultiPlugin,
|
|
@@ -35,6 +35,7 @@ export interface SubLocalThread {
|
|
|
35
35
|
removeSelector(data: IWorkerMessage): Promise<void>;
|
|
36
36
|
updateFullSelectWork(data: IWorkerMessage): void;
|
|
37
37
|
cursorHover(msg: IWorkerMessage): void;
|
|
38
|
+
cursorBlur(): void;
|
|
38
39
|
checkTextActive(data: IWorkerMessage): Promise<void>;
|
|
39
40
|
removeNode(key: string): void;
|
|
40
41
|
updateSelector(params: IUpdateSelectorPropsType & {
|
|
@@ -84,6 +85,7 @@ export declare class SubLocalMainThreadImpl implements SubLocalThread {
|
|
|
84
85
|
clearAll(): void;
|
|
85
86
|
checkTextActive(data: IWorkerMessage): Promise<void>;
|
|
86
87
|
cursorHover(msg: IWorkerMessage): void;
|
|
88
|
+
cursorBlur(): void;
|
|
87
89
|
updateFullSelectWork(data: IWorkerMessage): void;
|
|
88
90
|
private commandDeleteText;
|
|
89
91
|
removeSelector(data: IWorkerMessage): Promise<void>;
|
|
@@ -98,7 +98,7 @@ export declare abstract class BaseShapeTool {
|
|
|
98
98
|
eraserlines: SerializerEraserLines;
|
|
99
99
|
pos: [number, number];
|
|
100
100
|
layer: Group;
|
|
101
|
-
}, isDrawEraserlines?: boolean):
|
|
101
|
+
}, isDrawEraserlines?: boolean): void;
|
|
102
102
|
private createVmRenderNode;
|
|
103
103
|
private getGroupRect;
|
|
104
104
|
private addEraserlines;
|
|
@@ -3,6 +3,7 @@ import { IRectType } from "../types";
|
|
|
3
3
|
import { Point2d } from "./primitives/Point2d";
|
|
4
4
|
import { Vec2d } from "./primitives/Vec2d";
|
|
5
5
|
import type { Rectangle } from "../types";
|
|
6
|
+
export declare function getDprIntNumber(num: number, dpr: number): number;
|
|
6
7
|
export declare function outerRect(rect: IRectType, offset: number): {
|
|
7
8
|
x: number;
|
|
8
9
|
y: number;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import type { Group, Node, Path, Layer } from "spritejs";
|
|
1
|
+
import type { Group, Node, Path, Layer, Scene } from "spritejs";
|
|
2
2
|
import { ShapeNodes } from "../tools/utils";
|
|
3
|
+
import { IRectType } from "..";
|
|
3
4
|
export declare const isSealedGroup: (group: Group | Path | Node) => boolean;
|
|
4
5
|
export declare const removeTexture: (node: any, layer: Layer) => void;
|
|
5
6
|
export declare const removeAllChildren: (group: Group, layer: Layer) => void;
|
|
6
7
|
export declare const replaceNode: (newNode: ShapeNodes, deleteNode: any, layer: Group) => void;
|
|
7
8
|
export declare const hideOriginNodes: (group: Group, layer: Layer) => void;
|
|
8
9
|
export declare const showOriginNodes: (group: Group, layer: Layer) => void;
|
|
10
|
+
export declare const safariFixRect: (rect: IRectType, scene: Scene, dpr: number) => IRectType | undefined;
|
|
@@ -81,7 +81,6 @@ export declare abstract class WorkThreadEngineBase {
|
|
|
81
81
|
post(msg: IBatchMainMessage): Promise<void>;
|
|
82
82
|
private runBatchPostData;
|
|
83
83
|
protected combinePostData(): IBatchMainMessage;
|
|
84
|
-
protected safariFixRect(rect: IRectType, dpr: number): IRectType | undefined;
|
|
85
84
|
getSceneRect(): IRectType;
|
|
86
85
|
abstract combinePost(): Promise<void>;
|
|
87
86
|
protected abstract getLayer(workLayer: ECanvasShowType): Group | undefined;
|