qianlishi 3 years ago
parent 70875aef62
commit 3bb12c607a

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

Loading…
Cancel
Save