@soonspacejs/plugin-cps-soonmanager 2.10.0-rc.9 → 2.10.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.
- package/dist/batch-update-poi/index.d.ts +1 -3
- package/dist/index.d.ts +46 -2
- package/dist/index.esm.js +3 -3
- package/dist/types.d.ts +9 -1
- package/package.json +7 -7
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import SoonSpace from 'soonspacejs';
|
|
2
1
|
import PoiRendererPlugin from '@soonspacejs/plugin-poi-renderer';
|
|
3
2
|
import CpsManagerPlugin from '../';
|
|
4
3
|
import { ITreeData } from '../types';
|
|
@@ -8,10 +7,9 @@ declare class BatchUpdatePoi {
|
|
|
8
7
|
#private;
|
|
9
8
|
treeList: ITreeData[] | null;
|
|
10
9
|
poiList: PoiList[] | null;
|
|
11
|
-
ssp: SoonSpace;
|
|
12
10
|
plugin: PoiRendererPlugin;
|
|
13
11
|
cpsPlugin: CpsManagerPlugin;
|
|
14
|
-
constructor(treeList: ITreeData[] | null, poiList: PoiList[] | null,
|
|
12
|
+
constructor(treeList: ITreeData[] | null, poiList: PoiList[] | null, plugin: PoiRendererPlugin, cpsPlugin: CpsManagerPlugin);
|
|
15
13
|
batchPoi(api: SourceApiListInterface, data: any): void;
|
|
16
14
|
}
|
|
17
15
|
export default BatchUpdatePoi;
|
package/dist/index.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ declare class CpsSoonmanagerPlugin {
|
|
|
49
49
|
/**
|
|
50
50
|
* 流程数据
|
|
51
51
|
*/
|
|
52
|
-
flowData: any[];
|
|
52
|
+
flowData: any[] | null;
|
|
53
53
|
constructor(ssp: SoonSpace, option?: ConstructorOptions);
|
|
54
54
|
/**
|
|
55
55
|
* 设置 key
|
|
@@ -156,11 +156,55 @@ declare class CpsSoonmanagerPlugin {
|
|
|
156
156
|
* @param index
|
|
157
157
|
*/
|
|
158
158
|
flyToObjectFromVisionsData(object: BaseObject3D, index?: number): Promise<void>;
|
|
159
|
+
/**
|
|
160
|
+
* 加载流程数据
|
|
161
|
+
*/
|
|
162
|
+
loadFlowData(): Promise<{
|
|
163
|
+
nodes: {
|
|
164
|
+
inputs: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Handle[];
|
|
165
|
+
outputs: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Handle[];
|
|
166
|
+
isStartNode: boolean;
|
|
167
|
+
id: string;
|
|
168
|
+
name: string;
|
|
169
|
+
flowId: string;
|
|
170
|
+
type: import("@soonflow/plugin-soonmanager2-sync/dist/interface").FlowNodeTypesEnum;
|
|
171
|
+
config: string;
|
|
172
|
+
posX: number;
|
|
173
|
+
posY: number;
|
|
174
|
+
sortNum: number;
|
|
175
|
+
enable: boolean;
|
|
176
|
+
handlerList: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Handle[];
|
|
177
|
+
}[];
|
|
178
|
+
edges: {
|
|
179
|
+
sourceNodeHandleId: string;
|
|
180
|
+
targetNodeHandleId: string;
|
|
181
|
+
id: string;
|
|
182
|
+
name: string;
|
|
183
|
+
type: string;
|
|
184
|
+
sourceHandlerId: string;
|
|
185
|
+
sourceNodeId: string;
|
|
186
|
+
targetHandlerId: string;
|
|
187
|
+
targetNodeId: string;
|
|
188
|
+
enable: boolean;
|
|
189
|
+
}[];
|
|
190
|
+
id: string;
|
|
191
|
+
name: string;
|
|
192
|
+
applyType: "AUTO" | "MANUAL";
|
|
193
|
+
pid: string | null;
|
|
194
|
+
nodeData: {
|
|
195
|
+
nodeList: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Node[];
|
|
196
|
+
lineList: import("@soonflow/plugin-soonmanager2-sync/dist/interface").Edge[];
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* 是否需要执行解密流程
|
|
200
|
+
*/
|
|
201
|
+
subFlows: import("@soonflow/plugin-soonmanager2-sync/dist/interface").FlowSyncData[];
|
|
202
|
+
}[]>;
|
|
159
203
|
/**
|
|
160
204
|
* 执行流程
|
|
161
205
|
* @param id 流程 id
|
|
162
206
|
*/
|
|
163
|
-
runFlowById(id: string):
|
|
207
|
+
runFlowById(id: string): Promise<void>;
|
|
164
208
|
}
|
|
165
209
|
export * from './types';
|
|
166
210
|
export * from './constants';
|