riclolsen / node-red-scadavis

Node-RED / SCADAvis.io integration for creating SCADA-like user interfaces.
7 stars 5 forks source link

An issue for enabling zoom tools in scadavis.io #2

Closed sai-qfes closed 2 years ago

sai-qfes commented 2 years ago

Hi, I am not sure if here is the correct place, butI am writing to you for an issue of SCADAvis.io When I try to call SCADAvis.io Synoptic API enableTools, I found whatever value I gave zoomEnabled, the zoom tools are never enabled. https://scadavis.io/synoptic/apidoc/global.html#enableTools

when I read the code of synopticapi.js, I found the problem is caused by line 435 https://scadavis.io/synoptic/apidoc/synopticapi.js.html#line426

    if ( typeof zoomEnabled === "undefined" || zoomEnabled )
      zoomEnabled = false;

The two lines set zoomEnabled always to be false.

As I am not sure if I should submit the issue here, I will also write an email to scadavis@dscsys.com

riclolsen commented 2 years ago

Yes that was a problem. It is fixed now. Thank you very much.