Keep aspect ratio while resizing

This commit is contained in:
Alexey Meshkov
2023-02-06 23:45:24 +01:00
committed by Braks
parent 0dbabfc58b
commit 0535672123
3 changed files with 21 additions and 2 deletions
@@ -35,6 +35,7 @@ export default {
:node-id="nodeId"
:position="c"
:variant="ResizeControlVariant.Line"
:aspect-ratio="props.aspectRatio"
:color="color"
:min-width="minWidth"
:min-height="minHeight"
@@ -55,6 +56,7 @@ export default {
:min-width="minWidth"
:min-height="minHeight"
:should-resize="shouldResize"
:aspect-ratio="props.aspectRatio"
@resize-start="emits('resizeStart', $event)"
@resize="emits('resize', $event)"
@resize-end="emits('resizeEnd', $event)"