figcraft/crates/render/src
YTwsy 33dcb1aef6
Refuse incomplete SVG/PDF exports beyond the depth limit (#218)
SVG and PDF exports check the visible subtree's depth before bounds or drawing and refuse, with an actionable message, a document nested past 256 levels instead of silently leaving the deep layers out; nothing partial is written, and an inner layer can still be exported. The CLI and MCP report the same error. Fixes #208.

Also: on Windows, figcraft and figcraft-cli link with an 8 MB main-thread stack (Windows gives 1 MB where Linux and macOS give 8), so an export at the depth limit no longer overflows it.

Co-authored-by: bflatastic <bflatastic@users.noreply.github.com>
2026-10-14 05:23:28 +07:00
..
backdrop.rs M3: effects on groups: inner shadows and background blur 2026-10-13 13:36:54 +07:00
backdrop_tests.rs M3: paint and effects behaviour suite and fixes 2026-10-12 01:32:04 +07:00
band_tests.rs M3: progressive blur, inner shadows under strokes, noise and texture in SVG (#86) 2026-10-10 17:20:07 +07:00
blur.rs M3: progressive blur, inner shadows under strokes, noise and texture in SVG (#86) 2026-10-10 17:20:07 +07:00
boolean.rs M4: live boolean editing, arc fields, shape builder on strokes, one-sided widths (#111) 2026-10-11 10:04:25 +07:00
boolean_cache_tests.rs M4: live boolean editing, arc fields, shape builder on strokes, one-sided widths (#111) 2026-10-11 10:04:25 +07:00
draw.rs Refuse incomplete SVG/PDF exports beyond the depth limit (#218) 2026-10-14 05:23:28 +07:00
effect_order_tests.rs M3: progressive blur, inner shadows under strokes, noise and texture in SVG (#86) 2026-10-10 17:20:07 +07:00
effects_behaviour_tests.rs M7: export and inspect behaviour suite and fixes 2026-10-12 01:32:04 +07:00
export_depth.rs Refuse incomplete SVG/PDF exports beyond the depth limit (#218) 2026-10-14 05:23:28 +07:00
fx.rs M3: paint and effects behaviour suite and fixes 2026-10-12 01:32:04 +07:00
gif_tests.rs M6: animated GIF fills and TIFF images (#116) 2026-10-11 11:51:37 +07:00
glass.rs M3: effects fidelity: backdrop blur in clipped frames, exact shadow spread, glass, noise and texture (#69) 2026-10-10 11:59:59 +07:00
grain.rs M3: paint and effects behaviour suite and fixes 2026-10-12 01:32:04 +07:00
grain_tests.rs M3: effects fidelity: backdrop blur in clipped frames, exact shadow spread, glass, noise and texture (#69) 2026-10-10 11:59:59 +07:00
group_effects_tests.rs M3: effects on groups: inner shadows and background blur 2026-10-13 13:36:54 +07:00
image_profile.rs M3: embedded image colour profiles (#136) 2026-10-12 00:11:43 +07:00
image_profile_tests.rs M3: embedded image colour profiles (#136) 2026-10-12 00:11:43 +07:00
images.rs M3: embedded image colour profiles (#136) 2026-10-12 00:11:43 +07:00
lib.rs Refuse incomplete SVG/PDF exports beyond the depth limit (#218) 2026-10-14 05:23:28 +07:00
lod.rs M4: text lists, hanging punctuation and decoration styles 2026-10-12 02:09:10 +07:00
lod_tests.rs M1: cursors per tool and modifier, panel widths, outline options, dark pages 2026-10-13 00:29:41 +07:00
paint.rs M3: paint and effects behaviour suite and fixes 2026-10-12 01:32:04 +07:00
paint_behaviour_tests.rs M3: paint and effects behaviour suite and fixes 2026-10-12 01:32:04 +07:00
pattern.rs M1: cursors per tool and modifier, panel widths, outline options, dark pages 2026-10-13 00:29:41 +07:00
progressive_tests.rs M3: progressive blur, inner shadows under strokes, noise and texture in SVG (#86) 2026-10-10 17:20:07 +07:00
retained.rs M1: cursors per tool and modifier, panel widths, outline options, dark pages 2026-10-13 00:29:41 +07:00
retained_edit_tests.rs M8: retained canvas correctness (#89) 2026-10-10 18:40:26 +07:00
retained_tests.rs M3: progressive blur, inner shadows under strokes, noise and texture in SVG (#86) 2026-10-10 17:20:07 +07:00
rtl_list_tests.rs M4: rotated frame labels; right-to-left list markers (#95) 2026-10-10 21:58:01 +07:00
shadow.rs M3: effects on groups: inner shadows and background blur 2026-10-13 13:36:54 +07:00
solo_tests.rs M6: Dev Mode compare changes, focus view, annotation categories (#97) 2026-10-10 23:29:17 +07:00
spread_tests.rs M3: effects fidelity: backdrop blur in clipped frames, exact shadow spread, glass, noise and texture (#69) 2026-10-10 11:59:59 +07:00
tests.rs M3: progressive blur, inner shadows under strokes, noise and texture in SVG (#86) 2026-10-10 17:20:07 +07:00
width_tests.rs M4: variable width strokes (#58) 2026-10-10 10:12:21 +07:00