Commit 5456cf57fd168bb2e3361a23fa7e0a14f5260637

Authored by Hacene SI HADJ MOHAND
1 parent 562a217b

extend ok

src/InputOutput/IHMImpl/ParamInfo/IHMInputOutputParamInfoClass.php
@@ -402,11 +402,16 @@ class IHMInputOutputParamInfoClass implements InputOutputInterface @@ -402,11 +402,16 @@ class IHMInputOutputParamInfoClass implements InputOutputInterface
402 $rangeNode = $axisNode->getRange(); 402 $rangeNode = $axisNode->getRange();
403 if (isset($rangeNode)) { 403 if (isset($rangeNode)) {
404 $rangeMin = $rangeNode->getMin(); 404 $rangeMin = $rangeNode->getMin();
405 - if (isset($rangeMin)) 405 + if (!empty($rangeMin))
406 $result_array['axis-range-min'] = $rangeMin; 406 $result_array['axis-range-min'] = $rangeMin;
  407 +
407 $rangeMax = $rangeNode->getMax(); 408 $rangeMax = $rangeNode->getMax();
408 - if (isset($rangeMax)) 409 + if (!empty($rangeMax))
409 $result_array['axis-range-max'] = $rangeMax; 410 $result_array['axis-range-max'] = $rangeMax;
  411 + $extend = $rangeNode->getExtend();
  412 + if (!empty($extend))
  413 + $result_array['axis-range-extend'] = ($extend == "true");
  414 +
410 } 415 }
411 } 416 }
412 417
@@ -480,9 +485,15 @@ class IHMInputOutputParamInfoClass implements InputOutputInterface @@ -480,9 +485,15 @@ class IHMInputOutputParamInfoClass implements InputOutputInterface
480 $result_array['serie-id'] = $drawNode->getId(); 485 $result_array['serie-id'] = $drawNode->getId();
481 486
482 $result_array['serie-yaxis'] = $drawNode->getYAxisId(); 487 $result_array['serie-yaxis'] = $drawNode->getYAxisId();
  488 +
483 $resolution = $drawNode->getResolution(); 489 $resolution = $drawNode->getResolution();
484 if (!empty($resolution)) 490 if (!empty($resolution))
485 $result_array['serie-resolution'] = $resolution; 491 $result_array['serie-resolution'] = $resolution;
  492 +
  493 + $colorSerieId = $drawNode->getColorSerieId();
  494 + if (!empty($colorSerieId))
  495 + $result_array['serie-colored-param'] = $colorSerieId;
  496 +
486 if ($drawNode->isLineDefined()) { 497 if ($drawNode->isLineDefined()) {
487 $lineNode = $drawNode->getLine(); 498 $lineNode = $drawNode->getLine();
488 $lineType = $lineNode->getType(); 499 $lineType = $lineNode->getType();