Skip to content

Commit 081b5bf

Browse files
committed
TEMP: minimap debug overlay
1 parent a8f2c97 commit 081b5bf

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

node-editor-building-blocks.slint

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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;
@@ -428,6 +428,15 @@ export component Minimap inherits Rectangle {
428428
border-width: root.minimap-viewport-border-width;
429429
}
430430

431+
// TEMP DEBUG: fixed-position orange rectangle — must be visible regardless of state
432+
Rectangle {
433+
x: 20px;
434+
y: 20px;
435+
width: 40px;
436+
height: 30px;
437+
background: orange;
438+
}
439+
431440
TouchArea {
432441
width: 100%;
433442
height: 100%;

0 commit comments

Comments
 (0)