@soonspacejs/plugin-cps-soonmanager 2.14.31 → 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.
- package/dist/constants.d.ts +1 -0
- package/dist/index.d.ts +15 -1
- package/dist/index.esm.js +4186 -4125
- package/dist/semantic.types.d.ts +92 -0
- package/dist/semantic.utils.d.ts +4 -0
- package/package.json +8 -8
package/dist/constants.d.ts
CHANGED
|
@@ -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
|
*/
|
|
@@ -76,7 +81,7 @@ declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
|
|
|
76
81
|
* atomsphere 插件
|
|
77
82
|
*/
|
|
78
83
|
atmospherePlugin: AtmospherePlugin;
|
|
79
|
-
terrainTilesRenderer: TerrainTilesRenderer;
|
|
84
|
+
terrainTilesRenderer: TerrainTilesRenderer | undefined;
|
|
80
85
|
/**
|
|
81
86
|
* 流程引擎实咧
|
|
82
87
|
*/
|
|
@@ -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
|
* 预设效果
|