@netless/appliance-plugin 1.1.22-beta.9 → 1.1.23

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CbjTbGv0.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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BVb1IYUU.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 { ad as s, a7 as p, aa as r, a9 as t, a8 as l, al as n, T as i, o, ae as E, l as y, E as T, ai as g, n as c, aj as u, m as v, t as S, k, ag as m, a1 as A, af as M, q as P, ah as W, ac as f, ak as h, ab as R, a5 as b, a6 as d } from "./index-JJlKXT7X.mjs";
1
+ import { ae as s, a8 as p, ab as r, aa as t, a9 as l, am as n, U as i, o, af as E, l as y, E as T, aj as g, n as c, ak as u, m as v, t as S, k, ah as m, a2 as A, ag as M, q as P, ai as W, ad as f, al as h, ac as R, a6 as U, a7 as b } from "./index-KFAuNRB0.mjs";
2
2
  export {
3
3
  s as ActiveContainerType,
4
4
  p as ApplianceMultiPlugin,
@@ -25,6 +25,6 @@ export {
25
25
  f as InternalMsgEmitterType,
26
26
  h as Plugin,
27
27
  R as ShapeType,
28
- b as fullWorkerUrl,
29
- d as subWorkerUrl
28
+ U as fullWorkerUrl,
29
+ b as subWorkerUrl
30
30
  };
@@ -4,6 +4,7 @@ import { ICameraOpt, IUpdateNodeOpt, IWorkerMessage } from "../../core";
4
4
  import type EventEmitter2 from "eventemitter2";
5
5
  import { BaseApplianceManager } from "../../plugin/baseApplianceManager";
6
6
  import { WorkId } from "../../collector/types";
7
+ export declare const TextBoxPadding = 5;
7
8
  export interface TextEditorManager {
8
9
  readonly internalMsgEmitter: EventEmitter2;
9
10
  readonly publicMsgEmitter: EventEmitter2;
@@ -90,6 +91,7 @@ export declare class TextEditorManagerImpl implements TextEditorManager {
90
91
  clear(): boolean;
91
92
  };
92
93
  computeTextActive(point: [number, number], viewId: string): void;
94
+ checkLocalTextBlur: import("lodash").DebouncedFunc<() => void>;
93
95
  checkEmptyTextBlur(): void;
94
96
  onCameraChange(cameraOpt: ICameraOpt, viewId: string): void;
95
97
  onServiceDerive(data: IWorkerMessage): void;
@@ -1,3 +1,4 @@
1
1
  import { EToolsKey } from "../../core";
2
2
  import { ETextEditorType } from "./types";
3
3
  export declare function getTextEditorType(toolsKey: EToolsKey): ETextEditorType | undefined;
4
+ export declare function escapeCSS(id: string): string;
@@ -1,5 +1,5 @@
1
1
  import { Group } from "spritejs";
2
- import { IBatchMainMessage, ICameraOpt, ILayerOptionType, IMainMessage, IOffscreenCanvasOptionType, IWorkerMessage } from "../types";
2
+ import { IBatchMainMessage, ICameraOpt, ILayerOptionType, IMainMessage, IOffscreenCanvasOptionType, IRectType, IWorkerMessage } from "../types";
3
3
  import { VNodeManager } from "../vNodeManager";
4
4
  import type { MasterControlForWorker } from "../mainEngine";
5
5
  import type { AppViewDisplayerManager, MainViewDisplayerManager } from "../../plugin/baseViewContainerManager";
@@ -86,7 +86,7 @@ export declare class MainThreadEngineImpl implements MainThreadEngine {
86
86
  private consumeDrawAll;
87
87
  private consumeDraw;
88
88
  private updateCamera;
89
- private getSceneRect;
89
+ getSceneRect(): IRectType;
90
90
  private createScene;
91
91
  private createLayer;
92
92
  private updateScene;
@@ -24,6 +24,8 @@ export interface BaseShapeOptions {
24
24
  textOpt?: TextOptions;
25
25
  translate?: [number, number];
26
26
  eraserlines?: SerializerEraserLines;
27
+ lineCap?: "square" | "round";
28
+ lineDash?: [number, number];
27
29
  }
28
30
  export interface BaseShapeToolProps {
29
31
  workId: string;
@@ -28,9 +28,10 @@ export declare class TextShape extends BaseShapeTool {
28
28
  isFullWork: boolean;
29
29
  replaceId?: string;
30
30
  isDrawLabel?: boolean;
31
+ boxRect?: IRectType;
31
32
  }): Promise<IRectType | undefined>;
32
33
  updataOptService(): IRectType | undefined;
33
- updataOptServiceAsync(updateNodeOpt: IUpdateNodeOpt, isDrawLabel?: boolean): Promise<IRectType | undefined>;
34
+ updataOptServiceAsync(updateNodeOpt: IUpdateNodeOpt, isDrawLabel?: boolean, boxRect?: IRectType): Promise<IRectType | undefined>;
34
35
  clearTmpPoints(): void;
35
36
  static getSafetySnippetRatio(layer: Group): number;
36
37
  static getSafetySnippetFontLength(fontSize: number): number;
@@ -6,5 +6,4 @@ export declare const removeTexture: (node: any, layer: Layer) => void;
6
6
  export declare const removeAllChildren: (group: Group, layer: Layer) => void;
7
7
  export declare const replaceNode: (newNode: ShapeNodes, deleteNode: any, layer: Group) => void;
8
8
  export declare const hideOriginNodes: (group: Group, layer: Layer) => void;
9
- export declare const showOriginNodes: (group: Group, layer: Layer) => void;
10
9
  export declare const safariFixRect: (rect: IRectType, scene: Scene, dpr: number) => IRectType | undefined;