@soonspacejs/plugin-cps-soonmanager 2.14.32 → 2.14.33

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.
@@ -43,6 +43,7 @@ export declare const SPACES_DATA_FILE_PATH = "/db/spaces";
43
43
  */
44
44
  export declare const FLOWS_DATA_FILE_PATH = "/db/flows2";
45
45
  export declare const GIS_DATA_FILE_PATH = "/db/gis_nodes";
46
+ export declare const SEMANTIC_DATA_FILE_PATH = "/db/semantic_model";
46
47
  /**
47
48
  * 自定义属性 key
48
49
  */
package/dist/index.d.ts CHANGED
@@ -8,6 +8,7 @@ import { default as SoonFlow } from '@soonflow/core';
8
8
  import { AnimationPlayer } from 'umanager-animation-parser';
9
9
  import { EventDispatcher } from 'three';
10
10
  import { IMetadata, ITreeData, IInnerTreeData, IPoiData, ITopologyPath, ILoadSceneOptions, TPropertiesMap, TAnimationsMap, IPlayAnimationByIdOptions, TModelVisionsMap, IPresetEffectsOptions, TSpacesMap, ConstructorOptions, ISpaces, IFlatData, IProgress, IProgressEventMap, IGisData } from './types';
11
+ import { SemanticObject } from './semantic.types';
11
12
  declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
12
13
  #private;
13
14
  readonly ssp: SoonSpace;
@@ -68,6 +69,10 @@ declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
68
69
  * gis 数据
69
70
  */
70
71
  gisData: IGisData | null;
72
+ /**
73
+ * 语义化对象
74
+ */
75
+ semanticObjects: SemanticObject | null;
71
76
  /**
72
77
  * effect 插件
73
78
  */
@@ -100,6 +105,7 @@ declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
100
105
  * @returns
101
106
  */
102
107
  fetchTreeData(): Promise<IInnerTreeData[]>;
108
+ fetchSemanticData(): Promise<SemanticObject>;
103
109
  fetchFlatData(): Promise<IFlatData[]>;
104
110
  /**
105
111
  * 获取 Poi 数据
@@ -165,6 +171,14 @@ declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
165
171
  * 加载整个场景
166
172
  */
167
173
  loadScene(options?: ILoadSceneOptions): Promise<undefined>;
174
+ /**
175
+ * 加载场景并且加载语义化对象
176
+ * @param options
177
+ */
178
+ loadSceneAndSemantic(options?: ILoadSceneOptions): Promise<void>;
179
+ /**
180
+ * 预设 GIS 效果
181
+ */
168
182
  presetGis(): Promise<void>;
169
183
  /**
170
184
  * 预设效果