diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-11 06:49:10 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-11 06:50:11 -0300 |
| commit | 378379807fb4cd751e90808c8363caddb365bcd8 (patch) | |
| tree | f84c7d0e7cbd42a9b9c93e791ab2b5376499d23d /anim/src/loupe.zig | |
| parent | 5922ee911b9a6604f60dc83be36ba9e6c9abac98 (diff) | |
| download | computeranim-378379807fb4cd751e90808c8363caddb365bcd8.tar.gz computeranim-378379807fb4cd751e90808c8363caddb365bcd8.zip | |
canim: nothing changes in one frame; the map's space is used; the heap scene at its storyboard's length
The motion check counts a third of the one-frame changes it did: the
minimap's changes fade, and a register's value, a flag, a role, a pin's
names, a tag's note, a backtrace row, a call tree's node and a dump row
crossfade where they changed at once. What still fires is named in the
README; an encoder's keyframe and the gallery's cuts are exempt by name.
No caption stands over twelve seconds or under its reading time. The
heap scene is 78 s: what the storyboard does not narrate runs, and each
free's line cascades onto its call row (line stepping stops at a
breakpoint for that). On the map, leftover space holds the stack
continued, dumps round what the registers and the stack point at, open
loupes and the key: between 1% and 13% of a map is page, where it was 14%
to 42%.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa
Diffstat (limited to 'anim/src/loupe.zig')
| -rw-r--r-- | anim/src/loupe.zig | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/anim/src/loupe.zig b/anim/src/loupe.zig index 65a9463..4ffe860 100644 --- a/anim/src/loupe.zig +++ b/anim/src/loupe.zig @@ -69,6 +69,19 @@ pub const Loupe = struct { s.play(.{l.closing.to(1)}, .{ .seconds = time.close, .ease = anim.ease.linear }); } + /// What it opens on, by the pointer's name: for the map, where an open loupe is a panel of its own. + pub fn aim(l: *const Loupe, now: cursors.Now) ?struct { name: []const u8, target: u64 } { + const moment = now.moment(); + return switch (l.from) { + .register => |name| blk: { + const regs = (moment.regs(l.cursor.rec.tid) catch null) orelse return null; + break :blk .{ .name = name, .target = regs.named(name) orelse return null }; + }, + .field => |field| .{ .name = "its field", .target = (Recording.word(moment, field.at, 8) catch null) orelse return null }, + .row => |row| .{ .name = row.name, .target = row.fields.base }, + }; + } + /// Where it is now (in the working frame's units) and what it shows: /// null while it is shut, or where its pointer is not on screen. const Placed = struct { box: Rect, pointer: Rect, target: u64, first: u64, ink: u24 }; @@ -131,7 +144,7 @@ pub const Loupe = struct { holding[@intFromBool(deep)] = null; const opened = placed.value(l.opening) * time.open; const closed = placed.value(l.closing); - if (opened <= 0 or closed >= 1 or ui.mapping) return; + if (opened <= 0 or closed >= 1 or ui.mapping or @import("map.zig").looking(f)) return; const u: ui.Ui = .{ .f = f, .at = placed }; const now = l.cursor.now(placed); const p = l.place(u, now) orelse return; |
