@vsleem-realsee-viewer/shared 2.0.19 → 2.0.21

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.
@@ -47,9 +47,9 @@
47
47
  | `bindChild` | `(child: Partial<Coordinate> \| Partial<Coordinate>[]) => Promise<Coordinate>` | 绑定子坐标系但不建立映射关系 |
48
48
  | `mergeChild` | `(result?: Coordinate[]) => Promise<void>` | 合并更新的子坐标系数据到当前树结构 |
49
49
  | `mappingTo` | `(result: ProjectionModel[]) => Promise<void>` | 将当前坐标系映射到目标坐标系组 |
50
- | `fromMapping` | `() => Promise<ProjectionModel \| undefined>` | 查询当前坐标系被哪些源坐标系映射 |
50
+ | `getMapping` | `() => Promise<ProjectionModel \| undefined>` | 查询当前坐标系被哪些源坐标系映射 |
51
51
  | `findRoot` | `(mapped?: boolean) => Coordinate` | 递归查找根坐标系,可选是否只查找有映射关系的 |
52
- | `findChildModel` | `(type?: number \| number[], mapped?: boolean) => Coordinate \| undefined` | 查找符合条件的子模型坐标系 |
52
+ | `findChildModel` | `(type: number \| number[], mapped?: boolean) => Coordinate \| undefined` | 查找符合条件的子模型坐标系 |
53
53
  | `findClosestModel` | `(type?: number \| number[], excludeNodes?: Coordinate[]) => Coordinate \| undefined` | 使用广度优先搜索查找最近的模型坐标系 |
54
54
  | `findParentSpace` | `() => Coordinate \| undefined` | 向上查找最近的父级空间坐标系 |
55
55
  | `findParentSpaceNames` | `(level?: number) => string[]` | 获取指定层级数的父空间名称列表 |
package/dist/index.d.ts CHANGED
@@ -328,7 +328,7 @@ export declare class Coordinate {
328
328
  /** 映射到(模型映射到空间,空间映射到空间) */
329
329
  mappingTo(result: ProjectionModel[]): Promise<void>;
330
330
  /** 来自映射(被映射过的源坐标系关系) */
331
- fromMapping(): Promise<ProjectionModel | undefined>;
331
+ getMapping(): Promise<ProjectionModel | undefined>;
332
332
  /**
333
333
  * 递归寻找到根坐标系
334
334
  * @returns
@@ -336,11 +336,11 @@ export declare class Coordinate {
336
336
  findRoot(mapped?: boolean): Coordinate;
337
337
  /**
338
338
  *寻找到符合要求的子节点模型坐标系
339
- * @param type 模型类型 默认包含CADModel,SkyMapModel
339
+ * @param type 允许的模型类型
340
340
  * @param mapped 是否被映射
341
341
  * @returns
342
342
  */
343
- findChildModel(type?: number | number[], mapped?: boolean): Coordinate | undefined;
343
+ findChildModel(type: number | number[], mapped?: boolean): Coordinate | undefined;
344
344
  /**
345
345
  * 寻找与当前节点最近的一个模型节点,从当前节点遍历到根节点-广度优先遍历
346
346
  * @param type 允许的模型类型
@@ -439,7 +439,7 @@ export declare type CoordinateModel = {
439
439
  shortName?: string /** 短名称 */;
440
440
  status?: number /** 状态 0:使用 1:激活 2:未使用 */;
441
441
  thirdId?: string /** 第三方 ID */;
442
- type?: number /** 层级类型 0-global-全局坐标系 |1-field-场布图|2-building-建筑|3-floor-楼层|4-room-房间 | 5-cad位图图纸 | 6-bim | 7-forge | 8-3DGS| 9-天地图模型 */;
442
+ type?: number /** 层级类型 0-global-全局坐标系 |1-field-场布图|2-building-建筑|3-floor-楼层|4-room-房间 | 5-cad位图图纸 | 6-bim | 7-forge | 8-3DGS| 9-地图模型 */;
443
443
  updateBy?: string /** 更新者 */;
444
444
  updateTime?: number /** 更新时间 */;
445
445
  uuid?: string /** UUID */;
@@ -452,8 +452,8 @@ export declare enum CoordinateModelType {
452
452
  BIMModel = 6 /** bim模型 */,
453
453
  ForgeModel = 7 /** forge模型 */,
454
454
  ThreeDModel = 8 /** 3d模型 */,
455
- SkyMapModel = 9 /** 天地图模型 */,
456
- ScaleModel = 10 /** 比例尺模型-前端自定义 */
455
+ GeoModel = 9 /** 地图模型 */,
456
+ ScaleModel = 101 /** 比例尺模型-前端自定义 */
457
457
  }
458
458
 
459
459
  /** 坐标系使用状态 */