qianlishi 3 years ago
parent 70875aef62
commit 3bb12c607a

@ -250,6 +250,7 @@ export default {
widthLeftForTools: 200, //
widthLeftForToolsHideButton: 15, //
widthLeftForOptions: 300, //
widthPaddingTools: 18,
toolIsShow: true, //
bigscreenWidth: 1920, //
@ -327,8 +328,10 @@ export default {
},
//
bigscreenScaleInWorkbench() {
var widthScale = (this.middleWidth - 18) / this.bigscreenWidth;
var heightScale = (this.middleHeight - 18) / this.bigscreenHeight;
var widthScale =
(this.middleWidth - this.widthPaddingTools) / this.bigscreenWidth;
var heightScale =
(this.middleHeight - this.widthPaddingTools) / this.bigscreenHeight;
return Math.min(widthScale, heightScale);
},
workbenchTransform() {
@ -338,10 +341,12 @@ export default {
},
//
bigscreenWidthInWorkbench() {
return this.getPXUnderScale(this.bigscreenWidth) + 18;
return this.getPXUnderScale(this.bigscreenWidth) + this.widthPaddingTools;
},
bigscreenHeightInWorkbench() {
return this.getPXUnderScale(this.bigscreenHeight) + 18;
return (
this.getPXUnderScale(this.bigscreenHeight) + this.widthPaddingTools
);
}
},
watch: {

Loading…
Cancel
Save