릴리즈 2.8.0 이상
그리기 모드를 토글합니다.
Parameters:
| Name | Type | Description |
|---|---|---|
| actionName | String | 액션 이름 |
| uiName | String | 그리기 기능을 실행한 UI 이름 |
| callback | Function | 그리기 완료후 실행될 콜백함수 |
Example:
editor.execCommand('toggleDrawMode', 'customUIName', function (rect) {
var x = rect.x;
var y = rect.y;
var width = rect.width;
var height = rect.height;
console.log(x, y, width, height);
});