change all occurences of node number to "sequence number"

This commit is contained in:
Bland, Paul
2018-08-16 16:53:30 -04:00
parent fb79b133e9
commit 47bad33949
7 changed files with 13 additions and 13 deletions

View File

@@ -264,13 +264,13 @@ const drawMessage = function (elem, startx, stopx, verticalPos, msg, nodeIndex)
// add node number // add node number
if (conf.showSequenceNumbers) { if (conf.showSequenceNumbers) {
line.attr('marker-start', 'url(' + url + '#nodenumber)') line.attr('marker-start', 'url(' + url + '#sequencenumber)')
g.append('text') g.append('text')
.attr('x', startx - 4) .attr('x', startx - 4)
.attr('y', verticalPos + 5) .attr('y', verticalPos + 5)
.attr('font-family', 'sans-serif') .attr('font-family', 'sans-serif')
.attr('font-size', '16px') .attr('font-size', '16px')
.attr('class', 'nodeNumber') .attr('class', 'sequenceNumber')
.text(nodeIndex + 1) .text(nodeIndex + 1)
} }
} }
@@ -345,7 +345,7 @@ export const draw = function (text, id) {
// The arrow head definition is attached to the svg once // The arrow head definition is attached to the svg once
svgDraw.insertArrowHead(diagram) svgDraw.insertArrowHead(diagram)
svgDraw.insertArrowCrossHead(diagram) svgDraw.insertArrowCrossHead(diagram)
svgDraw.insertNodeNumber(diagram) svgDraw.insertSequenceNumber(diagram)
function activeEnd (msg, verticalPos) { function activeEnd (msg, verticalPos) {
const activationData = bounds.endActivation(msg) const activationData = bounds.endActivation(msg)

View File

@@ -184,9 +184,9 @@ export const insertArrowHead = function (elem) {
/** /**
* Setup node number. The result is appended to the svg. * Setup node number. The result is appended to the svg.
*/ */
export const insertNodeNumber = function (elem) { export const insertSequenceNumber = function (elem) {
elem.append('defs').append('marker') elem.append('defs').append('marker')
.attr('id', 'nodenumber') .attr('id', 'sequencenumber')
.attr('refX', 15) .attr('refX', 15)
.attr('refY', 15) .attr('refY', 15)
.attr('markerWidth', 60) .attr('markerWidth', 60)
@@ -324,7 +324,7 @@ export default {
drawActivation, drawActivation,
drawLoop, drawLoop,
insertArrowHead, insertArrowHead,
insertNodeNumber, insertSequencNumber,
insertArrowCrossHead, insertArrowCrossHead,
getTextObj, getTextObj,
getNoteRect getNoteRect

View File

@@ -30,7 +30,7 @@ $labelBoxBorderColor: $actorBorder;
$labelTextColor: $mainContrastColor; $labelTextColor: $mainContrastColor;
$noteBorderColor: $border2; $noteBorderColor: $border2;
$noteBkgColor: #fff5ad; $noteBkgColor: #fff5ad;
$nodeNumberColor: white; $sequenceNumberColor: white;
/* Gantt chart variables */ /* Gantt chart variables */

View File

@@ -28,7 +28,7 @@ $labelBoxBorderColor: $actorBorder;
$labelTextColor: $actorTextColor; $labelTextColor: $actorTextColor;
$noteBorderColor: $border2; $noteBorderColor: $border2;
$noteBkgColor: #fff5ad; $noteBkgColor: #fff5ad;
$nodeNumberColor: white; $sequencNumberColor: white;
/* Gantt chart variables */ /* Gantt chart variables */

View File

@@ -29,7 +29,7 @@ $labelBoxBorderColor: #326932;
$labelTextColor: $actorTextColor; $labelTextColor: $actorTextColor;
$noteBorderColor: $border2; $noteBorderColor: $border2;
$noteBkgColor: #fff5ad; $noteBkgColor: #fff5ad;
$nodeNumberColor: white; $sequencNumberColor: white;
/* Gantt chart variables */ /* Gantt chart variables */

View File

@@ -33,7 +33,7 @@ $labelBoxBorderColor: $actorBorder;
$labelTextColor: white; $labelTextColor: white;
$noteBorderColor: darken($note, 60%); $noteBorderColor: darken($note, 60%);
$noteBkgColor: $note; $noteBkgColor: $note;
$nodeNumberColor: white; $sequencNumberColor: white;
/* Gantt chart variables */ /* Gantt chart variables */

View File

@@ -29,11 +29,11 @@ text.actor {
fill: $signalColor; fill: $signalColor;
} }
.nodeNumber { .sequencNumber {
fill: $nodeNumberColor; fill: $sequencNumberColor;
} }
#nodenumber { #sequencnumber {
fill: $signalColor; fill: $signalColor;
} }