From 378379807fb4cd751e90808c8363caddb365bcd8 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 11 Nov 2026 06:49:10 -0300 Subject: 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 Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa --- anim/src/loupe.zig | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'anim/src/loupe.zig') 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; -- cgit v1.3