Commit Graph
122 Commits
Author SHA1 Message Date
Tanish Manku b9abf659f4 Merge pull request #500 from FredApps: a test that linked SVG artwork survives export and re-import (M8) 2026-11-21 13:08:53 -07:00
Dylan M. Taylor dde812c923 svg: cut over length, viewBox, transform, style, and dash syntax to craft-svg (#547)
* svg: cut over length, viewBox, transform, style, and dash syntax to craft-svg (#789)

* build: repin craft-svg to merged craft-libs main (d20a8248)
2026-11-21 14:35:17 -05:00
FredApps 2cd16209af test(engine): verify SVG link export and rendered reimport parity 2026-11-20 02:07:43 +01:00
Tanish Manku 9ea84dad3a chore: merge main (video import) into data tables (M6)
Bindings apply after the reference video is placed, where main now unwraps the layer's shown
elements; command lists keep both sides' entries.
2026-11-19 15:32:59 -07:00
Dylan M. Taylor b953748e3a render: share SVG and Lottie writing and native envelope (#492)
* render: share SVG and Lottie writing and native envelope

* engine: bump craft-anicraft-format for write_version and fix lottie call

* test(lottie): accept array o/i easing tangents from craft-lottie
2026-11-19 16:25:09 -05:00
Dylan M. Taylor 2cd14dee58 svg: keep object-bounds gradients for converted Q/T quadratics (#491)
* fix(svg): preserve Q/T quadratic provenance for gradient parity

* svg: keep object-bounds gradients for converted Q/T quadratics

* fix(svg): pin merged quadratic-preserving shared parser
2026-11-19 13:25:20 -05:00
Dylan M. Taylor bcfea81647 chore(svg): bump craft-svg to craft-libs main (010702ee) (#473) 2026-11-18 18:15:34 -05:00
FredAppsandDylan M. Taylor 4a75c49e3b refactor(svg): read SVG text and path data through craft-svg (#386)
* refactor(svg): read SVG text and path data through craft-svg

SVG import now decodes its bytes with craft-svg (SVGZ, UTF-16 and Latin-1,
within the shared size limit) and refuses entity bombs, very wide elements
and deep nesting with craft-svg's guards before anicraft_xml builds a tree.

Path data (SVG import, the path.d and motion path commands, the interface
icons) is read by craft_svg::path_data. anicraft-geom keeps only the
elliptical-arc-to-cubic geometry; its own tokenizer is removed.

craft-svg is pinned to craft-libs main 57288eda.

Refs storytold/craft-libs#778, storytold/craft-libs#789

* refactor(svg): pin craft-svg to #1848 and parse colours through it

craft-svg is now at craft-libs main b836a718 (#1848), with default features
off, so the lock no longer pulls vectorcraft or the image codecs. Colours
go through parse_color_alpha; transparent stays in the app because the
shared parser rejects it. Percentage rgb channels follow the shared
parser's 8-bit rounding (50% is 128/255).

* fix(svg): clip out-of-range rgb() and bound decoded text

parse_color_alpha rejects rgb(300,0,0); CSS clips that to red, and so
did the previous local parser. If the shared parser fails, clip rgb()
channels and try once more. Also refuse text that grows past the 64 MiB
limit after Latin-1 or UTF-16 decoding, which svgz::text does not count.

* refactor(svg): pin craft-svg to #1878

craft-svg is now at craft-libs main c7a872e2 (#1878), which bounds the
entity-declaration scan and resets smooth-control history after Z.
default-features stays false. The other craft-libs pins are unchanged.

* fix(svg): bound rgb() components and emit integer channels

clipped_rgb now stops at a fifth component instead of collecting an
unbounded comma list, and number-form channels are retried as integers
so a value such as 127.5 is accepted by the shared parser.

* fix(svg): finish parser routing and reject missing moveto

Route the newer Continue Path entry point through the shared adapter. Require an initial moveto and assert precise preflight refusal variants. Focused geom/SVG tests: 137 + 31 passed. Quadratic gradient parity remains a separate merge blocker.

---------

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-18 15:14:56 -05:00
Tanish Manku ffd8abe510 feat(data): data tables that drive animation: tables in the Library, bindings applied in evaluate, bake, data.* commands and the shell (M6)
Numeric tables kept in the document (CSV, TSV through craft-csv, JSON), bindings of a column to a symbol instance's x, y, scale, rotation, alpha or the frame a graphic shows, applied purely in evaluate; Bake to Keyframes; a table viewer and a Data section in Properties.

Measured (test profile, Windows 10): import of 100 000 rows x 10 columns from 3.2 MB of CSV in 63 ms; evaluate of 200 instances 15 us unbound, 82 us with 200 bindings on a 1 000-row keyed table; bake of those 200 instances in 4.9 ms.
2026-11-18 08:50:41 -07:00
mocenigo 309634a67c Fix the macOS crash when a file dialog is resized: show it as a sheet (#128)
Show macOS file dialogs as sheets so resizing them no longer crashes.
Finder and Dock opens wait while a file dialog, Save As question, or
plug-in Browse sheet is up. After document tabs landed, CloseFlow also
waits while the deferred system Save As panel is pending.
2026-11-18 18:23:40 +07:00
Tanish Manku 0522c787f6 feat(geom): unions of flattened polygons on an integer grid (M3)
anicraft_geom::polygons::union turns loops that overlap or fold over themselves into
the loops of the area they cover, each point inside exactly one, with i_overlay
(MIT OR Apache-2.0). On clean outlines it costs about 60 ns an edge.
2026-11-17 23:33:55 -07:00
Tanish Manku cec0f3dab1 feat(shell): Paste takes a picture copied in another app (M1)
Paste only knew AniCraft's own clipboard, so a picture copied in Paint.NET or
Aseprite, or a screenshot, gave 'the clipboard is empty', and Ctrl+V did nothing
at all: egui-winit turns that key into a paste event only when the clipboard
holds text. Paste (menu, context menu and Ctrl/Cmd+V) now places the system
clipboard's picture as a bitmap in the middle of the view, in the Library too,
when it is newer than what AniCraft copied (its own Copy leaves a text note on
the system clipboard). The swallowed key is recognised by its release. Reading
the clipboard is platform code and uses arboard, the library eframe already
uses for text, so no crate is added. Desktop only; vectors from other apps are
not read yet.

Fixes #263
2026-11-17 20:02:12 -07:00
Tanish Manku b9b5c998c9 chore: merge main (styled text) into the outside batch (M8)
# Conflicts:
#	CHANGELOG.md
#	src/main.rs
2026-11-17 14:47:15 -07:00
Tanish Manku 6f1adc4ea2 Merge outside PR #216: feat(control): live control port and MCP bridge (ADR 0104) (M8)
# Conflicts:
#	CHANGELOG.md
#	docs/roadmap.md
#	src/main.rs
2026-11-17 13:34:18 -07:00
Tanish Manku 471049a06c chore: merge main (saved commands, shared crates) into styled text (M5)
The Save As Command and Manage Saved Commands windows open through windows::new, so they stay
below the menu bar like every other floating window.
2026-11-17 13:27:01 -07:00
Dylan M. Taylor 382171c2ca chore(lottie): pin raw gradient writer to merged shared revision 2026-11-17 04:34:28 -05:00
Dylan M. Taylor 4f0cc6f1aa Merge branch 'main' of https://github.com/storytold/anicraft into refactor/shared-lottie-gradient 2026-11-17 04:34:08 -05:00
Dylan M. Taylor bd201aea87 chore: normalize lockfile source ordering after video repin 2026-11-17 03:18:27 -05:00
Dylan M. Taylor 3622881f48 chore(video): pin Screen Video decoder to merged shared revision 2026-11-17 02:18:50 -05:00
Dylan M. Taylor 32c27795ec Merge branch 'main' of https://github.com/storytold/anicraft into refactor/shared-screen-video 2026-11-17 02:18:22 -05:00
Dylan M. Taylor 13b34f4095 perf(lottie): flatten mapped stops without intermediate vectors 2026-11-16 23:26:52 -05:00
Dylan M. Taylor 3b42d31964 refactor(lottie): share raw gradient wire assembly before fitting 2026-11-16 23:24:43 -05:00
Dylan M. Taylor 131974577b chore: preserve unrelated registry dependency selections 2026-11-16 23:13:40 -05:00
Dylan M. Taylor 0a3563f6df chore(lottie): pin path serialization to merged shared revision 2026-11-16 23:13:24 -05:00
Dylan M. Taylor 3eebdde0b2 Merge branch 'main' of https://github.com/storytold/anicraft into refactor/shared-screen-video
# Conflicts:
#	Cargo.toml
2026-11-16 23:11:31 -05:00
Dylan M. Taylor 5ab5946f11 Merge branch 'main' of https://github.com/storytold/anicraft into refactor/shared-screen-video
# Conflicts:
#	Cargo.lock
2026-11-16 23:11:14 -05:00
Dylan M. Taylor 8c1b9bdc87 Merge pull request #399 from storytold/refactor/shared-gpl-palette
refactor(swatch): read GIMP palettes through craft-palette
2026-11-16 23:10:44 -05:00
Dylan M. Taylor 41a0da7166 refactor(audio): delegate streaming WAV serialization to craft-audio (M5) (#395) 2026-11-16 22:44:21 -05:00
Dylan M. Taylor 8c192cccb9 refactor(xfl): decode Screen Video packets through craft-video 2026-11-16 22:35:02 -05:00
Dylan M. Taylor a5599b2ee3 chore(palette): pin GPL parser to merged shared revision 2026-11-16 22:31:47 -05:00
Dylan M. Taylor e75f8862ad Merge remote-tracking branch 'origin/main' into refactor/shared-gpl-palette
# Conflicts:
#	Cargo.toml
2026-11-16 22:30:39 -05:00
Dylan M. Taylor 5d63a34aa6 refactor(lottie): share Bezier serialization and preserve stage alpha (#400) 2026-11-16 21:56:32 -05:00
Dylan M. Taylor 5543a69e74 refactor(swatch): delegate GPL grammar to shared palette reader 2026-11-16 21:03:23 -05:00
Tanish Manku 0191998f0d chore: refresh Cargo.lock for the XFL test dependency (M5) 2026-11-16 18:26:51 -07:00
Tanish Manku f358745557 chore: merge main (shared Craft crates cutover) into guide search and context help (M8) 2026-11-16 15:37:18 -07:00
Dylan M. Taylor 737b56d9a0 Integrate merged APNG container with HTML cutover 2026-11-15 22:13:14 -05:00
Dylan M. Taylor b566745647 Reuse shared HTML escaping while preserving control policies 2026-11-15 15:09:45 -05:00
Dylan M. Taylor b1102b16a5 Merge main and retain shared MIME with APNG dependency isolation 2026-11-15 14:47:04 -05:00
Dylan M. Taylor 4c7aa9c3c3 Use shared bounded APNG container assembly 2026-11-15 13:33:42 -05:00
Dylan M. Taylor 163721d1a3 Use shared Base64 encoding for bitmap document payloads 2026-11-15 13:28:02 -05:00
Dylan M. Taylor f606458177 merge main: retain shared XFL updates beside WebP cutover 2026-11-15 04:48:34 -05:00
Dylan M. Taylor ccb736201c fix(engine): pin exported shared WebP animation API 2026-11-15 04:46:36 -05:00
Dylan M. Taylor 95a8ea65e4 chore(xfl): pin merged shared color effect view 2026-11-15 07:53:39 +00:00
Dylan M. Taylor 7a05cc1f08 refactor(xfl): use shared native color effect view 2026-11-15 07:22:02 +00:00
Dylan M. Taylor b5b4466ee6 chore(xfl): pin shared library metadata merge 2026-11-15 06:06:03 +00:00
Dylan M. Taylor 164c3ac955 chore(xfl): pin shared sound schema merge 2026-11-15 05:38:28 +00:00
Dylan M. Taylor 3145b23b3f refactor(xfl): delegate library metadata to craft-libs 2026-11-15 05:01:01 +00:00
Dylan M. Taylor a61c919b3a Refresh XFL consumer shared pin 2026-11-15 04:32:41 +00:00
Dylan M. Taylor 9484da6dc3 Pin XFL text schema consumer to merged revision 2026-11-15 03:21:11 +00:00
Dylan M. Taylor 1fa8ec7ad9 Pin XFL consumer to refreshed shared candidate 2026-11-15 03:17:57 +00:00