@netless/appliance-plugin 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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-C_jpLx3X.js");exports.ActiveContainerType=e.ActiveContainerType;exports.ApplianceMultiPlugin=e.ApplianceMultiPlugin;exports.ApplianceNames=e.ApplianceNames;exports.ApplianceSigleWrapper=e.ApplianceSigleWrapper;exports.ApplianceSinglePlugin=e.ApplianceSinglePlugin;exports.ECanvasContextType=e.ECanvasContextType;exports.ECanvasShowType=e.ECanvasShowType;exports.EDataType=e.EDataType;exports.EMatrixrRelationType=e.EMatrixrRelationType;exports.EPostMessageType=e.EPostMessageType;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.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-BUV3AIdR.js");exports.ActiveContainerType=e.ActiveContainerType;exports.ApplianceMultiPlugin=e.ApplianceMultiPlugin;exports.ApplianceNames=e.ApplianceNames;exports.ApplianceSigleWrapper=e.ApplianceSigleWrapper;exports.ApplianceSinglePlugin=e.ApplianceSinglePlugin;exports.ECanvasContextType=e.ECanvasContextType;exports.ECanvasShowType=e.ECanvasShowType;exports.EDataType=e.EDataType;exports.EMatrixrRelationType=e.EMatrixrRelationType;exports.EPostMessageType=e.EPostMessageType;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.ShapeType=e.ShapeType;exports.fullWorkerUrl=e.fullWorker;exports.subWorkerUrl=e.subWorker;
@@ -1,4 +1,4 @@
1
- import { a1 as s, W as p, Z as t, Y as l, X as r, a2 as n, a3 as y, j as E, N as i, h as T, E as o, l as v, f as g, a5 as S, K as c, a4 as k, k as W, a6 as u, a0 as A, $ as M, R as m, U as C } from "./index-Bj242vt1.mjs";
1
+ import { a1 as s, W as p, Z as t, Y as l, X as r, a2 as n, a3 as y, j as E, N as i, h as T, E as o, l as v, f as g, a5 as S, K as c, a4 as k, k as W, a6 as u, a0 as A, $ as M, R as m, U as C } from "./index-DDd3tlz2.mjs";
2
2
  export {
3
3
  s as ActiveContainerType,
4
4
  p as ApplianceMultiPlugin,
@@ -28,4 +28,4 @@ export declare function hexToRgba(hex: string, opacity?: number): string;
28
28
  export declare function rgbToRgba(r: number, g: number, b: number, opacity?: number): string;
29
29
  export declare function colorRGBA2Hex(color: string): [string, number];
30
30
  export declare function colorRGBA2Array(color: string): [number, number, number, number];
31
- export declare function isTransparent(color: string): boolean;
31
+ export declare function isTransparent(color: string): color is "transparent";
@@ -165,7 +165,7 @@ export declare class MasterControlForWorker extends MasterController {
165
165
  /** 完整的绘制 */
166
166
  isFullWork: boolean;
167
167
  viewId: string;
168
- opt?: BaseShapeOptions | undefined;
168
+ opt?: BaseShapeOptions;
169
169
  }>;
170
170
  private correctStorage;
171
171
  originalEventLintener(workState: EvevtWorkState, point: [number, number], viewId: string): Promise<void>;
@@ -34,7 +34,7 @@ export declare class SubTopThreadImpl implements SubTopThread {
34
34
  createLocalWork(data: IWorkerMessage): void;
35
35
  getLocalWorkShape(workId: string): ILocalWorkItem | undefined;
36
36
  createLocalWorkShape(workId: string, opt?: BaseShapeOptions): import("../tools").PencilShape | import("../tools").LaserPenShape | import("../tools").EraserShape | import("../tools").StarShape | import("../tools/text").TextShape | import("../tools").SelectorShape | import("../tools").ImageShape | import("../tools").ArrowShape | import("../tools/straight").StraightShape | import("../tools").EllipseShape | import("../tools").PolygonShape | import("../tools").RectangleShape | import("../tools").SpeechBalloonShape | undefined;
37
- canUseTopLayer(toolsType: EToolsKey): boolean;
37
+ canUseTopLayer(toolsType: EToolsKey): toolsType is EToolsKey.LaserPen;
38
38
  destroy(): void;
39
39
  clearAll(): void;
40
40
  consumeDraw(data: IWorkerMessage): void;
@@ -1,4 +1,4 @@
1
1
  import { Group, Node, Path } from "spritejs";
2
2
  import { BaseNodeMapItem } from "../types";
3
3
  export declare const isSealedGroup: (group: Group | Path | Node) => boolean;
4
- export declare const isRenderNode: (param: Pick<BaseNodeMapItem, 'isHid'>) => boolean;
4
+ export declare const isRenderNode: (param: Pick<BaseNodeMapItem, "isHid">) => boolean;
@@ -26,7 +26,7 @@ export declare class TopLayerWorkForSubWorker implements TopLayerWork {
26
26
  private syncUnitTime;
27
27
  protected animationId?: number | undefined;
28
28
  constructor(opt: ISubWorkerInitOption);
29
- canUseTopLayer(toolsType: EToolsKey): boolean;
29
+ canUseTopLayer(toolsType: EToolsKey): toolsType is EToolsKey.LaserPen;
30
30
  getWorkShape(workId: string): ILocalWorkItem | undefined;
31
31
  createWorkShape(workId: string, opt?: BaseShapeOptions): import("../tools").PencilShape | import("../tools").LaserPenShape | import("../tools").EraserShape | import("../tools").StarShape | import("../tools/text").TextShape | import("../tools").SelectorShape | import("../tools").ImageShape | import("../tools").ArrowShape | import("../tools/straight").StraightShape | import("../tools").EllipseShape | import("../tools").PolygonShape | import("../tools").RectangleShape | import("../tools").SpeechBalloonShape | undefined;
32
32
  setWorkOptions(workId: string, opt: BaseShapeOptions): void;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { TextEditorInfo } from "../../component/textEditor";
3
3
  export declare const FloatBar: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
4
- editors?: Map<string, TextEditorInfo> | undefined;
5
- activeTextId?: string | undefined;
4
+ editors?: Map<string, TextEditorInfo>;
5
+ activeTextId?: string;
6
6
  } & React.RefAttributes<HTMLDivElement>>>;
@@ -9,7 +9,7 @@ export declare const ResizableTwoBtn: (props: {
9
9
  y: number;
10
10
  };
11
11
  pointMap: Map<string, [number, number][]>;
12
- type: 'start' | 'end';
12
+ type: "start" | "end";
13
13
  }) => React.JSX.Element;
14
14
  export declare const ResizableTwoBox: (props: {
15
15
  className: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TextOptions } from "../component/textEditor";
3
2
  import { EScaleType, EToolsKey } from "../core";
4
3
  import { EStrokeType, SpeechBalloonPlacement } from "../plugin/types";