huweili-cesium 1.2.96 → 1.2.97
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/js/glbInfoBadge.js +2 -2
- package/js/setPoint.js +1 -1
- package/package.json +1 -1
package/js/glbInfoBadge.js
CHANGED
|
@@ -8,7 +8,7 @@ import * as Cesium from 'cesium'
|
|
|
8
8
|
import { getDroneLabelBatchManager } from './cardPool'
|
|
9
9
|
|
|
10
10
|
const STYLE_ID = 'glb-info-badge-style'
|
|
11
|
-
const DEFAULT_LABEL_OFFSET =
|
|
11
|
+
const DEFAULT_LABEL_OFFSET = 1
|
|
12
12
|
const DEFAULT_PIXEL_GAP = 2
|
|
13
13
|
|
|
14
14
|
const scratchBoundingSphere = new Cesium.BoundingSphere()
|
|
@@ -229,7 +229,7 @@ const resolveBadgeScreenPosition = (scene, basePos, topWorldPos, minPixelSize, p
|
|
|
229
229
|
* @param {Function} options.getPosition 获取模型世界坐标
|
|
230
230
|
* @param {Function} [options.getVisible] 是否显示信息牌
|
|
231
231
|
* @param {boolean} [options.isOffline=false] true=离线,false=在线
|
|
232
|
-
* @param {number} [options.labelOffset=
|
|
232
|
+
* @param {number} [options.labelOffset=1] 模型未加载完成时的兜底高度(米)
|
|
233
233
|
* @param {number} [options.pixelGap=2] 信息牌与车顶之间的像素间距
|
|
234
234
|
*/
|
|
235
235
|
export function createGlbInfoBadge(options = {}) {
|
package/js/setPoint.js
CHANGED
|
@@ -230,7 +230,7 @@ export function setPoint(baseUrl) {
|
|
|
230
230
|
* @param options.height 高度(可选,默认0)
|
|
231
231
|
* @param options.heading 朝向(可选,默认0)
|
|
232
232
|
* @param options.isOffline 是否离线(true=离线,false=在线,默认 false)
|
|
233
|
-
* @param options.modelHeight
|
|
233
|
+
* @param options.modelHeight 模型高度兜底值(米,可选,默认 1;未加载包围球时使用)
|
|
234
234
|
* @param options.mapId 地图ID
|
|
235
235
|
* @returns 创建的点位包装对象
|
|
236
236
|
*/
|