@vsleem-realsee-viewer/shared 2.0.25 → 2.0.27

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/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { ProjectModel as ProjectModel_2 } from '..';
2
+
1
3
  declare namespace api {
2
4
  export {
3
5
  getCoordinateList,
@@ -6,6 +8,7 @@ declare namespace api {
6
8
  removeCoordinate,
7
9
  mapingCoordinate,
8
10
  getMappingRelation,
11
+ getProjectDetail,
9
12
  getImageInfo
10
13
  }
11
14
  }
@@ -70,6 +73,7 @@ export declare enum AppObsType {
70
73
  export declare type AppSetting = {
71
74
  baseUrl?: string /**用于配置应用后端服务的根路径 */;
72
75
  authorizeCode: string /**用于API身份验证和授权的凭证 */;
76
+ locale?: LocaleType /** 当前语音默认zh-CN,中文=zh-CN;英文=en-US;日文=ja-JP */;
73
77
  };
74
78
 
75
79
  declare abstract class BaseAsyncElement {
@@ -449,6 +453,26 @@ export declare enum CoordinateType {
449
453
  Data = 2 /** 数据 */
450
454
  }
451
455
 
456
+ /**地图坐标系类型 */
457
+ export declare enum CRSTypes {
458
+ WGS84 = "WGS84",
459
+ WGS1984 = "WGS84",
460
+ EPSG4326 = "WGS84",
461
+ GCJ02 = "GCJ02",
462
+ AMap = "GCJ02",
463
+ BD09 = "BD09",
464
+ BD09LL = "BD09",
465
+ Baidu = "BD09",
466
+ BMap = "BD09",
467
+ BD09MC = "BD09MC",
468
+ BD09Meter = "BD09MC",
469
+ EPSG3857 = "EPSG3857",
470
+ EPSG900913 = "EPSG3857",
471
+ EPSG102100 = "EPSG3857",
472
+ WebMercator = "EPSG3857",
473
+ WM = "EPSG3857"
474
+ }
475
+
452
476
  export declare class DataHelper {
453
477
  /**
454
478
  * 将源坐标系中的点转换到目标坐标系中
@@ -461,6 +485,11 @@ export declare class DataHelper {
461
485
  }
462
486
 
463
487
  export declare class DataSource {
488
+ /**
489
+ * 获取项目详情
490
+ * @param projectId
491
+ */
492
+ static getProjectDetail(projectId: number): Promise<ProjectModel_2>;
464
493
  /**
465
494
  * 获取坐标系树
466
495
  * @param projectId 项目id
@@ -614,6 +643,11 @@ declare function getImageTransform(cw: number, ch: number, iw: number, ih: numbe
614
643
  */
615
644
  declare function getMappingRelation(params: Record<string, any>, options?: RequestOptions): Promise<ProjectionModel[]>;
616
645
 
646
+ /**获取地图服务商信息 */
647
+ declare function getMapProvider(url?: string): MapProvider | undefined;
648
+
649
+ declare function getProjectDetail(params: Record<string, any>, options?: RequestOptions): Promise<ProjectModel>;
650
+
617
651
  declare namespace http {
618
652
  export {
619
653
  setRequestGlobalConfig,
@@ -673,6 +707,23 @@ declare function loadCss(src: string): Promise<unknown>;
673
707
  */
674
708
  declare function loadScript(src: string, attributes?: Record<string, string | boolean>): Promise<boolean>;
675
709
 
710
+ /**多语言类型 */
711
+ export declare enum LocaleType {
712
+ en_US = "en-US",
713
+ zh_CN = "zh-CN",
714
+ ja_JP = "ja-JP"
715
+ }
716
+
717
+ /**
718
+ * 地图服务商
719
+ * CRSTypes=[中国大陆区域标准,中国大陆区域外标准]
720
+ */
721
+ export declare const MAP_PROVIDERS: {
722
+ name: string; /**GAODE(高德):国内使用 GCJ02(火星坐标系),国外使用 WGS84 */
723
+ patterns: string[];
724
+ CRSTypes: CRSTypes[];
725
+ }[];
726
+
676
727
  /**
677
728
  * 坐标系映射
678
729
  */
@@ -688,6 +739,12 @@ declare type MappingRecord = {
688
739
  srcCsId: number /** 源坐标系ID */;
689
740
  };
690
741
 
742
+ declare type MapProvider = {
743
+ name: string /**地图服务商名称 */;
744
+ patterns: string[] /**匹配的关键词 */;
745
+ CRSTypes: CRSTypes[] /**[中国大陆区域标准,中国大陆区域外标准] */;
746
+ };
747
+
691
748
  /**
692
749
  * 点类,表示二维或三维空间中的点
693
750
  * 支持直角坐标系(x,y,z)和地理坐标系(经度,纬度,海拔)
@@ -809,15 +866,36 @@ export declare type ProjectionModel = {
809
866
  srcCsId?: number /** 源坐标系ID(被映射的模型/空间) */;
810
867
  srcModelCsId?: number /** 源模型坐标系ID(左侧视图模型) */;
811
868
  srcModelId?: number /** 源模型 ID(非坐标系id,是模型自身的原始id) */;
869
+ srcMapType?: number /** 源模型地图类型 */;
812
870
  srcCsPointA?: string /** 源坐标系点A(左侧视图点A) */;
813
871
  srcCsPointB?: string /** 源坐标系点B(左侧视图点B) */;
814
872
  dstCsId?: number /** 目标坐标系ID(映射目标-空间) */;
815
873
  dstModelCsId?: number /** 目标模型坐标系ID(右侧视图模型) */;
816
874
  dstModelId?: number /** 目标模型 ID(非坐标系id,是模型自身的原始id) */;
875
+ dstMapType?: number /** 源模型地图类型 */;
817
876
  dstPointA?: string /** 目标坐标系点A(右侧视图点A) */;
818
877
  dstPointB?: string /** 目标坐标系点B(右侧视图点B) */;
819
878
  };
820
879
 
880
+ export declare type ProjectModel = {
881
+ id?: number /** 项目ID */;
882
+ no?: string /** 项目编号 */;
883
+ name?: string /** 项目名称 */;
884
+ shortName?: string /** 项目简称 */;
885
+ status?: number /** 项目状态 */;
886
+ companyId?: number /** 公司ID */;
887
+ createByName?: string /** 创建人姓名 */;
888
+ mapArea?: number /** 地图区域 */;
889
+ mapType?: string /** 地图类型 */;
890
+ CRSType?: CRSTypes /**地图坐标系标准 */;
891
+ sassProjectId?: string /** SaaS项目ID */;
892
+ sassEnterpriseId?: number /** SaaS企业ID */;
893
+ createBy?: string /** 创建人ID */;
894
+ createTime?: number /** 创建时间 */;
895
+ updateBy?: string /** 更新人ID */;
896
+ updateTime?: number /** 更新时间 */;
897
+ };
898
+
821
899
  export declare class RelativeMap {
822
900
  scale: number;
823
901
  yaw: number;
@@ -997,19 +1075,20 @@ declare namespace utils {
997
1075
  isNullOrUnDef,
998
1076
  isPromise,
999
1077
  inBrowser,
1078
+ loadScript,
1079
+ loadCss,
1000
1080
  cloneDeep,
1001
1081
  debounce,
1002
1082
  throttle,
1003
1083
  deepMerge,
1004
1084
  deepMergeProps,
1005
1085
  getDiffProps,
1006
- loadScript,
1007
- loadCss,
1086
+ warn,
1087
+ error,
1088
+ getMapProvider,
1008
1089
  getImageTransform,
1009
1090
  toCanvasCoord,
1010
- toModelCoord,
1011
- warn,
1012
- error
1091
+ toModelCoord
1013
1092
  }
1014
1093
  }
1015
1094
  export { utils }