Merge branch 'dev_vite' of http://18.167.251.121:10003/aidlab/aida_front into dev_vite
This commit is contained in:
@@ -459,6 +459,14 @@ export class CanvasManager {
|
||||
const fheight = fixedLayerObj.height * fixedLayerObj.scaleY
|
||||
const bwidth = backgroundObject.width * backgroundObject.scaleX
|
||||
const bheight = backgroundObject.height * backgroundObject.scaleY
|
||||
console.log(fixedLayerObj.width,
|
||||
fixedLayerObj.scaleX,
|
||||
fixedLayerObj.height,
|
||||
fixedLayerObj.scaleY,
|
||||
backgroundObject.width,
|
||||
backgroundObject.scaleX,
|
||||
backgroundObject.height,
|
||||
backgroundObject.scaleY,'CanvasManager resetCanvasSizeByFixedLayer')
|
||||
if(Math.abs(fwidth/bwidth - fheight/bheight) < 0.1) return;
|
||||
this.canvasWidth.value = fwidth
|
||||
this.canvasHeight.value = fheight
|
||||
|
||||
Reference in New Issue
Block a user