huweili-cesium 1.2.56 → 1.2.57

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/js/basis.js +2 -2
  2. package/package.json +1 -1
package/js/basis.js CHANGED
@@ -790,7 +790,7 @@ export function basicConfig() {
790
790
  if (!toolbar || typeof window === 'undefined') return
791
791
 
792
792
  const rect = toolbar.getBoundingClientRect()
793
- toolbar.style.position = 'fixed'
793
+ toolbar.style.position = 'absolute'
794
794
  toolbar.style.left = `${Math.max(rect.left, 0)}px`
795
795
  toolbar.style.top = `${Math.max(rect.top, 0)}px`
796
796
  toolbar.style.right = 'auto'
@@ -982,7 +982,7 @@ export function basicConfig() {
982
982
  const nextLeft = Math.min(Math.max(left, 0), Math.max(maxLeft, 0))
983
983
  const nextTop = Math.min(Math.max(top, 0), Math.max(maxTop, 0))
984
984
 
985
- toolbar.style.position = 'fixed'
985
+ toolbar.style.position = 'absolute'
986
986
  toolbar.style.left = `${nextLeft}px`
987
987
  toolbar.style.top = `${nextTop}px`
988
988
  toolbar.style.right = 'auto'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "huweili-cesium",
3
- "version": "1.2.56",
3
+ "version": "1.2.57",
4
4
  "description": "基于 Cesium 的地图工具库(无人机态势、轨迹、围栏、工具栏等)",
5
5
  "type": "module",
6
6
  "main": "./index.js",