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
change endpoint name to html element so that long names can wrap (#2376)
* change endpoint name to html element so that long names can wrap
* change to use background-image since safari doesn't seem to support correct positioning of mask-image
* removing filter since it also doesn't work in safari in the foreignObject
* add occusion on top of endpoint names
* fix start height if start element isn't tallest
* fix height issue introduced by toolbar change on master
function setEndpointTextRef(el:SVGTextElement, index:number) {
52
+
function setEndpointTextRef(el:Element, index:number) {
81
53
if (el) epTextRefs.value[index] =el;
82
54
}
83
55
</script>
84
56
85
57
<template>
86
-
<gv-for="(endpoint, i) in endpointItems":key="endpoint.name":transform="`translate(0,${yOffset + 15})`":ref="(el) => (endpoint.uiRef = el as SVGElement)">
87
-
<rect
88
-
v-if="endpoint.surround"
89
-
:x="endpoint.surround.x"
90
-
:y="endpoint.surround.y"
91
-
:width="endpoint.surround.width"
92
-
:height="endpoint.surround.height"
93
-
:fill="endpoint.surround.fill"
94
-
:rx="endpoint.surround.rx"
95
-
:stroke-width="endpoint.surround.strokeWidth"
96
-
:stroke="endpoint.surround.stroke"
97
-
></rect>
58
+
<!-- occlusion for top of diagram so that elements don't show above the endpoint names when scrolling -->
0 commit comments