File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -224,9 +224,9 @@ const configTheme = computed(() => ({
224224 <template #tooltip-node="{ node }">
225225 {{ node }}
226226 </template> -->
227- <!-- <template #free-node-label="{ node }">
227+ <!-- <template #free-node-label="{ node, orientation }">
228228 <text :x="node.x" text-anchor="middle" :y="node.y + node.height" fill="red">
229- {{ node.label }}
229+ {{ orientation }}
230230 </text>
231231 </template> -->
232232 </LocalVueUiDag >
Original file line number Diff line number Diff line change @@ -979,7 +979,7 @@ defineExpose({
979979 : fill= " node.original.color"
980980 : font- weight= " FINAL_CONFIG.style.chart.nodes.labels.bold ? 'bold' : 'normal'"
981981 >
982- < slot name= " node-label" v- bind= " { node }" >
982+ < slot name= " node-label" v- bind= " { node, orientation: direction }" >
983983 {{ node .label }}
984984 < / slot>
985985 < / text>
@@ -1005,9 +1005,9 @@ defineExpose({
10051005 })"
10061006 / >
10071007 < / template>
1008-
1008+
10091009 < g v- if = " $slots['free-node-label']" >
1010- < slot name= " free-node-label" v- bind= " { node, layoutData }" / >
1010+ < slot name= " free-node-label" v- bind= " { node, layoutData, orientation: direction }" / >
10111011 < / g>
10121012
10131013 <!-- Full ` node` slot to customize the node entirely using a div -->
@@ -1018,7 +1018,7 @@ defineExpose({
10181018 : width= " node.width"
10191019 : height= " node.height"
10201020 >
1021- < slot name= " node" v- bind= " { node }" / >
1021+ < slot name= " node" v- bind= " { node, orientation: direction }" / >
10221022 < / foreignObject>
10231023 < / g>
10241024 < / g>
@@ -1043,7 +1043,8 @@ defineExpose({
10431043
10441044 < slot name= " svg" : svg= " {
10451045 drawingArea: panZoomViewBox,
1046- data: layoutData
1046+ data: layoutData,
1047+ orientation: direction
10471048 }" / >
10481049 < / svg>
10491050
You can’t perform that action at this time.
0 commit comments