@@ -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,30 @@ 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+ // TEMP DEBUG: overlay with actual numeric values
432+ Rectangle {
433+ x : 0px ;
434+ y : root .minimap-height + 4px ;
435+ width : 260px ;
436+ height : 80px ;
437+ background : white;
438+ Text {
439+ x : 2px ;
440+ y : 2px ;
441+ text : "vpw=" + round(root .viewport-width / 1px ) + " vpz=" + round(root .viewport-zoom * 1000 ) / 1000
442+ + "\n scale=" + round(root .scale * 10000 ) / 10000
443+ + "\n content-w=" + round(root .content-width / 1px )
444+ + "\n ind-x=" + round(root .viewport-indicator-x / 1px ) + " w=" + round(root .viewport-indicator-width / 1px );
445+ color : black;
446+ font-size : 12px ;
447+ }
448+ }
449+
431450 TouchArea {
432451 width : 100% ;
433452 height : 100% ;
0 commit comments