@soonspacejs/plugin-cps-soonmanager 2.9.10 → 2.9.12

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/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,52 @@ declare class CpsSoonmanagerPlugin {
156
156
  * @param index
157
157
  */
158
158
  flyToObjectFromVisionsData(object: BaseObject3D, index?: number, options?: AnimationOptions): 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
+ subFlows: import("@soonflow/plugin-soonmanager2-sync/dist/interface").FlowSyncData[];
199
+ }[]>;
159
200
  /**
160
201
  * 执行流程
161
202
  * @param id 流程 id
162
203
  */
163
- runFlowById(id: string): import("@soonflow/core").SoonFlowParse | undefined;
204
+ runFlowById(id: string): Promise<void>;
164
205
  }
165
206
  export * from './types';
166
207
  export * from './constants';