Commit Graph
5473 Commits
Author SHA1 Message Date
Livio Sidler 1d18f795d0 M4, #2731: a vector's lines are placed by what is filled beside them, and trimmed only where they end on the outline
From the review of #2732:
- A segment is on the outline when the fill lies on one side of it, in the fill or outside it
  when on both or neither. The loops alone don't say: a loop inside another that turns the
  same way bounds nothing under the non-zero rule, and was stroked as outline.
- An inside stroke cut every line in the fill by the fill. Now only what shows past the
  outline around a point where such a line ends on it: a line that goes through the fill
  keeps its parts outside, and one close to the edge its whole stroke.
- A segment's middle comes from its own curve, not from a copy of the network.
- The stroke cache's key takes in the segments and the points' places: the loops name
  segments by number, and two networks can have the same path with other numbers.
2026-11-29 12:34:14 +01:00
bflatastic b60e8acdfe pathops: pass the fill test by value (clippy needless borrow) 2026-11-29 18:11:14 +07:00
ls254 27aac6e002 M4, #2731: a vector's inside or outside stroke aligns only its fill's outline
A network with a line across its fill (or a tail leaving it) was stroked at twice the
weight and cut by the stroke path read as a fill: such a line came out twice as thick as
the outline or not at all. The outline is now aligned as asked for and the other segments
are stroked on their centre.
2026-11-29 12:03:30 +01:00
BFlat ee9584f40f Merge pull request #2699 from storytold/fix/1808-jam-connectors
M9: .jam import: connectors on the page come in as board connectors attached to what they join (#1808)
2026-11-28 19:03:55 +07:00
bflatastic 5ec442a94b Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/file-format-parity.md
2026-11-28 19:03:34 +07:00
BFlat 8910908f02 Merge pull request #2691 from storytold/fix/1319-hide-selection-while-scrubbing
M1: scrubbing a field hides the selection's frame until it is let go (#1319)
2026-11-28 19:02:48 +07:00
bflatastic 433a6e1484 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-28 19:02:28 +07:00
BFlat bd36be5042 Merge pull request #2701 from storytold/fix/2342-system-trust-store
M9: wss:// connections also trust the operating system's certificate store (#2342)
2026-11-28 19:01:57 +07:00
BFlat 3615b07544 Merge pull request #2702 from storytold/fix/2187-detail-waits-for-still-view
M5: the presenter's sharp detail waits until a zoom or resize has settled (#2187)
2026-11-28 18:57:32 +07:00
BFlat 6981082915 Merge pull request #2696 from storytold/fix/1237-font-stand-ins
M4: A missing well-known UI or code font draws in a close stand-in in its own style (#1237)
2026-11-28 18:41:40 +07:00
bflatastic f65516e0ee Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/file-format-parity.md
2026-11-28 18:41:19 +07:00
BFlat fd0999d2ef Merge pull request #2694 from storytold/fix/2346-current-variant
M3: A selected variant shows a Current variant section; the set keeps the property editor (#2346)
2026-11-28 18:40:55 +07:00
bflatastic 93e0cbfca0 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/components-parity.md
2026-11-28 18:40:35 +07:00
BFlat 69a1242fba Merge pull request #2695 from brytoncooper/docs/add-brytoncooper-credits
Contributors: add Bryton Cooper
2026-11-28 18:39:54 +07:00
BFlat 5135b3c4b9 Merge pull request #2177 from victorazesc/codex/native-corner-styles
M4: editable chamfered and concave corners
2026-11-28 18:25:31 +07:00
BFlat 97bc1da390 Merge pull request #2693 from storytold/fix/2178-sizing-side-effect-warnings
M2: node.set reports the sizing it changes on other layers and variants their set clips (#2178, #2182)
2026-11-28 18:22:52 +07:00
BFlat a276652996 Merge pull request #2690 from storytold/fix/2524-paste-dangling-bindings
M6: Pasted layers drop bindings to variables the file doesn't have and keep their values (#2524)
2026-11-28 18:22:37 +07:00
bflatastic b6540e2cab M5: the presenter's sharp detail waits until a zoom or resize has settled (#2187)
The device-scale detail drawn over a tall frame's capped texture waited
out only a fling, a drag and the wheel. A zoom, a window resize, a move
to a display of another scale or any other change of the view rendered a
new detail, up to 16.8 million pixels on the UI thread, on every frame it
changed. Any change of the page area in view or of its pixel scale from
one frame to the next now counts as motion: the capped texture shows
alone meanwhile, and a frame is asked for so the detail for the still
view is rendered next.
2026-11-28 18:22:36 +07:00
bflatastic 0b97d09211 M9: wss:// connections also trust the operating system's certificate store (#2342)
The desktop app and figcraft-cli trusted only the compiled-in public
roots and FIGCRAFT_CA_FILE, so a server behind a proxy with a private
authority needed that variable on every computer. They now also add the
authorities in the operating system's certificate store, unless
FIGCRAFT_NO_SYSTEM_ROOTS is set. Certificates are still always
verified.
2026-11-28 18:21:11 +07:00
bflatastic 8750ba81bb M9: .jam import: connectors on the page come in as board connectors attached to what they join (#1808)
A whiteboard file's connectors came in as loose vectors, so moving a
shape left them behind. On a whiteboard the mapper's adapter now writes
a board connector on each connector drawn as one line on the page: its
ends name the layers it joins (a named magnet is that side, an automatic
one the side facing the other end, an end without a magnet keeps its
point on the layer) or a free page point, with its routing. The REST
importer makes the vector a native board connector once every layer is
in, so the board routes it again when what it joins moves. The import
report counts only the connectors that stayed vectors. Labelled
connectors, connectors inside frames and connectors in design files are
unchanged.
2026-11-28 18:16:03 +07:00
BFlat aaed433ddd Merge pull request #2587 from storytold/formats/penpot-craft-zip-9-8-2
Read Penpot archives through craft-zip
2026-11-28 18:09:43 +07:00
bflatastic 51a2125118 M3: Current variant dropdowns keep the "This variant's value" hint, so its translations stay in use (#2346) 2026-11-28 18:01:32 +07:00
Bryton Cooper 15fa211bb4 Contributors: add Bryton Cooper 2026-11-28 03:53:18 -07:00
BFlat 350ee9f728 Merge pull request #2688 from brytoncooper/fix/win-wgl-hang-2264
M1: Windows doesn't start OpenGL beside Direct3D 12 (#2264)
2026-11-28 17:53:05 +07:00
bflatastic 81b507a052 M4: a missing well-known UI or code font draws in a close stand-in in its own style (#1237)
Text in a family that isn't installed drew in the default face (Inter,
Helvetica... in Regular) whatever the family and style, so code set in
Menlo came out proportional and SF Pro Bold came out regular. A small
table now picks an installed stand-in of similar design and width for
the common UI and code families, in the style asked. The family stays
reported as missing.
2026-11-28 17:52:08 +07:00
BFlat 5330237381 Merge pull request #2686 from B-uchi/pr/docs-design-review-prompt
docs: the Prompts table lists design_review
2026-11-28 17:50:26 +07:00
BFlat 905850504a Merge pull request #2689 from brytoncooper/fix/web-join-perf-2041
M9: avoid full-snapshot copy and WASM page-by-page memory.grow storm on join (#2041)
2026-11-28 17:49:00 +07:00
BFlat 179f7cffff Merge pull request #2681 from Oni-zerone/claude/magical-archimedes-li1vu4
mcp: create_node and set_properties take fields and outline
2026-11-28 17:43:52 +07:00
BFlat 8660a71a43 Merge pull request #2684 from storytold/fix/2166-bend-slop
M8: a wobbly Bend click on a point or segment is a click, not a drag (#2166)
2026-11-28 17:43:48 +07:00
BFlat 0485359a08 Merge pull request #2685 from B-uchi/pr/implement-prompt
M8: an MCP prompt takes an agent through building the selected design in a codebase
2026-11-28 17:40:26 +07:00
bflatastic d5033c9f10 Pasting into another file keeps the copied corner style
Unlinking the copied styles for a paste into another file cleared
cornerStyle too, which then failed as a bad value: it is a value
(round, chamfer, concave), not a link. Both paths now share one check.
2026-11-28 17:37:50 +07:00
bflatastic 22fe0ceda1 M2: node.set reports the sizing it changes on other layers and variants its set clips (#2178, #2182)
An edit that turned another layer Fixed (a child set to Fill turning its
hugging parent Fixed, a frame set to Hug turning the children that filled
it Fixed) only showed the canvas notice, so a script got no hint why a
frame stopped growing. node.set now lists each such layer in `warnings`
with its id, name, key and old sizing.

A variant grown or moved past a component set that clips and has no auto
layout keeps being cut off (the set is sized only when variants are
combined or added). node.set now names such a variant in `warnings` and
points at layout.add on the set.
2026-11-28 17:33:14 +07:00
bflatastic 2cd906ddd8 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/format/Cargo.toml
2026-11-28 17:32:22 +07:00
bflatastic 2d7370017c Merge remote-tracking branch 'origin/main' into HEAD 2026-11-28 17:26:19 +07:00
bflatastic 681b8180ac M1: scrubbing a field hides the selection's frame until it is let go (#1319)
Changing a stroke weight, corner radius or any other value by scrubbing
its field left the selection's frame and handles over the layer, so the
result couldn't be judged without deselecting. While a field is scrubbed
(the shared widgets::scrub gesture, used by every number field and the
typography icons) the canvas now hides the selection's frame, handles
and size label, as it already did while the colour picker is used, and
draws them again once the drag is let go. A press without a drag leaves
them.
2026-11-28 17:25:04 +07:00
bflatastic e57f9a385d M6: pasted layers drop bindings to variables the file doesn't have and keep their values (#2524, part 3) 2026-11-28 17:16:40 +07:00
bflatastic 5ca94d7496 Merge remote-tracking branch 'origin/main' into HEAD 2026-11-28 17:06:57 +07:00
bflatastic fd24ba3d55 Merge remote-tracking branch 'origin/main' into HEAD 2026-11-28 17:03:08 +07:00
bflatastic 086594604c M8: a wobbly Bend click on a point or segment is a click, not a drag (#2166) 2026-11-28 17:02:57 +07:00
bflatastic 4d3d4e4e5b M3: a selected variant shows its Current variant, the set its property editor (#2346) 2026-11-28 17:02:46 +07:00
bflatastic da3f97646f Merge remote-tracking branch 'origin/main' into HEAD 2026-11-28 17:02:31 +07:00
bflatastic c57f63a41f Merge remote-tracking branch 'origin/main' into HEAD 2026-11-28 17:02:28 +07:00
bflatastic 9d4b2f2617 Merge remote-tracking branch 'origin/main' into HEAD 2026-11-28 17:01:57 +07:00
BFlat febefdaabf Merge pull request #2683 from storytold/fix/main-shared-textdata-test
Fix main: the delta snapshot test builds its text as shared TextData
2026-11-28 17:01:41 +07:00
Bryton Cooper 46ff7d9595 fix(engine): wrap TextData with Shared::from in join_bench_tests after #2679 2026-11-28 02:57:36 -07:00
Bryton Cooper 866fe84f9c fix(collab): stop retrying large heap reservations after OOM in current read (#2041) 2026-11-28 02:55:09 -07:00
Bryton CooperandClaude Opus 5.5 6c638908c9 M9: time joining a large shared file (#2041)
An ignored release test that builds a 120k-layer file over 15 pages and
times the server's welcome, Client::join and the engine opening it
through live_poll, for the delta catch-up and the full snapshot:
cargo test --release -p figcraft-engine --lib join_timings -- --ignored --nocapture

It runs natively, where the web heap's page-by-page growth doesn't
happen, so it times decode and apply work only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 02:55:09 -07:00
Bryton CooperandClaude Opus 5.5 d1b4bc1023 M9: grow the web heap in large steps while a snapshot is read (#2041)
On wasm32-unknown-unknown, Rust's allocator (dlmalloc) grows the memory
one 64 KiB page at a time whenever it runs out, and the browser changes
the protection of the whole memory at each grow. The reporter's
121k-layer join made about 20,400 grows and spent 176 s of a 3-minute
freeze in them on Windows.

Memory dlmalloc got is reused once freed and never given back, so
allocating one large block and freeing it at once leaves that much free
room, for one grow. heap::keep_ahead does this whenever the memory grew
since its last call: half the heap again, at most 256 MiB at a time.

It acts only while a snapshot is read: a heap::reading() guard is held
by the delta snapshot decode, by unpacking a packed welcome and by
Replica::from_snapshot, and dropped on every exit path. Inside that
window it runs between delta records and vectors, between changes in
Replica::apply, and for each JSON value read from a full snapshot. The
same hooks run for live batches, where they return at once. Off wasm32
they always return at once. All of it is safe code: a fallible
reservation, then black_box so the optimizer keeps the allocation.

Measured with Client::join on an encoded 120k-layer welcome, in a
standalone wasm32 module under Node on macOS (three runs each, same
window). The shipped figcraft-web build, Chrome and Windows were not
measured:
- delta catch-up: 607-616 ms -> 433-449 ms; the memory grew twice
  between hook calls, each followed by one reservation (the baseline
  grew by 3,800 pages, at most one grow each); peak memory 241 -> 308 MiB
- full-snapshot catch-up (an older server): 3.6-3.9 s before the previous
  commit, 1.27 s after it, 407-417 ms with this one; 4 reservations;
  peak memory 455 -> 674 MiB against the previous commit (722 MiB
  before both)
The extra peak memory is the room reserved ahead and not used.

This covers the allocations inside the decode and apply. Opening the tab,
the first layout and the first paint run outside every hook and were not
measured.

--initial-memory doesn't help: with the std that Rust 1.96 links, a probe
still grew page by page above a 256 MiB initial memory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 02:55:09 -07:00
Bryton CooperandClaude Opus 5.5 b33b75275c M9: open a full snapshot without copying it first (#2041)
Replica::from_snapshot borrowed the changes and cloned the whole
Vec<Change> before applying it, because the review-settings clamp
rewrites some of them in place. Every caller already owns the snapshot
(Client::join, the rejoin path, Server::restore), so it now takes the
Vec by value: a large file's snapshot is no longer copied and then
dropped twice on the way in. The server's publish path still borrows
and copies explicitly.

In a wasm32 build joining a 120k-layer file through the full-snapshot
catch-up (what an older server sends), this cut peak memory from 722 MiB
to 455 MiB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 02:54:44 -07:00
BFlat 745fe1aae7 Merge pull request #2682 from kler/swedish-ui-2026-11-28
i18n(sv): translate 51 new strings
2026-11-28 16:32:36 +07:00