Page tree
Skip to end of metadata
Go to start of metadata

Zoom in or out the selected image or video.


Parameters:

NameTypeDescription
actionNameString'zoomDrawingObject' image or video zooming in or out API
isWidthBooleanWhether the width either increases or decreases
isHeightBooleanWhether the height either increases or decreases
zoomNumber

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
  • No labels