선택된 이미지 또는 비디오의 너비와 높이를 증/감 합니다Zoom in or out the selected image or video.
Parameters:
Name | Type | Description |
---|---|---|
actionName | String | 'zoomDrawingObject' 이미지 비디오 크기 Zoom in out 크기 조절 apiimage 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:
Code Block | ||||
---|---|---|---|---|
| ||||
editor.execCommand('zoomDrawingObject', true, false, 10); // 너비increase 10pxwidth 만큼by 증가10px editor.execCommand('zoomDrawingObject', false, true, 10); // 높이increase 10pxheight 만큼by 증가10px editor.execCommand('zoomDrawingObject', true, true, -10); // 너비와decrease width 높이and 10pxheight 만큼by 감소10px |