File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929
3030 var currentPlaceholder = null ;
3131 var currentHost = null ;
32- var scale = 1 ;
32+ var scale = 1.5 ;
3333 var panX = 0 ;
3434 var panY = 0 ;
3535
5151
5252 currentPlaceholder = null ;
5353 currentHost = null ;
54- scale = 1 ;
54+ scale = 1.5 ;
5555 panX = 0 ;
5656 panY = 0 ;
5757
9090
9191 requestAnimationFrame ( function ( ) {
9292 parts . overlay . classList . add ( "mermaid-zoom-visible" ) ;
93+ applyTransform ( ) ;
9394 } ) ;
9495
9596 parts . closeBtn . addEventListener ( "click" , closeOverlay ) ;
Original file line number Diff line number Diff line change 6262.mermaid-zoom-container svg {
6363 max-width : none;
6464 max-height : none;
65+ shape-rendering : geometricPrecision;
66+ text-rendering : optimizeLegibility;
67+ }
68+
69+ /* Improve SVG readability in zoom overlay */
70+ .mermaid-zoom-container .mermaid {
71+ background : # fff ;
72+ border-radius : 8px ;
73+ padding : 1rem ;
74+ box-shadow : 0 4px 24px rgba (0 , 0 , 0 , 0.3 );
75+ }
76+
77+ /* Ensure text and colors render crisply */
78+ .mermaid-zoom-container svg text {
79+ -webkit-font-smoothing : antialiased;
80+ -moz-osx-font-smoothing : grayscale;
81+ }
82+
83+ .mermaid-zoom-container svg * {
84+ vector-effect : non-scaling-stroke;
6585}
6686
6787.mermaid {
You can’t perform that action at this time.
0 commit comments