1136 Commits
Author SHA1 Message Date
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 5f94e2de20 Merge pull request #453 from storytold/m8/user-themes
feat(shell): user themes from a folder, checked for contrast (M8)
2026-11-18 07:33:25 -07:00
Tanish Manku a8b43fd8c8 feat(audio): Convert Audio to Keyframes and Auto Lip-Sync note when the sound is not Stream-synced (M8) 2026-11-18 06:36:26 -07:00
Tanish Manku f90a3c45c1 docs: ADR 0117 (user themes from a folder), the guide, UI guidelines, roadmap, changelog and attribution (M8) 2026-11-18 06:27:11 -07:00
Tanish Manku 0a5547b6b1 feat(shell): user themes from a folder, checked for contrast, with two-tone icons and accent bars (M8) 2026-11-18 06:26:30 -07:00
Tanish Manku ffb5c07ec1 docs(adr): reserve ADR 0117 for user themes from a folder (M8) 2026-11-18 06:26:29 -07:00
Tanish Manku 4286606905 Merge pull request #449 from storytold/m5/audio-keyframes
feat(audio): Convert Audio to Keyframes and auto lip-sync (M5)
2026-11-18 06:23:44 -07:00
Tanish Manku 2128f16c2c chore: merge main (pen and keep area, layer parenting) into audio to keyframes (M5) 2026-11-18 05:48:09 -07:00
Tanish Manku 4488b2cdfd Merge pull request #450 from storytold/m1/pen-and-squash
feat(pen): Pen parity (break, adjust, add, delete, continue) and tweens that keep area (M1)
2026-11-18 05:34:21 -07:00
Tanish Manku cffaa42fc7 docs(guide): the command reference with layer parenting and the sound commands together (M5) 2026-11-18 04:50:07 -07:00
Tanish Manku 1c31c9959b Merge remote-tracking branch 'origin/main' into HEAD 2026-11-18 04:49:55 -07:00
Tanish Manku ae7fb7bb06 docs(guide): the audio-to-keyframes and lip-sync pictures with the parenting timeline (M5) 2026-11-18 04:36:00 -07:00
Tanish Manku f9712cbbbb fix(shell): the dialog's pickers take a widget id, not something a scanner reads as a cryptographic salt (M5) 2026-11-18 04:31:00 -07:00
Tanish Manku c978a60ab7 test: lint fixes in the sound analysis tests and the dialog (M5) 2026-11-18 04:31:00 -07:00
Tanish Manku 8f1e455e43 docs: ADR 0114, the guide's Convert Audio to Keyframes and Auto lip-sync sections with their pictures, command reference, roadmap, changelog and credits (M5) 2026-11-18 04:30:58 -07:00
Tanish Manku d2238584ab feat(shell): Convert Audio to Keyframes and Auto Lip-Sync dialog with a live graph and stage preview, from Modify › Timeline and Properties (M5) 2026-11-18 04:30:42 -07:00
Tanish Manku 6fc56bfefe feat(engine): sound.to_keyframes, sound.lip_sync and sound.analyse: a sound's loudness or speech keys an object on another layer, one undo step (M5) 2026-11-18 04:30:42 -07:00
Tanish Manku dd31814668 fix(shell): the graphics-health test works on its own state, so app frames on other test threads can't take its news (M5) 2026-11-18 04:30:42 -07:00
Tanish Manku 5c20ed78cf feat(audio): per-frame loudness and mouth-shape analysis of a sound, pure and bounded (M5) 2026-11-18 04:30:42 -07:00
Tanish Manku 8fdbf07016 docs(adr): reserve ADR 0114 for audio to keyframes and lip-sync (M5) 2026-11-18 04:30:42 -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 059642a9ef test: lint-clean Motion Editor footer (M1) 2026-11-18 04:07:55 -07:00
Tanish Manku e6a7a3ef43 docs: ADR 0115 (Pen parity and keep-area tweens), the guide, roadmap, changelog and attribution (M1) 2026-11-18 03:58:44 -07:00
Tanish Manku e51292e7fd feat(shell): screenshot states for Keep area and the Pen on a path; the Motion Editor explains a following axis (M1) 2026-11-18 03:56:47 -07:00
Tanish Manku 47f7a8d585 feat(shell): the Pen breaks, adjusts, continues, adds and deletes points, with Shift steps and pointer marks (M1) 2026-11-18 03:54:33 -07:00
Tanish Manku c6808bb3a1 feat(engine): path.extend continues an open path from either end, or closes it (M1) 2026-11-18 03:49:48 -07:00
Tanish Manku 5ae4143df2 feat(shell): Keep area in Properties and the Motion Editor, which draws the derived scale curve (M1) 2026-11-18 03:45:53 -07:00
Tanish Manku 58eb25d8aa feat(engine): timeline.set_keep_area, and a following scale axis isn't keyed by a drag of the other (M1) 2026-11-18 03:43:36 -07:00
Tanish Manku fe540854a3 feat(doc): keep area on classic and motion tweens: scale moves geometrically, an unkeyed axis follows (M1) 2026-11-18 03:43:36 -07:00
Tanish Manku f602214d5b docs(adr): reserve ADR 0115 for the Pen and keep-area work (M1) 2026-11-18 03:33:54 -07:00
Tanish Manku 75e8781300 Merge pull request #446 from storytold/m7/layer-parenting
feat(timeline): layer parenting with a parenting view (M7)
2026-11-18 03:32:14 -07:00
Tanish Manku 7e9d8226c3 test: lint-clean parenting tests and a timing check (M7) 2026-11-18 02:31:14 -07:00
Tanish Manku 7fb26952f0 docs: ADR 0113 (layer parenting), the guide's timeline chapter, roadmap, changelog and attribution (M7) 2026-11-18 02:31:14 -07:00
Tanish Manku ce8315ddda feat(shell): the timeline's parenting view: a parent column with draggable dots, a parent menu, the arm sample (M7) 2026-11-18 02:30:59 -07:00
Tanish Manku 44f4f1227b feat(engine): layer.set_parent, layer.remove_parent and layer.parents; followers are edited in stage space (M7) 2026-11-18 02:30:59 -07:00
Tanish Manku b228949f45 feat(doc): layer parenting in the model and evaluate: a layer follows the first object on its parent layer (M7) 2026-11-18 02:30:59 -07:00
Tanish Manku f11fb0cd56 docs(adr): reserve ADR 0113 for layer parenting (M7) 2026-11-18 02:30:59 -07:00
Tanish Manku 4dd4a643a3 Merge pull request #443 from storytold/m8/document-tabs
feat(shell): several documents open at once, in tabs above the stage (M8)
2026-11-18 02:16:56 -07:00
Tanish Manku 8dd95a3609 fix(guide): the document tabs picture is one of the book's (M8) 2026-11-18 01:25:26 -07:00
Tanish Manku b70d0fb1dd docs: ADR 0112, the guide's document tabs, copying between documents and recovery sections, its pictures, roadmap and changelog (M8) 2026-11-18 01:25:26 -07:00
Tanish Manku 0f90ef98bc feat(shell): document tabs above the stage, each with its own session, view and autosave; New and Open bring a tab, closing asks about unsaved changes, quitting asks once for all (M8) 2026-11-18 01:24:58 -07:00
Tanish Manku 2ccb66a96f feat(engine): pasted artwork brings its symbols, bitmaps and sounds into another document, renamed on a clash; a session hands the editor's share to the next (M8) 2026-11-18 01:24:58 -07:00
Tanish Manku 51c90cb425 docs(adr): reserve ADR 0112 for document tabs (M8) 2026-11-18 01:24:58 -07:00
Tanish Manku 8729eba624 Merge pull request #441 from storytold/m3/stroke-coverage
fix(render): a stroke's coverage is one union, no double-darkening (M3)
2026-11-18 01:12:36 -07:00
Tanish Manku 5c4b8594b3 chore: merge main into m3/stroke-coverage 2026-11-18 00:34:53 -07:00
Tanish Manku a4e0125073 Merge pull request #442 from storytold/m1/transformation-point
feat(stage): a movable transformation point, a box that turns with the object, and layer opacity (M1)
2026-11-18 00:26:50 -07:00
Tanish Manku 7f4e33b95e fix(stage): the drawn rotate cursor on a turned box, and the command reference after the rebase (M1) 2026-11-17 23:42:31 -07:00
Tanish Manku e3210f6288 docs: ADR 0110, roadmap, changelog, performance and licence records for stroke coverage (M3) 2026-11-17 23:34:19 -07:00
Tanish Manku 28fcfd23c6 fix(render): a stroke's coverage is that of one outline, not of overlapping pieces (M3)
The stroker builds each run of segments as its own outline (inner edges cut where they
cross, through the bend's point where they can't) and unites the loops, so the
renderers' sum of signed areas is the stroke's true coverage: no pixel is darker where
pieces overlapped (it was up to about half a pixel at round joins, caps and the joints
of wide curves). The GPU stage draws the oracle's polygons, so it follows.

Fourteen corpus goldens change, all at stroke edges (lighter; the dark knots at
corners go). Measured, median of 80 renders, before -> after: 2,000 stroked shapes at
1080p 9.3 -> 9.0 ms; the demo 2.5 -> 2.6 ms; 300 self-crossing scribbles at 720p
5.9 -> 6.4 ms; edges handed to the rasterizers down 3 to 4 times.
2026-11-17 23:33:55 -07:00