OK, but my suggestion would end up pretty much the same at then end of the day - however, there was always my other suggestion...
So I did a demo to prove it...
flow...
[{"id":"3009c4d0.79685c","type":"ui_svg_graphics","z":"ee2c6405.f58c78","group":"7d4b894d.6393c8","order":1,"width":"14","height":"10","svgString":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"none\" x=\"0\" y=\"0\" viewBox=\"0 0 900 710\" width=\"100%\" height=\"100%\">\n <defs id=\"svgEditorDefs\">\n <symbol xmlns=\"http://www.w3.org/2000/svg\" id=\"f358\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 512 512\">\n <path d=\"M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zM212 140v116h-70.9c-10.7 0-16.1 13-8.5 20.5l114.9 114.3c4.7 4.7 12.2 4.7 16.9 0l114.9-114.3c7.6-7.6 2.2-20.5-8.5-20.5H300V140c0-6.6-5.4-12-12-12h-64c-6.6 0-12 5.4-12 12z\"/>\n </symbol>\n <polygon id=\"svgEditorIconDefs\" style=\"fill:rosybrown;\"/>\n <symbol xmlns=\"http://www.w3.org/2000/svg\" id=\"f35b\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 512 512\">\n <path d=\"M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm292 116V256h70.9c10.7 0 16.1-13 8.5-20.5L264.5 121.2c-4.7-4.7-12.2-4.7-16.9 0l-115 114.3c-7.6 7.6-2.2 20.5 8.5 20.5H212v116c0 6.6 5.4 12 12 12h64c6.6 0 12-5.4 12-12z\"/>\n </symbol>\n <symbol id=\"1f5b1\" viewBox=\"0 0 64 64\" preserveAspectRatio=\"xMidYMid meet\">\n <rect x=\"0\" y=\"0\" width=\"64\" height=\"64\" style=\"stroke:none;fill:none;\"/>\n <g xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m19.05 58.735h-2.417c0-3.163-2.881-8.185-5.113-11.791-3.396-5.49-9.533-13.274-9.533-23.9 0-6.257 1.96-11.2 6.843-13.224 3.853-1.596 8.092.073 10.798 2.779l-1.71 1.708c-2.01-2.01-5.215-3.476-8.164-2.255-3.949 1.636-5.35 5.745-5.35 10.991 0 9.938 5.768 17.13 9.171 22.627 2.426 3.921 5.475 9.216 5.475 13.06\" fill=\"#94989b\"/>\n <g fill=\"#bcc2cc\">\n <path d=\"m13.168 14.458c-.758-.759-.944-1.801-.417-2.331l2.626-2.627c.529-.527 1.572-.341 2.33.417l-4.539 4.541\"/>\n <path d=\"m19.08 42.755c-13.07-13.07-10.777-22.83-3.342-30.27 7.435-7.435 17.193-9.729 30.27 3.343 16.454 16.454 18.387 30.44 10.951 37.875-7.435 7.435-21.42 5.502-37.874-10.952\"/>\n </g>\n <g fill=\"#d8dfeb\">\n <path d=\"m28.12 24.866c-5.07 5.07-9.106 10.585-11.569 16.571.697.793 1.454 1.599 2.27 2.415 16.524 16.525 30.851 18.19 38.662 10.377 7.811-7.811 6.146-22.14-10.378-38.662-.816-.816-1.622-1.573-2.415-2.27-5.986 2.463-11.501 6.499-16.57 11.569\"/>\n <path d=\"m43.977 12.562c-9.373-8.466-16.976-8.895-23.21-5.362l11.844 11.845c3.547-2.83 7.324-5.071 11.363-6.483\"/>\n <path d=\"m11.123 16.846l11.844 11.844c1.297-1.627 2.705-3.209 4.235-4.738 1.529-1.528 3.111-2.938 4.739-4.235l-11.844-11.845c-1.792 1.017-3.471 2.356-5.04 3.931-1.574 1.572-2.915 3.251-3.93 5.04\"/>\n <path d=\"m15.813 40.728c1.413-4.04 3.654-7.817 6.481-11.364l-11.844-11.845c-3.532 6.231-3.104 13.836 5.363 23.21\"/>\n </g>\n </g>\n </symbol>\n <polygon id=\"svgEditorShapeDefs\" style=\"fill:rosybrown;stroke:black;vector-effect:non-scaling-stroke;stroke-width:1px;\"/>\n <symbol id=\"1f532\" viewBox=\"0 0 64 64\" preserveAspectRatio=\"xMidYMid meet\">\n <rect x=\"0\" y=\"0\" width=\"64\" height=\"64\" style=\"stroke:none;fill:none;\"/>\n <g xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M63.999,56c0,4.4-3.6,8-8,8H8c-4.4,0-8-3.6-8-8V8c0-4.4,3.6-8,8-8h47.999c4.4,0,8,3.6,8,8V56z\" fill=\"#333\"/>\n <path d=\"m55.999 50c0 3.299-2.702 6-5.998 6h-36c-3.296 0-5.998-2.701-5.998-6v-36c0-3.298 2.702-5.999 5.998-5.999h36c3.296 0 5.998 2.701 5.998 5.999v36\" fill=\"#d0d0d0\"/>\n </g>\n </symbol>\n <symbol id=\"1f604\" viewBox=\"0 0 64 64\" preserveAspectRatio=\"xMidYMid meet\"><rect x=\"0\" y=\"0\" width=\"64\" height=\"64\" style=\"stroke:none;fill:none;\"/><g xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"32\" cy=\"32\" fill=\"#ffdd67\" r=\"30\"/><path d=\"m48 37.5c0 6.461-5.314 14-16 14-10.689 0-16-7.539-16-14 0 0 5.311 0 16 0 10.686 0 16 0 16 0\" fill=\"#664e27\"/><path d=\"m16.918 37.5h30.17v5.6h-30.17z\" fill=\"#fff\"/><g fill=\"#664e27\"><path d=\"m32 52.5c-11.04 0-17-7.729-17-15v-1h34v1c0 7.271-5.957 15-17 15m-14.955-14c.523 5.99 5.727 12 14.955 12s14.434-6.01 14.957-12h-29.912\"/><path d=\"m27.59 25.647c-3.264-6.197-12.653-6.197-15.917 0-.195.378.32.921.95 1.353 4.135-3.271 9.88-3.271 14.01-.001.632-.431 1.147-.974.952-1.352\"/><path d=\"m52.33 25.647c-3.264-6.197-12.652-6.197-15.916-.001-.195.379.319.922.949 1.353 4.136-3.271 9.881-3.271 14.02-.001.631-.431 1.145-.973.951-1.351\"/></g></g></symbol></defs>\n <rect id=\"svgEditorBackground\" x=\"0\" y=\"0\" width=\"900\" height=\"710\" style=\"fill:none; stroke: none;\"/>\n <image width=\"889\" height=\"703\" id=\"background\" xlink:href=\"https://www.roomsketcher.com/wp-content/uploads/2016/10/1-Bedroom-Floor-Plans.jpg\"/>\n <text id=\"e1_living_room\" x=\"201.23126220703125\" y=\"45\" font-family=\"FontAwesome\" fill=\"green\" visibility=\"hidden\" stroke=\"green\" font-size=\"35\" text-anchor=\"middle\" alignment-baseline=\"middle\" stroke-width=\"1\">ļ½</text>\n <use xlink:href=\"#f35b\" x=\"334.8606262207031\" y=\"27.265259566266394\" width=\"65.81948799999998\" height=\"65.81948799999998\" id=\"e3_icon\" style=\"fill:red;\" visibility=\"hidden\"/>\n <use xlink:href=\"#1f5b1\" x=\"159.11598205569615\" y=\"30.82633590702389\" width=\"76.57458563536576\" height=\"76.57458563536576\" id=\"mouse\"/>\n <text id=\"banner\" x=\"313.3149719238281\" y=\"65.71989440917969\" fill=\"black\" stroke=\"black\" font-size=\"35\" text-anchor=\"left\" alignment-baseline=\"middle\" stroke-width=\"1\">some text to animate</text>\n <path d=\"M64,0c-35.347,0,-64,28.653,-64,64s28.653,64,64,64s64,-28.65299999999999,64,-64s-28.65299999999999,-64,-64,-64ZM101.657,49.657000000000004l-45.657000000000004,45.657000000000004l-29.657,-29.656999999999996c-3.125,-3.1240000000000023,-3.125,-8.189,0,-11.314s8.189000000000004,-3.1240000000000023,11.315000000000001,0l18.342,18.342999999999996l34.342999999999996,-34.343c3.125,-3.1240000000000023,8.188999999999993,-3.1240000000000023,11.314999999999998,0c3.1239999999999952,3.1240000000000023,3.1239999999999952,8.189,-0.0010000000000047748,11.314Z\" style=\"fill:rosybrown; stroke:black; vector-effect:non-scaling-stroke;stroke-width:1px;\" id=\"btn1\" transform=\"matrix(0.318518 0 0 0.318518 279.448 180.98)\"/>\n <path d=\"M64,128c35.34700000000001,0,64,-28.65299999999999,64,-64s-28.65299999999999,-64,-64,-64s-64,28.653,-64,64s28.653,64,64,64ZM34.343,45.657000000000004c-3.125,-3.1240000000000023,-3.125,-8.189,0,-11.314s8.189,-3.125,11.314999999999998,0l18.342,18.343000000000004l18.343000000000004,-18.343000000000004c3.125,-3.125,8.189000000000007,-3.125,11.314999999999998,0s3.1239999999999952,8.189,0,11.314l-18.34400000000001,18.342999999999996l18.343000000000004,18.343000000000004c3.1239999999999952,3.1239999999999952,3.1239999999999952,8.189000000000007,0,11.314000000000007c-1.5630000000000024,1.5619999999999976,-3.6089999999999947,2.3430000000000035,-5.6569999999999965,2.3430000000000035s-4.093999999999994,-0.7810000000000059,-5.6569999999999965,-2.3430000000000035l-18.343000000000004,-18.343000000000004l-18.342999999999996,18.343000000000004c-1.5630000000000095,1.5619999999999976,-3.609000000000009,2.3430000000000035,-5.657000000000004,2.3430000000000035s-4.094000000000001,-0.7810000000000059,-5.6569999999999965,-2.3430000000000035c-3.125,-3.1239999999999952,-3.125,-8.188999999999993,0,-11.313999999999993l18.343000000000004,-18.343000000000004l-18.343000000000004,-18.343000000000004Z\" style=\"fill:rosybrown; stroke:black; vector-effect:non-scaling-stroke;stroke-width:1px;\" id=\"btn2\" transform=\"matrix(0.320662 0 0 0.320662 333.012 182.832)\"/>\n<g style=\"fill:rosybrown; stroke:black; vector-effect:non-scaling-stroke;stroke-width:1px;\" id=\"robot\" transform=\"matrix(0.496663 0 0 0.496663 319.231 42.8277)\"/></svg>","clickableShapes":[{"targetId":"#mouse","action":"click","payload":"mouse","payloadType":"str","topic":"mouse"},{"targetId":"#btn1","action":"click","payload":"true","payloadType":"bool","topic":"btn1"},{"targetId":"#btn2","action":"click","payload":"false","payloadType":"bool","topic":"btn2"}],"smilAnimations":[{"id":"spinner","targetId":"banner","classValue":"","attributeName":"rotate","fromValue":"0","toValue":"359","trigger":"cust","duration":"500","durationUnit":"ms","repeatCount":"1","end":"restore","delay":"1","delayUnit":"s","custom":"mouse.click; "}],"bindings":[],"showCoordinates":false,"autoFormatAfterEdit":false,"outputField":"","editorUrl":"http://drawsvg.org/drawsvg.html","directory":"","name":"","x":580,"y":120,"wires":[["5fb5d2f2.3d61ec"]]},{"id":"90bd1314.b34ec","type":"inject","z":"ee2c6405.f58c78","name":"enable click","topic":"eneble click","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":120,"wires":[["5420aad0.e53a44"]]},{"id":"8c96b058.b7d94","type":"inject","z":"ee2c6405.f58c78","name":"disable click","topic":"eneble click","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":160,"wires":[["5420aad0.e53a44"]]},{"id":"5420aad0.e53a44","type":"function","z":"ee2c6405.f58c78","name":"toggle pointer-events style","func":"var newState;\nif(msg.payload){\n newState = \"auto\";\n} else {\n newState = \"none\";\n}\n\nmsg.payload = [\n {\n \"command\":\"set_style\",\n \"selector\":\"#mouse\",\n \"attributeName\":\"pointer-events\",\n \"attributeValue\":newState\n \n }\n]\nreturn msg;","outputs":1,"noerr":0,"x":370,"y":120,"wires":[["3009c4d0.79685c"]]},{"id":"5fb5d2f2.3d61ec","type":"switch","z":"ee2c6405.f58c78","name":"","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"btn1","vt":"str"},{"t":"eq","v":"btn2","vt":"str"},{"t":"eq","v":"mouse","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":450,"y":260,"wires":[["5420aad0.e53a44"],["5420aad0.e53a44"],["5e3c9f01.2aa0e"]]},{"id":"5e3c9f01.2aa0e","type":"debug","z":"ee2c6405.f58c78","name":"mouse icon click","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":660,"y":280,"wires":[]},{"id":"7d4b894d.6393c8","type":"ui_group","z":"","name":"Group 1","tab":"2a96df74.b8604","order":1,"disp":true,"width":"25","collapse":false},{"id":"2a96df74.b8604","type":"ui_tab","z":"","name":"SVG3","icon":"dashboard","order":4,"disabled":false,"hidden":false}]