mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 22:14:30 +00:00
* craft-dxf: add VectorCraft's ASCII drawing writer Move the incremental file writer from vectorcraft-cad (crates/cad/src/writer.rs) into craft_dxf::drawing. It writes the HEADER/TABLES/BLOCKS/OBJECTS skeleton around a pre-built ENTITIES section, which is the format API VectorCraft's scene mapper already uses. The existing model::write tag serializer is unchanged. Golden files lock the bytes for empty and one-LINE drawings in R12, 2000 and 2018. Part of #791 / #778. * test(dxf): preserve exact golden bytes on Windows checkout * fix(dxf): preserve BYBLOCK and use valid image dictionary keys * test(dxf): clone images before write in dictionary-key test Drawing::write takes self, so the assertions have to use a clone of the image list. The rest of the test is unchanged. --------- Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>