Commit Graph
5619 Commits
Author SHA1 Message Date
aiongg cdb179df0b Menus taller than their room scroll by strips and the wheel; side overlays open upward
Scroll gets a strip indicator: arrows above and below the view that scroll while
the pointer rests on them, taking height from the view and never width. Menu and
inline menus use it, so every menu layer, the menu bar's included, scrolls in the
room it has. overlay::place opens a side overlay that runs past the bounds the
other way when it fits there, so a tall submenu of a low row opens upward.
2026-11-12 22:46:05 +00:00
aiongg d3dedf55cb docs: contract-api and components-index regenerated 2026-11-12 22:40:25 +00:00
aiongg 7fd2b260db ui-contract: the host's tool gesture holds only beside a modal body that keeps the canvas
The registry keeps the dialog's part and the host's part apart: the
host's gestures join the reach only while a modal body keeps the same
canvas, whatever order the two are made in, so a modal that keeps
nothing (an alert) leaves the canvas blocked. Trials: the host's gesture
lapses when the dialog stops keeping the canvas; under a dialog that
keeps nothing it passes no press and no wheel.

Also: the BlockingOverlay story's drive opens it; rows.rs doc wrapped;
api-map TonePickerRow note names pass_canvas_gesture.
2026-11-12 22:38:11 +00:00
aiongg 13da403b9b ui-contract: only the canvas host passes a tool gesture outside a modal body
A control's registration belongs to the modal whose body makes it and
is dropped outside every modal body, so a picker armed in a panel passes
no press under a modal that opens later. The canvas's host passes its
running tool's gestures with runtime::sampler::pass_tool_gesture, which
belongs to the top modal. Trials: a panel picker passes nothing under a
dialog; the host's tool gesture passes and lapses with the dialog.
2026-11-12 22:38:11 +00:00
aiongg 1108d3e032 ui-panels: dialog stories start closed behind a button that opens the dialog
The Dialog and BlockingOverlay stories bind their open state to an
opener button; the close-box drive opens the dialog first. The story
overlay without a card closes with Escape.
2026-11-12 22:38:11 +00:00
aiongg a539851847 ui-contract: a canvas gesture passed outside every modal body belongs to the top modal
The tool host runs the canvas's tool outside the dialog's body; its
registration holds for the top modal layer, here or in another viewport,
and lapses with it. Trial: a gesture the canvas passes itself reaches it
under the open dialog and lapses when the dialog closes.
2026-11-12 22:38:11 +00:00
aiongg 5f279e9a00 ui-contract: a modal's canvas reach names the gestures it passes
The canvas a modal dialog keeps open (runtime::sampler) passes the view
navigation and, beside it, only the presses the dialog names: a
CanvasGesture is a button with the modifiers it needs held, its drag
included. Sampler::pass_canvas_gesture replaces arm_sampler; the
eyedropper rows, the Color Picker and the tone pickers name a primary
press, Curves names its Cmd-click, and every other press stays blocked.

Trials: the kept view passes the wheel (scroll and zoom) and the middle
pan and blocks the primary press; a modifier gesture passes only with
its modifier. Story: Canvas "under a dialog", a live region under an
open modal.
2026-11-12 22:38:11 +00:00
aiongg 01f146b931 Dialogs: automation answers only what a user can press
StandardPrompt and UnsavedChangesDialog build their buttons, their choice
check and their programmatic OK from one offered list; a choice without an
enabled button is refused. HostedParamDialog opens its values once (remembered
values, defaults) before its first show, OK or set, through the helper the
first pass uses; OK builds its result through one helper; set refuses rows
that are hidden or disabled and reads the value as its row's kind.
set_json_field takes the Context. Automation lists dialog ids as decimal
strings, takes a string or a number, and names only the host's dialogs.
2026-11-12 22:27:40 +00:00
aiongg e51e929e48 Dialogs: automation surface for every StackDialog
StackDialog gains json_fields and set_json_field; DialogHost lists its open
dialogs with their fields, sets one by id, and confirms or cancels by id
whatever the type. HostedParamDialog (values by parameter row, with a
programmatic OK), StandardPrompt and UnsavedChangesDialog (their choice)
implement them. craft_automation::dialogs runs ui.dialog.set/confirm/cancel
on a host and lists its dialogs for ui.inspect.
2026-11-12 22:27:40 +00:00
vangel76andClaude Sonnet 5.5 756def2bc6 mxf: checked end offset for the TIFF u16 read in DNG sniffing
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 23:18:51 +01:00
aiongg 15fe3dba92 docs: contract-api and components-index regenerated 2026-11-12 22:04:33 +00:00
aiongg 11e82a60b2 Canvas: trials for the painted display's surround and paint count; Fixture::frame_shapes clears the texture changes it drops 2026-11-12 22:02:35 +00:00
aiongg 70dd577f01 Canvas: RasterDisplay shows an app-painted document beside a source one (AppPaint) 2026-11-12 22:02:35 +00:00
aiongg b02060f515 Keys: typed text a widget takes is held; apps close popups on a shortcut; the chords the focus holds
A letter typed into an open Select list went to the list's type-ahead and also
stayed in egui's input, where an app's own dispatcher ran it as a tool key. The
strip links each press to the text it typed, the begin hook records which texts a
component took, and a widget or popup holds a press whose text it took, as it
holds the presses its routing takes: the press leaves egui's input and the
runtime's shortcuts.

overlay::close_popups closes the running viewport's popup layers. An app whose
dispatcher reads its shortcuts from egui calls it when a shortcut runs; only the
app knows that a press matched one of its bindings.

keys::focus_holds names whether the focused component holds a chord: claimed, or
held by routing as owned_shortcuts decides. route_press splits into a decision
that reads state only (press_route) and the step that acts on it (apply_press),
so the query and the key stage share one decision and one held predicate.
2026-11-12 22:02:35 +00:00
aiongg ff3638f870 Lists: stacking keys move the rows a drag takes; a held release asks for its pass
key_reorder takes the rows acted_on names, so a stacking key on a selected sub-row moves that sub-row and not its
row. While a press holds a release for a later pass, sensing asks for a repaint, so the release goes out in the next
frame without new input.
2026-11-12 22:02:35 +00:00
aiongg 70dfca7f24 Lists: a drag or Delete of a selected sub-row takes the selected sub-rows only
A sub-row belongs to the row above it, so a gesture on one acts on the selected rows of its own kind. The Layers
panel keeps a Smart Filter row selected beside its layer; a drag of that row carried the layer too, and the drop
rule refused the mixed set.
2026-11-12 22:02:35 +00:00
aiongg bbd51b2db0 Press machine: a press reports its phases in order, one per pass
A release in a pass that still owes the press's Down or DragStart is held for the next pass, with its click
state taken when the button went up. Two clicks in one frame, which the one-press rule splits into
[P1], [R1, P2], [R2], report Down and Activate for both clicks.
2026-11-12 22:02:35 +00:00
aiongg c73f81c011 Keyboard Shortcuts: group header disclosure uses the one disclosure glyph 2026-11-12 22:02:35 +00:00
midasmatterhorn 72b6005033 Revert "cms: index the primaries with an iterator in the 16-way sum"
This reverts commit 714b1f8b3f.
2026-11-13 00:23:49 +03:00
vangel76 14913a18c2 Merge remote-tracking branch 'upstream/main' into HEAD
# Conflicts:
#	crates/video/src/av1/decode/decoder.rs
2026-11-12 22:18:38 +01:00
vangel76andClaude Sonnet 5.5 9541787aa9 hevc: simplify scaling-list condition for clippy nonminimal_bool
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 22:17:58 +01:00
midasmatterhorn 714b1f8b3f cms: index the primaries with an iterator in the 16-way sum
clippy's needless_range_loop (stable) flags the loop variable indexing
self.prim_n; the offset is still the bit mask.
2026-11-13 00:16:46 +03:00
vangel76andClaude Sonnet 5.5 81bf3feb39 mxf: CinemaDNG in MXF (frame-wrapped DNG pictures), read and write
The demuxer identifies CinemaDNG from the CinemaDNG container labels, the
registered MXF-GC TIFF/EP container and picture coding labels, a 42h picture
element type, or a TIFF header with the DNGVersion tag at the start of the
essence. The writer produces OP1a files with frame-wrapped DNG pictures, the
provisional container label, element type 42h and an RGBA descriptor (no coding
label); OP-Atom is refused because it is clip-wrapped here.

Same change as the crates/mxf part of storytold/Filmcraft#1078, ported onto
craft-media.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 22:09:46 +01:00
vangel76andClaude Sonnet 5.5 45ddc4ffa6 mpegts: a repeated PAT or PMT packet is not appended to the section in progress
The scan fed every PAT and PMT packet to the section parser, so a packet sent
twice (same continuity counter and payload, H.222.0 2.4.3.3) appended its
payload to the section being collected. PAT and PMT packets now go through a
per-PID repeat guard first, like the elementary stream packets; a packet that
signals a discontinuity is never taken for a repeat.

The rest of storytold/Filmcraft#1438 is already in craft-media (#993).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 22:05:44 +01:00
vangel76andClaude Sonnet 5.5 c25999c8a4 hevc decode: dequantise while decoding residuals, table-driven sig_coeff contexts
Each coefficient is scaled (8.6.3) as it is decoded and stored in a list of
(index, value) instead of a separate pass over the bounding box. Only the
coefficient bounding box is cleared before the list is scattered into it. DC-only
blocks add the inverse-DC constant straight to the prediction. sig_coeff_flag
ctxInc comes from a per-sub-block table, last_sb / last_pos from inverse scan
tables. Merge candidates use the fixed five-entry list instead of a Vec.

Same change as storytold/Filmcraft#3188 (residual part), ported onto craft-video.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 21:51:12 +01:00
Dylan M. TaylorandDylan Taylor f92a91afa4 plotter: add TB54 registration-mark offset command (#1139)
* plotter: add TB54 registration-mark offset command with py_silhouette citation

The full Silhouette registration sequence (TB99 through TB55, plus
TB123/TB124 for search and TB23 for manual positioning) is documented
in the community driver py_silhouette (zero_on_registration_mark()),
which reverse-engineered the protocol from public behaviour — not from
any proprietary binary.

TB54,0,0 sets the registration-mark offset to zero (mark at expected
position). Without it the machine may use a non-zero default offset.

* workspace: allow unused_workspace_dependencies lint

The root Cargo.toml declares many workspace dependencies that are not
referenced by any crate's Cargo.toml (e.g. craft-aep, craft-ai-core,
craft-cms, etc.). This is intentional — they are available for apps to
use. Suppress the clippy warning so CI passes.

* workspace: allow unused_workspace_dependencies (cargo lint)

This is a cargo-level lint (not clippy) that fires when workspace
dependencies declared in [workspace.dependencies] are not referenced
by any crate's Cargo.toml. Many entries are intentionally available
for apps to use.

* cms, prepress, proof: allow unused_workspace_dependencies lint

These crates are built individually by CI (cargo clippy -p <crate>)
which does not inherit workspace lints. Add per-crate suppression.

* cms, prepress, proof: inherit workspace lints

Add [lints] workspace = true so these crates pick up the
unused_workspace_dependencies suppression from the root Cargo.toml.

* revert: remove duplicate [lints] sections

The cms, prepress, and proof crates already had [lints] workspace = true.
My previous commits accidentally added duplicate sections.

* cargo: suppress unused_workspace_dependencies lint via config

This is a cargo-level lint (not clippy) that fires when workspace
dependencies declared in [workspace.dependencies] are not referenced
by any crate's Cargo.toml. Many entries are intentionally available
for apps to use.

---------

Co-authored-by: Dylan Taylor <dylanmtaylor@gmail.com>
2026-11-12 15:44:47 -05:00
midasmatterhorn 88271c006c print: cover the 1% scale tolerance boundary in shrink-to-fit
The bound had only the zero-scale side tested. Add the other edge: a scale
whose four-decimal serialization is more than 1% off. A 118 750 pt wide
sheet on Letter with an 18 pt margin scales by 576 / 118 750 = 0.00485053,
written 0.0049 -- 1.02% off -- and the plan refuses as an error before
anything is sent. Just inside the bound (118 700 pt: 0.98% off) still
prints, its matrix carrying the written 0.0049.
2026-11-12 23:43:32 +03:00
aiongg 2f7593cbbb layers: a double click on a thumbnail activates it once 2026-11-12 20:37:37 +00:00
vangel76andClaude Sonnet 5.5 62e09222f1 craft-video: AV1 decoding about 1.7x as fast with many threads
Port of storytold/Filmcraft#4542 (the code moved here). Frames start as soon
as the reference rows they read are done (row wavefront across frames),
parsing is split from reconstruction, and there is one frame worker per
thread. Output is bit-identical; single-thread speed is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 21:16:46 +01:00
.CooCoo d23f5f36bb craft-drawingml: outline digests print a near-zero coordinate without its sign (#1127)
outlines_match_the_string_dispatch failed on macOS for curvedRightArrow
while Linux and Windows passed. The digest prints each coordinate with
{:.3}, which writes a residue such as -1.4e-14 from the sine or cosine of
a right angle as "-0.000". The sign of that residue depends on the
platform's libm, so the digest did too.

digest_coord now maps every coordinate that prints as zero to 0.0 before
it is printed. The digests of pieWedge, curvedRightArrow and
curvedDownArrow, the only names whose outlines held such residues, are
taken again; no outline changes.
2026-11-12 13:45:57 -06:00
aiongg e1d34a0093 Text parts open the framework edit menu on a context request
Every craft text control (TextField, NumberField, ChipField, AltTextField, DateField, ComboBox) shows the
EditMenu in a context menu on a right click in its text, the Menu key or Shift+F10. The open menu holds the
focus without ending the text part's typing run or losing its selection, so Escape closes the menu and the
field keeps editing, and a picked row acts on the field's selection once the focus is back. Rows run their
EditCommands through the command board, the same route an app's Edit menu uses.

- record_context counts a secondary release on a component's text widget
- a secondary press inside the selection keeps the selection
- EditCommand::Delete: the Delete command run from a menu deletes a text part's selection; the Delete and
  Backspace keys stay the text part's own deletion, and editors leave the command to the app
- TextField/NumberField::own_context_menu for a caller that hangs its own context menu on the field
  (the transform fields' unit menu)
2026-11-12 18:32:56 +00:00
aiongg 70d4172b6e Keys: the app's own canvas keeps the presses routed to it in egui's input
A host-drawn region (focus::host_canvas) reads its keys from egui, so a key it
keeps (Tab) must stay there. Stop::host marks it, and the key stage withdraws held
presses only for framework components.
2026-11-12 18:22:18 +00:00
aiongg 978e702874 Keys: a press the focused widget holds leaves egui's input
The strip left Cmd chords and arrows in egui's input and also routed them, so a
focused list row's stacking move and the app's own egui-reading shortcut both ran
on one press. Routing's held-by-the-focused-widget fact, which already filters the
runtime's shortcut list, now also withdraws those presses (and their key-down
state) from the pass's egui input; their releases follow through the strip's
consumed list.
2026-11-12 18:14:39 +00:00
aiongg fd03f1725f Layers: an adjustment layer's row icon is the adjustment_layer glyph, as in the footer and the filter 2026-11-12 17:33:40 +00:00
aiongg 73e652fd7f Layers: small touching lock buttons, small filter toggles, typed thumbnail badges
The Lock row's five buttons are small (ControlSize::Sm) and touch, as Photoshop's, so Fill and its
field stay on the row at a panel's width instead of wrapping below it. The Kind filter toggles are
small too.

LayerInfo::thumb_badge is a ThumbBadge (SmartObject, Shape) that craft-layers paints: a window glyph,
or a path with an anchor on each corner. Kind and mask badges share one badge box, a field well at
the small icon size in the thumbnail's corner.
2026-11-12 17:18:25 +00:00
dotCooCoo 32ffa0b58a Merge main into fix/linesweeper-sweep-doc-left-scan 2026-11-12 09:02:06 -08:00
aiongg ca5cc4ff06 Layer content runs outside its opener's label scopes
A tooltip shown from a field's control recorded its text line in the
field's label scope, so the side label lined up with the tooltip and
dropped under the next row. The overlay host now runs a layer's body
outside the open label and merge scopes.
2026-11-12 16:45:18 +00:00
aiongg da24e6e3c1 Contract: an edit of a given value asks for no rerun
A given value has no read record, so the edit reruns nothing: the component
shows the edit itself, and the app's other views show it in the next frame.
A drag on a given value (the Layers Opacity and Fill sliders) ran two passes
every frame.
2026-11-12 16:38:57 +00:00
Dylan M. Taylor e98299546f crs: a repeated name keeps its first value, as craft-metadata reads it
craft-metadata #1042 keeps the first text-bearing value of a repeated
property so a blank repeat cannot hide a location, but craft-crs's doc
comment and test still claimed the last repeat wins. The workspace-wide
test job has been red since it landed because of that assertion.
2026-11-12 11:26:10 -05:00
aiongg bf99b186ec Rows: no divider under a collection's last row; the Effects header shows no icon
Dividers fall between rows (RowState::last), so a list's last row no longer
draws a rule beside the footer bar's. Photoshop's Effects header shows only its
eye and label; the mock sets no icon and SubRow::icon no longer names one.
2026-11-12 15:59:54 +00:00
aiongg cf928885f8 Layers: the row's effects badge is the fx icon
A list row paints a trailing drag handle's icon face as a mark, not an icon
button: a handle has no node of its own (the row's description names it), and a
button face would add an unnamed button.
2026-11-12 15:59:54 +00:00
aiongg d6ef780c79 Layers: a story with the effects and Smart Filters open 2026-11-12 15:59:54 +00:00
aiongg 5334392883 Layers: effect and Smart Filter sub-rows as Photoshop shows them
A source marks a sub-row with its indent steps (ItemSource::sub_row). The row is
compact, its eye column empty, and its toggle cells sit in its content at that
indent (sub_row_cells): one step past the layer for the header, two for an item.
Presses flip them there and a sweep down the eye column passes them by. No divider
falls between a row and the sub-rows that continue it (RowState::continued).
The mock's Effects header carries the sparkles icon.
2026-11-12 15:59:54 +00:00
aiongg 5f0331fbff Row line: a one-line child sits on the row's line, a taller one at its top
A child placed on an unwrapped row's line reports how far below its top
the centre of its first line lies: half a control's height, a row body's
line, or a container's first child's first line (its header's, else its
body's), which its measuring run records. A child whose first line lies
at half its height is one line (a control, a row of one-line children, a
field with its label beside its control) and sits with its centre on the
row's line, so a side-labelled field holding smaller controls centres
them. A child of more than one line (a column, a field with its label
above or a help line below) sits at the row's top, as does one with no
line of its own (a collection whose rows run along Y), so columns beside
each other share their tops. The row's line is the lowest centre of its
one-line children, or of the line it shares with its container's inline
regions; the row records the line's centre and its height, and takes
that height in its measuring run.

Replaces the line/block split, where every container sat at the row's top.
2026-11-12 15:53:56 +00:00
aiongg 46061c8e44 A stack's header and footer are spaced from its body by the stack's gap
The header is the stack's first row and the footer its last, so the gap
between the stack's children also separates them from the body. A gap set
after the header or footer keeps them in step; footer_gap still sets the
footer's own.
2026-11-12 15:53:56 +00:00
aiongg 18262420d5 Lists keep a hidden document's scroll position: the read step no longer clamps the kept offset against the evicted last extent
A collection kept its offset in session memory but the last pass's extent in
shown memory. While another document showed, the hidden list's shown memory was
evicted, the extent read back as 0, and the read step clamped the offset to 0.
Every later step already clamps against this pass's content, so the read-step
clamp and View.extent go.
2026-11-12 15:48:42 +00:00
Jeremy e85bd30bb2 Document the proposed Windows installation and persistent-model policy
* docs: add the Windows installation policy; models are persistent asse…

…ts, not caches

A companion policy to settings-storage.md: dual-scope per-user-default MSIs,
the ArtCraft suite folder, what an update must preserve (folder, context, no
duplicates), standalone installability, and the platform-native boundary on
macOS, Linux and FreeBSD. Splits models out of the disposable-caches row:
downloaded models are persistent user assets that cache cleanup and app
uninstallers must never delete.

* docs: describe suite Windows installation policy

* docs: record the wizard scope and folder rules and the real-install c…

…hecks

The scope page leaves ALLUSERS unset for Only for me, and the wizard sets the new-install folder itself after the choice, because Windows Installer resolves Program Files once for the context it started in. Notes the 32-bit Program Files (x86) folder and updates the adoption table to say real per-user and all-users msiexec runs were done. Clean-machine and second-account checks are still pending.

* docs: new installs default to per-machine; only the old default folde…

…r moves

* docs: say plainly that released packages still default to per-user

The policy says new installs are per-machine, but every released package is
dual-scope with a per-user authored default, and the inventory still listed
"Per-user default". The policy now separates the two: what the policy is, what
the packages do today, who picks per-machine (the launcher, or "Everyone" in the
wizard), and the follow-up that closes the gap.

Also: Update all's one-prompt route was reverted after the antivirus incident,
so the policy no longer says it asks once; the Linux model folder names its
ArtCraft/models subfolder; repair is listed where the 26/10 payload runs
covered it; the inventory no longer says nothing was released.

* docs: the launcher and a direct MSI run match only for the same scope…

… and folder

CodeRabbit pointed out that 'produce the same result' contradicted the
documented new-install difference: the launcher sets ALLUSERS=1, while a
direct run keeps the package's per-user default.

* docs: make the legacy-folder migration exception explicit

State that exact former-default paths can migrate even when manually
chosen, subject to maintainer acceptance of the proposed policy. Preserve
other chosen folders and document the effect on custom shortcuts.

---------

Co-authored-by: Jeremy <jeremy8776@googlemail.com>
2026-11-12 10:43:51 -05:00
nonplessesdsnrffffandBen Mathews 65cf3f9b0d craft-web-host: accept PDF page attachments from the host
* craft-web-host: accept PDF page attachments from the host

---------

Co-authored-by: Ben Mathews <ben@themathewsgroup.com>
2026-11-12 10:43:32 -05:00
aiongg 1ee300bbb3 Toggle cells that are off or mixed and unlinked link glyphs rest in text.faint; on toggles and linked glyphs rest in text.muted; both read in text.normal under the pointer 2026-11-12 15:42:15 +00:00
aiongg 683e9b25da Thumbnails: square, with a frame in line.frame at the slot's edge and the picture inside it; line.frame is a new picture-frame role (near black in dark mode, the control edge in light) 2026-11-12 15:42:15 +00:00