@soonspacejs/plugin-cps-soonmanager 2.11.65 → 2.11.67

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.
@@ -10,6 +10,10 @@ export declare const SIGN_PATH: string;
10
10
  * 模型树
11
11
  */
12
12
  export declare const TREE_DATA_FILE_PATH: string;
13
+ /**
14
+ * 扁平模型树
15
+ */
16
+ export declare const FLAT_DATA_FILE_PATH: string;
13
17
  /**
14
18
  * poi
15
19
  */
package/dist/index.d.ts CHANGED
@@ -4,12 +4,14 @@ import { PoiNodeData } from '@soonspacejs/plugin-poi-renderer';
4
4
  import EffectPlugin from '@soonspacejs/plugin-effect';
5
5
  import SoonFlow from '@soonflow/core';
6
6
  import { Tween } from 'three/examples/jsm/libs/tween.module.js';
7
- import { IMetadata, ITreeData, IPoiData, ITopologyPath, ILoadSceneOptions, TPropertiesMap, TAnimationsMap, IPlayAnimationByIdOptions, TModelVisionsMap, IPresetEffectsOptions, TSpacesMap, ConstructorOptions, ISpaces } from './types';
8
- declare class CpsSoonmanagerPlugin {
7
+ import { EventDispatcher } from 'three';
8
+ import { IMetadata, ITreeData, IPoiData, ITopologyPath, ILoadSceneOptions, TPropertiesMap, TAnimationsMap, IPlayAnimationByIdOptions, TModelVisionsMap, IPresetEffectsOptions, TSpacesMap, ConstructorOptions, ISpaces, IFlatData, IProgress, IProgressEventMap } from './types';
9
+ declare class CpsSoonmanagerPlugin extends EventDispatcher<IProgressEventMap> {
9
10
  #private;
10
11
  readonly ssp: SoonSpace;
11
12
  get path(): string;
12
13
  set path(val: string);
14
+ progress: IProgress;
13
15
  /**
14
16
  * 场景 group 包裹
15
17
  */
@@ -22,6 +24,11 @@ declare class CpsSoonmanagerPlugin {
22
24
  * 模型树
23
25
  */
24
26
  treeData: ITreeData[] | null;
27
+ /**
28
+ * 扁平化模型树
29
+ */
30
+ flatData: IFlatData[] | null;
31
+ faltDataMap: Map<string, IFlatData[]> | null;
25
32
  /**
26
33
  * poi 数据
27
34
  */
@@ -78,6 +85,7 @@ declare class CpsSoonmanagerPlugin {
78
85
  * @returns
79
86
  */
80
87
  fetchTreeData(): Promise<ITreeData[]>;
88
+ fetchFlatData(): Promise<IFlatData[]>;
81
89
  /**
82
90
  * 获取 Poi 数据
83
91
  * @returns
@@ -108,6 +116,10 @@ declare class CpsSoonmanagerPlugin {
108
116
  * @returns
109
117
  */
110
118
  fetchModelVisionsData(): Promise<TModelVisionsMap>;
119
+ /**
120
+ * 获取空间数据
121
+ * @returns
122
+ */
111
123
  fetchSpacesData(): Promise<Map<string, import("./types").BaseTreeNode<ISpaces>>>;
112
124
  /**
113
125
  * 格式化 Poi 数据完成 Poi Renderer 插件使用