From d8e9d088ff2e2bdfe32c826fd1042da575851121 Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Wed, 26 Jun 2024 19:08:05 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=9B=BE=E8=A1=A8):=20=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE=E5=8A=A0=E8=BD=BD=E5=AE=8C=E6=88=90=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/js/panel/common/common_antv.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts b/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts index 2a9a384724..f90601bc27 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts @@ -1081,3 +1081,17 @@ function setStyle(elements: HTMLElement[], styleProp: string, value) { e.style[styleProp] = value }) } + +export function mapRendering(dom: HTMLElement | string) { + if (typeof dom === 'string') { + dom = document.getElementById(dom) + } + dom.classList.add('de-map-rendering') +} + +export function mapRendered(dom: HTMLElement | string) { + if (typeof dom === 'string') { + dom = document.getElementById(dom) + } + dom.classList.add('de-map-rendered') +}