@@ -196,7 +196,7 @@ watch(() => props.config, (_newCfg) => {
196196 titleStep .value += 1 ;
197197 direction .value = FINAL_CONFIG .value .style .chart .layout .rankDirection ;
198198 panZoomActive .value = FINAL_CONFIG .value .style .chart .zoom .active ;
199- });
199+ }, { deep : true } );
200200
201201const { isPrinting , isImaging , generatePdf , generateImage } = usePrinter ({
202202 elementId: ` dag_${ uid .value } ` ,
@@ -740,7 +740,7 @@ defineExpose({
740740 < / div>
741741
742742 < BaseZoomControls
743- v- if = " FINAL_CONFIG.style.chart.controls.position === 'top' && !loading"
743+ v- if = " FINAL_CONFIG.style.chart.controls.position === 'top' && !loading && FINAL_CONFIG.style.chart.controls.show "
744744 : config= " FINAL_CONFIG"
745745 : scale= " scale"
746746 : isFullscreen= " isFullscreen"
@@ -858,8 +858,7 @@ defineExpose({
858858 < text
859859 v- if = " $slots['node-label']"
860860 : x= " node.x"
861- : y= " node.y"
862- dominant- baseline= " middle"
861+ : y= " node.y + FINAL_CONFIG.style.chart.nodes.labels.fontSize / 3"
863862 text- anchor= " middle"
864863 : font- size= " FINAL_CONFIG.style.chart.nodes.labels.fontSize"
865864 : fill= " node.original.color"
@@ -875,8 +874,7 @@ defineExpose({
875874 data- cy- node- label
876875 v- else
877876 : x= " node.x"
878- : y= " node.y"
879- dominant- baseline= " middle"
877+ : y= " node.y + FINAL_CONFIG.style.chart.nodes.labels.fontSize / 3"
880878 text- anchor= " middle"
881879 : font- size= " FINAL_CONFIG.style.chart.nodes.labels.fontSize"
882880 : fill= " node.original.color"
@@ -930,6 +928,10 @@ defineExpose({
930928 }" / >
931929 < / svg>
932930
931+ < div v- if = " $slots.watermark" class = " vue-data-ui-watermark" >
932+ < slot name= " watermark" v- bind= " { isPrinting: isPrinting || isImaging }" / >
933+ < / div>
934+
933935 <!-- Midpoint tooltip -->
934936 < Transition name= " fade" >
935937 < Teleport : to= " isFullscreen ? dagChart : 'body'" v- if = " isTooltip" >
@@ -980,7 +982,7 @@ defineExpose({
980982 < / Transition>
981983
982984 < BaseZoomControls
983- v- if = " FINAL_CONFIG.style.chart.controls.position === 'bottom' && !loading"
985+ v- if = " FINAL_CONFIG.style.chart.controls.position === 'bottom' && !loading && FINAL_CONFIG.style.chart.controls.show "
984986 : config= " FINAL_CONFIG"
985987 : scale= " scale"
986988 : isFullscreen= " isFullscreen"
0 commit comments