Add new code new version
[sdc.git] / dox-sequence-diagram-ui / src / main / webapp / lib / ecomp / asdc / sequencer / components / diagram / templates / lifeline.html
1 <g class="asdcs-diagram-lifeline-container" data-id="<%-id%>" data-type="lifeline">
2
3     <rect x="<%-(x-(headerWidth/2))%>" y="<%-(y0)%>" width="<%-headerWidth%>" height="<%-headerHeight%>" class="asdcs-diagram-lifeline-heading-box"></rect>
4
5     <text x="<%-x%>" y="<%-(headerHeight * ((rows-lines.length)/10))%>" class="asdcs-diagram-lifeline-heading-label"><%
6         for (var linesIndex = 0; linesIndex < lines.length && linesIndex < rows ; linesIndex++) {
7             %><tspan x="<%-x%>" dy="<%-(headerHeight/rows)-5%>px"><%- lines[linesIndex] %></tspan><%
8         }
9     %></text>
10
11     <rect x="<%-(x-5)%>" y="<%-(y0+headerHeight)%>" width="10" height="<%-(y1-(y0+headerHeight))%>" class="asdcs-diagram-lifeline-bg"></rect>
12
13     <path d="M<%-x%>,<%-(y0+headerHeight)%> L<%-x%>,<%-y1%>"
14           class="asdcs-diagram-lifeline-selectable"></path>
15
16     <path d="M<%-x%>,<%-(y0+headerHeight)%> L<%-x%>,<%-y1%>"
17           class="asdcs-diagram-lifeline"></path>
18
19 </g>