[PowerPoint javascript API] Lock the aspect ratio of an image imported to the slide
While importing image manually into PowerPoint Desktop slide, aspect ratio of this image is locked by default so that when user drags the corner of an image, it is being resized accordingly with proper ratio. However the behaviour is different while using 'Office.context.document.setSelectedDataAsync' for inserting images, in this case ratio is NOT locked by default which may result in image distortion.
Would it be possible to control whether image ratio should be locked while using Office.context.document.setSelectedDataAsync?
use case: Using our add-in, user imports an image containing visualization with certain aspect ratio. As image aspect ratio is not locked by default, every size change may lead to visualization distortion, which may impact data readability.