@@ -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,72 @@ 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: corner markers to verify minimap bounds
432+ Rectangle {
433+ x : 0px ;
434+ y : 0px ;
435+ width : 8px ;
436+ height : 8px ;
437+ background : lime;
438+ }
439+ Rectangle {
440+ x : root .minimap-width - 8px ;
441+ y : 0px ;
442+ width : 8px ;
443+ height : 8px ;
444+ background : yellow;
445+ }
446+ Rectangle {
447+ x : 0px ;
448+ y : root .minimap-height - 8px ;
449+ width : 8px ;
450+ height : 8px ;
451+ background : cyan;
452+ }
453+ Rectangle {
454+ x : root .minimap-width - 8px ;
455+ y : root .minimap-height - 8px ;
456+ width : 8px ;
457+ height : 8px ;
458+ background : magenta;
459+ }
460+
461+ // DEBUG: small blue rectangle at a completely different fixed position
462+ Rectangle {
463+ x : 150px ;
464+ y : 100px ;
465+ width : 50px ;
466+ height : 50px ;
467+ background : #00a0ff ;
468+ }
469+
470+ // TEMP DEBUG: overlay with actual numeric values — positioned ABOVE the minimap
471+ Rectangle {
472+ x : -260px ;
473+ y : 0px ;
474+ width : 260px ;
475+ height : 100px ;
476+ background : white;
477+ Text {
478+ x : 2px ;
479+ y : 2px ;
480+ text : "vpw=" + round(root .viewport-width / 1px ) + " vpz=" + round(root .viewport-zoom * 1000 ) / 1000
481+ + "\n scale=" + round(root .scale * 10000 ) / 10000
482+ + "\n content-w=" + round(root .content-width / 1px )
483+ + "\n content-min=" + round(root .content-min-x / 1px ) + "," + round(root .content-min-y / 1px )
484+ + "\n vis-min=" + round(root .visible-min-x / 1px ) + "," + round(root .visible-min-y / 1px )
485+ + "\n ind x=" + round(root .viewport-indicator-x / 1px ) + " w=" + round(root .viewport-indicator-width / 1px )
486+ + "\n ind y=" + round(root .viewport-indicator-y / 1px ) + " h=" + round(root .viewport-indicator-height / 1px );
487+ color : black;
488+ font-size : 11px ;
489+ }
490+ }
491+
431492 TouchArea {
432493 width : 100% ;
433494 height : 100% ;
0 commit comments