Adjust size of the selected image or video
Parameters:
Name | Type | Description |
---|---|---|
actionName | String | 'resizeDrawingObject' image or video resizing API |
[parentWidth] | Number | - |
[width] | Number | width in px |
[height] | Number | height in px |
[left] | Number | Left coordinate of image, video, shape (in case of absolute position) |
[top] | Number | Top coordinate of image, video, shape (in case of absolute position) |
Example:
editor.execCommand('resizeDrawingObject', null, 200, 100, null, null); // Set width and height to 200, 100 editor.execCommand('resizeDrawingObject', null, null, null, 200, 100); // Set left and top to 200, 100