sat-earth 0.3.3 → 0.4.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.
Files changed (31) hide show
  1. package/README.md +2 -49
  2. package/dist/packages/auto-import.d.ts +2 -0
  3. package/dist/packages/components/plot/PlotEdit.vue.d.ts +64 -0
  4. package/dist/packages/components/plot/PlotEditAttr.vue.d.ts +19 -0
  5. package/dist/packages/components/plot/PlotEditCoord.vue.d.ts +24 -0
  6. package/dist/packages/components/plot/PlotEditStyle.vue.d.ts +18 -0
  7. package/dist/packages/components/plot/PlotGroup.vue.d.ts +895 -0
  8. package/dist/packages/components/plot/PlotSourceList.vue.d.ts +35 -0
  9. package/dist/packages/components/plot/SatPlot.vue.d.ts +1029 -2
  10. package/dist/packages/components/plot/SatPlotMain.vue.d.ts +1029 -1
  11. package/dist/packages/components/plot/helpers.d.ts +9 -0
  12. package/dist/packages/components/plot/index.d.ts +1029 -2
  13. package/dist/packages/components/source/SatSource.vue.d.ts +1 -1
  14. package/dist/packages/components/source/index.d.ts +1 -1
  15. package/dist/packages/config/index.d.ts +1 -0
  16. package/dist/packages/config/injectKeys.d.ts +2 -0
  17. package/dist/packages/env.d.ts +1 -0
  18. package/dist/packages/global-window.d.ts +6 -0
  19. package/dist/packages/global.d.ts +9 -0
  20. package/dist/packages/hooks/ui/useMessage.d.ts +1 -1
  21. package/dist/packages/store/modules/plot.d.ts +13 -3
  22. package/dist/packages/utils/map/satMap/index.d.ts +2 -0
  23. package/dist/packages/utils/map/satMap/plot/getGraphicDefStyle.d.ts +1 -0
  24. package/dist/packages/utils/map/satMap/plot/index.d.ts +44 -0
  25. package/dist/packages/utils/map/satMap/plot/plotSource.d.ts +764 -0
  26. package/dist/packages/utils/map/satMap/plot/plotStyleConfig.d.ts +821 -0
  27. package/dist/packages/utils/types/index.d.ts +24 -0
  28. package/dist/sat-earth.es.js +22789 -14220
  29. package/dist/sat-earth.umd.js +74 -55
  30. package/dist/style.css +1 -1
  31. package/package.json +8 -5
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  ## 什么是快乐“星球” ?
2
-   [SatEarth](https://gitee.com/gengkaibo/sat-earth)是延续了 [vite2-vue3-ts-quick-start](https://gitee.com/gengkaibo/vite2-vue3-ts-quick-start) 底层技术,基于 [Mars3D](http://mars3d.cn/) 和 [Cesium](https://cesium.com/) 的底层API,实现的一个开源三维地球组件库,目的是支持开发人员快速搭建三维场景,目前尚在搭建中,后续会封装符合扩展性、通用性、健壮性的组件,以及完善guide文档。
2
+   [SatEarth](https://gitee.com/gengkaibo/sat-earth)是基于 [Mars3D](http://mars3d.cn/) 和 [Cesium](https://cesium.com/) 的底层API,实现的一个开源三维地球组件库,目的是支持开发人员快速搭建三维场景,目前尚在搭建中,后续会封装符合扩展性、通用性、健壮性的组件,以及完善guide文档。
3
3
 
4
4
  ## 前序准备
5
5
  - [node](http://nodejs.org/) 和 [git](https://git-scm.com/) - 项目开发环境
@@ -170,9 +170,6 @@ const options: SatMapTypes.SatMapOptions = {
170
170
  animation: false,
171
171
  timeline: false
172
172
  },
173
- token: {
174
- bing: 'Ai9rlVuU69CDOgiaiN4wT4M_seF7DAgaD3IuMa39awQ9jVQ07JJj8LIIBPX0L2pd'
175
- },
176
173
  basemaps: {
177
174
  cover: false,
178
175
  list: []
@@ -189,50 +186,6 @@ const options: SatMapTypes.SatMapOptions = {
189
186
  导致所有图层中并没有该 pid 对应图层项时,组件会给该项添加默认的 pid,并加入到树的跟节点上。
190
187
  */
191
188
  list: [
192
- {
193
- id: 'bing',
194
- name: 'Bing地图',
195
- type: 'group'
196
- },
197
- {
198
- id: 'bing-1',
199
- pid: 'bing',
200
- name: 'Bing影像',
201
- type: 'bing',
202
- show: false,
203
- layer: 'Aerial',
204
- zIndex: 33,
205
- center: {
206
- lng: 0,
207
- lat: 0,
208
- alt: 10000
209
- },
210
- },
211
- {
212
- id: 'bing-2',
213
- pid: 'bing',
214
- name: 'Bing影像(含注记)',
215
- type: 'bing',
216
- show: false,
217
- zIndex: 32,
218
- layer: 'AerialWithLabels',
219
- },
220
- {
221
- id: 'bing-3',
222
- pid: 'bing',
223
- name: 'Bing电子地图',
224
- type: 'bing',
225
- show: false,
226
- layer: 'Road',
227
- },
228
- {
229
- id: 'bing-4',
230
- pid: 'bing',
231
- name: 'Bing浅色电子',
232
- type: 'bing',
233
- show: false,
234
- layer: 'CanvasLight',
235
- },
236
189
  {
237
190
  'id': 202012,
238
191
  'type': '3dtiles',
@@ -383,7 +336,7 @@ body {
383
336
  - 方位测量
384
337
  - 贴地距离
385
338
  - 贴地面积
386
- - 3.3.图上标绘
339
+ - 3.3.图上标绘(done)
387
340
  - 3.4.出图工具
388
341
  - 一键出图
389
342
  - 自定义出图
@@ -114,6 +114,7 @@ declare global {
114
114
  const useAttrs: typeof import('vue')['useAttrs']
115
115
  const useBase64: typeof import('@vueuse/core')['useBase64']
116
116
  const useBattery: typeof import('@vueuse/core')['useBattery']
117
+ const useBluetooth: typeof import('@vueuse/core')['useBluetooth']
117
118
  const useBreakpoints: typeof import('@vueuse/core')['useBreakpoints']
118
119
  const useBroadcastChannel: typeof import('@vueuse/core')['useBroadcastChannel']
119
120
  const useBrowserLocation: typeof import('@vueuse/core')['useBrowserLocation']
@@ -160,6 +161,7 @@ declare global {
160
161
  const useGamepad: typeof import('@vueuse/core')['useGamepad']
161
162
  const useGeolocation: typeof import('@vueuse/core')['useGeolocation']
162
163
  const useIdle: typeof import('@vueuse/core')['useIdle']
164
+ const useImage: typeof import('@vueuse/core')['useImage']
163
165
  const useInfiniteScroll: typeof import('@vueuse/core')['useInfiniteScroll']
164
166
  const useIntersectionObserver: typeof import('@vueuse/core')['useIntersectionObserver']
165
167
  const useInterval: typeof import('@vueuse/core')['useInterval']
@@ -0,0 +1,64 @@
1
+ import { type TabsPaneContext } from 'element-plus';
2
+ declare const _sfc_main: import("vue").DefineComponent<{}, {
3
+ activeName: import("vue").Ref<string>;
4
+ handleClick: (tab: TabsPaneContext, event: Event) => void;
5
+ PlotEditAttr: import("vue").DefineComponent<{}, {
6
+ theGraphic: any;
7
+ plotStore: import("pinia").Store<"SatPlot", import("../../store/modules/plot").PlotState, {}, {
8
+ setGroupTreeData(val: any): void;
9
+ setEditingGraphicId(val: string | number): void;
10
+ setUpdateEditViewKey(val: string | number): void;
11
+ }>;
12
+ attrForm: import("vue").Ref<{
13
+ name: string;
14
+ remark: string;
15
+ }>;
16
+ baseInfo: import("vue").Ref<{
17
+ layerName: string;
18
+ plotType: string;
19
+ id: string;
20
+ }>;
21
+ mixData: () => void;
22
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
23
+ PlotEditCoord: import("vue").DefineComponent<{}, {
24
+ theGraphic: any;
25
+ plotStore: import("pinia").Store<"SatPlot", import("../../store/modules/plot").PlotState, {}, {
26
+ setGroupTreeData(val: any): void;
27
+ setEditingGraphicId(val: string | number): void;
28
+ setUpdateEditViewKey(val: string | number): void;
29
+ }>;
30
+ notShowCoordHeightList: string[];
31
+ graphicEditType: import("vue").Ref<string>;
32
+ hasHeight: import("vue").Ref<boolean>;
33
+ isShowInstallPoint: import("vue").Ref<boolean>;
34
+ coordinates: import("vue").Ref<number[][]>;
35
+ setCoords: () => void;
36
+ getMaxPointNum: () => any;
37
+ getMinPointNum: () => any;
38
+ mixData: () => void;
39
+ addHeightNum: import("vue").Ref<number | undefined>;
40
+ addHeight: () => void;
41
+ resetHeightNum: import("vue").Ref<number | undefined>;
42
+ resetHeight: () => void;
43
+ addPoint: (index: number) => void;
44
+ removePoint: (index: number) => void;
45
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
46
+ PlotEditStyle: import("vue").DefineComponent<{}, {
47
+ theGraphic: any;
48
+ plotStore: import("pinia").Store<"SatPlot", import("../../store/modules/plot").PlotState, {}, {
49
+ setGroupTreeData(val: any): void;
50
+ setEditingGraphicId(val: string | number): void;
51
+ setUpdateEditViewKey(val: string | number): void;
52
+ }>;
53
+ showOptions: import("vue").Ref<{
54
+ baseStyle: boolean;
55
+ labelStyle: boolean;
56
+ }>;
57
+ styleConfigOptions: any;
58
+ labelStyleConfigOptions: any;
59
+ theStyle: any;
60
+ initView: () => void;
61
+ handleChange: () => void;
62
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
63
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
64
+ export default _sfc_main;
@@ -0,0 +1,19 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{}, {
2
+ theGraphic: any;
3
+ plotStore: import("pinia").Store<"SatPlot", import('../../store/modules/plot').PlotState, {}, {
4
+ setGroupTreeData(val: any): void;
5
+ setEditingGraphicId(val: string | number): void;
6
+ setUpdateEditViewKey(val: string | number): void;
7
+ }>;
8
+ attrForm: import("vue").Ref<{
9
+ name: string;
10
+ remark: string;
11
+ }>;
12
+ baseInfo: import("vue").Ref<{
13
+ layerName: string;
14
+ plotType: string;
15
+ id: string;
16
+ }>;
17
+ mixData: () => void;
18
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
19
+ export default _sfc_main;
@@ -0,0 +1,24 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{}, {
2
+ theGraphic: any;
3
+ plotStore: import("pinia").Store<"SatPlot", import('../../store/modules/plot').PlotState, {}, {
4
+ setGroupTreeData(val: any): void;
5
+ setEditingGraphicId(val: string | number): void;
6
+ setUpdateEditViewKey(val: string | number): void;
7
+ }>;
8
+ notShowCoordHeightList: string[];
9
+ graphicEditType: import("vue").Ref<string>;
10
+ hasHeight: import("vue").Ref<boolean>;
11
+ isShowInstallPoint: import("vue").Ref<boolean>;
12
+ coordinates: import("vue").Ref<number[][]>;
13
+ setCoords: () => void;
14
+ getMaxPointNum: () => any;
15
+ getMinPointNum: () => any;
16
+ mixData: () => void;
17
+ addHeightNum: import("vue").Ref<number | undefined>;
18
+ addHeight: () => void;
19
+ resetHeightNum: import("vue").Ref<number | undefined>;
20
+ resetHeight: () => void;
21
+ addPoint: (index: number) => void;
22
+ removePoint: (index: number) => void;
23
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
24
+ export default _sfc_main;
@@ -0,0 +1,18 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{}, {
2
+ theGraphic: any;
3
+ plotStore: import("pinia").Store<"SatPlot", import('../../store/modules/plot').PlotState, {}, {
4
+ setGroupTreeData(val: any): void;
5
+ setEditingGraphicId(val: string | number): void;
6
+ setUpdateEditViewKey(val: string | number): void;
7
+ }>;
8
+ showOptions: import("vue").Ref<{
9
+ baseStyle: boolean;
10
+ labelStyle: boolean;
11
+ }>;
12
+ styleConfigOptions: any;
13
+ labelStyleConfigOptions: any;
14
+ theStyle: any;
15
+ initView: () => void;
16
+ handleChange: () => void;
17
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
18
+ export default _sfc_main;