Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  10 Mar 2021, Zaher Salman, Suggestion, embed modbvalue in SVG 
    Reply  10 Mar 2021, Stefan Ritt, Suggestion, embed modbvalue in SVG 
       Reply  26 Apr 2021, Zaher Salman, Suggestion, embed modbvalue in SVG 
Message ID: 2129     Entry time: 10 Mar 2021     In reply to: 2128     Reply to this: 2156
Author: Stefan Ritt 
Topic: Suggestion 
Subject: embed modbvalue in SVG 
You can't really embed it, but you can overlay it. You tag the SVG with a 
"relative" position and then move the modbvalue with an "absolute" position over 
it:

<svg style="position:relative" width="400" height="100">
  <rect width="300" height="100" style="fill:rgb(255,0,0);stroke-width:3;stroke:rgb(0,0,0)" />
  <div class="modbvalue" style="position:absolute;top:50px;left:50px" data-odb-path="/Runinfo/Run number"></div>
</svg>
ELOG V3.1.4-2e1708b5