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-info',
'table-normal', 'table-normal',
'table-pivot', 'table-pivot',
'symbolic-map' 'symbolic-map',
'heat-map'
] ]
return CHARTS.includes(element.value.innerType) return CHARTS.includes(element.value.innerType)
}) })

View File

@ -174,7 +174,7 @@ const calcData = async (view, callback) => {
callback?.() callback?.()
}) })
} else { } 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) await renderChart(view, callback)
} }
callback?.() callback?.()
@ -484,7 +484,7 @@ defineExpose({
}) })
let resizeObserver let resizeObserver
const TOLERANCE = 0.01 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(() => { onMounted(() => {
const containerDom = document.getElementById(containerId) const containerDom = document.getElementById(containerId)
const { offsetWidth, offsetHeight } = containerDom const { offsetWidth, offsetHeight } = containerDom