Merge pull request #10605 from ulleo/dev-v2

fix(图表): 修复热力地图在编辑状态下无法拖动地图问题
This commit is contained in:
ulleo 2024-06-28 15:27:07 +08:00 committed by GitHub
commit 3fd3537961
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -301,7 +301,8 @@ const boardMoveActive = computed(() => {
'table-info',
'table-normal',
'table-pivot',
'symbolic-map'
'symbolic-map',
'heat-map'
]
return CHARTS.includes(element.value.innerType)
})

View File

@ -174,7 +174,7 @@ const calcData = async (view, callback) => {
callback?.()
})
} else {
if (['bubble-map', 'map', 'flow-map'].includes(view.type)) {
if (['bubble-map', 'map', 'flow-map', 'heat-map'].includes(view.type)) {
await renderChart(view, callback)
}
callback?.()
@ -484,7 +484,7 @@ defineExpose({
})
let resizeObserver
const TOLERANCE = 0.01
const RESIZE_MONITOR_CHARTS = ['map', 'bubble-map', 'flow-map']
const RESIZE_MONITOR_CHARTS = ['map', 'bubble-map', 'flow-map', 'heat-map']
onMounted(() => {
const containerDom = document.getElementById(containerId)
const { offsetWidth, offsetHeight } = containerDom