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: 2156     Entry time: 26 Apr 2021     In reply to: 2129
Author: Zaher Salman 
Topic: Suggestion 
Subject: embed modbvalue in SVG 
I found a way to embed modbvalue into a SVG:

<text x="100" y="100" font-size="30rem">
Run=<tspan class="modbvalue" data-odb-path="/Runinfo/Run number"></tspan>
</text>

This seems to behave better that the suggestion below.

> 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