Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Status
colourYellow
title릴리즈 2.8.0 이상
 

그리기 모드를 토글합니다Toggles the drawing mode.


Parameters:

NameTypeDescription
actionNameString액션 이름'toggleDrawMode' drawing mode toggling API.
uiNameString그리기 기능을 실행한 UI 이름The name of the UI that executed the drawing function.
callbackFunction그리기 완료후 실행될 콜백함수Callback function to be executed after drawing is completed.


Example:

Code Block
languagejs
themeEmacs
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);
});

...