@soonspacejs/plugin-cps-soonmanager 2.14.0 → 2.14.2

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.
@@ -38,6 +38,10 @@ export declare const MODEL_VISIONS_DATA_FILE_PATH = "/db/model_visions";
38
38
  * 空间
39
39
  */
40
40
  export declare const SPACES_DATA_FILE_PATH = "/db/spaces";
41
+ /**
42
+ * 流程
43
+ */
44
+ export declare const FLOWS_DATA_FILE_PATH = "/db/flows2";
41
45
  /**
42
46
  * 自定义属性 key
43
47
  */
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import { default as SoonSpace, TopologyNodeInfo, BaseObject3D, Group, TopologyIn
2
2
  import { PoiNodeData } from '@soonspacejs/plugin-poi-renderer';
3
3
  import { default as EffectPlugin } from '@soonspacejs/plugin-effect';
4
4
  import { default as AtmospherePlugin } from '@soonspacejs/plugin-atmosphere';
5
+ import { FlowType } from '@soonspacejs/plugin-flow';
5
6
  import { default as SoonFlow } from '@soonflow/core';
6
7
  import { AnimationPlayer } from 'umanager-animation-parser';
7
8
  import { EventDispatcher } from 'three';
@@ -59,6 +60,10 @@ declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
59
60
  * 空间数据
60
61
  */
61
62
  spacesData: TSpacesMap | null;
63
+ /**
64
+ * 流程数据
65
+ */
66
+ flowsData: FlowType[] | null;
62
67
  /**
63
68
  * effect 插件
64
69
  */
@@ -130,6 +135,7 @@ declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
130
135
  * @returns
131
136
  */
132
137
  fetchSpacesData(): Promise<Map<string, import('./types').BaseTreeNode<ISpaces>>>;
138
+ fetchFlowsData(): Promise<FlowType[]>;
133
139
  /**
134
140
  * 格式化 Poi 数据完成 Poi Renderer 插件使用
135
141
  */
@@ -166,6 +172,10 @@ declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
166
172
  * 获取拓扑路径列表
167
173
  */
168
174
  getTopologies(): Promise<TopologyInfo[]>;
175
+ /**
176
+ * 加载拓扑路径
177
+ */
178
+ loadTopologies(): Promise<import('soonspacejs').Topology[]>;
169
179
  /**
170
180
  * 对 nodes 排序(只适用于线路结构的拓扑路径)
171
181
  */