aboutsummaryrefslogtreecommitdiffstats
path: root/dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/components/diagram/templates/fragment.html
blob: 812f5fcfb82e7484a757171d0843d55704c35225 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<g class="asdcs-diagram-fragment" data-id="<%-id%>" data-type="fragment">

    <rect x="<%-x%>" y="<%-y%>" height="<%-height%>" width="<%-width%>"></rect>

    <path d="M<%-x%>,<%-(y+80)%> L<%-(x+100)%>,<%-(y+80)%> L<%-(x+120)%>,<%-(y+60)%> L<%-(x+120)%>,<%-y%>"/>

    <text x="<%-(x+20)%>" y="<%-(y+50)%>" class="asdcs-diagram-fragment-operation"><%-operator%></text>

    <rect class="asdcs-diagram-fragment-guard-bg"
          x="0" y="0" height="0" width="0"
          rx="5" ry="5" ></rect>

    <text class="asdcs-diagram-fragment-guard" x="<%-(x+160)%>" y="<%-(y+10)%>"><%
        for (var lineIndex = 0; lineIndex < lines.length ; lineIndex++) {
        %><tspan x="<%-(x+160)%>" dy="40px"><%- lines[lineIndex] %></tspan><%
        }%></text>

</g>