浏览代码

style(业务代码): 调大填色区域在视口中的缩放比例

- 横屏 rate 0.6 → 0.7,竖屏 rate 0.7 → 0.8
- 低分屏下填色区域更充分利用画布空间
guoziyun 3 周之前
父节点
当前提交
a8b21b24d2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/base/Scene.ts

+ 1 - 1
src/base/Scene.ts

@@ -155,7 +155,7 @@ export class Scene implements Disposable {
     // this.resultMat[12] = tx
     // this.resultMat[13] = ty
 
-    let rate = this.width > this.height ? 0.6 : 0.7;
+    let rate = this.width > this.height ? 0.7 : 0.8;
     let scaleX = (this.width * rate) / this.contentWidth;
     let scaleY = (this.height * rate) / this.contentHeight;
     let scale = Math.min(scaleX, scaleY);