Zoom in or out the selected image or video.
Parameters:
Name | Type | Description |
---|---|---|
actionName | String | 'zoomDrawingObject' image or video zooming in or out API |
isWidth | Boolean | Whether the width either increases or decreases |
isHeight | Boolean | Whether the height either increases or decreases |
zoom | Number | Size to which the image or video is resized(px) |
Example:
editor.execCommand('zoomDrawingObject', true, false, 10); // increase width by 10px editor.execCommand('zoomDrawingObject', false, true, 10); // increase height by 10px editor.execCommand('zoomDrawingObject', true, true, -10); // decrease width and height by 10px