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

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

릴리즈 2.8.0 이상 

그리기 모드를 토글합니다.


Parameters:

NameTypeDescription
actionNameString액션 이름
uiNameString그리기 기능을 실행한 UI 이름
callbackFunction그리기 완료후 실행될 콜백함수


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);
});
  • No labels