@vsleem-realsee-viewer/shared 2.0.20 → 2.0.22
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/README.internal.md +2 -2
- package/dist/index.d.ts +20 -9
- package/dist/index.mjs +344 -339
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/README.internal.md
CHANGED
|
@@ -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
|
-
| `
|
|
50
|
+
| `getMapping` | `() => Promise<ProjectionModel \| undefined>` | 查询当前坐标系被哪些源坐标系映射 |
|
|
51
51
|
| `findRoot` | `(mapped?: boolean) => Coordinate` | 递归查找根坐标系,可选是否只查找有映射关系的 |
|
|
52
|
-
| `findChildModel` | `(type
|
|
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
|
@@ -14,7 +14,6 @@ export { api }
|
|
|
14
14
|
/** 全局默认配置 */
|
|
15
15
|
export declare const APP_SETTING: {
|
|
16
16
|
baseUrl: string;
|
|
17
|
-
obsType: string;
|
|
18
17
|
authorizeCode: string;
|
|
19
18
|
};
|
|
20
19
|
|
|
@@ -71,8 +70,6 @@ export declare enum AppObsType {
|
|
|
71
70
|
export declare type AppSetting = {
|
|
72
71
|
baseUrl?: string /**用于配置应用后端服务的根路径 */;
|
|
73
72
|
authorizeCode: string /**用于API身份验证和授权的凭证 */;
|
|
74
|
-
obsPrefix?: string /**用于在对象存储中组织文件的目录路径(不可用) */;
|
|
75
|
-
obsType?: string /**指定使用的对象存储服务提供商 huawei | aliyun | hs 等 */;
|
|
76
73
|
};
|
|
77
74
|
|
|
78
75
|
declare abstract class BaseAsyncElement {
|
|
@@ -328,7 +325,7 @@ export declare class Coordinate {
|
|
|
328
325
|
/** 映射到(模型映射到空间,空间映射到空间) */
|
|
329
326
|
mappingTo(result: ProjectionModel[]): Promise<void>;
|
|
330
327
|
/** 来自映射(被映射过的源坐标系关系) */
|
|
331
|
-
|
|
328
|
+
getMapping(): Promise<ProjectionModel | undefined>;
|
|
332
329
|
/**
|
|
333
330
|
* 递归寻找到根坐标系
|
|
334
331
|
* @returns
|
|
@@ -336,11 +333,11 @@ export declare class Coordinate {
|
|
|
336
333
|
findRoot(mapped?: boolean): Coordinate;
|
|
337
334
|
/**
|
|
338
335
|
*寻找到符合要求的子节点模型坐标系
|
|
339
|
-
* @param type
|
|
336
|
+
* @param type 允许的模型类型
|
|
340
337
|
* @param mapped 是否被映射
|
|
341
338
|
* @returns
|
|
342
339
|
*/
|
|
343
|
-
findChildModel(type
|
|
340
|
+
findChildModel(type: number | number[], mapped?: boolean): Coordinate | undefined;
|
|
344
341
|
/**
|
|
345
342
|
* 寻找与当前节点最近的一个模型节点,从当前节点遍历到根节点-广度优先遍历
|
|
346
343
|
* @param type 允许的模型类型
|
|
@@ -439,7 +436,7 @@ export declare type CoordinateModel = {
|
|
|
439
436
|
shortName?: string /** 短名称 */;
|
|
440
437
|
status?: number /** 状态 0:使用 1:激活 2:未使用 */;
|
|
441
438
|
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
|
|
439
|
+
type?: number /** 层级类型 0-global-全局坐标系 |1-field-场布图|2-building-建筑|3-floor-楼层|4-room-房间 | 5-cad位图图纸 | 6-bim | 7-forge | 8-3DGS| 9-地图模型 */;
|
|
443
440
|
updateBy?: string /** 更新者 */;
|
|
444
441
|
updateTime?: number /** 更新时间 */;
|
|
445
442
|
uuid?: string /** UUID */;
|
|
@@ -452,8 +449,8 @@ export declare enum CoordinateModelType {
|
|
|
452
449
|
BIMModel = 6 /** bim模型 */,
|
|
453
450
|
ForgeModel = 7 /** forge模型 */,
|
|
454
451
|
ThreeDModel = 8 /** 3d模型 */,
|
|
455
|
-
|
|
456
|
-
ScaleModel =
|
|
452
|
+
GeoModel = 9 /** 地图模型 */,
|
|
453
|
+
ScaleModel = 101 /** 比例尺模型-前端自定义 */
|
|
457
454
|
}
|
|
458
455
|
|
|
459
456
|
/** 坐标系使用状态 */
|
|
@@ -879,6 +876,20 @@ declare function removeCoordinate(data: number[], options?: RequestOptions): Pro
|
|
|
879
876
|
*/
|
|
880
877
|
declare function request<T = any>(config: RequestConfig, options?: Partial<RequestOptions>): Promise<T>;
|
|
881
878
|
|
|
879
|
+
/** 默认请求配置 */
|
|
880
|
+
export declare const REQUEST_CONFIG: {
|
|
881
|
+
url: string;
|
|
882
|
+
method: RequestMethod;
|
|
883
|
+
headers: {};
|
|
884
|
+
};
|
|
885
|
+
|
|
886
|
+
/** 默认请求选项 */
|
|
887
|
+
export declare const REQUEST_OPTIONS: {
|
|
888
|
+
isTransformResponse: boolean;
|
|
889
|
+
joinBaseUrl: boolean;
|
|
890
|
+
withAuthorize: boolean;
|
|
891
|
+
};
|
|
892
|
+
|
|
882
893
|
/** 请求配置 */
|
|
883
894
|
export declare type RequestConfig = {
|
|
884
895
|
url: string /** 请求URL */;
|