sat-earth 3.1.5 → 3.1.7
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 +3 -3
- package/dist/dts/components/components.d.ts +6 -6
- package/dist/dts/components/location/SatLocation.vue.d.ts +2 -2
- package/dist/dts/components/location/SatLocationMain.vue.d.ts +2 -2
- package/dist/dts/components/location/SatRegionLevel.vue.d.ts +2 -2
- package/dist/dts/components/location/index.d.ts +3 -3
- package/dist/dts/utils/types/index.d.ts +6 -7
- package/dist/sat-earth.mjs +733 -699
- package/dist/style.css +1 -1
- package/package.json +4 -3
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
|
|
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组件库,以支持前端开发者快速搭建三维场景。**
|
|
5
5
|
|
|
6
6
|
## 组件列表
|
|
7
7
|
> 已完成的组件:
|
|
@@ -44,6 +44,6 @@
|
|
|
44
44
|
|
|
45
45
|
## 相关地址
|
|
46
46
|
- [SatEarth仓库](https://gitee.com/gengkaibo/sat-earth)
|
|
47
|
-
- [SatEarth在线文档](http://
|
|
48
|
-
- [SatEarth在线体验](http://
|
|
47
|
+
- [SatEarth在线文档](http://kbe3d.top/sat-earth-docs/)
|
|
48
|
+
- [SatEarth在线体验](http://kbe3d.top/sat-earth-demo/)
|
|
49
49
|
|
|
@@ -780,7 +780,7 @@ export declare const components: (({
|
|
|
780
780
|
};
|
|
781
781
|
}) & ((app: import('vue').App, ...options: any[]) => any) & Partial<import('vue').ObjectPlugin<any[]>>) | ({
|
|
782
782
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
783
|
-
|
|
783
|
+
areasJsonPerfix: {
|
|
784
784
|
type: globalThis.PropType<string>;
|
|
785
785
|
};
|
|
786
786
|
}>> & Readonly<{
|
|
@@ -797,7 +797,7 @@ export declare const components: (({
|
|
|
797
797
|
M: {};
|
|
798
798
|
Defaults: {};
|
|
799
799
|
}, Readonly<globalThis.ExtractPropTypes<{
|
|
800
|
-
|
|
800
|
+
areasJsonPerfix: {
|
|
801
801
|
type: globalThis.PropType<string>;
|
|
802
802
|
};
|
|
803
803
|
}>> & Readonly<{
|
|
@@ -808,7 +808,7 @@ export declare const components: (({
|
|
|
808
808
|
__isTeleport?: never;
|
|
809
809
|
__isSuspense?: never;
|
|
810
810
|
} & import('vue').ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
|
|
811
|
-
|
|
811
|
+
areasJsonPerfix: {
|
|
812
812
|
type: globalThis.PropType<string>;
|
|
813
813
|
};
|
|
814
814
|
}>> & Readonly<{
|
|
@@ -825,7 +825,7 @@ export declare const components: (({
|
|
|
825
825
|
};
|
|
826
826
|
}) & import('vue').ObjectPlugin<any[]>) | ({
|
|
827
827
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
828
|
-
|
|
828
|
+
areasJsonPerfix: {
|
|
829
829
|
type: globalThis.PropType<string>;
|
|
830
830
|
};
|
|
831
831
|
}>> & Readonly<{
|
|
@@ -842,7 +842,7 @@ export declare const components: (({
|
|
|
842
842
|
M: {};
|
|
843
843
|
Defaults: {};
|
|
844
844
|
}, Readonly<globalThis.ExtractPropTypes<{
|
|
845
|
-
|
|
845
|
+
areasJsonPerfix: {
|
|
846
846
|
type: globalThis.PropType<string>;
|
|
847
847
|
};
|
|
848
848
|
}>> & Readonly<{
|
|
@@ -853,7 +853,7 @@ export declare const components: (({
|
|
|
853
853
|
__isTeleport?: never;
|
|
854
854
|
__isSuspense?: never;
|
|
855
855
|
} & import('vue').ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
|
|
856
|
-
|
|
856
|
+
areasJsonPerfix: {
|
|
857
857
|
type: globalThis.PropType<string>;
|
|
858
858
|
};
|
|
859
859
|
}>> & Readonly<{
|
|
@@ -4,12 +4,12 @@ declare function __VLS_template(): {
|
|
|
4
4
|
path?(_: {}): any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
-
|
|
7
|
+
areasJsonPerfix?: string;
|
|
8
8
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
9
|
initHooks: () => void;
|
|
10
10
|
destroyHooks: () => void;
|
|
11
11
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
12
|
-
|
|
12
|
+
areasJsonPerfix?: string;
|
|
13
13
|
}>>> & Readonly<{
|
|
14
14
|
onInitHooks?: (() => any) | undefined;
|
|
15
15
|
onDestroyHooks?: (() => any) | undefined;
|
|
@@ -3,9 +3,9 @@ declare function __VLS_template(): {
|
|
|
3
3
|
path?(_: {}): any;
|
|
4
4
|
};
|
|
5
5
|
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
-
|
|
6
|
+
areasJsonPerfix?: string;
|
|
7
7
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
-
|
|
8
|
+
areasJsonPerfix?: string;
|
|
9
9
|
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
10
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
11
11
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
-
|
|
2
|
+
areasJsonPerfix?: string;
|
|
3
3
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
-
|
|
4
|
+
areasJsonPerfix?: string;
|
|
5
5
|
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
6
|
export default _default;
|
|
7
7
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -2,7 +2,7 @@ import { default as SatLocationSFC } from './SatLocation.vue';
|
|
|
2
2
|
|
|
3
3
|
declare const SatLocation: import('../../utils/installer').SFCWithInstall<{
|
|
4
4
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
5
|
-
|
|
5
|
+
areasJsonPerfix: {
|
|
6
6
|
type: globalThis.PropType<string>;
|
|
7
7
|
};
|
|
8
8
|
}>> & Readonly<{
|
|
@@ -19,7 +19,7 @@ declare const SatLocation: import('../../utils/installer').SFCWithInstall<{
|
|
|
19
19
|
M: {};
|
|
20
20
|
Defaults: {};
|
|
21
21
|
}, Readonly<globalThis.ExtractPropTypes<{
|
|
22
|
-
|
|
22
|
+
areasJsonPerfix: {
|
|
23
23
|
type: globalThis.PropType<string>;
|
|
24
24
|
};
|
|
25
25
|
}>> & Readonly<{
|
|
@@ -30,7 +30,7 @@ declare const SatLocation: import('../../utils/installer').SFCWithInstall<{
|
|
|
30
30
|
__isTeleport?: never;
|
|
31
31
|
__isSuspense?: never;
|
|
32
32
|
} & import('vue').ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
|
|
33
|
-
|
|
33
|
+
areasJsonPerfix: {
|
|
34
34
|
type: globalThis.PropType<string>;
|
|
35
35
|
};
|
|
36
36
|
}>> & Readonly<{
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Cesium, graphic, GraphicType, layer, Map as Mars3dMap } from 'mars3d';
|
|
2
2
|
import { plotSource, plotStyleConfig } from 'sat-earth-resources';
|
|
3
3
|
|
|
4
4
|
export type SatLayer = Mars3dMap.layerOptions & {
|
|
5
5
|
radio?: boolean;
|
|
6
6
|
center?: MarsLayerCenter;
|
|
7
7
|
addedHooks?: (...args: any[]) => any | Promise<any>;
|
|
8
|
-
addLayerHooks?: (...args: any[]) => any | Promise<any>;
|
|
9
8
|
removeLayerHooks?: (...args: any[]) => any | Promise<any>;
|
|
9
|
+
_addLayerHooks?: (map: Mars3dMap, options: SatLayerDev) => layer.BaseLayer | Promise<layer.BaseLayer>;
|
|
10
10
|
[someAttr: string]: any;
|
|
11
11
|
};
|
|
12
12
|
export type SatLayerDev = SatLayer & {
|
|
@@ -57,6 +57,9 @@ export type MarsMapOptions = {
|
|
|
57
57
|
export type SatMapOptions = {
|
|
58
58
|
map3d?: {
|
|
59
59
|
scene?: Mars3dMap.sceneOptions;
|
|
60
|
+
terrain?: Mars3dMap.terrainOptions;
|
|
61
|
+
method: Mars3dMap.methodOptions;
|
|
62
|
+
thing?: Mars3dMap.thingOptions;
|
|
60
63
|
control?: SatMapControl;
|
|
61
64
|
mouse?: Mars3dMap.mouseOptions;
|
|
62
65
|
effect?: Mars3dMap.effectOptions;
|
|
@@ -65,7 +68,6 @@ export type SatMapOptions = {
|
|
|
65
68
|
cover?: boolean;
|
|
66
69
|
list?: SatLayer[];
|
|
67
70
|
};
|
|
68
|
-
_basemapsCache?: SatLayer[];
|
|
69
71
|
custom?: SatMapCustomOptions;
|
|
70
72
|
};
|
|
71
73
|
};
|
|
@@ -73,10 +75,6 @@ export type SatMapControl = Mars3dMap.controlOptions & {
|
|
|
73
75
|
locationBar?: {
|
|
74
76
|
[someAttr: string]: any;
|
|
75
77
|
} | boolean;
|
|
76
|
-
geocoderConfig?: {
|
|
77
|
-
key: string[];
|
|
78
|
-
};
|
|
79
|
-
darkRadio?: boolean;
|
|
80
78
|
};
|
|
81
79
|
export type SatPointEntity = graphic.PointEntity & {
|
|
82
80
|
[someAttr: string]: any;
|
|
@@ -86,6 +84,7 @@ export type SatMapCustomOptions = {
|
|
|
86
84
|
primaryColor?: string;
|
|
87
85
|
isDark?: boolean;
|
|
88
86
|
};
|
|
87
|
+
darkRadio?: boolean;
|
|
89
88
|
toolbar?: {
|
|
90
89
|
mapSplit?: boolean;
|
|
91
90
|
bookmark?: boolean;
|