@diagrammo/dgmo 0.2.19 → 0.2.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -275,6 +275,7 @@ function renderDatabaseParticipant(
275
275
 
276
276
  // Filled body (no stroke) to hide the top arc of the bottom ellipse
277
277
  g.append('rect')
278
+ .attr('class', 'participant-body')
278
279
  .attr('x', -W / 2)
279
280
  .attr('y', topY)
280
281
  .attr('width', W)
@@ -333,6 +334,7 @@ function renderQueueParticipant(
333
334
 
334
335
  // Body rect (no stroke) to hide left arc of right ellipse
335
336
  g.append('rect')
337
+ .attr('class', 'participant-body')
336
338
  .attr('x', leftX)
337
339
  .attr('y', 0)
338
340
  .attr('width', bodyW)
@@ -380,6 +382,7 @@ function renderCacheParticipant(
380
382
  const s = stroke(palette);
381
383
  const dash = '4 3';
382
384
 
385
+ // Bottom ellipse (back face)
383
386
  g.append('ellipse')
384
387
  .attr('cx', 0)
385
388
  .attr('cy', topY + bodyH)
@@ -391,6 +394,7 @@ function renderCacheParticipant(
391
394
  .attr('stroke-dasharray', dash);
392
395
 
393
396
  g.append('rect')
397
+ .attr('class', 'participant-body')
394
398
  .attr('x', -W / 2)
395
399
  .attr('y', topY)
396
400
  .attr('width', W)
@@ -415,6 +419,7 @@ function renderCacheParticipant(
415
419
  .attr('stroke-width', SW)
416
420
  .attr('stroke-dasharray', dash);
417
421
 
422
+ // Top ellipse cap
418
423
  g.append('ellipse')
419
424
  .attr('cx', 0)
420
425
  .attr('cy', topY)
@@ -1728,6 +1733,7 @@ export function renderSequenceDiagram(
1728
1733
  .attr('stroke-opacity', 0.5)
1729
1734
  .attr('data-participant-id', act.participantId)
1730
1735
  .attr('data-msg-lines', coveredLines.join(','))
1736
+ .attr('data-line-number', coveredLines[0] ?? '')
1731
1737
  .attr('class', 'activation');
1732
1738
  });
1733
1739