sat-earth 1.0.7 → 2.0.0
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.md +2 -3
- package/dist/packages/components/location/index.d.ts +1 -1
- package/dist/packages/config/index.d.ts +2 -0
- package/dist/packages/main/index.d.ts +1 -3
- package/dist/packages/types/global.d.ts +9 -0
- package/dist/packages/utils/map/analysis-spatial/flood.d.ts +3 -3
- package/dist/packages/utils/map/analysis-spatial/intervisibility.d.ts +3 -3
- package/dist/packages/utils/map/analysis-spatial/section.d.ts +2 -2
- package/dist/packages/utils/map/analysis-spatial/viewshed.d.ts +4 -4
- package/dist/packages/utils/map/analysis-spatial/volume.d.ts +3 -3
- package/dist/packages/utils/map/index.d.ts +67 -6
- package/dist/packages/utils/map/layer/index.d.ts +1 -1
- package/dist/packages/utils/map/measure/index.d.ts +1 -1
- package/dist/packages/utils/map/plot/index.d.ts +1 -1
- package/dist/packages/utils/types/index.d.ts +1 -1
- package/dist/sat-earth.mjs +2751 -2757
- package/dist/sat-earth.umd.js +6 -6
- package/dist/style.css +1 -1
- package/package.json +5 -10
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# 简介
|
|
2
2
|
|
|
3
3
|
## 什么是SatEarth?
|
|
4
|
-
> **[SatEarth](https://gitee.com/gengkaibo/sat-earth)是基于 [Vite](https://vitejs.dev/) + [TypeScript](https://www.typescriptlang.org/) + [Vue](https://v3.vuejs.org/) + [Element Plus](http://element-plus.org/zh-CN/) 等技术架构以及 [Mars3D](http://mars3d.cn/) 和 [Cesium](https://cesium.com/) 的底层API,实现的三维地球NPM组件库,以支持前端开发者快速搭建三维场景。**
|
|
4
|
+
> **[SatEarth](https://gitee.com/gengkaibo/sat-earth)是基于 [Vite](https://vitejs.dev/) + [TypeScript](https://www.typescriptlang.org/) + [Vue](https://v3.vuejs.org/) + [Element Plus](http://element-plus.org/zh-CN/) 等技术架构以及 [Mars3D@3.4.26](http://mars3d.cn/) 和 [Cesium@1.95.1](https://cesium.com/) 的底层API,实现的三维地球NPM组件库,以支持前端开发者快速搭建三维场景。**
|
|
5
5
|
|
|
6
6
|
## 组件列表
|
|
7
7
|
> 已完成的组件:
|
|
@@ -27,10 +27,9 @@
|
|
|
27
27
|
## 亮点
|
|
28
28
|
- ⚡️ 基于`Vite`、`TypeScript`、`Vue`等最新技术栈开发,在开发过程中如果使用`VSCode`开发,有相应的[Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)插件代码提示支持
|
|
29
29
|
- 💡 对常用功能进行组件化封装,统一维护,满足基础工作需求
|
|
30
|
-
- 🛠️ 暴露了`SatEarth
|
|
30
|
+
- 🛠️ 暴露了`SatEarth`等API,在使用过程中除了可以使用内置的组件外,可以灵活根据业务和需求进行个性化开发
|
|
31
31
|
- 🔑 同`Element Plus`的主题配置及黑暗主题适配
|
|
32
32
|
- ✨ 支持在同一个界面构造多个`Cesium`球而互不影响
|
|
33
|
-
- ♨️ 持续关注最新的技术方向,保证第一时间更新
|
|
34
33
|
|
|
35
34
|
## 浏览器支持
|
|
36
35
|
- `Chrome`
|
|
@@ -3,5 +3,5 @@ declare const SatLocation: import('../../utils/installer').SFCWithInstall<import
|
|
|
3
3
|
onInitHooks?: ((...args: any[]) => any) | undefined;
|
|
4
4
|
onDestroyHooks?: ((...args: any[]) => any) | undefined;
|
|
5
5
|
}, {}>>;
|
|
6
|
-
export { SatLocationSFC, SatLocation };
|
|
6
|
+
export { SatLocationSFC, SatLocation, };
|
|
7
7
|
export default SatLocation;
|
|
@@ -4,11 +4,9 @@ import domtoimage from 'dom-to-image-more';
|
|
|
4
4
|
export * from '../components';
|
|
5
5
|
export * from '../utils/types';
|
|
6
6
|
export { SatMap } from '../utils/map';
|
|
7
|
+
export { levelList } from '../config';
|
|
7
8
|
export * as SatUtil from '../utils';
|
|
8
9
|
export * as SatStore from '../store';
|
|
9
|
-
export * as mars3d from 'mars3d';
|
|
10
|
-
export * as turf from '@turf/turf';
|
|
11
|
-
export { Cesium } from 'mars3d';
|
|
12
10
|
export { domtoimage };
|
|
13
11
|
export interface SatEarthInstallOptions {
|
|
14
12
|
elementPlusConfigOptions?: ConfigProviderProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { layer, thing } from 'mars3d';
|
|
2
2
|
import { SatMap } from '../../../utils/map';
|
|
3
3
|
export interface FloodAnalysisParams {
|
|
4
4
|
minHeight: number;
|
|
@@ -7,8 +7,8 @@ export interface FloodAnalysisParams {
|
|
|
7
7
|
}
|
|
8
8
|
export declare class Flood {
|
|
9
9
|
#private;
|
|
10
|
-
graphicLayer:
|
|
11
|
-
floodByGraphic:
|
|
10
|
+
graphicLayer: layer.GraphicLayer | undefined;
|
|
11
|
+
floodByGraphic: thing.FloodByGraphic | undefined;
|
|
12
12
|
drawPositions: any;
|
|
13
13
|
constructor(satMap: SatMap);
|
|
14
14
|
drawExtents(heightChange: (height: number) => void, minmaxHeightChange: (minHeight: number, maxHeight: number) => void): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { layer, thing } from 'mars3d';
|
|
2
2
|
import { SatMap } from '../../../utils/map';
|
|
3
3
|
export declare class Intervisibility {
|
|
4
4
|
#private;
|
|
5
|
-
graphicLayer:
|
|
6
|
-
sightline:
|
|
5
|
+
graphicLayer: layer.GraphicLayer | undefined;
|
|
6
|
+
sightline: thing.Sightline | undefined;
|
|
7
7
|
constructor(satMap: SatMap);
|
|
8
8
|
drawCircle(isDepthTestAgainstTerrain: boolean): void;
|
|
9
9
|
drawLine(isDepthTestAgainstTerrain: boolean): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { thing } from 'mars3d';
|
|
2
2
|
import * as echarts from 'echarts';
|
|
3
3
|
import { SatMap } from '../../../utils/map';
|
|
4
4
|
export declare class Section {
|
|
5
5
|
#private;
|
|
6
|
-
measure:
|
|
6
|
+
measure: thing.Measure | undefined;
|
|
7
7
|
sectionCharts: echarts.ECharts | undefined;
|
|
8
8
|
constructor(satMap: SatMap);
|
|
9
9
|
measureSection(resultDataShowArea: string): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { layer, graphic } from 'mars3d';
|
|
2
2
|
import { SatMap } from '../../../utils/map';
|
|
3
3
|
export interface ViewshedItem {
|
|
4
4
|
id: string | number;
|
|
@@ -8,11 +8,11 @@ export interface ViewshedItem {
|
|
|
8
8
|
}
|
|
9
9
|
export declare class Viewshed {
|
|
10
10
|
#private;
|
|
11
|
-
graphicLayer:
|
|
12
|
-
static defaultStyle:
|
|
11
|
+
graphicLayer: layer.GraphicLayer | undefined;
|
|
12
|
+
static defaultStyle: graphic.ViewShed.StyleOptions;
|
|
13
13
|
constructor(satMap: SatMap);
|
|
14
14
|
initGraphicLayer(): void;
|
|
15
|
-
startDraw(style?:
|
|
15
|
+
startDraw(style?: graphic.ViewShed.StyleOptions): Promise<graphic.ViewShed>;
|
|
16
16
|
changeViewshedStyle(viewshedItem: ViewshedItem, field: string, value: number | string | boolean): void;
|
|
17
17
|
getStyleValue(viewshedItem: ViewshedItem, field: string): any;
|
|
18
18
|
toggleHiddenShow(viewshedItem: ViewshedItem): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { thing, graphic } from 'mars3d';
|
|
2
2
|
import { SatMap } from '../../../utils/map';
|
|
3
3
|
export declare class Volume {
|
|
4
4
|
#private;
|
|
5
|
-
measure:
|
|
6
|
-
volumeMeasureInstance: (
|
|
5
|
+
measure: thing.Measure | undefined;
|
|
6
|
+
volumeMeasureInstance: (graphic.VolumeMeasure & {
|
|
7
7
|
interPolygonObj: any;
|
|
8
8
|
}) | undefined;
|
|
9
9
|
constructor(satMap: SatMap);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Map as Mars3dMap } from 'mars3d';
|
|
1
|
+
import type { Map as Mars3dMap, Cesium } from 'mars3d';
|
|
3
2
|
import { Layer } from './layer';
|
|
4
3
|
import { Measure } from './measure';
|
|
5
4
|
import { Plot } from './plot';
|
|
@@ -7,9 +6,71 @@ import { SpatialAnalysis } from './analysis-spatial';
|
|
|
7
6
|
import type { SatMapOptions } from '../../utils/types';
|
|
8
7
|
export declare class SatMap {
|
|
9
8
|
#private;
|
|
10
|
-
static Cesium: typeof
|
|
11
|
-
static mars3d: typeof mars3d;
|
|
12
|
-
static gaodePOI:
|
|
9
|
+
static Cesium: typeof Cesium;
|
|
10
|
+
static mars3d: typeof import("mars3d");
|
|
11
|
+
static gaodePOI: {
|
|
12
|
+
keys: string[];
|
|
13
|
+
readonly key: string;
|
|
14
|
+
getAddress(queryOptions: {
|
|
15
|
+
location?: any;
|
|
16
|
+
success?: ((...params: any[]) => any) | undefined;
|
|
17
|
+
error?: ((...params: any[]) => any) | undefined;
|
|
18
|
+
}): Promise<any>;
|
|
19
|
+
autoTip(queryOptions: {
|
|
20
|
+
text: string;
|
|
21
|
+
location?: any;
|
|
22
|
+
city?: string | undefined;
|
|
23
|
+
citylimit?: boolean | undefined;
|
|
24
|
+
success?: ((...params: any[]) => any) | undefined;
|
|
25
|
+
error?: ((...params: any[]) => any) | undefined;
|
|
26
|
+
}): Promise<any>;
|
|
27
|
+
detail(queryOptions: {
|
|
28
|
+
id: string;
|
|
29
|
+
success?: ((...params: any[]) => any) | undefined;
|
|
30
|
+
error?: ((...params: any[]) => any) | undefined;
|
|
31
|
+
}): Promise<any>;
|
|
32
|
+
query(queryOptions: {
|
|
33
|
+
text: string;
|
|
34
|
+
types?: string | undefined;
|
|
35
|
+
graphic?: any;
|
|
36
|
+
limit?: boolean | undefined;
|
|
37
|
+
page?: number | undefined;
|
|
38
|
+
count?: number | undefined;
|
|
39
|
+
error?: ((...params: any[]) => any) | undefined;
|
|
40
|
+
success?: ((...params: any[]) => any) | undefined;
|
|
41
|
+
}): Promise<any>;
|
|
42
|
+
queryText(queryOptions: {
|
|
43
|
+
text: string;
|
|
44
|
+
types?: string | undefined;
|
|
45
|
+
city?: string | undefined;
|
|
46
|
+
citylimit?: boolean | undefined;
|
|
47
|
+
count?: number | undefined;
|
|
48
|
+
page?: number | undefined;
|
|
49
|
+
success?: ((...params: any[]) => any) | undefined;
|
|
50
|
+
error?: ((...params: any[]) => any) | undefined;
|
|
51
|
+
}): Promise<any>;
|
|
52
|
+
queryCircle(queryOptions: {
|
|
53
|
+
text: string;
|
|
54
|
+
types?: string | undefined;
|
|
55
|
+
location?: any;
|
|
56
|
+
radius?: number | undefined;
|
|
57
|
+
limit?: boolean | undefined;
|
|
58
|
+
count?: number | undefined;
|
|
59
|
+
page?: number | undefined;
|
|
60
|
+
success?: ((...params: any[]) => any) | undefined;
|
|
61
|
+
error?: ((...params: any[]) => any) | undefined;
|
|
62
|
+
}): Promise<any>;
|
|
63
|
+
queryPolygon(queryOptions: {
|
|
64
|
+
text: string;
|
|
65
|
+
types?: string | undefined;
|
|
66
|
+
polygon: any[][];
|
|
67
|
+
limit?: boolean | undefined;
|
|
68
|
+
count?: number | undefined;
|
|
69
|
+
page?: number | undefined;
|
|
70
|
+
success?: ((...params: any[]) => any) | undefined;
|
|
71
|
+
error?: ((...params: any[]) => any) | undefined;
|
|
72
|
+
}): Promise<any>;
|
|
73
|
+
};
|
|
13
74
|
static webglreport(): boolean;
|
|
14
75
|
static webglerror(): void;
|
|
15
76
|
static getInstanceById(eleId: string): SatMap | undefined;
|
|
@@ -22,7 +83,7 @@ export declare class SatMap {
|
|
|
22
83
|
measure: Measure | undefined;
|
|
23
84
|
plot: Plot | undefined;
|
|
24
85
|
spatialAnalysis: SpatialAnalysis | undefined;
|
|
25
|
-
constructor(satGlobeEleId: string, mapContainerEleId: string, options: SatMapOptions, viewer?:
|
|
86
|
+
constructor(satGlobeEleId: string, mapContainerEleId: string, options: SatMapOptions, viewer?: Cesium.Viewer);
|
|
26
87
|
inited(): Promise<SatMap>;
|
|
27
88
|
destroy(eleId?: string): void;
|
|
28
89
|
downLoadScreenShot(options?: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Map as Mars3dMap, graphic, ChinaCRS, LangType, Cesium, GraphicType } from 'mars3d';
|
|
1
|
+
import type { Map as Mars3dMap, graphic, ChinaCRS, LangType, Cesium, GraphicType } from 'mars3d';
|
|
2
2
|
import { plotSource, plotStyleConfig } from 'sat-earth-resources';
|
|
3
3
|
export type SatLayer = Mars3dMap.layerOptions & {
|
|
4
4
|
radio?: boolean;
|