add Ruler

This commit is contained in:
ilia 2022-11-01 11:48:14 +03:00
parent db3ecd9685
commit 8b38958aac

View File

@ -302,7 +302,7 @@ function receiveMessage(event)
} else if(data.type == "setTool"){ } else if(data.type == "setTool"){
if (data.data == "null"){ if (data.data == "null"){
app.setTool('Scroll'); app.setTool('Scroll');
} else if (data.data == 'Roi' || data.data == 'Circle' || data.data == 'FreeHand'){ } else if (data.data == 'Roi' || data.data == 'Circle' || data.data == 'FreeHand' || data.data == 'Ruler'){
app.setTool('Draw'); app.setTool('Draw');
app.setDrawShape(data.data); app.setDrawShape(data.data);
} }