huweili-cesium 1.2.61 → 1.2.63

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.
@@ -51,6 +51,10 @@ export function createCustomToolbarButtons() {
51
51
  button.className = `cesium-button cesium-toolbar-button ${options.className || ''}`
52
52
  button.title = options.title
53
53
 
54
+ if (options.isDefaultVisible) button.dataset.toolbarDefaultVisible = 'true'
55
+ if (options.isMoreToggle) button.dataset.toolbarMoreToggle = 'true'
56
+ if (options.isExpandToggle) button.dataset.toolbarExpandToggle = 'true'
57
+
54
58
  if (options.iconSrc) {
55
59
  const img = document.createElement('img')
56
60
  img.src = options.iconSrc
@@ -96,7 +100,7 @@ export function createCustomToolbarButtons() {
96
100
  toolbar.style.top = ''
97
101
  toolbar.style.right = ''
98
102
  toolbar.style.bottom = ''
99
- toolbar.style.setProperty('inset', 'initial', 'important')
103
+ toolbar.style.inset = 'initial'
100
104
 
101
105
  return buttons.map(opt => addToolbarButton(viewer, opt)).filter(Boolean)
102
106
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "huweili-cesium",
3
- "version": "1.2.61",
3
+ "version": "1.2.63",
4
4
  "description": "基于 Cesium 的地图工具库(无人机态势、轨迹、围栏、工具栏等)",
5
5
  "type": "module",
6
6
  "main": "./index.js",