Commit Graph
7039 Commits
Author SHA1 Message Date
aiongg 8167b69fd9 Key stage: a canvas tool's state-dependent claims hold while a non-text member of the canvas's arena (a frame part) is focused 2026-11-16 22:49:51 +00:00
aiongg fcde55c303 bezier trials: a host-cancelled press restores nothing; arrow trial empties the Tab-arrival selection 2026-11-16 22:48:42 +00:00
aiongg cb14f32232 Merge branch 'red/t4d' into fw/mac1 2026-11-16 22:47:46 +00:00
aiongg 37fc579d62 Merge branch 'red/t11' into fw/mac1 2026-11-16 22:47:46 +00:00
aiongg d69d80d2cd Merge branch 'red/t10' into fw/mac1 2026-11-16 22:47:46 +00:00
aiongg b865bd53ad Merge branch 'red/t9' into fw/mac1 2026-11-16 22:47:46 +00:00
aiongg 6ef7c0c489 Merge branch 'red/t8' into fw/mac1 2026-11-16 22:47:46 +00:00
aiongg 5d9a02e86b Merge branch 'red/t7' into fw/mac1
# Conflicts:
#	crates/behavior/src/geometry/draft.rs
#	crates/behavior/tests/geometry/draft.rs
2026-11-16 22:47:46 +00:00
aiongg a8d15655ac Pen trial: the carried-anchor press lands on a middle anchor, since a press on the first anchor of a draft of three closes it 2026-11-16 22:47:33 +00:00
aiongg 6de8fd7139 rustfmt the crates round A changed 2026-11-16 22:44:29 +00:00
aiongg d3b57ecae9 TransformBox RotateZone::Border: the outside rotates only within a reach of the box's sides; further out a press is the box's and does nothing, with the arrow pointer (PhotoCraft's type box with Command held, pc-prod-e76 type_transform.rs:145-152, 213-216, 310-318); TransformOverlay::rotate_zone passes it to the box 2026-11-16 22:22:26 +00:00
aiongg 0233569408 TransformBox move reach: the corners are round, every point within the reach of the border and no further (a strip along each side and a sector outside each corner), as PhotoCraft's type move reach (pc-prod-e76 type_transform.rs:156-196) 2026-11-16 22:22:26 +00:00
aiongg 11c23fddf5 A canvas tool claims regions over the canvas controls: CanvasTool::regions, asked before the canvas shows and handed to Canvas::tool_regions, which declares them as over parts; a press there is the canvas's background press 2026-11-16 22:22:26 +00:00
kiwi4boy d5eddf0cc2 flow: a table with no style has no header row from the default look
flow_table made a table's first row a header row whenever its look had
header_row set, and the look defaults to Word's (header row on). The look
is an option of the table's style (w:tblLook/@w:firstRow), so a table
with no style, or a style the document doesn't have, got a header row
Word never shows: RTF bolded it and marked it \trhdr (repeat on each
page), HTML made it th, and ODT repeated it. Only Repeat as header row
(RowProps::header) makes such a row a header now; styled tables are
unchanged.
2026-11-16 17:16:24 -05:00
kiwi4boy 5541e248e8 wordmodel: append to a paragraph in O(1) with push_text and push_object
Building a paragraph through insert_text/insert_object at its end walked
every run (and insert_object counted every object before the offset) on
each call, so n appends cost O(n^2): one paragraph of 64k runs took
8.5 minutes. push_text and push_object extend the last run or start a
new one, giving the same paragraph as inserting at len().
2026-11-16 17:12:46 -05:00
aiongg 2313dd96a7 Readout trial: the release-pass check runs its tool in the canvas body, from the canvas's tool pass 2026-11-16 22:12:27 +00:00
dotCooCoo a6b7bdce3e ps: write numbers from their rounded integers instead of the float formatter
push_num_places now writes the digits of round(v * 10^places) directly
when that integer is below 2^52 in magnitude, placing the decimal point
and trimming fractional zeros itself. Below 2^52 the integer is exact
and dividing it by 10^places lands within half a decimal step of the
exact quotient, so the text is the same as the formatter's. NaN,
infinities, scaling overflow and larger rounded values take the
existing formatter path unchanged. Requests for more than nine places
are still clamped to nine first.

Tests compare the output with the formatter path for places 0 to 12
over fixed boundary values (negative zero, ties, 1e15, 2^52, f64::MAX,
non-finite values) and about 144,000 values in all (about 48,000
generated, plus the neighboring bit patterns of each). Widening the
limit to 2^54 makes the comparison fail, for example
-1709448349065955.5 at one place.

On 1,200,000 path coordinates at four places (release build, wall
clock on a Linux host running other builds at the same time, seven
alternating runs), the formatter path took 362 to 373 ms and the
integer path 38 to 44 ms.
2026-11-16 14:08:31 -08:00
aiongg cdea1067e7 Pen and Curvature Pen place and pull their anchors at the point the canvas snaps the pointer to (View > Snap To and the pixel grid), as the other drawing tools do 2026-11-16 22:04:17 +00:00
aiongg e902b2d306 Merge branch 'red/lag' into fw/mac1 2026-11-16 22:03:51 +00:00
aiongg b1d4d02aa6 Snap rounds the points it gives to whole document units when the app turns on the pixel grid, after the target snap and with snapping off or suspended; the transform box reads the grid from the canvas snap and loses its own pixel_grid prop 2026-11-16 22:03:47 +00:00
aiongg 7d991dcb64 TransformBox: the whole outside is four parts, the outside nearest each corner, under the band parts' keys, so a band press at any corner keeps rotating after the Move controls hand the drag to Free Transform 2026-11-16 22:02:45 +00:00
aiongg 36becdf099 ToolHost::run takes the canvas's ToolPass only
Every host runs in its canvas body, so the form that read a CanvasOutput after
the canvas goes: CanvasOutput no longer carries the pass, and run has no
measuring-run return (no measuring run publishes a pass).
2026-11-16 22:02:07 +00:00
aiongg 8df0d78832 Page view hands the canvas's tool pass to the app's body
PageBody carries the canvas's ToolPass, so the app runs its tool host inside
the page view's canvas body, after its controls and before the overlays that
show what the tool did.
2026-11-16 22:02:07 +00:00
aiongg 88a153964a Tool stories run their tool in the canvas body
The story body is the canvas body: it shows the canvas controls, runs the
tool through the StoryHost on the canvas's tool pass, then shows what reads
the tool's state, so the canvas shows a press and its moves in the same pass.
The run closure applies the tool's events and the story buttons' edits to the
document after the canvas. The body gets the document mutably, since some
tools edit it themselves.
2026-11-16 22:02:07 +00:00
aiongg 46b2a85470 Merge branch 'red/lag' into red/t4d 2026-11-16 22:00:35 +00:00
aiongg cf3eee7427 Shortcut import keeps a command's default key first among the set's keys 2026-11-16 21:58:10 +00:00
aiongg c597f5547f Keymap test: the Alt variant follows the command's key and yields to a bound Alt chord 2026-11-16 21:57:28 +00:00
KenM76andClaude Opus 5.5 511e260d23 craft-mesh: test every scene choice; README names the new warnings
The README's glTF "Not read" line was doubled and listed sparse
accessors and tangents, which are read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 16:55:57 -05:00
KenM76andClaude Opus 5.5 8c1498d1f8 craft-mesh: warn when glTF morph targets or other scenes are left out
A primitive's morph targets are not read, and only one scene becomes the
roots. Both now add a warning: a count of the primitives drawn in their
base shape, and which scene of how many was read.

Closes #1938.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 16:53:23 -05:00
aiongg 87a005c790 Merge branch 'ci/facade' into fw/mac1 2026-11-16 21:52:46 +00:00
aiongg 0734fdde26 Merge branch 'red/lag' into fw/mac1 2026-11-16 21:52:46 +00:00
aiongg 8cb12aa24f Merge branch 'red/t4c' into fw/mac1 2026-11-16 21:52:46 +00:00
aiongg f5b4138b17 CropOverlay reports a secondary press released on its parts as a context click, as the gradient overlay does 2026-11-16 21:51:16 +00:00
aiongg 83b6d0e48f craft facade: craft-ai-agents is an external crate, outside the facade 2026-11-16 21:47:49 +00:00
KenM76andClaude Opus 5.5 deaee4e8e1 craft-mesh: decode a glTF data URI's percent escapes to bytes
A base64 body with `%2B`, `%2F` or `%3D` escapes was refused as bad
base64, and a plain body lost every escaped byte that was not UTF-8 to
U+FFFD. Escapes are now decoded to bytes first, then base64 when the URI
says so. `uri_decode` is unchanged for file names.

Closes #1936

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 16:47:28 -05:00
aiongg c065f71978 Corner widgets: a trial of a triangle's apex rounding with the pointer travel 2026-11-16 21:45:24 +00:00
aiongg fc5e6c1bc8 New Guide trial: Position text that does not parse keeps OK from making a guide 2026-11-16 21:43:42 +00:00
aiongg 9824f49b06 Crop overlay leaves Escape to the window while the frame is the untouched default 2026-11-16 21:43:39 +00:00
aiongg 1e1b260512 RAW Develop: OK accepts a point curve left as stored, so an older Smart Filter commits 2026-11-16 21:43:06 +00:00
aiongg 9718d8cb0d The freehand Lasso moves its outline by the pointer's step while Space is held, as the marquees do 2026-11-16 21:42:01 +00:00
aiongg 242d00d30f Pen trial: the close badge shows only over the first anchor 2026-11-16 21:41:44 +00:00
aiongg 701d0b4d8b Adaptive Wide Angle: undo and redo as workspace requests, as the other workspaces take them 2026-11-16 21:41:29 +00:00
aiongg 8b2ec1f1fc Vanishing Point: a written paste position or width reports a Paste event, as planes and strokes do 2026-11-16 21:41:11 +00:00
aiongg da0994b60f A key automation holds at a canvas does not start a command while a text field has the keys, as the key stage does not 2026-11-16 21:40:10 +00:00
aiongg 1d2dd82a0c save for web: trial for the WebP 4-Up variants 2026-11-16 21:39:35 +00:00
aiongg e8a5b74857 print: trial for the image box drag keeping capture off the sheet 2026-11-16 21:38:30 +00:00
aiongg 94064f1040 RAW Develop trial: a sampler reads the before picture while Before shows 2026-11-16 21:37:57 +00:00
aiongg 5a9a7c6d5c HostedPrint::request_refresh asks the app for the printer list again 2026-11-16 21:37:53 +00:00
aiongg 5eefdb88a1 Run the tool host in the canvas body at every caller but tool_story and PageView
Gallery mock panels, ui-bench, review story, doc examples and the test sites run
ToolHost::run on the ToolPass the canvas publishes, after the body's controls and
before the picture, which paints with .picture().
2026-11-16 21:37:38 +00:00
aiongg d29fa4dc5e Export As options always list scale_all so a control or test can set it on an empty list 2026-11-16 21:36:38 +00:00