Skip to content

Commit 821947e

Browse files
committed
add comment for clarity
1 parent c62f833 commit 821947e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Frontend/src/components/messages/SequenceDiagram/HandlersComponent.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ const handlerItems = computed(() => {
4141
return 0;
4242
})();
4343
44+
//determine which side of the handler to render the messageType on. If it's the left side (for a right arrow) then we apply a negative offset
4445
const messageTypeOffset = handler.direction === Direction.Right ? ((messageTypeElement?.getBBox().width ?? 0) + 24) * -1 : 20;
4546
if (messageTypeOffset < 0) {
4647
store.setStartX(-1 * messageTypeOffset);

0 commit comments

Comments
 (0)