릴리즈 2.8.0 이상
Toggles the drawing mode.
Parameters:
Name | Type | Description |
---|---|---|
actionName | String | 'toggleDrawMode' drawing mode toggling API. |
uiName | String | The name of the UI that executed the drawing function. |
callback | Function | Callback 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); });