Commit Graph
439 Commits
Author SHA1 Message Date
Trevor Brown 6b625a0d46 M6: .fig export writes ruler guides (#2336) (#2337)
The change from #2337 by @TrevorBrown-dev, as one commit.
2026-11-19 01:28:57 +07:00
BFlat c7f0ad195c Merge pull request #2449 from Hamza0101/fix/rest-stroke-side-variables
REST import: variables bound to stroke sides bind each side's weight
2026-11-18 19:19:51 +07:00
Trevor Brown d494fad166 M2: Fill across a hugging axis takes the line, as Figma does
In a hugging parent, Fill on the other axis follows the line the way
Figma does, instead of forcing the parent Fixed. This also covers item 2
of #2090 on both axes: a hugging main that becomes Fixed is followed by
its instances' roots.

Fixes #2091 item 3. Fixes #2034. Fixes item 2 of #2090.
2026-11-18 18:31:20 +07:00
Hamza 11b896699f REST import test: the spec's four side names each bind a variable of their own 2026-11-18 16:24:41 +05:00
Hamza d7fcbf94ca REST import test: each of Card's sides is bound to a variable of its own
So a side read into another side's field fails the test (review).
2026-11-18 15:57:39 +05:00
Hamza d332c18a2c REST import: variables bound to stroke sides bind each side's weight (#2441)
boundVariables.individualStrokeWeights was skipped with a warning, so a 1 px bottom divider bound to a variable came across as a plain number. Each side now binds strokeTopWeight ... strokeLeftWeight, read from the live API's BORDER_TOP_WEIGHT ... keys or the published spec's top ... keys.
2026-11-18 15:44:42 +05:00
Dylan M. Taylor caf6ff5108 Merge main retaining shared Sketch and Penpot dependencies 2026-11-16 22:06:49 -05:00
Dylan M. Taylor 5ee60ec708 fix(format): keep legacy ZIP options only for remaining test fixture 2026-11-16 22:01:33 -05:00
Dylan M. Taylor 6963e0d5ce Use shared Sketch container while retaining Fig document projection (#2418) 2026-11-16 21:58:13 -05:00
Dylan M. Taylor 931a1467b2 fix(format): retain Cursor import for embedded Penpot PNG encoding 2026-11-16 21:50:31 -05:00
Dylan M. Taylor 87e43cccf0 format: write Penpot containers through shared incremental writer 2026-11-16 21:22:16 -05:00
FredApps ac4f5511ef Merge #2284's branch (with current main) into codex/figcraft-native-consumer 2026-11-15 15:14:14 +01:00
FredApps 4675ae65d6 M6: drop the repeated test attributes on two fig modules (#2284) 2026-11-15 15:10:29 +01:00
Dylan M. Taylor e7ec939f66 Merge remote-tracking branch 'origin/switch-craft-fig-rebased' into codex/figcraft-native-consumer 2026-11-13 17:37:19 +00:00
Dylan M. Taylor ebb48ca144 fix(fig): collapse shape adapter lookup conditions 2026-11-13 17:37:12 +00:00
Dylan M. Taylor 01c4f9d92e Merge remote-tracking branch 'origin/switch-craft-fig-rebased' into codex/figcraft-native-consumer 2026-11-13 17:31:12 +00:00
Dylan M. Taylor c75cee1942 fix(fig): index native board shapes by source origin 2026-11-13 17:29:41 +00:00
Dylan M. Taylor f624fa8223 Merge remote-tracking branch 'origin/main' into codex/figcraft-2284-refresh 2026-11-13 17:23:08 +00:00
Dylan M. Taylor 3d77f7a8a8 Merge remote-tracking branch 'origin/main' into codex/figcraft-native-consumer
# Conflicts:
#	crates/format/src/fig/map.rs
#	crates/format/src/fig/map/board.rs
#	crates/format/src/fig/map/layer.rs
#	docs/file-format-parity.md
2026-11-13 17:01:05 +00:00
Dylan M. Taylor a10d50e181 Merge remote-tracking branch 'origin/main' into codex/figcraft-2284-refresh
# Conflicts:
#	docs/file-format-parity.md
2026-11-13 16:44:02 +00:00
Dylan M. Taylor 4b10cab144 Merge remote-tracking branch 'origin/main' into codex/figcraft-2284-refresh
# Conflicts:
#	crates/format/src/fig/map.rs
#	crates/format/src/fig/map/board.rs
#	crates/format/src/fig/map/layer.rs
#	docs/file-format-parity.md
2026-11-13 16:42:56 +00:00
bflatastic c36c1754ca Merge main into #2304 2026-11-13 23:39:24 +07:00
bflatastic 93e1cf1a52 Merge main into #2324 2026-11-13 23:18:36 +07:00
bflatastic 956e9c1642 Merge main into #2304 2026-11-13 23:18:03 +07:00
Dylan M. Taylor e64ca3d69e Merge remote-tracking branch 'origin/main' into codex/figcraft-native-consumer
# Conflicts:
#	docs/file-format-parity.md
2026-11-13 16:14:05 +00:00
Dylan M. Taylor 6081e41a70 Use shared FigCraft preview reader 2026-11-13 16:07:45 +00:00
Dylan M. Taylor 990d03d6a6 Merge remote-tracking branch 'origin/main' into codex/figcraft-native-consumer
# Conflicts:
#	docs/file-format-parity.md
2026-11-13 16:04:33 +00:00
bflatastic b0b23d8c63 Merge main into #2324 2026-11-13 23:01:23 +07:00
bflatastic b6a49eaf87 Merge main into #2304 2026-11-13 23:00:50 +07:00
bflatastic 919df8fd80 Merge main into #2292 2026-11-13 23:00:17 +07:00
bflatastic a23bc45e8e Merge main into #2324 2026-11-13 22:51:09 +07:00
bflatastic e387b63fbf Merge main into #2292 2026-11-13 22:47:47 +07:00
bflatastic 0263ec8a3a Merge main into #2304 2026-11-13 22:43:54 +07:00
bflatastic c08a7c334b Merge main into #2301 2026-11-13 22:43:19 +07:00
Dylan M. Taylor 3dddb58f4c Merge branch 'switch/craft-fig-rebased' of https://github.com/storytold/figcraft into codex/figcraft-native-consumer 2026-11-13 14:17:07 +00:00
Dylan M. Taylor e4cfbb9798 Merge current main into FigCraft .fig migration 2026-11-13 12:37:02 +00:00
Dylan M. Taylor 6ad04aa4d2 Finish FigCraft native shared format cutover 2026-11-13 11:54:50 +00:00
Dylan M. Taylor 821f9a8631 Use shared FigCraft history index codec 2026-11-13 11:05:37 +00:00
Dylan M. Taylor aa460b6f33 Move native library resources into shared format 2026-11-13 10:53:52 +00:00
Trevor BrownandClaude Opus 5.5 193c3a3591 M6: the .fig export names the case of a multi-line instance text on its main's text path (#2323)
An override can't take its layer off the main component's text path, so an instance text of more than one line, whose main is on a path, stays on that path in the file. The export warned the general instance mismatch for it. It now says exactly that case: "an instance's text of more than one line stays on its main component's text path in the file, as an override can't take it off". FigCraft's own import reads such a layer as plain text. The docs' Left out list names the case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove and wrote
2026-11-13 05:40:27 -05:00
Trevor BrownandClaude Sonnet 5.5 0de5559d4e Merge upstream/main into feat/jam-native-shapes-1808
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
2026-11-13 04:44:17 -05:00
Trevor BrownandClaude Sonnet 5.5 15261112b1 Merge upstream/main into fix/fig-list-start-2273
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
2026-11-13 04:43:43 -05:00
Trevor BrownandClaude Sonnet 5.5 9f09f56488 Merge upstream/main into feat/fig-export-image-adjustments-2297
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
2026-11-13 04:43:14 -05:00
Trevor BrownandClaude Sonnet 5.5 49a0d8564f Merge upstream/main into feat/fig-export-region-paints
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
2026-11-13 04:42:45 -05:00
Trevor BrownandClaude Sonnet 5.5 79e035c0af Merge remote-tracking branch 'upstream/main' into feat/fig-export-text-path
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
2026-11-13 04:34:42 -05:00
Trevor BrownandClaude Sonnet 5.5 fb9df220b1 M6: .fig export writes a page's prototype background (#2326) (#2328)
* M6: .fig export writes a page's prototype background (#2326)

The export writes a page's prototype background as prototypeBackgroundColor (field 141, a plain colour) when it differs from the default, as Figma does for a page whose background was set. The device-settings warning now fires only for the device, rotation, colour, custom size and responsive settings. Measured on a synthetic file saved from Figma's web app.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 measured and wrote at medium

* M6: the .fig export writes a prototype background opaque and warns for its opacity, and its tests read the written record (#2326)

The colour is written with alpha 1, as the measured record has it and as the import reads it, and a background that isn't opaque warns that its opacity was left out. The tests now read the written record, and each device setting alone is checked.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Fable 5.2 reviewed; Sonnet 5.5 wrote at medium

* M6: the .fig export writes every page's prototype background, so Figma shows the same colour (#2326)

A page at FigCraft's default background used to write no field, so Figma showed its own default instead. Every page now writes its colour, opaque. The test for a default page reads the written record and the import.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 09:34:55 +01:00
Dylan M. Taylor 69d7de8510 use shared FigCraft archive budget and seek reader 2026-11-13 08:21:07 +00:00
Dylan M. Taylor d147282851 move FigCraft history indexes into shared format 2026-11-13 08:08:26 +00:00
Dylan M. Taylor 30710f5b8c feat(format): use shared native document JSON contract 2026-11-13 06:50:58 +00:00
Trevor BrownandClaude Sonnet 5.5 a243f0b81d M6: the .fig export keeps a text path's curves exact, and its instance test checks both ways round (#2323)
A curve's control points are no longer rounded on their own before their offsets from the end points are taken, so a curve read from a file is written back with the offsets it had. The instance test now reads both cases of the instance warning back.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Fable 5.2 reviewed; Sonnet 5.5 wrote at medium
2026-11-13 00:11:55 -05:00