sat-earth 0.4.5 → 0.4.8
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 +7 -7
- package/dist/packages/auto-components.d.ts +72 -0
- package/dist/packages/components/menu/index.d.ts +1 -1
- package/dist/packages/components/menu/tree/index.d.ts +9 -9
- package/dist/packages/global.d.ts +4 -70
- package/dist/packages/{env.d.ts → module.d.ts} +2 -5
- package/dist/packages/utils/index.d.ts +1 -1
- package/dist/packages/utils/map/index.d.ts +1 -1
- package/dist/sat-earth.mjs +25930 -0
- package/dist/sat-earth.umd.js +19 -13
- package/dist/style.css +1 -1
- package/package.json +17 -17
- package/dist/packages/global-window.d.ts +0 -6
- package/dist/sat-earth.es.js +0 -34310
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ npm i sat-earth
|
|
|
24
24
|
<script src="/Cesium/Cesium.js" type="text/javascript"></script>
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
- 在 `main.[jt]s`
|
|
27
|
+
- 在 `main.[jt]s` 中引入我们的 `sat-earth` 资源
|
|
28
28
|
|
|
29
29
|
```ts
|
|
30
30
|
import { createApp } from "vue"
|
|
@@ -77,7 +77,7 @@ export default defineConfig({
|
|
|
77
77
|
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
-
- 在`tsconfig.json`中引入类型声明文件`sat-earth/dist/packages/
|
|
80
|
+
- 在`tsconfig.json`中引入类型声明文件`sat-earth/dist/packages/auto-components`,来支持[Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)的代码提示功能
|
|
81
81
|
```json
|
|
82
82
|
{
|
|
83
83
|
"compilerOptions": {
|
|
@@ -121,7 +121,7 @@ export default defineConfig({
|
|
|
121
121
|
- 开始使用,组件化调用`<SatGlobe></SatGlobe>`,或者调用 `sat-earth` 暴露的方法,例:
|
|
122
122
|
```ts
|
|
123
123
|
<script setup lang="ts">
|
|
124
|
-
import {
|
|
124
|
+
import { satMapTypes, type SatMenu_Type_MenuItem } from 'sat-earth'
|
|
125
125
|
/*
|
|
126
126
|
初始化参数尽量保证了和mars3d的Map构造一致性,但是任然有一些地方进行了小改动,下面请看
|
|
127
127
|
改动:
|
|
@@ -163,7 +163,7 @@ import { SatMapTypes, type MenuItem } from 'sat-earth'
|
|
|
163
163
|
)
|
|
164
164
|
|
|
165
165
|
*/
|
|
166
|
-
const options:
|
|
166
|
+
const options: satMapTypes.SatMapOptions = {
|
|
167
167
|
map3d: {
|
|
168
168
|
control: {
|
|
169
169
|
baseLayerPicker: true,
|
|
@@ -218,7 +218,7 @@ const options: SatMapTypes.SatMapOptions = {
|
|
|
218
218
|
|
|
219
219
|
const isSourceVisible = ref(true)
|
|
220
220
|
|
|
221
|
-
const treeData = ref<
|
|
221
|
+
const treeData = ref<SatMenu_Type_MenuItem[]>([
|
|
222
222
|
{
|
|
223
223
|
name: 'hello',
|
|
224
224
|
label: '你好',
|
|
@@ -229,12 +229,12 @@ const treeData = ref<MenuItem[]>([
|
|
|
229
229
|
active: false
|
|
230
230
|
},
|
|
231
231
|
])
|
|
232
|
-
const changeDataToEnable = (item:
|
|
232
|
+
const changeDataToEnable = (item: SatMenu_Type_MenuItem) => {
|
|
233
233
|
item.enable = true
|
|
234
234
|
item.active = true
|
|
235
235
|
console.log('do init...')
|
|
236
236
|
}
|
|
237
|
-
const changeDataToUnEnable = (item:
|
|
237
|
+
const changeDataToUnEnable = (item: SatMenu_Type_MenuItem) => {
|
|
238
238
|
item.enable = false
|
|
239
239
|
item.active = false
|
|
240
240
|
console.log('do destroy...')
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// generated by unplugin-vue-components
|
|
2
|
+
// We suggest you to commit this file into source control
|
|
3
|
+
// Read more: https://github.com/vuejs/core/pull/3399
|
|
4
|
+
|
|
5
|
+
export {}
|
|
6
|
+
|
|
7
|
+
declare module '@vue/runtime-core' {
|
|
8
|
+
export interface GlobalComponents {
|
|
9
|
+
CameraBookmarkPanel: typeof import('./components/globe/CameraBookmarkPanel.vue')['default']
|
|
10
|
+
DarkIcon: typeof import('./components/common/DarkIcon.vue')['default']
|
|
11
|
+
ElButton: typeof import('element-plus/es')['ElButton']
|
|
12
|
+
ElCol: typeof import('element-plus/es')['ElCol']
|
|
13
|
+
ElColorPicker: typeof import('element-plus/es')['ElColorPicker']
|
|
14
|
+
ElDialog: typeof import('element-plus/es')['ElDialog']
|
|
15
|
+
ElDrawer: typeof import('element-plus/es')['ElDrawer']
|
|
16
|
+
ElForm: typeof import('element-plus/es')['ElForm']
|
|
17
|
+
ElFormItem: typeof import('element-plus/es')['ElFormItem']
|
|
18
|
+
ElImage: typeof import('element-plus/es')['ElImage']
|
|
19
|
+
ElInput: typeof import('element-plus/es')['ElInput']
|
|
20
|
+
ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
|
|
21
|
+
ElMenu: typeof import('element-plus/es')['ElMenu']
|
|
22
|
+
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
|
|
23
|
+
ElOption: typeof import('element-plus/es')['ElOption']
|
|
24
|
+
ElPagination: typeof import('element-plus/es')['ElPagination']
|
|
25
|
+
ElPopover: typeof import('element-plus/es')['ElPopover']
|
|
26
|
+
ElRow: typeof import('element-plus/es')['ElRow']
|
|
27
|
+
ElSelect: typeof import('element-plus/es')['ElSelect']
|
|
28
|
+
ElSlider: typeof import('element-plus/es')['ElSlider']
|
|
29
|
+
ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
|
|
30
|
+
ElSwitch: typeof import('element-plus/es')['ElSwitch']
|
|
31
|
+
ElTabPane: typeof import('element-plus/es')['ElTabPane']
|
|
32
|
+
ElTabs: typeof import('element-plus/es')['ElTabs']
|
|
33
|
+
ElTree: typeof import('element-plus/es')['ElTree']
|
|
34
|
+
ElUpload: typeof import('element-plus/es')['ElUpload']
|
|
35
|
+
LayerStyleSlider: typeof import('./components/source/LayerStyleSlider.vue')['default']
|
|
36
|
+
LightIcon: typeof import('./components/common/LightIcon.vue')['default']
|
|
37
|
+
MapSplitPanel: typeof import('./components/globe/MapSplitPanel.vue')['default']
|
|
38
|
+
PlotEdit: typeof import('./components/plot/PlotEdit.vue')['default']
|
|
39
|
+
PlotEditAttr: typeof import('./components/plot/PlotEditAttr.vue')['default']
|
|
40
|
+
PlotEditCoord: typeof import('./components/plot/PlotEditCoord.vue')['default']
|
|
41
|
+
PlotEditStyle: typeof import('./components/plot/PlotEditStyle.vue')['default']
|
|
42
|
+
PlotGroup: typeof import('./components/plot/PlotGroup.vue')['default']
|
|
43
|
+
PlotSourceList: typeof import('./components/plot/PlotSourceList.vue')['default']
|
|
44
|
+
SatBallistic: typeof import('./components/ballistic/SatBallistic.vue')['default']
|
|
45
|
+
SatCoordinate: typeof import('./components/location/SatCoordinate.vue')['default']
|
|
46
|
+
SatGlobe: typeof import('./components/globe/SatGlobe.vue')['default']
|
|
47
|
+
SatLocation: typeof import('./components/location/SatLocation.vue')['default']
|
|
48
|
+
SatLocationMain: typeof import('./components/location/SatLocationMain.vue')['default']
|
|
49
|
+
SatMapPart: typeof import('./components/map-part/SatMapPart.vue')['default']
|
|
50
|
+
SatMapPartMain: typeof import('./components/map-part/SatMapPartMain.vue')['default']
|
|
51
|
+
SatMeasure: typeof import('./components/measure/SatMeasure.vue')['default']
|
|
52
|
+
SatMeasureMain: typeof import('./components/measure/SatMeasureMain.vue')['default']
|
|
53
|
+
SatMenu: typeof import('./components/menu/SatMenu.vue')['default']
|
|
54
|
+
SatMenuMain: typeof import('./components/menu/SatMenuMain.vue')['default']
|
|
55
|
+
SatMenuTree: typeof import('./components/menu/tree/SatMenuTree.vue')['default']
|
|
56
|
+
SatModelAnalysis: typeof import('./components/analysis-model/SatModelAnalysis.vue')['default']
|
|
57
|
+
SatPanel: typeof import('./components/panel/SatPanel.vue')['default']
|
|
58
|
+
SatPathPlan: typeof import('./components/location/SatPathPlan.vue')['default']
|
|
59
|
+
SatPicture: typeof import('./components/picture/SatPicture.vue')['default']
|
|
60
|
+
SatPlot: typeof import('./components/plot/SatPlot.vue')['default']
|
|
61
|
+
SatPlotMain: typeof import('./components/plot/SatPlotMain.vue')['default']
|
|
62
|
+
SatPoiQuery: typeof import('./components/location/SatPoiQuery.vue')['default']
|
|
63
|
+
SatRoam: typeof import('./components/roam/SatRoam.vue')['default']
|
|
64
|
+
SatSource: typeof import('./components/source/SatSource.vue')['default']
|
|
65
|
+
SatSourceMain: typeof import('./components/source/SatSourceMain.vue')['default']
|
|
66
|
+
SatSpatialAnalysis: typeof import('./components/analysis-spatial/SatSpatialAnalysis.vue')['default']
|
|
67
|
+
SatTerrainAnalysis: typeof import('./components/analysis-terrain/SatTerrainAnalysis.vue')['default']
|
|
68
|
+
SatVideoFusion: typeof import('./components/video-fusion/SatVideoFusion.vue')['default']
|
|
69
|
+
TerrainExaggerationSlider: typeof import('./components/source/TerrainExaggerationSlider.vue')['default']
|
|
70
|
+
TheImageEditor: typeof import('./components/common/TheImageEditor.vue')['default']
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -194,5 +194,5 @@ export declare const SatMenu: import('../../utils/installer').SFCWithInstall<imp
|
|
|
194
194
|
isVisible: boolean;
|
|
195
195
|
}>;
|
|
196
196
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
197
|
-
export { type MenuItem } from './helpers';
|
|
197
|
+
export { type MenuItem as SatMenu_Type_MenuItem } from './helpers';
|
|
198
198
|
export default SatMenu;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const SatMenuTree: import('../../../utils/installer').SFCWithInstall<import("vue").DefineComponent<{
|
|
2
2
|
treeData: {
|
|
3
|
-
type: import("vue").PropType<import("..").
|
|
4
|
-
default: () => import("..").
|
|
3
|
+
type: import("vue").PropType<import("..").SatMenu_Type_MenuItem[]>;
|
|
4
|
+
default: () => import("..").SatMenu_Type_MenuItem[];
|
|
5
5
|
};
|
|
6
6
|
showType: {
|
|
7
7
|
type: import("vue").PropType<"default" | "enabled">;
|
|
@@ -129,8 +129,8 @@ export declare const SatMenuTree: import('../../../utils/installer').SFCWithInst
|
|
|
129
129
|
}>;
|
|
130
130
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
131
131
|
treeData: {
|
|
132
|
-
type: import("vue").PropType<import("..").
|
|
133
|
-
default: () => import("..").
|
|
132
|
+
type: import("vue").PropType<import("..").SatMenu_Type_MenuItem[]>;
|
|
133
|
+
default: () => import("..").SatMenu_Type_MenuItem[];
|
|
134
134
|
};
|
|
135
135
|
showType: {
|
|
136
136
|
type: import("vue").PropType<"default" | "enabled">;
|
|
@@ -147,12 +147,12 @@ export declare const SatMenuTree: import('../../../utils/installer').SFCWithInst
|
|
|
147
147
|
emit: (event: "customClick" | "customCloseClick", ...args: any[]) => void;
|
|
148
148
|
isShowDrawer: import("vue").Ref<boolean> | undefined;
|
|
149
149
|
handleClose: () => void;
|
|
150
|
-
handleMenuClick: (item: import("..").
|
|
151
|
-
handleCloseItemClick: (item: import("..").
|
|
150
|
+
handleMenuClick: (item: import("..").SatMenu_Type_MenuItem) => void;
|
|
151
|
+
handleCloseItemClick: (item: import("..").SatMenu_Type_MenuItem) => void;
|
|
152
152
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("customClick" | "customCloseClick")[], "customClick" | "customCloseClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
153
153
|
treeData: {
|
|
154
|
-
type: import("vue").PropType<import("..").
|
|
155
|
-
default: () => import("..").
|
|
154
|
+
type: import("vue").PropType<import("..").SatMenu_Type_MenuItem[]>;
|
|
155
|
+
default: () => import("..").SatMenu_Type_MenuItem[];
|
|
156
156
|
};
|
|
157
157
|
showType: {
|
|
158
158
|
type: import("vue").PropType<"default" | "enabled">;
|
|
@@ -166,7 +166,7 @@ export declare const SatMenuTree: import('../../../utils/installer').SFCWithInst
|
|
|
166
166
|
onCustomClick?: ((...args: any[]) => any) | undefined;
|
|
167
167
|
onCustomCloseClick?: ((...args: any[]) => any) | undefined;
|
|
168
168
|
}, {
|
|
169
|
-
treeData: import("..").
|
|
169
|
+
treeData: import("..").SatMenu_Type_MenuItem[];
|
|
170
170
|
showType: "default" | "enabled";
|
|
171
171
|
custom: boolean;
|
|
172
172
|
}>>;
|
|
@@ -1,72 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export {}
|
|
6
|
-
|
|
7
|
-
declare module '@vue/runtime-core' {
|
|
8
|
-
export interface GlobalComponents {
|
|
9
|
-
CameraBookmarkPanel: typeof import('./components/globe/CameraBookmarkPanel.vue')['default']
|
|
10
|
-
DarkIcon: typeof import('./components/common/DarkIcon.vue')['default']
|
|
11
|
-
ElButton: typeof import('element-plus/es')['ElButton']
|
|
12
|
-
ElCol: typeof import('element-plus/es')['ElCol']
|
|
13
|
-
ElColorPicker: typeof import('element-plus/es')['ElColorPicker']
|
|
14
|
-
ElDialog: typeof import('element-plus/es')['ElDialog']
|
|
15
|
-
ElDrawer: typeof import('element-plus/es')['ElDrawer']
|
|
16
|
-
ElForm: typeof import('element-plus/es')['ElForm']
|
|
17
|
-
ElFormItem: typeof import('element-plus/es')['ElFormItem']
|
|
18
|
-
ElImage: typeof import('element-plus/es')['ElImage']
|
|
19
|
-
ElInput: typeof import('element-plus/es')['ElInput']
|
|
20
|
-
ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
|
|
21
|
-
ElMenu: typeof import('element-plus/es')['ElMenu']
|
|
22
|
-
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
|
|
23
|
-
ElOption: typeof import('element-plus/es')['ElOption']
|
|
24
|
-
ElPagination: typeof import('element-plus/es')['ElPagination']
|
|
25
|
-
ElPopover: typeof import('element-plus/es')['ElPopover']
|
|
26
|
-
ElRow: typeof import('element-plus/es')['ElRow']
|
|
27
|
-
ElSelect: typeof import('element-plus/es')['ElSelect']
|
|
28
|
-
ElSlider: typeof import('element-plus/es')['ElSlider']
|
|
29
|
-
ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
|
|
30
|
-
ElSwitch: typeof import('element-plus/es')['ElSwitch']
|
|
31
|
-
ElTabPane: typeof import('element-plus/es')['ElTabPane']
|
|
32
|
-
ElTabs: typeof import('element-plus/es')['ElTabs']
|
|
33
|
-
ElTree: typeof import('element-plus/es')['ElTree']
|
|
34
|
-
ElUpload: typeof import('element-plus/es')['ElUpload']
|
|
35
|
-
LayerStyleSlider: typeof import('./components/source/LayerStyleSlider.vue')['default']
|
|
36
|
-
LightIcon: typeof import('./components/common/LightIcon.vue')['default']
|
|
37
|
-
MapSplitPanel: typeof import('./components/globe/MapSplitPanel.vue')['default']
|
|
38
|
-
PlotEdit: typeof import('./components/plot/PlotEdit.vue')['default']
|
|
39
|
-
PlotEditAttr: typeof import('./components/plot/PlotEditAttr.vue')['default']
|
|
40
|
-
PlotEditCoord: typeof import('./components/plot/PlotEditCoord.vue')['default']
|
|
41
|
-
PlotEditStyle: typeof import('./components/plot/PlotEditStyle.vue')['default']
|
|
42
|
-
PlotGroup: typeof import('./components/plot/PlotGroup.vue')['default']
|
|
43
|
-
PlotSourceList: typeof import('./components/plot/PlotSourceList.vue')['default']
|
|
44
|
-
SatBallistic: typeof import('./components/ballistic/SatBallistic.vue')['default']
|
|
45
|
-
SatCoordinate: typeof import('./components/location/SatCoordinate.vue')['default']
|
|
46
|
-
SatGlobe: typeof import('./components/globe/SatGlobe.vue')['default']
|
|
47
|
-
SatLocation: typeof import('./components/location/SatLocation.vue')['default']
|
|
48
|
-
SatLocationMain: typeof import('./components/location/SatLocationMain.vue')['default']
|
|
49
|
-
SatMapPart: typeof import('./components/map-part/SatMapPart.vue')['default']
|
|
50
|
-
SatMapPartMain: typeof import('./components/map-part/SatMapPartMain.vue')['default']
|
|
51
|
-
SatMeasure: typeof import('./components/measure/SatMeasure.vue')['default']
|
|
52
|
-
SatMeasureMain: typeof import('./components/measure/SatMeasureMain.vue')['default']
|
|
53
|
-
SatMenu: typeof import('./components/menu/SatMenu.vue')['default']
|
|
54
|
-
SatMenuMain: typeof import('./components/menu/SatMenuMain.vue')['default']
|
|
55
|
-
SatMenuTree: typeof import('./components/menu/tree/SatMenuTree.vue')['default']
|
|
56
|
-
SatModelAnalysis: typeof import('./components/analysis-model/SatModelAnalysis.vue')['default']
|
|
57
|
-
SatPanel: typeof import('./components/panel/SatPanel.vue')['default']
|
|
58
|
-
SatPathPlan: typeof import('./components/location/SatPathPlan.vue')['default']
|
|
59
|
-
SatPicture: typeof import('./components/picture/SatPicture.vue')['default']
|
|
60
|
-
SatPlot: typeof import('./components/plot/SatPlot.vue')['default']
|
|
61
|
-
SatPlotMain: typeof import('./components/plot/SatPlotMain.vue')['default']
|
|
62
|
-
SatPoiQuery: typeof import('./components/location/SatPoiQuery.vue')['default']
|
|
63
|
-
SatRoam: typeof import('./components/roam/SatRoam.vue')['default']
|
|
64
|
-
SatSource: typeof import('./components/source/SatSource.vue')['default']
|
|
65
|
-
SatSourceMain: typeof import('./components/source/SatSourceMain.vue')['default']
|
|
66
|
-
SatSpatialAnalysis: typeof import('./components/analysis-spatial/SatSpatialAnalysis.vue')['default']
|
|
67
|
-
SatTerrainAnalysis: typeof import('./components/analysis-terrain/SatTerrainAnalysis.vue')['default']
|
|
68
|
-
SatVideoFusion: typeof import('./components/video-fusion/SatVideoFusion.vue')['default']
|
|
69
|
-
TerrainExaggerationSlider: typeof import('./components/source/TerrainExaggerationSlider.vue')['default']
|
|
70
|
-
TheImageEditor: typeof import('./components/common/TheImageEditor.vue')['default']
|
|
1
|
+
declare global {
|
|
2
|
+
interface Window {
|
|
3
|
+
domtoimage: any
|
|
71
4
|
}
|
|
72
5
|
}
|
|
6
|
+
export { }
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './map';
|
|
2
|
-
export * as
|
|
2
|
+
export * as satMapTypes from './types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { SatMap } from './satMap';
|
|
1
|
+
export { SatMap as $SatMap } from './satMap';
|