design breiter
This commit is contained in:
@@ -284,17 +284,14 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (meta.heightHe !== 1) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const preset = FORM_FACTOR_PRESETS[meta.formFactor];
|
const preset = FORM_FACTOR_PRESETS[meta.formFactor];
|
||||||
if (!preset) {
|
if (!preset) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
meta.canvasWidth = Math.max(MIN_CANVAS_WIDTH, preset.width);
|
meta.canvasWidth = Math.max(MIN_CANVAS_WIDTH, preset.width);
|
||||||
meta.canvasHeight = Math.max(MIN_CANVAS_HEIGHT, preset.height);
|
const targetHeight = Math.round(preset.height * Math.max(1, meta.heightHe));
|
||||||
|
meta.canvasHeight = Math.max(MIN_CANVAS_HEIGHT, targetHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
function applyOverlayToSelectedShape() {
|
function applyOverlayToSelectedShape() {
|
||||||
|
|||||||
Reference in New Issue
Block a user