sat-earth 0.4.8 → 0.5.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 (2) hide show
  1. package/README.md +12 -12
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -102,7 +102,7 @@ export default defineConfig({
102
102
  ],
103
103
  "types": [
104
104
  "vite/client",
105
- "sat-earth/dist/packages/global"
105
+ "sat-earth/dist/packages/auto-components"
106
106
  ],
107
107
  "paths": {
108
108
  "@src/*": [
@@ -118,35 +118,35 @@ export default defineConfig({
118
118
  }
119
119
  ```
120
120
 
121
- - 开始使用,组件化调用`<SatGlobe></SatGlobe>`,或者调用 `sat-earth` 暴露的方法,例:
121
+ - 开始使用
122
122
  ```ts
123
123
  <script setup lang="ts">
124
124
  import { satMapTypes, type SatMenu_Type_MenuItem } from 'sat-earth'
125
125
  /*
126
- 初始化参数尽量保证了和mars3d的Map构造一致性,但是任然有一些地方进行了小改动,下面请看
127
- 改动:
126
+ 初始化参数尽量保证了和mars3d的Map构造一致性,但是任然有一些地方进行了小改动,具体查看类型SatMapOptions,下面请看改动:
128
127
  1. 在mars3d的Map构造参数的基础上扩展了custom对象。
129
128
 
130
129
  custom: {
131
130
  // 工具栏新增项
132
131
  toolbar: {
133
- mapSplit: true, // 开启卷帘工具
134
- bookmark: true, // 开启视角书签工具
135
- keyboardRoam: true, // 开启键盘漫游功能
136
- },
132
+ mapSplit: true // 开启卷帘工具
133
+ bookmark: true // 开启视角书签工具
134
+ keyboardRoam: true // 开启键盘漫游功能
135
+ }
136
+ plotModelUrlPrefix?: string // 标绘模型地址前缀
137
137
  layers: {
138
138
  // list 这是要加入到 'SatSource' 数据源管理中的自定义Layer图层,参数与 mars3d构造 Layer 的参数
139
139
  // 一致,通过 'id/pid' 在 'SatSource' 组件中形成对应的树形结构, 如果不加pid的时候或者任意添加的
140
140
  // pid导致在所有图层中并没有查找到该 pid 对应图层项时,组件会给该项添加默认pid并加到树的跟节点上。
141
- list: [],
141
+ list: []
142
142
  // 辅助图层
143
143
  auxiliaryLayers: {
144
- cover: boolean, // 是否覆盖内置的辅助图层
144
+ cover: boolean // 是否覆盖内置的辅助图层
145
145
  list: [] // 自定义的辅助图层Layer集合
146
146
  },
147
147
  // 地形图层
148
148
  terrainLayers: {
149
- cover: boolean, // 是否覆盖内置的地形图层
149
+ cover: boolean // 是否覆盖内置的地形图层
150
150
  list: [] // 自定义的地形图层Layer集合
151
151
  }
152
152
  }
@@ -155,7 +155,7 @@ import { satMapTypes, type SatMenu_Type_MenuItem } from 'sat-earth'
155
155
  2. 对mars3d的Map构造参数中原有的basemaps的传参略作了修改。
156
156
 
157
157
  basemaps:[] => basemaps:{
158
- cover: boolean,
158
+ cover: boolean
159
159
  list: []
160
160
  }
161
161
  ①. 在 'sat-earth' 中加入了默认的基础底图,这里可以选择是否覆盖重写;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sat-earth",
3
- "version": "0.4.8",
3
+ "version": "0.5.0",
4
4
  "private": false,
5
5
  "description": "The sat-earth is a digital earth component library based on mars3d and cesium.",
6
6
  "main": "dist/sat-earth.umd.js",