@@ -328,7 +328,7 @@ export component Minimap inherits Rectangle {
328328 // === Styling ===
329329 in property <length > minimap-width : 200px ;
330330 in property <length > minimap-height : 150px ;
331- in property <color > minimap-background-color : #1a1a1aee ;
331+ in property <color > minimap-background-color : #1a1a1aff ;
332332 in property <color > minimap-node-color : #4a4a4a ;
333333 in property <color > minimap-viewport-border-color : #ffffff ;
334334 in property <length > minimap-viewport-border-width : 2px ;
@@ -374,10 +374,10 @@ export component Minimap inherits Rectangle {
374374 root .available-height / root .content-height);
375375
376376 // === Viewport Indicator in Minimap Coordinates ===
377- property <length > viewport-indicator-x : root .minimap-padding + (root .visible-min-x - root .content-min-x) * root .scale;
378- property <length > viewport-indicator-y : root .minimap-padding + (root .visible-min-y - root .content-min-y) * root .scale;
379- property <length > viewport-indicator-width : (root .visible-max-x - root .visible-min-x) * root .scale;
380- property <length > viewport-indicator-height : (root .visible-max-y - root .visible-min-y) * root .scale;
377+ out property <length > viewport-indicator-x : root .minimap-padding + (root .visible-min-x - root .content-min-x) * root .scale;
378+ out property <length > viewport-indicator-y : root .minimap-padding + (root .visible-min-y - root .content-min-y) * root .scale;
379+ out property <length > viewport-indicator-width : (root .visible-max-x - root .visible-min-x) * root .scale;
380+ out property <length > viewport-indicator-height : (root .visible-max-y - root .visible-min-y) * root .scale;
381381
382382 width : root .minimap-width;
383383 height : root .minimap-height;
@@ -423,11 +423,74 @@ export component Minimap inherits Rectangle {
423423 y : root .viewport-indicator-y;
424424 width : root .viewport-indicator-width;
425425 height : root .viewport-indicator-height;
426- background : transparent ;
427- border-color : root .minimap-viewport-border-color ;
426+ background : #ff000055 ;
427+ border-color : red ;
428428 border-width : root .minimap-viewport-border-width;
429429 }
430430
431+ // DEBUG: rectangle with literal values matching the reported ind x=65 w=322 y=38 h=181
432+ Rectangle {
433+ x : 65px ;
434+ y : 38px ;
435+ width : 322px ;
436+ height : 181px ;
437+ background : transparent;
438+ border-color : blue;
439+ border-width : 2px ;
440+ }
441+
442+ // DEBUG: corner markers to verify minimap bounds
443+ Rectangle {
444+ x : 0px ;
445+ y : 0px ;
446+ width : 8px ;
447+ height : 8px ;
448+ background : lime;
449+ }
450+ Rectangle {
451+ x : root .minimap-width - 8px ;
452+ y : 0px ;
453+ width : 8px ;
454+ height : 8px ;
455+ background : yellow;
456+ }
457+ Rectangle {
458+ x : 0px ;
459+ y : root .minimap-height - 8px ;
460+ width : 8px ;
461+ height : 8px ;
462+ background : cyan;
463+ }
464+ Rectangle {
465+ x : root .minimap-width - 8px ;
466+ y : root .minimap-height - 8px ;
467+ width : 8px ;
468+ height : 8px ;
469+ background : magenta;
470+ }
471+
472+ // TEMP DEBUG: overlay with actual numeric values — positioned ABOVE the minimap
473+ Rectangle {
474+ x : -260px ;
475+ y : 0px ;
476+ width : 260px ;
477+ height : 100px ;
478+ background : white;
479+ Text {
480+ x : 2px ;
481+ y : 2px ;
482+ text : "vpw=" + round(root .viewport-width / 1px ) + " vpz=" + round(root .viewport-zoom * 1000 ) / 1000
483+ + "\n scale=" + round(root .scale * 10000 ) / 10000
484+ + "\n content-w=" + round(root .content-width / 1px )
485+ + "\n content-min=" + round(root .content-min-x / 1px ) + "," + round(root .content-min-y / 1px )
486+ + "\n vis-min=" + round(root .visible-min-x / 1px ) + "," + round(root .visible-min-y / 1px )
487+ + "\n ind x=" + round(root .viewport-indicator-x / 1px ) + " w=" + round(root .viewport-indicator-width / 1px )
488+ + "\n ind y=" + round(root .viewport-indicator-y / 1px ) + " h=" + round(root .viewport-indicator-height / 1px );
489+ color : black;
490+ font-size : 11px ;
491+ }
492+ }
493+
431494 TouchArea {
432495 width : 100% ;
433496 height : 100% ;
0 commit comments