|
@@ -928,8 +928,6 @@ export const useChartEditStore = defineStore({
|
|
|
const scaleHeight = parseFloat((width / baseProportion / editCanvasHeight).toFixed(5))
|
|
const scaleHeight = parseFloat((width / baseProportion / editCanvasHeight).toFixed(5))
|
|
|
this.setScale(scaleHeight > 1 ? 1 : scaleHeight)
|
|
this.setScale(scaleHeight > 1 ? 1 : scaleHeight)
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- window.onCanvsSizecomputed?.()
|
|
|
|
|
} else {
|
|
} else {
|
|
|
window['$message'].warning('请先创建画布,再进行缩放')
|
|
window['$message'].warning('请先创建画布,再进行缩放')
|
|
|
}
|
|
}
|