summaryrefslogtreecommitdiff
path: root/anim/src/ties.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-11 06:49:10 -0300
committerGabriel Schneider <[email protected]>2026-11-11 06:50:11 -0300
commit378379807fb4cd751e90808c8363caddb365bcd8 (patch)
treef84c7d0e7cbd42a9b9c93e791ab2b5376499d23d /anim/src/ties.zig
parent5922ee911b9a6604f60dc83be36ba9e6c9abac98 (diff)
downloadcomputeranim-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/ties.zig')
-rw-r--r--anim/src/ties.zig9
1 files changed, 7 insertions, 2 deletions
diff --git a/anim/src/ties.zig b/anim/src/ties.zig
index d3a9ec7..e25c34b 100644
--- a/anim/src/ties.zig
+++ b/anim/src/ties.zig
@@ -139,7 +139,11 @@ pub fn pinShows(now: cursors.Now, i: usize, target: enum { slot, node }) struct
if (now.registerAge(i) != 0) return .{ .old = 1, .new = 1 };
if (now.resting()) return .{ .old = 0, .new = 1 };
const since = linkSince(now, i);
- if (!now.walking()) return if (since >= 0) .{ .old = 0, .new = 1 } else .{ .old = 1, .new = 0 };
+ // At a run the pin changes with the run's ease (8 f), never in a frame.
+ if (!now.walking()) {
+ const p = std.math.clamp(since / time.run_ease, 0, 1);
+ return .{ .old = 1 - p, .new = p };
+ }
const l = time.link;
const arrives = l.after + linkTime(if (target == .slot) .slot else .node);
return .{
@@ -180,8 +184,9 @@ pub const Ties = struct {
defer stack_window = null;
defer thread_waits = false;
const now = g.cursor.now(at);
- // Diving or surfacing, the panels are on their way: no ties.
+ // Diving or surfacing, the panels are on their way: no ties; nor while the map alone is looked at.
for (@import("context.zig").zoomed) |z| if (z != null) return;
+ if (@import("map.zig").looking(f)) return;
// In canvas pixels, `k` of them a unit: places come from panels anywhere.
var raw: ui.Ui = .{ .f = f, .at = at };
raw.at.xf = .identity;