@soonspacejs/plugin-cps-soonmanager 2.8.9 → 2.8.11

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
@@ -1,4 +1,4 @@
1
- import SoonSpace from 'soonspacejs';
1
+ import SoonSpace, { TopologyNodeInfo } from 'soonspacejs';
2
2
  import type { TopologyInfo } from 'soonspacejs/types/Library';
3
3
  import { IMetadata, ITreeData, ITopologyPath, ILoadSceneOptions, TPropertiesMap, TAnimationsMap, IPlayAnimationByIdOptions, TModelVisionsMap, IPresetEffectsOptions, Options } from './types';
4
4
  declare class CpsSoonmanagerPlugin {
@@ -88,7 +88,11 @@ declare class CpsSoonmanagerPlugin {
88
88
  /**
89
89
  * 获取拓扑路径列表
90
90
  */
91
- getTopologies(): Promise<ITopologyPath[]>;
91
+ getTopologies(): Promise<TopologyInfo[]>;
92
+ /**
93
+ * 对 nodes 排序(只适用于线路结构的拓扑路径)
94
+ */
95
+ sortTopologyNodes(topologyInfo: TopologyInfo, startNodeId?: TopologyNodeInfo['id']): TopologyInfo | undefined;
92
96
  /**
93
97
  * 播放动画
94
98
  */