forget_pictures cleared the queue and the cache under two separate locks, and the worker read the cache's clear count only after it had taken a batch from the queue. A batch taken before the queue was cleared could therefore read the count after the cache was cleared, and its pictures of the forgotten document were kept. The cache is now cleared while the queue is held, and the worker reads the count while it still holds the queue, so a batch taken before a clear always sees the older count.
import_package returned an empty folder for a bare "walk.xfl", which
same_file can't resolve, so reopening it imported the package a second
time. It now returns ".", which Import::of and the tab lookup both resolve.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolves the Cargo.toml conflict by keeping both new workspace
dependencies: craft-cfb (this branch) and craft-text (main).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-ups (ADR 0009 note):
* A bare relative "walk.xfl" has an empty package folder: it resolves as
".", so Save suggests an .anicraft beside the folder, not inside it.
* When the opened path has no name of its own ("walk/sub/.."), the tab and
window title use the package folder's name instead of "Untitled".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The stage tells the render service which picture set is on screen, drops the
textures of other sets when the view is whole, asks for nothing while the zoom
is changing, and in the browser draws for at most 8 ms of a frame while moving
around. ADR 0132, changelog, roadmap. #314, #477, P-004.
Pictures belong to a set (a document state at a scale); the cache keeps the set
shown and the one before. Visible tiles are drawn before look-ahead, and with no
render thread a view fills in within a time budget per frame. #314, #477, P-004.
layer.select takes add: toggle | range (Ctrl- and Shift-click, #512). The
selection is session state and counts only while it holds the active layer.
layer.move and layer.delete act on it (or on layers: [ids]) in one undo step,
all or none; layer.new_folder puts several selected layers into the folder.
layer.toggle_mask locks the mask it makes, as the SVG importer does and as
Animate leaves it, so the result shows without the mask's edge (#429).
In a field while a movie plays, Left and Right move the caret by where text is displayed,
crossing lines by the paragraph's direction, and a selection across a change of direction is
highlighted in its separate stretches. text.create and text.edit return a note naming the
families letters were borrowed from and how many characters no installed font has; the stage
shows it in the status bar. craft-text is pinned to the craft-libs commit the app already
uses. ADR 0130, the guide, the roadmap and the parity matrix say what is done and what is
left; outside PRs #39 and #40 are credited.
Review follow-ups (ADR 0009 note):
* A package reached through "." or ".." is resolved before its name and
Save suggestion are taken, so the suggestion lands beside the folder,
not inside it as animation.anicraft.
* Only a regular file named *.xfl stands for the XFL folder around it; a
folder named inner.xfl is a package of its own.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-ups on the import name (ADR 0009 note):
* Session::imported is an `Import` {source, package, save_as}, fixed at
import time: removing an XFL package's DOMDocument.xml afterwards no
longer moves the Save suggestion inside the folder.
* Duplicate-tab lookup compares packages (`import_package`), so an XFL
folder and the .xfl in it are one document and share a tab.
* In a browser an import isn't matched by path: an upload is known only by
its name, and two different files may share one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review: membership went through a Vec, so a keyframe with many selected
elements cost elements × selected; it now asks the selection's own set.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"." on the last frame went round to the first, and "," on the first to
the last. They now stay there, as the timeline's arrow keys already did,
and Next no longer pulls a playhead that is past the last frame back.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>