@soonspacejs/plugin-cps-soonmanager 2.13.16 → 2.14.0

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,4 +1,4 @@
1
- import NodeRSA from 'node-rsa';
1
+ import { default as NodeRSA } from 'node-rsa';
2
2
  import { IInnerTreeData, TLicense } from '../types';
3
3
  export interface EncryptInfo {
4
4
  verifyKey: string;
@@ -1,5 +1,5 @@
1
1
  import { Object3D, OrthographicCamera, Vector4, Vector2 } from 'three';
2
- import SoonSpace from 'soonspacejs';
2
+ import { default as SoonSpace } from 'soonspacejs';
3
3
  declare class WaterMark extends Object3D {
4
4
  readonly viewport: SoonSpace['viewport'];
5
5
  fontSize: number;
@@ -19,7 +19,7 @@ declare class WaterMark extends Object3D {
19
19
  autoRender: (time: number) => void;
20
20
  _generateMark(str?: number[] | string): void;
21
21
  _generateMarkForString(str?: number[] | string): void;
22
- _generateMarkForImage(url?: any, width?: number, height?: number): void;
22
+ _generateMarkForImage(url?: string, width?: number, height?: number): void;
23
23
  _calculateImageSize(canvasWidth: number, canvasHeight: number, imgWidth: number, imgHeight: number): {
24
24
  renderWidth: number;
25
25
  renderHeight: number;
@@ -1,5 +1,5 @@
1
- import PoiRendererPlugin from '@soonspacejs/plugin-poi-renderer';
2
- import CpsManagerPlugin from '../';
1
+ import { default as PoiRendererPlugin } from '@soonspacejs/plugin-poi-renderer';
2
+ import { default as CpsManagerPlugin } from '../';
3
3
  import { ITreeData } from '../types';
4
4
  import { SourceApiListInterface } from '../data-source/request-types';
5
5
  import { PoiList } from './types';
@@ -1,4 +1,4 @@
1
- import { IPublishPacket } from 'mqtt';
1
+ import { IPublishPacket } from '../../../../../mqtt/dist/mqtt';
2
2
  import { IPoiData, ITreeData, PoiContent } from '../types';
3
3
  export type TFlatTreeNode = Record<ITreeData['id'], ITreeData>;
4
4
  export type PoiList = IPoiData & {
@@ -1,4 +1,4 @@
1
- import { MqttClient } from 'mqtt';
1
+ import { MqttClient } from '../../../../../mqtt/dist/mqtt';
2
2
  import { Socket } from 'socket.io-client';
3
3
  import { HttpRequest } from './utils/http-request';
4
4
  import { SourceApiListInterface } from './request-types';
@@ -1,4 +1,4 @@
1
- import mqtt from 'mqtt';
1
+ import { default as mqtt } from '../../../../../../mqtt/dist/mqtt';
2
2
  import { SourceApiListInterface, SourceEnvListInterface } from '../request-types';
3
3
  import { SourceMessageCallbackType, SourceStatusCallbackType } from '../types';
4
4
  export declare function requestMqtt(api: SourceApiListInterface, env: SourceEnvListInterface, onStatus: SourceStatusCallbackType, onMessage: SourceMessageCallbackType): mqtt.MqttClient;
@@ -1,4 +1,4 @@
1
1
  import { Socket } from 'socket.io-client';
2
2
  import { SourceApiListInterface, SourceEnvListInterface } from '../request-types';
3
3
  import { SourceMessageCallbackType, SourceStatusCallbackType } from '../types';
4
- export declare function requestSocket(api: SourceApiListInterface, env: SourceEnvListInterface, onStatus: SourceStatusCallbackType, onMessage: SourceMessageCallbackType): Socket<import("@socket.io/component-emitter").DefaultEventsMap, import("@socket.io/component-emitter").DefaultEventsMap>;
4
+ export declare function requestSocket(api: SourceApiListInterface, env: SourceEnvListInterface, onStatus: SourceStatusCallbackType, onMessage: SourceMessageCallbackType): Socket<any, any>;
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- import SoonSpace, { TopologyNodeInfo } from 'soonspacejs';
2
- import type { BaseObject3D, Group, TopologyInfo } from 'soonspacejs';
1
+ import { default as SoonSpace, TopologyNodeInfo, BaseObject3D, Group, TopologyInfo } from 'soonspacejs';
3
2
  import { PoiNodeData } from '@soonspacejs/plugin-poi-renderer';
4
- import EffectPlugin from '@soonspacejs/plugin-effect';
5
- import AtmospherePlugin from '@soonspacejs/plugin-atmosphere';
6
- import SoonFlow from '@soonflow/core';
3
+ import { default as EffectPlugin } from '@soonspacejs/plugin-effect';
4
+ import { default as AtmospherePlugin } from '@soonspacejs/plugin-atmosphere';
5
+ import { default as SoonFlow } from '@soonflow/core';
7
6
  import { AnimationPlayer } from 'umanager-animation-parser';
8
7
  import { EventDispatcher } from 'three';
9
8
  import { IMetadata, ITreeData, IInnerTreeData, IPoiData, ITopologyPath, ILoadSceneOptions, TPropertiesMap, TAnimationsMap, IPlayAnimationByIdOptions, TModelVisionsMap, IPresetEffectsOptions, TSpacesMap, ConstructorOptions, ISpaces, IFlatData, IProgress, IProgressEventMap } from './types';
9
+ import { ArcgisTilesRenderer } from './tiles-renderer';
10
10
  declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
11
11
  #private;
12
12
  readonly ssp: SoonSpace;
@@ -67,6 +67,10 @@ declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
67
67
  * atomsphere 插件
68
68
  */
69
69
  atmospherePlugin: AtmospherePlugin;
70
+ /**
71
+ * arcgis 瓦片渲染器
72
+ */
73
+ arcgisTilesRenderer: ArcgisTilesRenderer;
70
74
  /**
71
75
  * 流程引擎实咧
72
76
  */
@@ -125,7 +129,7 @@ declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
125
129
  * 获取空间数据
126
130
  * @returns
127
131
  */
128
- fetchSpacesData(): Promise<Map<string, import("./types").BaseTreeNode<ISpaces>>>;
132
+ fetchSpacesData(): Promise<Map<string, import('./types').BaseTreeNode<ISpaces>>>;
129
133
  /**
130
134
  * 格式化 Poi 数据完成 Poi Renderer 插件使用
131
135
  */
@@ -153,6 +157,7 @@ declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
153
157
  * 加载整个场景
154
158
  */
155
159
  loadScene(options?: ILoadSceneOptions): Promise<undefined>;
160
+ presetGis(): Promise<void>;
156
161
  /**
157
162
  * 预设效果
158
163
  */
@@ -204,19 +209,19 @@ declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
204
209
  */
205
210
  loadFlowData(): Promise<{
206
211
  nodes: {
207
- inputs: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Handle[];
208
- outputs: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Handle[];
212
+ inputs: import('@soonflow/plugin-soonmanager2-sync/dist/interface').Handle[];
213
+ outputs: import('@soonflow/plugin-soonmanager2-sync/dist/interface').Handle[];
209
214
  isStartNode: boolean;
210
215
  id: string;
211
216
  name: string;
212
217
  flowId: string;
213
- type: import("@soonflow/plugin-soonmanager2-sync/dist/interface").FlowNodeTypesEnum;
218
+ type: import('@soonflow/plugin-soonmanager2-sync/dist/interface').FlowNodeTypesEnum;
214
219
  config: string;
215
220
  posX: number;
216
221
  posY: number;
217
222
  sortNum: number;
218
223
  enable: boolean;
219
- handlerList: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Handle[];
224
+ handlerList: import('@soonflow/plugin-soonmanager2-sync/dist/interface').Handle[];
220
225
  }[];
221
226
  edges: {
222
227
  sourceNodeHandleId: string;
@@ -235,10 +240,10 @@ declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
235
240
  applyType: "AUTO" | "MANUAL";
236
241
  pid: string | null;
237
242
  nodeData: {
238
- nodeList: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Node[];
239
- lineList: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Edge[];
243
+ nodeList: import('@soonflow/plugin-soonmanager2-sync/dist/interface').Node[];
244
+ lineList: import('@soonflow/plugin-soonmanager2-sync/dist/interface').Edge[];
240
245
  };
241
- subFlows: import("@soonflow/plugin-soonmanager2-sync/dist/interface").FlowSyncData[];
246
+ subFlows: import('@soonflow/plugin-soonmanager2-sync/dist/interface').FlowSyncData[];
242
247
  }[]>;
243
248
  /**
244
249
  * 执行流程
@@ -249,6 +254,7 @@ declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
249
254
  * 获取空间下辖设备
250
255
  */
251
256
  getSpaceAssets<T extends BaseObject3D = BaseObject3D>(space: BaseObject3D): Promise<T[]>;
257
+ dispose(): void;
252
258
  }
253
259
  export * from './types';
254
260
  export * from './constants';