@@ -149,14 +149,16 @@ test("Nodes 2.0 output pills follow the measured DOM slot centers", () => {
149149 try {
150150 const controller = createController ( ) ;
151151 controller . isVueNodesMode = ( ) => true ;
152- controller . _vueCompatOutputSlotCenters = [ 12 , 35 , 58 , 81 , 104 ] ;
152+ controller . _vueCompatOutputSlotCenters = [ 8 , 31 , 54 , 77 , 100 ] ;
153153 const ctx = createCanvasContext ( ) ;
154154 controller . drawOutputValues ( ctx ) ;
155155
156- assert . equal ( ctx . rectangles [ 0 ] . y + ctx . rectangles [ 0 ] . h / 2 , 12 ) ;
157- assert . equal ( ctx . rectangles [ 1 ] . y + ctx . rectangles [ 1 ] . h / 2 , 35 ) ;
158- assert . equal ( ctx . rectangles [ 2 ] . y + ctx . rectangles [ 2 ] . h / 2 , 81 ) ;
159- assert . equal ( ctx . text . find ( entry => entry . value === "LAT" ) ?. y , 104 ) ;
156+ assert . equal ( ctx . rectangles [ 0 ] . y , 1 ) ;
157+ assert . equal ( ctx . rectangles [ 0 ] . h , 14 ) ;
158+ assert . equal ( ctx . rectangles [ 0 ] . y + ctx . rectangles [ 0 ] . h / 2 , 8 ) ;
159+ assert . equal ( ctx . rectangles [ 1 ] . y + ctx . rectangles [ 1 ] . h / 2 , 31 ) ;
160+ assert . equal ( ctx . rectangles [ 2 ] . y + ctx . rectangles [ 2 ] . h / 2 , 77 ) ;
161+ assert . equal ( ctx . text . find ( entry => entry . value === "LAT" ) ?. y , 100 ) ;
160162 } finally {
161163 globalThis . LiteGraph = originalLiteGraph ;
162164 }
0 commit comments