Status |
---|
colour | Yellow |
---|
title | 릴리즈 2.8.0 이상 |
---|
|
그리기 모드를 토글합니다Toggles the drawing mode.
Parameters:
Name | Type | Description |
---|
actionName | String액션 이름 | 'toggleDrawMode' drawing mode toggling API. |
uiName | String그리기 기능을 실행한 UI | 이름The name of the UI that executed the drawing function. |
callback | Function그리기 완료후 실행될 콜백함수 | Callback function to be executed after drawing is completed. |
Example:
Code Block |
---|
|
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);
}); |
...