深度画布更改
This commit is contained in:
@@ -289,10 +289,7 @@ export class AnimationManager {
|
||||
* @param {Boolean} adaptive 是否自适应缩放
|
||||
*/
|
||||
async resetZoom(animated = true, adaptive = false) {
|
||||
const canvasViewWidth = this.canvasManager.canvasViewWidth;
|
||||
const canvasViewHeight = this.canvasManager.canvasViewHeight;
|
||||
const canvasWidth = this.canvasManager.canvasWidth;
|
||||
const canvasHeight = this.canvasManager.canvasHeight;
|
||||
const { canvasViewWidth, canvasViewHeight, canvasWidth, canvasHeight } = this.canvasManager.getCanvasSize();
|
||||
const scaleX = canvasViewWidth / canvasWidth * 0.8
|
||||
const scaleY = canvasViewHeight / canvasHeight * 0.8
|
||||
const scale = Math.min(scaleX, scaleY, 1)
|
||||
|
||||
Reference in New Issue
Block a user