sat-earth 0.0.9 → 0.0.12

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 (43) hide show
  1. package/README.md +318 -121
  2. package/dist/packages/auto-import.d.ts +7 -0
  3. package/dist/packages/components/components.d.ts +1 -1
  4. package/dist/packages/components/globe/SatGlobe.vue.d.ts +52 -13
  5. package/dist/packages/components/globe/helpers.d.ts +5 -3788
  6. package/dist/packages/components/globe/index.d.ts +49 -12
  7. package/dist/packages/components/index.d.ts +1 -0
  8. package/dist/packages/components/menu/MenuDrawer.vue.d.ts +82 -0
  9. package/dist/packages/components/menu/SatMenu.vue.d.ts +86 -0
  10. package/dist/packages/components/menu/helpers.d.ts +15 -0
  11. package/dist/packages/components/menu/index.d.ts +87 -0
  12. package/dist/packages/components/menu/tree/SatMenuTree.vue.d.ts +63 -0
  13. package/dist/packages/components/menu/tree/index.d.ts +60 -0
  14. package/dist/packages/components/source/SatSource.vue.d.ts +2026 -3
  15. package/dist/packages/components/source/SatSourceMain.vue.d.ts +1970 -0
  16. package/dist/packages/components/source/helpers.d.ts +6 -0
  17. package/dist/packages/components/source/index.d.ts +2026 -3
  18. package/dist/packages/config/index.d.ts +5 -0
  19. package/dist/packages/env.d.ts +3 -3
  20. package/dist/packages/global.d.ts +10 -1
  21. package/dist/packages/hooks/ui/useDark.d.ts +1 -0
  22. package/dist/packages/hooks/{useThemeColor.d.ts → ui/useThemeColor.d.ts} +0 -0
  23. package/dist/packages/hooks/useRenderer.d.ts +14 -0
  24. package/dist/packages/sat-earth/index.d.ts +1 -1
  25. package/dist/packages/store/modules/compState.d.ts +39 -7
  26. package/dist/packages/store/modules/layer.d.ts +15 -0
  27. package/dist/packages/utils/deepClone.d.ts +1 -0
  28. package/dist/packages/utils/deepFindTreeItemByCondition.d.ts +1 -0
  29. package/dist/packages/utils/getAssetsSource.d.ts +1 -0
  30. package/dist/packages/utils/index.d.ts +3 -0
  31. package/dist/packages/utils/map/index.d.ts +2 -2
  32. package/dist/packages/utils/map/satMap/index.d.ts +12 -0
  33. package/dist/packages/utils/map/satMap/layer/index.d.ts +11 -0
  34. package/dist/packages/utils/map/types.d.ts +76 -11
  35. package/dist/packages/utils/storage/index.d.ts +1 -1
  36. package/dist/packages/utils/toTree.d.ts +9 -0
  37. package/dist/sat-earth.es.js +9749 -1603
  38. package/dist/sat-earth.umd.js +1 -5
  39. package/dist/style.css +1 -1
  40. package/package.json +12 -9
  41. package/dist/packages/utils/map/baseMap/baseMap.d.ts +0 -10
  42. package/dist/packages/utils/map/baseMap/helpers.d.ts +0 -4
  43. package/dist/packages/utils/map/baseMap/index.d.ts +0 -1
package/README.md CHANGED
@@ -1,121 +1,318 @@
1
- ## What is SatEarth?
2
-   [SatEarth](https://gitee.com/gengkaibo/sat-earth)是延续了 [vite2-vue3-ts-quick-start](https://gitee.com/gengkaibo/vite2-vue3-ts-quick-start) 底层技术,基于 [航天星云](https://www.satcloud.com.cn/#/index) · 数字地球技术中台的功能及UI风格以及 [Mars3D](http://mars3d.cn/) 和 [Cesium](https://cesium.com/) 的底层API,实现的一个开源三维地球组件库,目的是支持开发人员快速搭建三维场景,目前尚在搭建中,后续会封装符合扩展性、通用性、健壮性的组件,以及完善guide文档。
3
-
4
- ## 前序准备
5
- - [node](http://nodejs.org/) 和 [git](https://git-scm.com/) - 项目开发环境
6
- - [Vite](https://vitejs.dev/) - 熟悉 vite 特性
7
- - [Vue3](https://v3.vuejs.org/) - 熟悉 Vue 基础语法
8
- - [TypeScript](https://www.typescriptlang.org/) - 熟悉 `TypeScript` 基本语法
9
- - [Es6+](http://es6.ruanyifeng.com/) - 熟悉`es6`基本语法
10
- - [Cesium](https://cesium.com/) - Cesium是一个开源的,基于webgl的二、三维地图引擎
11
- - [Mars3D](http://mars3d.cn/) - 基于Cesium优化提升与B/S架构设计,支持多行业扩展的轻量级高效能GIS开发平台
12
-
13
- ## 尝鲜
14
- - 首先在命令行执行如下命令添加 `sat-earth` 的依赖
15
- ```bash
16
- npm i sat-earth
17
- ```
18
-
19
- - 将 `node_modules/mars3d-cesium/Build/Cesium` 目录拷贝到我们开发目录中的public下
20
- 然后在index.html中引入 `cesium` 库
21
- ```html
22
- <!--引入cesium基础lib-->
23
- <link href="/Cesium/Widgets/widgets.css" rel="stylesheet" type="text/css" />
24
- <script src="/Cesium/Cesium.js" type="text/javascript"></script>
25
- ```
26
-
27
- - 在 `main.[jt]s` 中全量引入我们的 `sat-earth` 资源
28
- ```ts
29
- import { createApp } from "vue"
30
- import App from "./app.vue"
31
- import satEarth from 'sat-earth'
32
- import 'sat-earth/dist/style.css'
33
- const app = createApp(App)
34
-
35
- app.use(satEarth)
36
- app.mount("#app")
37
-
38
- ```
39
- 或者按需加载
40
- ```ts
41
- import { createApp } from "vue"
42
- import App from "./app.vue"
43
- import { SatGlobe } from 'sat-earth'
44
- import 'sat-earth/dist/style.css'
45
- const app = createApp(App)
46
-
47
- app.use(SatGlobe)
48
- app.mount("#app")
49
-
50
- ```
51
- - 在`tsconfig.json`中引入类型声明文件`sat-earth/dist/global`,来支持[Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)的代码提示功能
52
- ```json
53
- {
54
- "compilerOptions": {
55
- "target": "esnext", // 指定ts编译后的ECMAScript目标版本: 'es3' (default), 'es5', 'es2015', 'es2016', 'es2017', or 'esnext'
56
- "module": "esnext", // 指定编译后代码使用的模块化规范: 'commonjs', 'amd', 'umd' or 'es...'
57
- "declaration": false, // 是否生成声明文件
58
- "strict": true, // 开启全部严格模式
59
- "removeComments": true, // 删除注释
60
- "allowJs": true, // 是否对js文件开启编译
61
- "noImplicitAny": false, // 支持类型不标注可以默认any
62
- "allowSyntheticDefaultImports": true, // 允许没有导出的模块中导入
63
- "resolveJsonModule": true, // json文件是否可导入
64
- "isolatedModules": true, // 将每个文件作为单独的模块
65
- "useDefineForClassFields": true, // class类的变量声明方式从 = 赋值的方式变更成了Object.defineProperty;所有的字段声明都会生效,即使它没有指定默认值
66
- "moduleResolution": "node", // 置顶模块的解析策略,'node' or 'classic'
67
- "esModuleInterop": true, // 支持es6,commonjs模块
68
- "skipLibCheck": true, // 跳过类库检测
69
- "jsx": "preserve",
70
- "lib": [
71
- "esnext",
72
- "dom"
73
- ],
74
- "types": [
75
- "vite/client",
76
- "sat-earth/dist/global"
77
- ],
78
- "paths": {
79
- "@src/*": [
80
- "./src/*"
81
- ]
82
- }
83
- },
84
- "include": [
85
- "**/*.ts",
86
- "**/*.d.ts",
87
- "**/*.vue"
88
- ]
89
- }
90
- ```
91
-
92
- - 开始使用,组件化调用`<SatGlobe></SatGlobe>`,或者调用 `satEarth` 暴露的方法
93
-
94
- ## 其他说明
95
- 这是我第一次搭建组件库,目前状态是有时间就会写点儿,平时还要工作,所以无法保证开发进度,当然有一部分原因其实是把这次搭建组件库作为一种学习方式。如果您有什么问题或者见解欢迎指正和讨论。微信号:`KaiboGeng`
96
-
97
- ## 如何贡献
98
- 你可以[提一个 issue](https://gitee.com/gengkaibo/sat-earth/issues) 或者提交一个 Pull Request。
99
-
100
- #### Pull Request
101
-
102
- 1. Fork 代码!
103
- 2. 创建自己的分支: `git checkout -b feat/xxxx`
104
- 3. 提交你的修改: `git commit -am 'feat(function): add xxxxx'`
105
- 4. 推送您的分支: `git push origin feat/xxxx`
106
- 5. 提交`pull request`
107
-
108
- #### Git 贡献提交规范,参考 [vue](https://github.com/vuejs/vue/blob/dev/.github/COMMIT_CONVENTION.md) 规范
109
- - `feat` 增加新功能
110
- - `fix` 修复问题/BUG
111
- - `style` 代码风格相关无影响运行结果的
112
- - `perf` 优化/性能提升
113
- - `refactor` 重构
114
- - `polish` 修改
115
- - `revert` 撤销修改
116
- - `test` 测试相关
117
- - `docs` 文档/注释
118
- - `chore` 依赖更新/脚手架配置修改等
119
- - `workflow` 工作流改进
120
- - `ci` 持续集成
121
- - `types` 类型定义文件更改
1
+ ## What is SatEarth?
2
+ &emsp;&emsp;[SatEarth](https://gitee.com/gengkaibo/sat-earth)是延续了 [vite2-vue3-ts-quick-start](https://gitee.com/gengkaibo/vite2-vue3-ts-quick-start) 底层技术,基于 [航天星云](https://www.satcloud.com.cn/#/index) · 数字地球技术中台的功能及UI风格以及 [Mars3D](http://mars3d.cn/) 和 [Cesium](https://cesium.com/) 的底层API,实现的一个开源三维地球组件库,目的是支持开发人员快速搭建三维场景,目前尚在搭建中,后续会封装符合扩展性、通用性、健壮性的组件,以及完善guide文档。
3
+
4
+ ## 前序准备
5
+ - [node](http://nodejs.org/) 和 [git](https://git-scm.com/) - 项目开发环境
6
+ - [Vite](https://vitejs.dev/) - 熟悉 vite 特性
7
+ - [Vue3](https://v3.vuejs.org/) - 熟悉 Vue 基础语法
8
+ - [TypeScript](https://www.typescriptlang.org/) - 熟悉 `TypeScript` 基本语法
9
+ - [Es6+](http://es6.ruanyifeng.com/) - 熟悉`es6`基本语法
10
+ - [Cesium](https://cesium.com/) - Cesium是一个开源的,基于webgl的二、三维地图引擎
11
+ - [Mars3D](http://mars3d.cn/) - 基于Cesium优化提升与B/S架构设计,支持多行业扩展的轻量级高效能GIS开发平台
12
+
13
+ ## 尝鲜
14
+ - 首先在命令行执行如下命令添加 `sat-earth` 的依赖
15
+ ```bash
16
+ npm i sat-earth
17
+ ```
18
+
19
+ - 将 `node_modules/mars3d-cesium/Build/Cesium` 目录拷贝到我们开发目录中的public下
20
+ 然后在index.html中引入 `cesium` 库
21
+ ```html
22
+ <!--引入cesium基础lib-->
23
+ <link href="/Cesium/Widgets/widgets.css" rel="stylesheet" type="text/css" />
24
+ <script src="/Cesium/Cesium.js" type="text/javascript"></script>
25
+ ```
26
+
27
+ - 在 `main.[jt]s` 中全量引入我们的 `sat-earth` 资源
28
+ ```ts
29
+ import { createApp } from "vue"
30
+ import App from "./app.vue"
31
+ import satEarth from 'sat-earth'
32
+ import 'sat-earth/dist/style.css'
33
+ const app = createApp(App)
34
+
35
+ app.use(satEarth)
36
+ app.mount("#app")
37
+
38
+ ```
39
+ 或者按需加载
40
+ ```ts
41
+ import { createApp } from "vue"
42
+ import App from "./app.vue"
43
+ import { SatGlobe } from 'sat-earth'
44
+ import 'sat-earth/dist/style.css'
45
+ const app = createApp(App)
46
+
47
+ app.use(SatGlobe)
48
+ app.mount("#app")
49
+
50
+ ```
51
+ - 在`tsconfig.json`中引入类型声明文件`sat-earth/dist/packages/global`,来支持[Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)的代码提示功能
52
+ ```json
53
+ {
54
+ "compilerOptions": {
55
+ "target": "esnext", // 指定ts编译后的ECMAScript目标版本: 'es3' (default), 'es5', 'es2015', 'es2016', 'es2017', or 'esnext'
56
+ "module": "esnext", // 指定编译后代码使用的模块化规范: 'commonjs', 'amd', 'umd' or 'es...'
57
+ "declaration": false, // 是否生成声明文件
58
+ "strict": true, // 开启全部严格模式
59
+ "removeComments": true, // 删除注释
60
+ "allowJs": true, // 是否对js文件开启编译
61
+ "noImplicitAny": false, // 支持类型不标注可以默认any
62
+ "allowSyntheticDefaultImports": true, // 允许没有导出的模块中导入
63
+ "resolveJsonModule": true, // json文件是否可导入
64
+ "isolatedModules": true, // 将每个文件作为单独的模块
65
+ "useDefineForClassFields": true, // class类的变量声明方式从 = 赋值的方式变更成了Object.defineProperty;所有的字段声明都会生效,即使它没有指定默认值
66
+ "moduleResolution": "node", // 置顶模块的解析策略,'node' or 'classic'
67
+ "esModuleInterop": true, // 支持es6,commonjs模块
68
+ "skipLibCheck": true, // 跳过类库检测
69
+ "jsx": "preserve",
70
+ "lib": [
71
+ "esnext",
72
+ "dom"
73
+ ],
74
+ "types": [
75
+ "vite/client",
76
+ "sat-earth/dist/packages/global"
77
+ ],
78
+ "paths": {
79
+ "@src/*": [
80
+ "./src/*"
81
+ ]
82
+ }
83
+ },
84
+ "include": [
85
+ "**/*.ts",
86
+ "**/*.d.ts",
87
+ "**/*.vue"
88
+ ]
89
+ }
90
+ ```
91
+
92
+ - 开始使用,组件化调用`<SatGlobe></SatGlobe>`,或者调用 `sat-earth` 暴露的方法,例:
93
+ ```ts
94
+ <script setup lang="ts">
95
+ import { SatUtil, type MenuItem } from 'sat-earth'
96
+ /*
97
+ 初始化参数尽量保证了和mars3d的Map构造一致性,但是任然有一些地方进行了小改动,下面请看
98
+ 改动:
99
+ 1. 在mars3d的Map构造参数的基础上扩展了custom对象。
100
+
101
+ custom: {
102
+ layers: {
103
+ // list 这是要加入到 'SatSource' 数据源管理中的自定义Layer图层,参数与 mars3d构造 Layer 的参数
104
+ // 一致,通过 'id/pid' 'SatSource' 组件中形成对应的树形结构, 如果不加pid的时候或者任意添加的
105
+ // pid导致在所有图层中并没有查找到该 pid 对应图层项时,组件会给该项添加默认pid并加到树的跟节点上。
106
+ list: [],
107
+ // 辅助图层
108
+ auxiliaryLayers: {
109
+ cover: boolean, // 是否覆盖内置的辅助图层
110
+ list: [] // 自定义的辅助图层Layer集合
111
+ },
112
+ // 地形图层
113
+ terrainLayers: {
114
+ cover: boolean, // 是否覆盖内置的地形图层
115
+ list: [] // 自定义的地形图层Layer集合
116
+ }
117
+ }
118
+ }
119
+
120
+ 2. 对mars3d的Map构造参数中原有的basemaps的传参略作了修改。
121
+
122
+ basemaps:[] => basemaps:{
123
+ cover: boolean,
124
+ list: []
125
+ }
126
+ ①. 在 'sat-earth' 中加入了默认的基础底图,这里可以选择是否覆盖重写;
127
+ ②. basemaps中配置的底图最终也会出现在 'SatSource' 数据源组件中的树形结构中;
128
+
129
+
130
+ */
131
+ const options: SatUtil.types.SatMapOptions = {
132
+ map3d: {
133
+ control: {
134
+ baseLayerPicker: true,
135
+ animation: true,
136
+ timeline: true
137
+ },
138
+ token: {
139
+ bing: 'Ai9rlVuU69CDOgiaiN4wT4M_seF7DAgaD3IuMa39awQ9jVQ07JJj8LIIBPX0L2pd'
140
+ },
141
+ basemaps: {
142
+ cover: false,
143
+ list: []
144
+ },
145
+ custom: {
146
+ layers: {
147
+ /* list 这是要加入到数据源管理中的自定义Layer图层,参数与 mars3d构造 Layer 的参数一致,
148
+ 通过 'id/pid' 在 'SatSource' 组件中形成对应的树形结构, 不加 pid 的时候或者任意添加的 pid
149
+ 导致所有图层中并没有该 pid 对应图层项时,组件会给该项添加默认的 pid,并加入到树的跟节点上。
150
+ */
151
+ list: [
152
+ {
153
+ id: 'bing',
154
+ name: 'Bing地图',
155
+ type: 'group'
156
+ },
157
+ {
158
+ id: 'bing-1',
159
+ pid: 'bing',
160
+ name: 'Bing影像',
161
+ type: 'bing',
162
+ show: false,
163
+ layer: 'Aerial',
164
+ zIndex: 33,
165
+ center: {
166
+ lng: 0,
167
+ lat: 0,
168
+ alt: 10000
169
+ },
170
+ },
171
+ {
172
+ id: 'bing-2',
173
+ pid: 'bing',
174
+ name: 'Bing影像(含注记)',
175
+ type: 'bing',
176
+ show: false,
177
+ zIndex: 32,
178
+ layer: 'AerialWithLabels',
179
+ },
180
+ {
181
+ id: 'bing-3',
182
+ pid: 'bing',
183
+ name: 'Bing电子地图',
184
+ type: 'bing',
185
+ show: false,
186
+ layer: 'Road',
187
+ },
188
+ {
189
+ id: 'bing-4',
190
+ pid: 'bing',
191
+ name: 'Bing浅色电子',
192
+ type: 'bing',
193
+ show: false,
194
+ layer: 'CanvasLight',
195
+ },
196
+ {
197
+ 'id': 202012,
198
+ 'type': '3dtiles',
199
+ 'name': '石化工厂',
200
+ 'url': 'http://data.mars3d.cn/3dtiles/max-shihua/tileset.json',
201
+ 'position': { 'lng': 117.077158, 'lat': 31.659116, 'alt': 24.6 },
202
+ 'maximumScreenSpaceError': 1,
203
+ 'maximumMemoryUsage': 1024,
204
+ 'highlight': { 'type': 'click', 'color': '#00FF00' },
205
+ 'popup': 'all',
206
+ 'flyTo': true,
207
+ 'scenetree': 'scenetree.json',
208
+ 'center': { 'lat': 31.654916, 'lng': 117.08278, 'alt': 279, 'heading': 316, 'pitch': -29 }
209
+ },
210
+ ],
211
+ // 辅助图层
212
+ auxiliaryLayers: {
213
+ cover: false, // 是否覆盖内置的辅助图层
214
+ list: [] // 自定义的辅助图层Layer集合
215
+ },
216
+ // 地形图层
217
+ terrainLayers: {
218
+ cover: false, // 是否覆盖内置的地形图层
219
+ list: [] // 自定义的地形图层Layer集合
220
+ }
221
+ }
222
+ },
223
+ },
224
+ }
225
+
226
+ // 使用内置菜单组件时候,可以添加自定义菜单项, icon的class对应font-awesome图标库的class
227
+ const treeData = ref<MenuItem[]>([{
228
+ name: 'hello',
229
+ label: '你好',
230
+ icon: {
231
+ class: 'fa-commenting-o'
232
+ },
233
+ enable: false
234
+ }])
235
+ const changeDataToEnable = (item: MenuItem) => {
236
+ item.enable = true
237
+ }
238
+ const changeDataToUnEnable = (item: MenuItem) => {
239
+ item.enable = false
240
+ }
241
+ </script>
242
+ ```
243
+ ```html
244
+ <template>
245
+ <SatGlobe :sat-map-options="options">
246
+ <!-- 嵌入内置菜单组件 -->
247
+ <SatMenu>
248
+ <!-- 在菜单组件中再嵌入内置数据源组件 -->
249
+ <SatSource></SatSource>
250
+ <!-- 自定义菜单项 -->
251
+ <template #custom-enable>
252
+ <!-- 启用中 -->
253
+ <SatMenuTree
254
+ :custom="true"
255
+ show-type="enabled"
256
+ :tree-data="treeData.filter(i => i.enable)"
257
+ @custom-click="changeDataToEnable"
258
+ @custom-close-click="changeDataToUnEnable"
259
+ ></SatMenuTree>
260
+ </template>
261
+ <!-- 所有菜单项 -->
262
+ <template #custom>
263
+ <SatMenuTree
264
+ :custom="true"
265
+ :tree-data="treeData"
266
+ @custom-click="changeDataToEnable"
267
+ ></SatMenuTree>
268
+ </template>
269
+ </SatMenu>
270
+ <!-- 不使用菜单组件 -->
271
+ <!-- <SatSource v-model:visible="isVisible"></SatSource> -->
272
+ </SatGlobe>
273
+ <!-- 在SatGlobe外部无法使用组件 -->
274
+ <!-- <SatSource v-model:visible="isVisible"></SatSource> -->
275
+ </template>
276
+ <style>
277
+ body {
278
+ margin: 0;
279
+ padding: 0;
280
+ }
281
+
282
+ #app {
283
+ width: 100vw;
284
+ height: 100vh;
285
+ position: relative;
286
+ }
287
+ </style>
288
+
289
+ ```
290
+
291
+ ## 其他说明
292
+ 这是我第一次搭建组件库,目前状态是有时间就会写点儿,平时还要工作,所以无法保证开发进度,当然有一部分原因其实是把这次搭建组件库作为一种学习方式。如果您有什么问题或者见解欢迎指正和讨论。微信号:`KaiboGeng`
293
+
294
+ ## 如何贡献
295
+ 你可以[提一个 issue](https://gitee.com/gengkaibo/sat-earth/issues) 或者提交一个 Pull Request。
296
+
297
+ #### Pull Request
298
+
299
+ 1. Fork 代码!
300
+ 2. 创建自己的分支: `git checkout -b feat/xxxx`
301
+ 3. 提交你的修改: `git commit -am 'feat(function): add xxxxx'`
302
+ 4. 推送您的分支: `git push origin feat/xxxx`
303
+ 5. 提交`pull request`
304
+
305
+ #### Git 贡献提交规范,参考 [vue](https://github.com/vuejs/vue/blob/dev/.github/COMMIT_CONVENTION.md) 规范
306
+ - `feat` 增加新功能
307
+ - `fix` 修复问题/BUG
308
+ - `style` 代码风格相关无影响运行结果的
309
+ - `perf` 优化/性能提升
310
+ - `refactor` 重构
311
+ - `polish` 修改
312
+ - `revert` 撤销修改
313
+ - `test` 测试相关
314
+ - `docs` 文档/注释
315
+ - `chore` 依赖更新/脚手架配置修改等
316
+ - `workflow` 工作流改进
317
+ - `ci` 持续集成
318
+ - `types` 类型定义文件更改
@@ -28,6 +28,13 @@ declare global {
28
28
  const eagerComputed: typeof import('@vueuse/core')['eagerComputed']
29
29
  const effectScope: typeof import('vue')['effectScope']
30
30
  const EffectScope: typeof import('vue')['EffectScope']
31
+ const ElDrawer: typeof import('element-plus/es')['ElDrawer']
32
+ const ElMenu: typeof import('element-plus/es')['ElMenu']
33
+ const ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
34
+ const ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
35
+ const ElTabPane: typeof import('element-plus/es')['ElTabPane']
36
+ const ElTabs: typeof import('element-plus/es')['ElTabs']
37
+ const ElTree: typeof import('element-plus/es')['ElTree']
31
38
  const extendRef: typeof import('@vueuse/core')['extendRef']
32
39
  const getActivePinia: typeof import('pinia')['getActivePinia']
33
40
  const getCurrentInstance: typeof import('vue')['getCurrentInstance']
@@ -1,4 +1,4 @@
1
- import type { Plugin } from "vue";
1
+ import type { Plugin } from 'vue';
2
2
  export declare const components: Array<Plugin & {
3
3
  name?: string;
4
4
  }>;
@@ -1,26 +1,65 @@
1
- import { type MapInitOptions } from '../../utils/map/types';
1
+ import { type PropType } from 'vue';
2
+ import { type SatMapOptions, type SatLayer } from '../../utils/map/types';
3
+ import { type TreeSatLayer } from '../../store/modules/layer';
2
4
  declare const _sfc_main: import("vue").DefineComponent<{
3
- mapInitOptions: {
4
- type: import("vue").PropType<MapInitOptions>;
5
- default: () => MapInitOptions;
5
+ eleId: {
6
+ type: StringConstructor;
7
+ default: string;
8
+ };
9
+ satMapOptions: {
10
+ type: PropType<SatMapOptions>;
11
+ default: () => SatMapOptions;
6
12
  };
7
13
  }, {
14
+ compStore: import("pinia").Store<"SatCompState", import('../../store/modules/compState').CompState, {
15
+ getComponents: (state: {
16
+ SatSource?: {
17
+ label: string;
18
+ name: string;
19
+ parentName: string;
20
+ enable: boolean;
21
+ active: boolean;
22
+ ready?: boolean | undefined;
23
+ isUnDestroy?: boolean | undefined;
24
+ } | undefined;
25
+ } & {}) => any;
26
+ }, {
27
+ setSatSource(val: import('../../store/modules/compState').StateItem): void;
28
+ }>;
29
+ layerStore: import("pinia").Store<"SatLayer", import('../../store/modules/layer').LayerState, {}, {
30
+ setLayerList(val: SatLayer[]): void;
31
+ setLayerTree(val: TreeSatLayer[]): void;
32
+ }>;
33
+ layoutStore: import("pinia").Store<"SatLayout", import('../../store/modules/layout').LayoutState, {}, {
34
+ setIsDark(val: boolean): void;
35
+ setIsMobile(val: boolean): void;
36
+ setIsForceHorizontal(val: boolean): void;
37
+ }>;
8
38
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
9
- mapInitOptions: {
10
- type: import("vue").PropType<MapInitOptions>;
11
- default: () => MapInitOptions;
39
+ eleId: {
40
+ type: StringConstructor;
41
+ default: string;
42
+ };
43
+ satMapOptions: {
44
+ type: PropType<SatMapOptions>;
45
+ default: () => SatMapOptions;
12
46
  };
13
47
  }>> & {
14
48
  [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
15
49
  }>>;
16
- uuid: string;
17
- eleId: import("vue").ComputedRef<string>;
50
+ merged: SatMapOptions;
51
+ _isDark: boolean;
18
52
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
- mapInitOptions: {
20
- type: import("vue").PropType<MapInitOptions>;
21
- default: () => MapInitOptions;
53
+ eleId: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ };
57
+ satMapOptions: {
58
+ type: PropType<SatMapOptions>;
59
+ default: () => SatMapOptions;
22
60
  };
23
61
  }>>, {
24
- mapInitOptions: MapInitOptions;
62
+ eleId: string;
63
+ satMapOptions: SatMapOptions;
25
64
  }>;
26
65
  export default _sfc_main;