Skip to content

Commit 72eb900

Browse files
committed
TEMP: minimap debug overlay
1 parent a8f2c97 commit 72eb900

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

node-editor-building-blocks.slint

Lines changed: 6 additions & 6 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;
@@ -423,8 +423,8 @@ 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

0 commit comments

Comments
 (0)