From 22f9e3f42b17f45b439d949e31c8a6fb1d0be22d Mon Sep 17 00:00:00 2001 From: ulleo Date: Fri, 28 Jun 2024 15:23:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=83=AD=E5=8A=9B=E5=9C=B0=E5=9B=BE=E5=9C=A8=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E4=B8=8B=E6=97=A0=E6=B3=95=E6=8B=96=E5=8A=A8?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/data-visualization/canvas/Shape.vue | 3 ++- .../components/views/components/ChartComponentG2Plot.vue | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/core/core-frontend/src/components/data-visualization/canvas/Shape.vue b/core/core-frontend/src/components/data-visualization/canvas/Shape.vue index 3911bb1e62..82ad767c19 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/Shape.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/Shape.vue @@ -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) }) diff --git a/core/core-frontend/src/views/chart/components/views/components/ChartComponentG2Plot.vue b/core/core-frontend/src/views/chart/components/views/components/ChartComponentG2Plot.vue index d0564551d6..eeae1375f7 100644 --- a/core/core-frontend/src/views/chart/components/views/components/ChartComponentG2Plot.vue +++ b/core/core-frontend/src/views/chart/components/views/components/ChartComponentG2Plot.vue @@ -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