@soonspacejs/plugin-cps-soonmanager 2.15.12 → 2.15.13

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
@@ -8,8 +8,16 @@ import { TerrainTilesRenderer } from '@soonspacejs/plugin-tiles';
8
8
  import { default as SoonFlow } from '@soonflow/core';
9
9
  import { AnimationPlayer } from 'umanager-animation-parser';
10
10
  import { EventDispatcher } from 'three';
11
- import { IMetadata, ITreeData, IInnerTreeData, IPoiData, ITopologyPath, ILoadSceneOptions, TPropertiesMap, TAnimationsMap, IPlayAnimationByIdOptions, TModelVisionsMap, IPresetEffectsOptions, TSpacesMap, ConstructorOptions, ISpaces, IFlatData, IProgress, IProgressEventMap, IGisData, IFdsData, IGisPlot } from './types';
11
+ import { IMetadata, ITreeData, IInnerTreeData, IPoiData, ITopologyPath, ILoadSceneOptions, TPropertiesMap, TAnimationsMap, IPlayAnimationByIdOptions, TModelVisionsMap, IPresetEffectsOptions, TSpacesMap, ConstructorOptions, ISpaces, IFlatData, IProgress, IProgressEventMap, IGisData, IFdsData, IGisPlot, IWorkIdMap } from './types';
12
12
  import { SemanticObject } from './semantic.types';
13
+ type WorkIdContext = {
14
+ byKey: Map<string, string>;
15
+ registered: Map<string, BaseObject3D>;
16
+ warned: Set<string>;
17
+ };
18
+ type LoadSceneOptionsInner = ILoadSceneOptions & {
19
+ __workIdContext?: WorkIdContext | null;
20
+ };
13
21
  declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
14
22
  #private;
15
23
  readonly ssp: SoonSpace;
@@ -169,7 +177,7 @@ declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
169
177
  /**
170
178
  * 根据 id 获取树节点
171
179
  */
172
- getTreeNodeById(id: ITreeData['id'], treeData: ITreeData[] | null, options: ILoadSceneOptions): ITreeData | undefined;
180
+ getTreeNodeById(id: ITreeData['id'], treeData: ITreeData[] | null, options: LoadSceneOptionsInner): ITreeData | undefined;
173
181
  /**
174
182
  * 设置 path
175
183
  * @param path
@@ -186,12 +194,12 @@ declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
186
194
  /**
187
195
  * 加载整个场景
188
196
  */
189
- loadScene(options?: ILoadSceneOptions): Promise<undefined>;
197
+ loadScene(options?: ILoadSceneOptions, workIdMap?: IWorkIdMap | null): Promise<undefined>;
190
198
  /**
191
199
  * 加载场景并且加载语义化对象
192
200
  * @param options
193
201
  */
194
- loadSceneAndSemantic(options?: ILoadSceneOptions): Promise<void>;
202
+ loadSceneAndSemantic(options?: ILoadSceneOptions, workIdMap?: IWorkIdMap | null): Promise<void>;
195
203
  /**
196
204
  * 预设 GIS 效果
197
205
  */