From 8b38958aacdb12ee6fe08580c5fcae6adfab2846 Mon Sep 17 00:00:00 2001 From: ilia Date: Tue, 1 Nov 2022 11:48:14 +0300 Subject: [PATCH] add Ruler --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 694d876..57182ad 100644 --- a/index.js +++ b/index.js @@ -302,7 +302,7 @@ function receiveMessage(event) } else if(data.type == "setTool"){ if (data.data == "null"){ 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.setDrawShape(data.data); }