refactor(图表): 地图加载完成标识

This commit is contained in:
wisonic-s 2024-06-26 19:08:05 +08:00
parent dd39088396
commit d8e9d088ff

View File

@ -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')
}