!277 feat: 升级vue3-sketch-ruler到2X

Merge pull request !277 from kakajun/master
This commit is contained in:
奔跑的面条
2026-05-12 08:00:07 +00:00
parent b0a574b97f
commit d22f1f7848
11 changed files with 214 additions and 294 deletions
@@ -49,9 +49,6 @@ export const useChartLayoutStore = defineStore({
},
getPercentage(): number {
return this.percentage
},
getRePositionCanvas(): boolean {
return this.rePositionCanvas
}
},
actions: {
@@ -65,8 +62,6 @@ export const useChartLayoutStore = defineStore({
})
// 存储本地
setLocalStorage(GO_CHART_LAYOUT_STORE, this.$state)
// 这里需要标记重置画布位置
this.rePositionCanvas = true;
// 重新计算拖拽区域缩放比例
if (computedScale) {
setTimeout(() => {