huweili-cesium 1.0.1 → 1.0.2
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/labelDiv.js +1 -0
- package/package.json +1 -1
- package/qrCodeGenerator.js +3 -3
package/labelDiv.js
CHANGED
|
@@ -180,6 +180,7 @@ export function labelDiv() {
|
|
|
180
180
|
detailDiv.style.setProperty('--drone-bg-color', statusConfig.backgroundColor);
|
|
181
181
|
detailDiv.style.setProperty('--drone-border-color', statusConfig.borderColor);
|
|
182
182
|
detailDiv.style.setProperty('--drone-text-color', statusConfig.textColor);
|
|
183
|
+
detailDiv.style.setProperty('--drone-detail-divider-color', statusConfig.detailDividerColor);
|
|
183
184
|
}
|
|
184
185
|
|
|
185
186
|
// 统一使用一个 badge class,在 badge span 元素上设置背景图片
|
package/package.json
CHANGED
package/qrCodeGenerator.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { toDataURL } from 'qrcode'
|
|
2
2
|
import { getAddressByLocation } from './api/gaode.js'
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -280,7 +280,7 @@ export const generateQRCode = async (cardElement, lng, lat, isRefresh = false) =
|
|
|
280
280
|
const baseLargeSize = 200
|
|
281
281
|
|
|
282
282
|
// 生成小二维码(高清)
|
|
283
|
-
const qrCodeDataUrl = await
|
|
283
|
+
const qrCodeDataUrl = await toDataURL(navUrl, {
|
|
284
284
|
width: baseSmallSize * dpr,
|
|
285
285
|
margin: 2,
|
|
286
286
|
errorCorrectionLevel: 'M',
|
|
@@ -294,7 +294,7 @@ export const generateQRCode = async (cardElement, lng, lat, isRefresh = false) =
|
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
// 生成大二维码(高清)
|
|
297
|
-
const qrCodeDataUrlLarge = await
|
|
297
|
+
const qrCodeDataUrlLarge = await toDataURL(navUrl, {
|
|
298
298
|
width: baseLargeSize * dpr,
|
|
299
299
|
margin: 2,
|
|
300
300
|
errorCorrectionLevel: 'M',
|