You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* selection of messages and navigation to selection
* fix rect size error
* keep endpoints visible during scroll
* fix sequence model creator when first message is not included
* handle handler state not being known due to missing incoming message
* switch to using full type name for internal identification of handlers/routes
* scroll to selected element on tab load/activate
Copy file name to clipboardExpand all lines: src/Frontend/src/components/messages2/SequenceDiagram/EndpointsComponent.vue
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,10 @@ interface EndpointSurround {
25
25
const Endpoint_Gap =30;
26
26
const Endpoint_Image_Width =20;
27
27
28
+
defineProps<{
29
+
yOffset:number;
30
+
}>();
31
+
28
32
const store =useSequenceDiagramStore();
29
33
const { startX, endpoints } =storeToRefs(store);
30
34
@@ -79,7 +83,7 @@ function setEndpointTextRef(el: SVGTextElement, index: number) {
79
83
</script>
80
84
81
85
<template>
82
-
<gv-for="(endpoint, i) in endpointItems":key="endpoint.name"transform="translate(0,15)":ref="(el) => (endpoint.uiRef = el as SVGElement)">
86
+
<gv-for="(endpoint, i) in endpointItems":key="endpoint.name":transform="`translate(0,${yOffset + 15})`":ref="(el) => (endpoint.uiRef = el as SVGElement)">
<gv-for="(handler, i) in handlerItems":key="`${handler.id}###${handler.endpointName}`":transform="`translate(${handler.left}, ${handler.y})`">
103
+
<gv-for="(handler, i) in handlerItems":key="`${handler.id}###${handler.endpointName}`":ref="(el) => scrollToIfSelected(el as SVGElement, handler.incomingId)":transform="`translate(${handler.left}, ${handler.y})`">
83
104
<!--Handler Activation Box-->
84
-
<g:ref="(el) => handler.setUIRef(el as SVGElement)">
0 commit comments