@@ -407,7 +407,7 @@ const createDiagram = () => {
407
407
408
408
const width = diagramContainer .value .clientWidth
409
409
const height = 1200 // Further increased height for better vertical spacing
410
- const cardWidth = 310 // Card width defined here for consistent reference
410
+ const cardWidth = 356
411
411
412
412
// Clear existing visualization
413
413
d3 .select (diagramContainer .value ).selectAll (' *' ).remove ()
@@ -507,7 +507,7 @@ const createDiagram = () => {
507
507
' subscriberEmail' : { x: width * 0.8 , y: 800 },
508
508
509
509
// Fourth row - better distributed with more horizontal spacing
510
- ' deployment' : { x: width * 0.1 , y: 1100 },
510
+ ' deployment' : { x: width * 0.05 , y: 1100 },
511
511
' release' : { x: width * 0.35 , y: 1100 },
512
512
' orderItem' : { x: width * 0.65 , y: 1100 }
513
513
}
@@ -671,6 +671,7 @@ const createDiagram = () => {
671
671
.attr (' dominant-baseline' , ' middle' ) // Improved vertical alignment
672
672
.attr (' fill' , prop .name === ' id' ? ' #FCD34D' : ' #E5E7EB' )
673
673
.attr (' font-size' , ' 14px' )
674
+ .attr (' font-family' , ' monospace' )
674
675
.text (prop .name )
675
676
676
677
// Property type
@@ -681,6 +682,7 @@ const createDiagram = () => {
681
682
.attr (' text-anchor' , ' end' )
682
683
.attr (' fill' , ' #9CA3AF' )
683
684
.attr (' font-size' , ' 14px' )
685
+ .attr (' font-family' , ' monospace' )
684
686
.text (prop .type )
685
687
686
688
// Nullable indicator - improved spacing from edge
@@ -691,6 +693,7 @@ const createDiagram = () => {
691
693
.attr (' text-anchor' , ' middle' )
692
694
.attr (' fill' , prop .nullable ? ' #EF4444' : ' #10B981' )
693
695
.attr (' font-size' , ' 14px' )
696
+ .attr (' font-family' , ' monospace' )
694
697
.text (prop .nullable ? ' N' : ' U' )
695
698
})
696
699
@@ -748,6 +751,7 @@ const createDiagram = () => {
748
751
.attr (' fill' , bgColor )
749
752
.attr (' font-size' , ' 16px' )
750
753
.attr (' font-weight' , ' bold' )
754
+ .attr (' font-family' , ' monospace' )
751
755
.text (rel .type + ' :' )
752
756
753
757
// Related model - improved vertical alignment
@@ -758,6 +762,7 @@ const createDiagram = () => {
758
762
.attr (' fill' , ' #FFFFFF' )
759
763
.attr (' font-size' , ' 16px' )
760
764
.attr (' font-weight' , ' medium' )
765
+ .attr (' font-family' , ' monospace' )
761
766
.text (rel .model )
762
767
})
763
768
}
0 commit comments