@soonspacejs/plugin-cps-soonmanager 2.15.0 → 2.15.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.
@@ -43,7 +43,13 @@ 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 GIS_PLOTS_DATA_FILE_PATH = "/db/gis_plots";
46
47
  export declare const SEMANTIC_DATA_FILE_PATH = "/db/semantic_model";
48
+ export declare const SCENE_NODE_FDS_DATA_FILE_PATH = "/db/scene_node_fds";
49
+ /**
50
+ * fds 模型数据
51
+ */
52
+ export declare const FDS_DATA_FILE_PATH = "/assets/attachment_1";
47
53
  /**
48
54
  * 自定义属性 key
49
55
  */
@@ -0,0 +1,7 @@
1
+ import { PlotAddOptions } from '@soonspacejs/plugin-tiles';
2
+ import { IGisPlot } from './types';
3
+ /**
4
+ * 将服务端 IGisPlot 转为 GroundDecalManager.addPlot 的入参。
5
+ * 不透明度由 0-1 放大为 0-100 以匹配 SDK。
6
+ */
7
+ export declare function gisPlotToAddOptions(gisPlot: IGisPlot): PlotAddOptions | null;
package/dist/index.d.ts CHANGED
@@ -2,12 +2,13 @@ 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 { FdsManager } from '@soonspacejs/plugin-fds';
5
6
  import { FlowType } from '@soonspacejs/plugin-flow';
6
7
  import { TerrainTilesRenderer } from '@soonspacejs/plugin-tiles';
7
8
  import { default as SoonFlow } from '@soonflow/core';
8
9
  import { AnimationPlayer } from 'umanager-animation-parser';
9
10
  import { EventDispatcher } from 'three';
10
- import { IMetadata, ITreeData, IInnerTreeData, IPoiData, ITopologyPath, ILoadSceneOptions, TPropertiesMap, TAnimationsMap, IPlayAnimationByIdOptions, TModelVisionsMap, IPresetEffectsOptions, TSpacesMap, ConstructorOptions, ISpaces, IFlatData, IProgress, IProgressEventMap, IGisData } from './types';
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
12
  import { SemanticObject } from './semantic.types';
12
13
  declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
13
14
  #private;
@@ -15,6 +16,9 @@ declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
15
16
  get path(): string;
16
17
  set path(val: string);
17
18
  progress: IProgress;
19
+ loadFDS(url?: string | IFdsData | Array<string | IFdsData>, options?: {
20
+ field?: 'temperature' | 'soot_density' | 'hrrpuv';
21
+ }): Promise<import('@soonspacejs/plugin-fds').VolumePoints[]>;
18
22
  /**
19
23
  * 场景 group 包裹
20
24
  */
@@ -73,6 +77,8 @@ declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
73
77
  * 语义化对象
74
78
  */
75
79
  semanticObjects: SemanticObject | null;
80
+ fdsData: IFdsData[] | null;
81
+ fdsManager: FdsManager;
76
82
  /**
77
83
  * effect 插件
78
84
  */
@@ -144,6 +150,8 @@ declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
144
150
  fetchSpacesData(): Promise<Map<string, import('./types').BaseTreeNode<ISpaces>>>;
145
151
  fetchFlowsData(): Promise<FlowType[]>;
146
152
  fetchGisData(): Promise<IGisData>;
153
+ fetchGisPlotsData(): Promise<IGisPlot[]>;
154
+ fetchFDSData(): Promise<IFdsData[]>;
147
155
  /**
148
156
  * 格式化 Poi 数据完成 Poi Renderer 插件使用
149
157
  */
@@ -167,6 +175,14 @@ declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
167
175
  * @param path
168
176
  */
169
177
  setPath(path: string): void;
178
+ clearFDS(): number;
179
+ getFDSState(): import('@soonspacejs/plugin-fds').IFdsManagerState;
180
+ playFDS(): boolean;
181
+ pauseFDS(): boolean;
182
+ toggleFDSPlay(): boolean;
183
+ setFDSTime(timeSec: number, options?: {
184
+ wait?: boolean;
185
+ }): Promise<import('@soonspacejs/plugin-fds').VolumePoints | null>;
170
186
  /**
171
187
  * 加载整个场景
172
188
  */