Pre Merge pull request !215 from yuanmogul/cherry-pick-1697727964

This commit is contained in:
yuanmogul 2024-08-29 14:46:26 +00:00 committed by Gitee
commit c086fbf77f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -164,11 +164,11 @@ const dragCanvas = (e: any) => {
const canvasBox = () => {
const layoutDom = document.getElementById('go-chart-edit-layout')
if (layoutDom) {
//
const scrollW = 20
// 20
//
return {
height: layoutDom.clientHeight - scrollW,
width: layoutDom.clientWidth - scrollW
height: layoutDom.clientHeight - thick,
width: layoutDom.clientWidth - thick
}
}
return {
@ -193,7 +193,12 @@ const canvasPosCenter = () => {
$app.value.scrollLeft = containerWidth / 2 - width / 2
$app.value.scrollTop = containerHeight / 2 - height / 2
}
watch(scale, () => {
//
//
//
reDraw()
}, { immediate: true })
//
watch(
() => designStore.getDarkTheme,