sat-earth 0.0.26 → 0.3.2
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 +4 -4
- package/dist/packages/components/globe/CameraBookmarkPanel.vue.d.ts +1 -1
- package/dist/packages/components/location/SatLocation.vue.d.ts +5 -3
- package/dist/packages/components/location/SatLocationMain.vue.d.ts +5 -3
- package/dist/packages/components/location/SatPathPlan.vue.d.ts +5 -3
- package/dist/packages/components/location/helpers.d.ts +10 -2
- package/dist/packages/components/location/index.d.ts +5 -3
- package/dist/packages/components/measure/SatMeasure.vue.d.ts +13 -0
- package/dist/packages/components/measure/SatMeasureMain.vue.d.ts +14 -0
- package/dist/packages/components/measure/index.d.ts +13 -0
- package/dist/packages/config/index.d.ts +0 -1
- package/dist/packages/global.d.ts +1 -0
- package/dist/packages/hooks/ui/useLoading.d.ts +30 -0
- package/dist/packages/hooks/ui/useMessage.d.ts +17 -0
- package/dist/packages/utils/deepClone.d.ts +1 -1
- package/dist/packages/utils/map/satMap/index.d.ts +7 -3
- package/dist/packages/utils/map/satMap/measure/index.d.ts +24 -0
- package/dist/sat-earth.es.js +1116 -725
- package/dist/sat-earth.umd.js +51 -49
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/packages/hooks/ui/useElLoading.d.ts +0 -1
package/README.md
CHANGED
|
@@ -167,8 +167,8 @@ const options: SatMapTypes.SatMapOptions = {
|
|
|
167
167
|
map3d: {
|
|
168
168
|
control: {
|
|
169
169
|
baseLayerPicker: true,
|
|
170
|
-
animation:
|
|
171
|
-
timeline:
|
|
170
|
+
animation: false,
|
|
171
|
+
timeline: false
|
|
172
172
|
},
|
|
173
173
|
token: {
|
|
174
174
|
bing: 'Ai9rlVuU69CDOgiaiN4wT4M_seF7DAgaD3IuMa39awQ9jVQ07JJj8LIIBPX0L2pd'
|
|
@@ -374,13 +374,13 @@ body {
|
|
|
374
374
|
- 地名检索
|
|
375
375
|
- 坐标定位
|
|
376
376
|
- 路径规划
|
|
377
|
-
- 3.2
|
|
377
|
+
- 3.2.量测工具(done)
|
|
378
378
|
- 坐标测量
|
|
379
379
|
- 空间距离
|
|
380
380
|
- 水平面积
|
|
381
381
|
- 高度测量
|
|
382
382
|
- 三角测量
|
|
383
|
-
-
|
|
383
|
+
- 方位测量
|
|
384
384
|
- 贴地距离
|
|
385
385
|
- 贴地面积
|
|
386
386
|
- 3.3.图上标绘
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bookmark } from './helpers';
|
|
1
|
+
import { type Bookmark } from './helpers';
|
|
2
2
|
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
3
3
|
layerStore: import("pinia").Store<"SatLayerDev", import('../../store/modules/layer').LayerState, {}, {
|
|
4
4
|
setLayerList(val: import("../../utils/types").SatLayerDev[]): void;
|
|
@@ -620,14 +620,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
620
620
|
};
|
|
621
621
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
622
622
|
SatPathPlan: import("vue").DefineComponent<{}, {
|
|
623
|
-
allDiatance: import("vue").Ref<string>;
|
|
624
|
-
useTime: import("vue").Ref<string>;
|
|
625
|
-
routePath: import("vue").Ref<string>;
|
|
626
623
|
pathForm: import("vue").Ref<{
|
|
627
624
|
start: string;
|
|
628
625
|
end: string;
|
|
629
626
|
selectWay: string;
|
|
630
627
|
}>;
|
|
628
|
+
startAddress: import("vue").Ref<string>;
|
|
629
|
+
endAddress: import("vue").Ref<string>;
|
|
630
|
+
allDiatance: import("vue").Ref<string>;
|
|
631
|
+
useTime: import("vue").Ref<string>;
|
|
632
|
+
routePath: import("vue").Ref<string>;
|
|
631
633
|
selectWayOptions: {
|
|
632
634
|
value: string;
|
|
633
635
|
label: string;
|
|
@@ -385,14 +385,16 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
385
385
|
};
|
|
386
386
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
387
387
|
SatPathPlan: import("vue").DefineComponent<{}, {
|
|
388
|
-
allDiatance: import("vue").Ref<string>;
|
|
389
|
-
useTime: import("vue").Ref<string>;
|
|
390
|
-
routePath: import("vue").Ref<string>;
|
|
391
388
|
pathForm: import("vue").Ref<{
|
|
392
389
|
start: string;
|
|
393
390
|
end: string;
|
|
394
391
|
selectWay: string;
|
|
395
392
|
}>;
|
|
393
|
+
startAddress: import("vue").Ref<string>;
|
|
394
|
+
endAddress: import("vue").Ref<string>;
|
|
395
|
+
allDiatance: import("vue").Ref<string>;
|
|
396
|
+
useTime: import("vue").Ref<string>;
|
|
397
|
+
routePath: import("vue").Ref<string>;
|
|
396
398
|
selectWayOptions: {
|
|
397
399
|
value: string;
|
|
398
400
|
label: string;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
|
-
allDiatance: import("vue").Ref<string>;
|
|
3
|
-
useTime: import("vue").Ref<string>;
|
|
4
|
-
routePath: import("vue").Ref<string>;
|
|
5
2
|
pathForm: import("vue").Ref<{
|
|
6
3
|
start: string;
|
|
7
4
|
end: string;
|
|
8
5
|
selectWay: string;
|
|
9
6
|
}>;
|
|
7
|
+
startAddress: import("vue").Ref<string>;
|
|
8
|
+
endAddress: import("vue").Ref<string>;
|
|
9
|
+
allDiatance: import("vue").Ref<string>;
|
|
10
|
+
useTime: import("vue").Ref<string>;
|
|
11
|
+
routePath: import("vue").Ref<string>;
|
|
10
12
|
selectWayOptions: {
|
|
11
13
|
value: string;
|
|
12
14
|
label: string;
|
|
@@ -27,8 +27,16 @@ export declare const pathPlanHelper: {
|
|
|
27
27
|
init(): void;
|
|
28
28
|
btnAnalyse(type: '1' | '3'): void;
|
|
29
29
|
removeAllPath(): void;
|
|
30
|
-
startPoint(type: '1' | '3'): Promise<
|
|
31
|
-
|
|
30
|
+
startPoint(type: '1' | '3'): Promise<{
|
|
31
|
+
lng: any;
|
|
32
|
+
lat: any;
|
|
33
|
+
address: any;
|
|
34
|
+
}>;
|
|
35
|
+
endPoint(type: '1' | '3'): Promise<{
|
|
36
|
+
lng: any;
|
|
37
|
+
lat: any;
|
|
38
|
+
address: any;
|
|
39
|
+
}>;
|
|
32
40
|
queryRoute(type: '1' | '3'): void;
|
|
33
41
|
saveGeoJSON(): void;
|
|
34
42
|
};
|
|
@@ -620,14 +620,16 @@ export declare const SatLocation: import('../../utils/installer').SFCWithInstall
|
|
|
620
620
|
};
|
|
621
621
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
622
622
|
SatPathPlan: import("vue").DefineComponent<{}, {
|
|
623
|
-
allDiatance: import("vue").Ref<string>;
|
|
624
|
-
useTime: import("vue").Ref<string>;
|
|
625
|
-
routePath: import("vue").Ref<string>;
|
|
626
623
|
pathForm: import("vue").Ref<{
|
|
627
624
|
start: string;
|
|
628
625
|
end: string;
|
|
629
626
|
selectWay: string;
|
|
630
627
|
}>;
|
|
628
|
+
startAddress: import("vue").Ref<string>;
|
|
629
|
+
endAddress: import("vue").Ref<string>;
|
|
630
|
+
allDiatance: import("vue").Ref<string>;
|
|
631
|
+
useTime: import("vue").Ref<string>;
|
|
632
|
+
routePath: import("vue").Ref<string>;
|
|
631
633
|
selectWayOptions: {
|
|
632
634
|
value: string;
|
|
633
635
|
label: string;
|
|
@@ -233,6 +233,19 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
233
233
|
shrinkEvent: Function;
|
|
234
234
|
closeEvent: Function;
|
|
235
235
|
}>;
|
|
236
|
+
SatMeasureMain: import("vue").DefineComponent<{}, {
|
|
237
|
+
isMobile: import("vue").Ref<boolean>;
|
|
238
|
+
measureLength: () => void;
|
|
239
|
+
measureArea: () => void;
|
|
240
|
+
measureHeight: () => void;
|
|
241
|
+
measurePoint: () => void;
|
|
242
|
+
measureSurfaceLength: () => void;
|
|
243
|
+
measureSurfaceeArea: () => void;
|
|
244
|
+
measureTriangleHeight: () => void;
|
|
245
|
+
measureAngle: () => void;
|
|
246
|
+
removeAll: () => void;
|
|
247
|
+
stopDraw: () => void;
|
|
248
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
236
249
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
237
250
|
visible: {
|
|
238
251
|
type: BooleanConstructor;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
|
+
isMobile: import("vue").Ref<boolean>;
|
|
3
|
+
measureLength: () => void;
|
|
4
|
+
measureArea: () => void;
|
|
5
|
+
measureHeight: () => void;
|
|
6
|
+
measurePoint: () => void;
|
|
7
|
+
measureSurfaceLength: () => void;
|
|
8
|
+
measureSurfaceeArea: () => void;
|
|
9
|
+
measureTriangleHeight: () => void;
|
|
10
|
+
measureAngle: () => void;
|
|
11
|
+
removeAll: () => void;
|
|
12
|
+
stopDraw: () => void;
|
|
13
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
14
|
+
export default _sfc_main;
|
|
@@ -233,6 +233,19 @@ export declare const SatMeasure: import('../../utils/installer').SFCWithInstall<
|
|
|
233
233
|
shrinkEvent: Function;
|
|
234
234
|
closeEvent: Function;
|
|
235
235
|
}>;
|
|
236
|
+
SatMeasureMain: import("vue").DefineComponent<{}, {
|
|
237
|
+
isMobile: import("vue").Ref<boolean>;
|
|
238
|
+
measureLength: () => void;
|
|
239
|
+
measureArea: () => void;
|
|
240
|
+
measureHeight: () => void;
|
|
241
|
+
measurePoint: () => void;
|
|
242
|
+
measureSurfaceLength: () => void;
|
|
243
|
+
measureSurfaceeArea: () => void;
|
|
244
|
+
measureTriangleHeight: () => void;
|
|
245
|
+
measureAngle: () => void;
|
|
246
|
+
removeAll: () => void;
|
|
247
|
+
stopDraw: () => void;
|
|
248
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
236
249
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
237
250
|
visible: {
|
|
238
251
|
type: BooleanConstructor;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export declare const IS_DARK_KEY = "SAT__IS__DARK__";
|
|
2
2
|
export declare const BOOKMARK_KEY = "SAT__BOOKMARK__";
|
|
3
|
-
export declare const MESSAGE_DURATION: number;
|
|
4
3
|
export declare const THEME_COLOR = "#409eff";
|
|
5
4
|
export declare const IS_DARK = true;
|
|
6
5
|
export declare const DEFAULT_PID = 0;
|
|
@@ -38,6 +38,7 @@ declare module '@vue/runtime-core' {
|
|
|
38
38
|
SatMapPart: typeof import('./components/map-part/SatMapPart.vue')['default']
|
|
39
39
|
SatMapPartMain: typeof import('./components/map-part/SatMapPartMain.vue')['default']
|
|
40
40
|
SatMeasure: typeof import('./components/measure/SatMeasure.vue')['default']
|
|
41
|
+
SatMeasureMain: typeof import('./components/measure/SatMeasureMain.vue')['default']
|
|
41
42
|
SatMenu: typeof import('./components/menu/SatMenu.vue')['default']
|
|
42
43
|
SatMenuTree: typeof import('./components/menu/tree/SatMenuTree.vue')['default']
|
|
43
44
|
SatModelAnalysis: typeof import('./components/analysis-model/SatModelAnalysis.vue')['default']
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface LoadingParentElement extends HTMLElement {
|
|
2
|
+
vLoadingAddClassList?: () => void;
|
|
3
|
+
}
|
|
4
|
+
export interface LoadingInstance {
|
|
5
|
+
setText: (text: string) => void;
|
|
6
|
+
removeElLoadingChild: () => void;
|
|
7
|
+
close: () => void;
|
|
8
|
+
handleAfterLeave: () => void;
|
|
9
|
+
vm: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
|
10
|
+
$el: HTMLElement;
|
|
11
|
+
originalPosition: import('vue').Ref<string>;
|
|
12
|
+
originalOverflow: import('vue').Ref<string>;
|
|
13
|
+
visible: import('vue').Ref<boolean>;
|
|
14
|
+
parent: import('vue').Ref<LoadingParentElement>;
|
|
15
|
+
background: import('vue').Ref<string>;
|
|
16
|
+
svg: import('vue').Ref<string>;
|
|
17
|
+
svgViewBox: import('vue').Ref<string>;
|
|
18
|
+
spinner: import('vue').Ref<string | boolean>;
|
|
19
|
+
text: import('vue').Ref<string>;
|
|
20
|
+
fullscreen: import('vue').Ref<boolean>;
|
|
21
|
+
lock: import('vue').Ref<boolean>;
|
|
22
|
+
customClass: import('vue').Ref<string>;
|
|
23
|
+
target: import('vue').Ref<HTMLElement>;
|
|
24
|
+
beforeClose?: import('vue').Ref<(() => boolean) | undefined> | undefined;
|
|
25
|
+
closed?: import('vue').Ref<(() => void) | undefined> | undefined;
|
|
26
|
+
}
|
|
27
|
+
export declare const useLoading: (isShow: boolean, text?: string | undefined, options?: Partial<Omit<import("element-plus").LoadingOptionsResolved, "parent" | "target"> & {
|
|
28
|
+
target: string | HTMLElement;
|
|
29
|
+
body: boolean;
|
|
30
|
+
}> | undefined) => void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
export declare const MESSAGE_DURATION: number;
|
|
3
|
+
export interface MessageOptions {
|
|
4
|
+
message: string;
|
|
5
|
+
type?: 'success' | 'warning' | 'info' | 'error';
|
|
6
|
+
icon?: string | Component;
|
|
7
|
+
dangerouslyUseHTMLString?: boolean;
|
|
8
|
+
customClass?: string;
|
|
9
|
+
duration?: number;
|
|
10
|
+
showClose?: boolean;
|
|
11
|
+
center?: boolean;
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
offset?: number;
|
|
14
|
+
appendTo?: string | HTMLElement;
|
|
15
|
+
grouping?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const useMessage: (options?: MessageOptions) => import("element-plus").MessageHandle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function deepClone(
|
|
1
|
+
export declare function deepClone<T>(sourceData: T): T;
|
|
@@ -2,14 +2,18 @@ import * as mars3d from 'mars3d';
|
|
|
2
2
|
import { Map as Mars3dMap } from 'mars3d';
|
|
3
3
|
import type { SatMapOptions } from '../../../utils/types';
|
|
4
4
|
import { Layer } from './layer';
|
|
5
|
+
import { Measure } from './measure';
|
|
5
6
|
export declare class SatMap {
|
|
6
7
|
static Cesium: typeof mars3d.Cesium;
|
|
7
8
|
static mars3d: typeof mars3d;
|
|
8
|
-
static Layer: Layer;
|
|
9
|
-
static configOptions: SatMapOptions | undefined;
|
|
10
9
|
static map: Mars3dMap | undefined;
|
|
11
|
-
static
|
|
10
|
+
static configOptions: SatMapOptions | undefined;
|
|
11
|
+
static Layer: Layer | undefined;
|
|
12
|
+
static Measure: Measure | undefined;
|
|
12
13
|
static gaodePOI: mars3d.query.GaodePOI;
|
|
14
|
+
static barInsertInitialIndex: number;
|
|
13
15
|
static initMap(eleId: string, options: SatMapOptions, viewer?: mars3d.Cesium.Viewer): Mars3dMap;
|
|
14
16
|
static destroyMap(): void;
|
|
17
|
+
static webglreport(): boolean;
|
|
18
|
+
static webglerror(): void;
|
|
15
19
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Map as Mars3dMap, thing } from 'mars3d';
|
|
2
|
+
export declare class Measure {
|
|
3
|
+
map: Mars3dMap;
|
|
4
|
+
measure: thing.Measure | undefined;
|
|
5
|
+
labelOptions: {
|
|
6
|
+
color: string;
|
|
7
|
+
font_family: string;
|
|
8
|
+
font_size: number;
|
|
9
|
+
scale: number;
|
|
10
|
+
scaleByDistance: boolean;
|
|
11
|
+
};
|
|
12
|
+
constructor(map: Mars3dMap);
|
|
13
|
+
initMeasure(): void;
|
|
14
|
+
removeAll(): void;
|
|
15
|
+
stopDraw(): void;
|
|
16
|
+
measureLength(): void;
|
|
17
|
+
measureArea(): void;
|
|
18
|
+
measureHeight(): void;
|
|
19
|
+
measureTriangleHeight(): void;
|
|
20
|
+
measureAngle(): void;
|
|
21
|
+
measureSurfaceLength(): void;
|
|
22
|
+
measureSurfaceeArea(): void;
|
|
23
|
+
measurePoint(): void;
|
|
24
|
+
}
|