28 lines
1.3 KiB
Plaintext
28 lines
1.3 KiB
Plaintext
<svg viewBox="0 0 @ObjW @ObjH" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg">
|
|
<g transform="translate(0,@LineDist)">
|
|
<foreignObject width="@TextAreaWidth" height="@TextAreaHeight">
|
|
<div class="row" style="@TextStyle">
|
|
@foreach (var item in TextData)
|
|
{
|
|
<div class="@LeftTextClass">
|
|
@item.Key
|
|
</div>
|
|
<div class="@RightTextClass text-end">
|
|
<b>@item.Value</b>
|
|
</div>
|
|
}
|
|
</div>
|
|
</foreignObject>
|
|
</g>
|
|
|
|
<line x1="@BaseLine.p1.px" y1="@BaseLine.p1.py" x2="@BaseLine.p2.px" y2="@BaseLine.p2.py" stroke="@LineColor" stroke-width="@LineWidth" />
|
|
<circle id="circleLine" cx="@CircleLine.cx" cy="@CircleLine.cy" r="@CircleLine.rad" stroke="@LineColor" stroke-width="@LineWidth" />
|
|
|
|
<defs>
|
|
<pattern id="@($"contImg_{ObjId}")" patternContentUnits="userSpaceOnUse" width="1" height="1">
|
|
<image x="0" y="0" href="@ImagePath" width="50%" height="100%"></image>
|
|
</pattern>
|
|
</defs>
|
|
<circle id="circleCont" cx="@CircleImg.cx" cy="@CircleImg.cy" r="@CircleImg.rad" fill="url(#@($"contImg_{ObjId}"))" @onclick="()=>execFunc()" style="cursor: pointer" />
|
|
</svg>
|