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

릴리즈 2.8.0 이상 

Toggles the drawing mode.


Parameters:

NameTypeDescription
actionNameString'toggleDrawMode' drawing mode toggling API.
uiNameStringThe name of the UI that executed the drawing function.
callbackFunctionCallback function to be executed after drawing is completed.


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