Przekleiłem to z helpa:

  1. webMI.translate(
  2.  
  3. value,
  4. minValue,
  5. maxValue,
  6. startValue,
  7. stopValue);
  8.  
  9. Calculates an absolute value from the passed value, minValue, maxValue, start Value and stopValue for use in various webMI.gfx functions.
  10.  
  11. Example: A data variable can have a value from 0 (minValue) to 100 (maxValue). The current value (value) is to be displayed by an arrow that rotates from 0° (startValue) to 180° (stopValue):
  12.  
  13. webMI.translate("Server_1.OBJECTS.var1", function(e) {
  14. var id = "id_1";
  15. var value = e.value;
  16. webMI.gfx.setRotation(id, webMI.translate(value, 0, 100, 0, 180));
  17. });
  18. Transformations of SVG elements
  19.  
  20. webMI.gfx.setTransformation
  21.  
  22. webMI.gfx.setTransformation(
  23. elementID,
  24. translationFactor);
  25.  
  26. Methods that transform SVG elements (replace Transformation with one of the following):
  27.  
  28. Rotation, MoveX, MoveY, ScaleX, ScaleY, SkewX, SkewY
  29.  
  30. Some examples:
  31.  
  32. webMI.gfx.setMoveX(
  33. elementID,
  34. offset);
  35.  
  36. Moves the SVG element defined by elementID by offset (see webMI.translate) on the X axis.
  37.  
  38. <!--c1--><div class='codetop'>Kod</div><div class='codemain'><!--ec1-->var offset = webMI.translate(value, minValue, maxValue, startValue, stopValue);
  39. webMI.gfx.setMoveX("elementID", offset);<!--c2--></div><!--ec2-->


Według tego wzoru/przykładu napisałem taki oto skrypt:
Kod
webMI.translate("Server_1.OBJECTS.var1", function(e) {
var id = "id_1";
var value = e.value;
var offset = webMI.translate(value, 0, 125, 0, 875);
webMI.gfx.setMoveX(id, offset);
});


No ale tak, nie rozumiem w ogóle pierwszej linijki.
W drugiej nazwa obiektu przypisywana jest to zmiennaj id.
W trzeciej również jest przypisanie do zmiennej, ale co to jest e.value ?
W czwartej również przypisanie do zmiennej. Ale jaka jest vartość value i jak ona się ma do wykonania się skryptu / jak ona wpływa na to przesunięcie ? Jest to krok przesunięcia ?
Minimalna i maksymalna wartość to określenie w jakim przedziale value może przyjąć wartość ? A start i stop, to gdzie jeste ten elemenet i jaki jest jego cel ?

Ostatnia linia to chyba wykonanie przesunięcia ?