|
3 | 3 | <xsl:param name="SHOWSCALE" select="''"/> |
4 | 4 | <xsl:param name="SCALEFACTOR" select="1"/> |
5 | 5 | <!-- invisible bounding rects to make it easier to click on lines --> |
6 | | - <xsl:param name="BOUNDINGRECTS" select="'yes'"/> |
| 6 | + <xsl:param name="BROWSERRENDER" select="'yes'"/> |
7 | 7 | <!-- space between lifelines --> |
8 | 8 | <xsl:variable name="HSPACING" select="/sequencediagml/parameters/hspacing/text()"/> |
9 | 9 | <!-- space between increments of t --> |
|
301 | 301 | <xsl:with-param name="RUNNINGTOTAL">0</xsl:with-param> |
302 | 302 | </xsl:call-template> |
303 | 303 | </xsl:variable> |
| 304 | + <xsl:variable name="T_DELAY"> |
| 305 | + <xsl:choose> |
| 306 | + <xsl:when test="@t_delay"> |
| 307 | + <xsl:value-of select="@t_delay"/> |
| 308 | + </xsl:when> |
| 309 | + <xsl:otherwise>0</xsl:otherwise> |
| 310 | + </xsl:choose> |
| 311 | + </xsl:variable> |
304 | 312 | <xsl:variable name="MESSAGEOFFSET"> |
305 | 313 | <xsl:choose> |
306 | 314 | <xsl:when test="@to > @from"> |
|
384 | 392 | <xsl:attribute name="x1"><xsl:value-of select="($FROMXFACTOR * $HSPACING) + $MESSAGEOFFSET"/></xsl:attribute> |
385 | 393 | <xsl:attribute name="y1"><xsl:value-of select="(@t * $VSPACING)"/></xsl:attribute> |
386 | 394 | <xsl:attribute name="x2"><xsl:value-of select="($TOXFACTOR * $HSPACING) - $MESSAGEOFFSETTO"/></xsl:attribute> |
387 | | - <xsl:attribute name="y2"><xsl:value-of select="@t * $VSPACING"/></xsl:attribute> |
| 395 | + <xsl:attribute name="y2"><xsl:value-of select="(@t + $T_DELAY) * $VSPACING"/></xsl:attribute> |
388 | 396 | <xsl:if test="@type = 'create'"> |
389 | 397 | <xsl:attribute name="style">stroke-dasharray: 5 5;</xsl:attribute> |
390 | 398 | </xsl:if> |
|
408 | 416 | </xsl:otherwise> |
409 | 417 | </xsl:choose> |
410 | 418 | </xsl:element> |
411 | | - <xsl:if test="$BOUNDINGRECTS = 'yes'"> |
412 | | - <xsl:element name="rect"> |
| 419 | + <xsl:if test="$BROWSERRENDER = 'yes'"> |
| 420 | + <!-- <xsl:element name="rect"> |
413 | 421 | <xsl:attribute name="x"><xsl:value-of select="$XBOUNDRECT"/></xsl:attribute> |
414 | 422 | <xsl:attribute name="y"><xsl:value-of select="(@t * $VSPACING) - 3.5"/></xsl:attribute> |
415 | 423 | <xsl:attribute name="width"><xsl:value-of select="$WIDTHBOUNDRECT"/></xsl:attribute> |
416 | 424 | <xsl:attribute name="height">7</xsl:attribute> |
417 | 425 | <xsl:attribute name="visibility">hidden</xsl:attribute> |
| 426 | + </xsl:element> --> |
| 427 | + <xsl:element name="line"> |
| 428 | + <xsl:attribute name="x1"><xsl:value-of select="($FROMXFACTOR * $HSPACING) + $MESSAGEOFFSET"/></xsl:attribute> |
| 429 | + <xsl:attribute name="y1"><xsl:value-of select="(@t * $VSPACING)"/></xsl:attribute> |
| 430 | + <xsl:attribute name="x2"><xsl:value-of select="($TOXFACTOR * $HSPACING) - $MESSAGEOFFSETTO"/></xsl:attribute> |
| 431 | + <xsl:attribute name="y2"><xsl:value-of select="(@t + $T_DELAY) * $VSPACING"/></xsl:attribute> |
| 432 | + <xsl:attribute name="stroke-width">10</xsl:attribute> |
| 433 | + <xsl:attribute name="visibility">hidden</xsl:attribute> |
418 | 434 | </xsl:element> |
419 | 435 | </xsl:if> |
420 | 436 |
|
|
423 | 439 | <xsl:attribute name="x1"><xsl:value-of select="($TOXFACTOR * $HSPACING) - $MESSAGEOFFSET"/></xsl:attribute> |
424 | 440 | <xsl:attribute name="y1"><xsl:value-of select="response/@t * $VSPACING"/></xsl:attribute> |
425 | 441 | <xsl:attribute name="x2"><xsl:value-of select="($FROMXFACTOR * $HSPACING) + $MESSAGEOFFSET"/></xsl:attribute> |
426 | | - <xsl:attribute name="y2"><xsl:value-of select="response/@t * $VSPACING"/></xsl:attribute> |
| 442 | + <xsl:attribute name="y2"><xsl:value-of select="(response/@t + $T_DELAY) * $VSPACING"/></xsl:attribute> |
427 | 443 | <xsl:attribute name="style">stroke-dasharray: 5 5;</xsl:attribute> |
428 | 444 | <xsl:attribute name="marker-end"><xsl:value-of select="$ARROWTYPE"/></xsl:attribute> |
429 | 445 | </xsl:element> |
|
445 | 461 | </xsl:otherwise> |
446 | 462 | </xsl:choose> |
447 | 463 | </xsl:element> |
448 | | - <xsl:if test="$BOUNDINGRECTS = 'yes'"> |
449 | | - <xsl:element name="rect"> |
| 464 | + <xsl:if test="$BROWSERRENDER = 'yes'"> |
| 465 | + <!--<xsl:element name="rect"> |
450 | 466 | <xsl:attribute name="x"><xsl:value-of select="$XBOUNDRECT"/></xsl:attribute> |
451 | 467 | <xsl:attribute name="y"><xsl:value-of select="(response/@t * $VSPACING) - 3.5"/></xsl:attribute> |
452 | 468 | <xsl:attribute name="width"><xsl:value-of select="$WIDTHBOUNDRECT"/></xsl:attribute> |
453 | | - <xsl:attribute name="height">7</xsl:attribute> |
| 469 | + <xsl:attribute name="height">10</xsl:attribute> |
| 470 | + <xsl:attribute name="visibility">hidden</xsl:attribute> |
| 471 | + </xsl:element> --> |
| 472 | + <xsl:element name="line"> |
| 473 | + <xsl:attribute name="x1"><xsl:value-of select="($FROMXFACTOR * $HSPACING) + $MESSAGEOFFSET"/></xsl:attribute> |
| 474 | + <xsl:attribute name="y1"><xsl:value-of select="(response/@t * $VSPACING)"/></xsl:attribute> |
| 475 | + <xsl:attribute name="x2"><xsl:value-of select="($TOXFACTOR * $HSPACING) - $MESSAGEOFFSETTO"/></xsl:attribute> |
| 476 | + <xsl:attribute name="y2"><xsl:value-of select="(response/@t + $T_DELAY) * $VSPACING"/></xsl:attribute> |
| 477 | + <xsl:attribute name="stroke-width">10</xsl:attribute> |
454 | 478 | <xsl:attribute name="visibility">hidden</xsl:attribute> |
455 | 479 | </xsl:element> |
456 | 480 | </xsl:if> |
|
0 commit comments