DXF export: Always Export Group as Block Reference

DXF Options gets the check box Always Export Group as Block Reference,
and document.exportDxf and document.export take groupBlocks. It is off
by default, and the CNC / CAM preset does not set it. When it is on,
each group is written as a block definition holding its contents,
placed by one INSERT on the group's layer at the origin, unscaled, so
its entities keep their coordinates. A group inside it becomes a block
placed inside that block, and a group that writes no entity writes no
block. Block names come from the group names ("Group" for an unnamed
group), made unique with _2, _3 and so on, and follow each version's
naming rules. It works in every version from R12 to 2018.

The craft-libs revs move to 35709fdb (storytold/craft-libs#5381 on top
of the current pin 77ade517), whose drawing writer writes block
definitions and INSERT entities. A drawing without groups, or with the
option off, is written as before.

Docs: docs/mcp.md, docs/control-protocol.md, docs/target-app-parity.md.
This commit is contained in:
dotCooCoo committed 2026-12-04 14:23:44 -08:00
1 parent 534291eb8f
commit b117e7fa90
15 files changed
+380 -152

No files matched your search

Generated
+91 -91
View File
@@ -1255,7 +1255,7 @@ dependencies = [
[[package]]
name = "craft"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-automation",
"craft-behavior",
@@ -1297,7 +1297,7 @@ dependencies = [
[[package]]
name = "craft-affinity"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"crc32fast",
"flate2",
@@ -1318,7 +1318,7 @@ dependencies = [
[[package]]
name = "craft-appkit"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"block2 0.6.2",
"objc2 0.6.5",
@@ -1330,7 +1330,7 @@ dependencies = [
[[package]]
name = "craft-atomic"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"rustix 1.1.6",
]
@@ -1338,7 +1338,7 @@ dependencies = [
[[package]]
name = "craft-automation"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"base64 0.23.1",
"craft-behavior",
@@ -1363,7 +1363,7 @@ dependencies = [
[[package]]
name = "craft-behavior"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"accesskit",
"bitflags 2.13.2",
@@ -1381,7 +1381,7 @@ dependencies = [
[[package]]
name = "craft-browse"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-behavior",
"craft-docpath",
@@ -1399,7 +1399,7 @@ dependencies = [
[[package]]
name = "craft-cdr"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"crc32fast",
"flate2",
@@ -1408,7 +1408,7 @@ dependencies = [
[[package]]
name = "craft-cloud-ui"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"egui",
]
@@ -1416,7 +1416,7 @@ dependencies = [
[[package]]
name = "craft-cms"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"md-5",
"rayon",
@@ -1425,12 +1425,12 @@ dependencies = [
[[package]]
name = "craft-codepage"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
[[package]]
name = "craft-color-ui"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-behavior",
"craft-cms",
@@ -1450,7 +1450,7 @@ dependencies = [
[[package]]
name = "craft-control"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-ai-agents",
"craft-atomic",
@@ -1466,7 +1466,7 @@ dependencies = [
[[package]]
name = "craft-control-protocol"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"getrandom 0.3.4",
"serde_json",
@@ -1476,7 +1476,7 @@ dependencies = [
[[package]]
name = "craft-dds"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"rayon",
]
@@ -1484,7 +1484,7 @@ dependencies = [
[[package]]
name = "craft-dialogs"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"block2 0.6.2",
"craft-appkit",
@@ -1510,7 +1510,7 @@ dependencies = [
[[package]]
name = "craft-doc"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"blake3",
"craft-ecproj-format",
@@ -1526,7 +1526,7 @@ dependencies = [
[[package]]
name = "craft-docpath"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"serde",
]
@@ -1534,7 +1534,7 @@ dependencies = [
[[package]]
name = "craft-draw"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-behavior",
"craft-color-ui",
@@ -1553,7 +1553,7 @@ dependencies = [
[[package]]
name = "craft-dwg"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"acadrust",
"log",
@@ -1562,7 +1562,7 @@ dependencies = [
[[package]]
name = "craft-dxf"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-codepage",
"encoding_rs",
@@ -1574,7 +1574,7 @@ dependencies = [
[[package]]
name = "craft-ecproj-format"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"serde",
"serde_json",
@@ -1584,12 +1584,12 @@ dependencies = [
[[package]]
name = "craft-eps"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
[[package]]
name = "craft-flags"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-atomic",
"dirs",
@@ -1599,7 +1599,7 @@ dependencies = [
[[package]]
name = "craft-font-catalog"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"fontique",
"harfrust 0.13.3",
@@ -1614,7 +1614,7 @@ dependencies = [
[[package]]
name = "craft-font-manager"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-behavior",
"craft-font-catalog",
@@ -1633,7 +1633,7 @@ dependencies = [
[[package]]
name = "craft-font-os-windows"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"windows-registry",
"windows-sys 0.61.2",
@@ -1642,7 +1642,7 @@ dependencies = [
[[package]]
name = "craft-font-store"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"cap-primitives",
"craft-atomic",
@@ -1665,12 +1665,12 @@ dependencies = [
[[package]]
name = "craft-fonts-build"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
[[package]]
name = "craft-gif"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"gif",
]
@@ -1678,7 +1678,7 @@ dependencies = [
[[package]]
name = "craft-gzip"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"flate2",
]
@@ -1686,7 +1686,7 @@ dependencies = [
[[package]]
name = "craft-host"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"bitflags 2.13.2",
"craft-i18n",
@@ -1699,7 +1699,7 @@ dependencies = [
[[package]]
name = "craft-i18n"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"brotli 9.1.3",
"brotli-decompressor 6.3.2",
@@ -1729,7 +1729,7 @@ dependencies = [
[[package]]
name = "craft-image-codecs"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-dds",
"craft-jpeg",
@@ -1756,7 +1756,7 @@ dependencies = [
[[package]]
name = "craft-imaging"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-behavior",
"craft-color-ui",
@@ -1774,7 +1774,7 @@ dependencies = [
[[package]]
name = "craft-jpeg"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"thiserror 2.0.21",
]
@@ -1782,7 +1782,7 @@ dependencies = [
[[package]]
name = "craft-jxl"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"brotli-decompressor 5.0.3",
"jixel",
@@ -1793,7 +1793,7 @@ dependencies = [
[[package]]
name = "craft-keymap"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-host",
"craft-i18n",
@@ -1808,7 +1808,7 @@ dependencies = [
[[package]]
name = "craft-layers"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-behavior",
"craft-i18n",
@@ -1822,7 +1822,7 @@ dependencies = [
[[package]]
name = "craft-menu"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-behavior",
"craft-host",
@@ -1840,7 +1840,7 @@ dependencies = [
[[package]]
name = "craft-metadata"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"brotli-decompressor 6.3.2",
"chrono",
@@ -1852,7 +1852,7 @@ dependencies = [
[[package]]
name = "craft-metafile"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"encoding_rs",
"image",
@@ -1863,7 +1863,7 @@ dependencies = [
[[package]]
name = "craft-mime"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"chrono",
"craft-codepage",
@@ -1873,7 +1873,7 @@ dependencies = [
[[package]]
name = "craft-nightly"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"uds_windows",
"winsafe",
@@ -1882,7 +1882,7 @@ dependencies = [
[[package]]
name = "craft-pages"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-behavior",
"craft-keymap",
@@ -1898,7 +1898,7 @@ dependencies = [
[[package]]
name = "craft-pbr"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-texture",
"thiserror 2.0.21",
@@ -1907,7 +1907,7 @@ dependencies = [
[[package]]
name = "craft-pcraft-format"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"flate2",
"serde",
@@ -1918,7 +1918,7 @@ dependencies = [
[[package]]
name = "craft-pdf"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"hayro-interpret",
"hayro-syntax",
@@ -1930,7 +1930,7 @@ dependencies = [
[[package]]
name = "craft-platform"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"async-channel",
"async-io",
@@ -1963,7 +1963,7 @@ dependencies = [
[[package]]
name = "craft-plotter"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"kurbo 0.13.1",
"thiserror 2.0.21",
@@ -1972,7 +1972,7 @@ dependencies = [
[[package]]
name = "craft-print"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-behavior",
"craft-host",
@@ -1996,7 +1996,7 @@ dependencies = [
[[package]]
name = "craft-proof"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"log",
"miniz_oxide 0.9.1",
@@ -2007,7 +2007,7 @@ dependencies = [
[[package]]
name = "craft-ps"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-eps",
"flate2",
@@ -2021,7 +2021,7 @@ dependencies = [
[[package]]
name = "craft-psd"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"encoding_rs",
"flate2",
@@ -2032,7 +2032,7 @@ dependencies = [
[[package]]
name = "craft-quit"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"dispatch2",
"egui",
@@ -2045,7 +2045,7 @@ dependencies = [
[[package]]
name = "craft-raster3d"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"rayon",
"thiserror 2.0.21",
@@ -2054,7 +2054,7 @@ dependencies = [
[[package]]
name = "craft-review"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"base64 0.23.1",
"craft-behavior",
@@ -2073,7 +2073,7 @@ dependencies = [
[[package]]
name = "craft-settings"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-atomic",
"craft-host",
@@ -2090,7 +2090,7 @@ dependencies = [
[[package]]
name = "craft-stream-codecs"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"fax",
"hayro-ccitt",
@@ -2101,7 +2101,7 @@ dependencies = [
[[package]]
name = "craft-svg"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-image-codecs",
"craft-xml",
@@ -2122,7 +2122,7 @@ dependencies = [
[[package]]
name = "craft-table"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-behavior",
"craft-keymap",
@@ -2134,7 +2134,7 @@ dependencies = [
[[package]]
name = "craft-text"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-behavior",
"craft-font-manager",
@@ -2159,7 +2159,7 @@ dependencies = [
[[package]]
name = "craft-texture"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"thiserror 2.0.21",
]
@@ -2167,7 +2167,7 @@ dependencies = [
[[package]]
name = "craft-theme"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"bitflags 2.13.2",
"craft-tracked",
@@ -2182,7 +2182,7 @@ dependencies = [
[[package]]
name = "craft-theme-store"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-atomic",
"craft-behavior",
@@ -2197,7 +2197,7 @@ dependencies = [
[[package]]
name = "craft-tiff"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"serde",
"thiserror 2.0.21",
@@ -2207,7 +2207,7 @@ dependencies = [
[[package]]
name = "craft-time"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"serde",
"thiserror 2.0.21",
@@ -2216,7 +2216,7 @@ dependencies = [
[[package]]
name = "craft-timeline"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-behavior",
"craft-keymap",
@@ -2231,12 +2231,12 @@ dependencies = [
[[package]]
name = "craft-tracked"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
[[package]]
name = "craft-ui"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-cloud-ui",
"craft-ui-canvas",
@@ -2250,7 +2250,7 @@ dependencies = [
[[package]]
name = "craft-ui-canvas"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-behavior",
"craft-font-catalog",
@@ -2267,7 +2267,7 @@ dependencies = [
[[package]]
name = "craft-ui-contract"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"accesskit",
"craft-behavior",
@@ -2305,7 +2305,7 @@ dependencies = [
[[package]]
name = "craft-ui-macros"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"proc-macro-crate",
"proc-macro2",
@@ -2316,7 +2316,7 @@ dependencies = [
[[package]]
name = "craft-ui-panels"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2334,7 +2334,7 @@ dependencies = [
[[package]]
name = "craft-ui-patterns"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2355,7 +2355,7 @@ dependencies = [
[[package]]
name = "craft-ui-shell"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2376,7 +2376,7 @@ dependencies = [
[[package]]
name = "craft-ui-widgets"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2395,7 +2395,7 @@ dependencies = [
[[package]]
name = "craft-update"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"base64 0.22.1",
"chrono",
@@ -2427,7 +2427,7 @@ dependencies = [
[[package]]
name = "craft-vectorcraft-format"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"flate2",
"serde",
@@ -2438,7 +2438,7 @@ dependencies = [
[[package]]
name = "craft-wayland"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"raw-window-handle",
"wayland-backend",
@@ -2448,7 +2448,7 @@ dependencies = [
[[package]]
name = "craft-web-api"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"js-sys",
"serde_json",
@@ -2459,7 +2459,7 @@ dependencies = [
[[package]]
name = "craft-win32"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"winsafe",
]
@@ -2467,7 +2467,7 @@ dependencies = [
[[package]]
name = "craft-window"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"craft-appkit",
"craft-atomic",
@@ -2499,7 +2499,7 @@ dependencies = [
[[package]]
name = "craft-xml"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"quick-xml 0.41.0",
"serde",
@@ -3859,7 +3859,7 @@ checksum = "9f4d0e94ddd48749f06bbe4e5389fb9799a0c45bcaf00495042076ef05e3241a"
[[package]]
name = "hayro-cmap"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"brotli 8.0.4",
"hayro-postscript",
@@ -3868,7 +3868,7 @@ dependencies = [
[[package]]
name = "hayro-interpret"
version = "0.7.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"bitflags 2.13.2",
"hayro-cmap",
@@ -3886,7 +3886,7 @@ dependencies = [
[[package]]
name = "hayro-jbig2"
version = "0.3.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"fearless_simd",
"hayro-ccitt",
@@ -3904,12 +3904,12 @@ dependencies = [
[[package]]
name = "hayro-postscript"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
[[package]]
name = "hayro-syntax"
version = "0.7.2"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"flate2",
"hayro-ccitt",
@@ -4892,7 +4892,7 @@ dependencies = [
[[package]]
name = "krilla"
version = "0.8.2"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"base64 0.22.1",
"bumpalo",
@@ -5049,7 +5049,7 @@ checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4"
[[package]]
name = "linesweeper"
version = "0.5.0"
source = "git+https://github.com/storytold/craft-libs?rev=77ade517ecb2a6ad86feb2f9983a098ad5738fc6#77ade517ecb2a6ad86feb2f9983a098ad5738fc6"
source = "git+https://github.com/storytold/craft-libs?rev=35709fdbe599b8e6309bafa8a18e20645e3602aa#35709fdbe599b8e6309bafa8a18e20645e3602aa"
dependencies = [
"arrayvec",
"kurbo 0.13.1",
+41 -41
View File
@@ -10,57 +10,57 @@ license = "MIT OR Apache-2.0"
rust-version = "1.95"
[workspace.dependencies]
craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6", default-features = false, features = ["interpret", "write"] }
craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-proof = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa", default-features = false, features = ["interpret", "write"] }
craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
craft-proof = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
# Language packs: the Craft apps' shared font store installs them (#4936).
craft-font-store = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-font-catalog = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-font-store = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
craft-font-catalog = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
# The `.vectorcraft` envelope: its members, version, embedded images and the data after the JSON.
craft-vectorcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-gzip = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-vectorcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
craft-gzip = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
# `.pcraft` documents: their manifest, full-size composite, preview, layer pixels and ICC profile.
craft-doc = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6", features = ["pcraft-pixels"] }
craft-doc = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa", features = ["pcraft-pixels"] }
# Native Affinity documents (craft-libs#914).
craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
# Bounded CDR (v1-v27) and CMX (32-bit) reader (craft-libs#778).
craft-cdr = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-cdr = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
# SVG parsing, limits, SVGZ and writer (craft-libs#778).
craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6", features = ["tree"] }
craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa", features = ["tree"] }
craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
# EPS container, previews, ASCII85 and DSC comments (craft-libs#778).
craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
# DXF tags, reader and writer (craft-libs#778, #926, #927).
craft-plotter = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-plotter = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
# DWG to DXF bytes, in a child process on desktop builds (acadrust 0.6.6, MPL-2.0, unmodified).
craft-dwg = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-dwg = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
# WMF, EMF and EMF+ reader (craft-libs#778).
craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-ps = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6", default-features = false, features = ["read", "write"] }
craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-stream-codecs = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-codepage = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
craft-ps = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa", default-features = false, features = ["read", "write"] }
craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
craft-stream-codecs = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
craft-codepage = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
# The metallic-roughness BRDF and environment light the 3D effects' Roughness and Metallic shade with.
craft-pbr = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-pbr = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
# The CPU rasterizer that draws a 3D effect's Render Settings › Rendered image: depth-buffered triangles, shadow maps.
craft-raster3d = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-raster3d = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
# The framework facade (`craft::ui`, `craft::settings`, `craft::platform`, ...). No default features: each crate names
# the members it imports.
craft = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
# Below the egui layer, so not through the facade: the colour harmony rules and their settings (craft-color-ui
# without its `ui` feature), the colour type they work in, and the craft-fonts tables the text crate's build writes.
craft-color-ui = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-theme = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-color-ui = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
craft-theme = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
# Nightly profile isolation, launch protocol, and security fence.
craft-nightly = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
craft-nightly = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
# internal
vectorcraft-geom = { path = "crates/geom" }
vectorcraft-color = { path = "crates/color" }
@@ -200,13 +200,13 @@ lto = "thin"
codegen-units = 1
[patch.crates-io]
hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
krilla = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6" }
hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
krilla = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa" }
ecolor = { git = "https://github.com/storytold/egui.git", rev = "861d60a65c50850e995bbb3dcee7c1f3b06815f6" }
emath = { git = "https://github.com/storytold/egui.git", rev = "861d60a65c50850e995bbb3dcee7c1f3b06815f6" }
epaint = { git = "https://github.com/storytold/egui.git", rev = "861d60a65c50850e995bbb3dcee7c1f3b06815f6" }
+1 -1
View File
@@ -28,7 +28,7 @@ egui_extras = { workspace = true }
# `wgpu` pulls egui-wgpu's defaults: WebGPU plus the WebGL2 fallback.
eframe = { workspace = true, features = ["default_fonts", "wgpu", "accesskit"] }
# The page command API (storytold/craft-libs#413): the request plumbing behind window.vectorcraft.
craft-web-api = { git = "https://github.com/storytold/craft-libs", rev = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6", version = "0.1.0" }
craft-web-api = { git = "https://github.com/storytold/craft-libs", rev = "35709fdbe599b8e6309bafa8a18e20645e3602aa", version = "0.1.0" }
wasm-bindgen = "0.2"
serde_json = { workspace = true }
+7 -1
View File
@@ -5,7 +5,8 @@
//! layer (hidden ones switched off, locked ones locked, non-printing ones not plotted), paths
//! become polylines (straight segments) or cubic splines (curves), fills their outlines and solid
//! hatches, type text entities or glyph outlines, and placed images image entities linked to PNG
//! or JPEG files the caller writes next to the drawing. Coordinates are y-up, in drawing units: `scale` units per
//! or JPEG files the caller writes next to the drawing; with [`DxfOptions::group_blocks`] groups
//! become blocks placed by INSERT entities. Coordinates are y-up, in drawing units: `scale` units per
//! `unit` of the art, with the origin at the bottom-left corner of [`DxfOptions::region`].
//! [`export_drawings`] writes one such drawing for each of several regions, applying the live
//! effects once for all of them.
@@ -316,6 +317,10 @@ pub struct DxfOptions {
pub alter_paths: bool,
/// Type is written as glyph outlines (always with [`Preserve::Appearance`]).
pub outline_text: bool,
/// Always Export Group as Block Reference: each group is written as a block definition of its
/// contents, placed by an INSERT entity on the group's layer (groups inside it are blocks
/// placed inside that block). Off: a group's contents are written as plain entities.
pub group_blocks: bool,
/// The drawing's origin is this region's bottom-left corner (document space).
pub region: Rect,
/// Leave out objects entirely outside `region` (one drawing per artboard).
@@ -336,6 +341,7 @@ impl Default for DxfOptions {
preserve: Preserve::default(),
alter_paths: false,
outline_text: false,
group_blocks: false,
region: Rect::ZERO,
crop: false,
}
+45 -13
View File
@@ -2,7 +2,8 @@
//! order. Fills are their outlines then solid hatches (the outlines alone in R12 or with
//! hatches left out), placed images are linked image files unless left out, strokes
//! polylines (with bulges for circular arcs) and cubic splines with a lineweight and dashes, or
//! filled outlines where the look needs them.
//! filled outlines where the look needs them. With [`DxfOptions::group_blocks`] each group is a
//! block, placed by an INSERT.
use std::collections::HashMap;
@@ -14,7 +15,7 @@ use vectorcraft_geom::{Affine, BezPath, FillRule, PathData, Point, Rect, Vec2};
use crate::aci::nearest_aci;
use crate::{CAP_HEIGHT, ColorDepth, DxfImage, DxfOptions, DxfOutput, MAX_NEST, Preserve, RasterFormat};
use craft_dxf::drawing::{Codes, Drawing, EntityStyle, Handle, ImageDef, Layer, LineType, STANDARD_STYLE, fixed};
use craft_dxf::drawing::{Block, Codes, Drawing, EntityStyle, Handle, ImageDef, Layer, LineType, STANDARD_STYLE, fixed};
/// Curves are flattened to within this distance (points) where DXF needs straight segments
/// (hatch boundaries, R12 polylines).
@@ -503,8 +504,13 @@ pub(crate) struct Scene<'a> {
to_dxf: Affine,
/// Drawing units per point.
k: f64,
/// The entities written so far.
/// The entities written so far: those of model space, or of the group block being written.
e: Codes,
/// The owner of the entities in `e`: model space, or the group block's record.
owner: Handle,
/// Group blocks written so far ([`DxfOptions::group_blocks`]), each after the blocks it inserts.
blocks: Vec<Block>,
block_names: Names,
next: u32,
layers: Vec<Layer>,
layer_names: Names,
@@ -544,6 +550,9 @@ impl<'a> Scene<'a> {
to_dxf: Affine::new([k, 0.0, 0.0, -k, -r.x0 * k, r.y1 * k]),
k,
e: Codes::new(o.version.into()),
owner: fixed::MODEL_RECORD,
blocks: vec![],
block_names: Names::with(&["*Model_Space", "*Paper_Space"]),
next: fixed::FIRST_FREE,
layers: vec![],
layer_names: Names::with(&["0", "Defpoints"]),
@@ -586,6 +595,7 @@ impl<'a> Scene<'a> {
linetypes: self.linetypes,
styles: self.styles,
images: self.images,
blocks: self.blocks,
entities: self.e.into_string(),
extents: self.extents.unwrap_or(limits),
limits,
@@ -660,6 +670,7 @@ impl<'a> Scene<'a> {
self.children(children, *clip);
(self.layer, self.flags) = outer;
}
NodeKind::Group { children, clip } if self.o.group_blocks => self.group_block(n, children, *clip),
NodeKind::Group { children, clip } => self.children(children, *clip),
NodeKind::Path { path, rule, guide, .. } => {
if !*guide {
@@ -754,6 +765,27 @@ impl<'a> Scene<'a> {
}
}
/// Group `n` as a block of its children's entities and an INSERT that places it on the current
/// layer ([`DxfOptions::group_blocks`]). The block's base point is the drawing's origin, so its
/// entities keep their coordinates. A group that writes no entity writes no block.
fn group_block(&mut self, n: &Node, children: &[std::sync::Arc<Node>], clip: bool) {
let (record, begin, end, insert) = (self.handle(), self.handle(), self.handle(), self.handle());
let outer = std::mem::replace(&mut self.e, Codes::new(self.o.version.into()));
let owner = std::mem::replace(&mut self.owner, record);
self.children(children, clip);
let entities = std::mem::replace(&mut self.e, outer).into_string();
self.owner = owner;
if entities.is_empty() {
return;
}
let long = self.o.version.r2000();
let base = symbol_name(n.name.as_deref().unwrap_or_default(), long);
let base = if base.is_empty() { symbol_name("Group", long) } else { base };
let name = self.block_names.unique(&base, if long { 255 } else { 31 });
self.e.insert(insert, self.owner, &self.layer, &name);
self.blocks.push(Block { name, record, begin, end, entities });
}
/// Warn about what DXF can't hold in `n`'s look.
fn note_losses(&mut self, n: &Node) {
if n.blend != vectorcraft_color::BlendMode::Normal {
@@ -959,7 +991,7 @@ impl<'a> Scene<'a> {
}
let h = self.handle();
let layer = self.layer.clone();
self.e.entity("HATCH", h, fixed::MODEL_RECORD, &layer, style, "AcDbHatch");
self.e.entity("HATCH", h, self.owner, &layer, style, "AcDbHatch");
self.e.xyz(10, 0.0, 0.0);
self.e.normal();
self.e.raw(2, "SOLID");
@@ -1040,7 +1072,7 @@ impl<'a> Scene<'a> {
let (a, b) = (self.pt(a), self.pt(b));
let layer = self.layer.clone();
let h = self.handle();
self.e.entity("LINE", h, fixed::MODEL_RECORD, &layer, style, "AcDbLine");
self.e.entity("LINE", h, self.owner, &layer, style, "AcDbLine");
self.e.xyz(10, a.x, a.y);
self.e.xyz(11, b.x, b.y);
}
@@ -1058,7 +1090,7 @@ impl<'a> Scene<'a> {
// Bit 128: a linetype runs on through the vertices instead of restarting at each one.
let flags = i64::from(closed) | if style.linetype.is_some() { 128 } else { 0 };
if self.o.version.lwpolyline() {
self.e.entity("LWPOLYLINE", h, fixed::MODEL_RECORD, &layer, style, "AcDbPolyline");
self.e.entity("LWPOLYLINE", h, self.owner, &layer, style, "AcDbPolyline");
self.e.int(90, pts.len() as i64);
self.e.int(70, flags);
if let Some(w) = width {
@@ -1072,7 +1104,7 @@ impl<'a> Scene<'a> {
}
return;
}
self.e.entity("POLYLINE", h, fixed::MODEL_RECORD, &layer, style, "AcDb2dPolyline");
self.e.entity("POLYLINE", h, self.owner, &layer, style, "AcDb2dPolyline");
self.e.int(66, 1);
self.e.xyz(10, 0.0, 0.0);
self.e.int(70, flags);
@@ -1134,7 +1166,7 @@ impl<'a> Scene<'a> {
let layer = self.layer.clone();
let h = self.handle();
if sub.closed {
self.e.entity("CIRCLE", h, fixed::MODEL_RECORD, &layer, style, "AcDbCircle");
self.e.entity("CIRCLE", h, self.owner, &layer, style, "AcDbCircle");
self.e.xyz(10, centre.x, centre.y);
self.e.num(40, radius);
self.e.normal();
@@ -1150,7 +1182,7 @@ impl<'a> Scene<'a> {
if !on_ccw_arc(a0, a1, am) {
std::mem::swap(&mut a0, &mut a1);
}
self.e.entity("ARC", h, fixed::MODEL_RECORD, &layer, style, "AcDbCircle");
self.e.entity("ARC", h, self.owner, &layer, style, "AcDbCircle");
self.e.xyz(10, centre.x, centre.y);
self.e.num(40, radius);
self.e.normal();
@@ -1197,7 +1229,7 @@ impl<'a> Scene<'a> {
let layer = self.layer.clone();
let h = self.handle();
self.e.entity("ELLIPSE", h, fixed::MODEL_RECORD, &layer, style, "AcDbEllipse");
self.e.entity("ELLIPSE", h, self.owner, &layer, style, "AcDbEllipse");
self.e.xyz(10, centre.x, centre.y);
self.e.xyz(11, axis.x, axis.y);
self.e.normal();
@@ -1232,7 +1264,7 @@ impl<'a> Scene<'a> {
let ctrl: Vec<Point> = ctrl.iter().map(|p| self.pt(*p)).collect();
let layer = self.layer.clone();
let h = self.handle();
self.e.entity("SPLINE", h, fixed::MODEL_RECORD, &layer, style, "AcDbSpline");
self.e.entity("SPLINE", h, self.owner, &layer, style, "AcDbSpline");
self.e.normal();
// Planar (bit 3) and, if the subpath is closed, also closed (bit 0). A geometrically
// closed cut needs the closed flag set so CAM/CAM tools (e.g. VCarve) treat it as a
@@ -1308,7 +1340,7 @@ impl<'a> Scene<'a> {
let p = self.pt(t.xf * origin);
let layer = self.layer.clone();
let h = self.handle();
self.e.entity("TEXT", h, fixed::MODEL_RECORD, &layer, &style, "AcDbText");
self.e.entity("TEXT", h, self.owner, &layer, &style, "AcDbText");
self.e.xyz(10, p.x, p.y);
self.e.num(40, height);
let s: String = s.chars().take(MAX_TEXT).collect();
@@ -1368,7 +1400,7 @@ impl<'a> Scene<'a> {
let def = def.handle;
let layer = self.layer.clone();
let style = EntityStyle { aci: 7, ..EntityStyle::default() };
self.e.entity("IMAGE", handle, fixed::MODEL_RECORD, &layer, &style, "AcDbRasterImage");
self.e.entity("IMAGE", handle, self.owner, &layer, &style, "AcDbRasterImage");
self.e.int(90, 0);
self.e.xyz(10, at.x, at.y);
self.e.xyz(11, u.x, u.y);
+2
View File
@@ -8,6 +8,8 @@ use vectorcraft_geom::{Affine, ParamCurve, PathData, Point, Rect, Shape, shapes}
use crate::*;
mod blocks;
type Pairs = Vec<(i32, String)>;
/// The `(code, value)` pairs of a DXF file.
+125
View File
@@ -0,0 +1,125 @@
//! Always Export Group as Block Reference: groups written as blocks placed by INSERT entities.
use super::*;
/// The user blocks of a drawing (not model or paper space): each its name and the entities
/// between its BLOCK and its ENDBLK.
fn blocks(out: &DxfOutput) -> Vec<(String, Vec<Pairs>)> {
let mut found: Vec<(String, Vec<Pairs>)> = vec![];
let mut open = false;
for o in section(&pairs(&out.bytes), "BLOCKS") {
match kind(&o) {
"BLOCK" => {
found.push((get(&o, 2).unwrap_or_default().to_string(), vec![]));
open = true;
}
"ENDBLK" => open = false,
_ if open => found.last_mut().expect("a block").1.push(o),
_ => {}
}
}
found.retain(|(name, _)| !name.starts_with('*'));
found
}
/// A filled square outside any group; the group `Frame` holding a stroked rectangle and the group
/// `Ring` holding a circle, on a second layer `Parts`.
fn grouped_doc() -> Document {
let mut d = doc_with(|d| vec![path(d, shapes::rectangle(Rect::new(150.0, 10.0, 170.0, 30.0)), Paint::solid(Color::BLACK), Paint::None, 0.0)]);
let parts = d.add_layer(Some("Parts"));
let rect = path(&mut d, shapes::rectangle(Rect::new(10.0, 10.0, 110.0, 60.0)), Paint::None, Paint::solid(Color::BLACK), 1.0);
let circle = path(&mut d, shapes::ellipse(Rect::new(40.0, 20.0, 70.0, 50.0)), Paint::None, Paint::solid(Color::rgb(0.0, 0.0, 1.0)), 1.0);
let mut ring = Node::group(d.alloc_id(), vec![Arc::new(circle)]);
ring.name = Some("Ring".into());
let mut frame = Node::group(d.alloc_id(), vec![Arc::new(rect), Arc::new(ring)]);
frame.name = Some("Frame".into());
d.insert(Some(parts), usize::MAX, frame).unwrap();
d
}
#[test]
fn groups_are_blocks_placed_by_inserts_in_every_version() {
let d = grouped_doc();
for v in DxfVersion::ALL {
let out = export(&d, &DxfOptions { version: v, group_blocks: true, ..opts(&d) }).unwrap();
let top = entities(&out);
let inserts: Vec<&Pairs> = top.iter().filter(|e| kind(e) == "INSERT").collect();
assert_eq!(inserts.len(), 1, "{v:?}: the outer group alone is placed in model space");
// Before 2000, names are capitals, letters, digits and $-_ only.
let long = v >= DxfVersion::R2000;
let (frame, ring, parts, first) = if long { ("Frame", "Ring", "Parts", "Layer 1") } else { ("FRAME", "RING", "PARTS", "LAYER_1") };
assert_eq!((get(inserts[0], 2), get(inserts[0], 8)), (Some(frame), Some(parts)), "{v:?}");
assert!(top.iter().any(|e| kind(e) != "INSERT" && get(e, 8) == Some(first)), "{v:?}: the loose square stays in model space");
let found = blocks(&out);
let names: Vec<&str> = found.iter().map(|b| b.0.as_str()).collect();
assert_eq!(names, [ring, frame], "{v:?}: the inner block comes first");
let (ring_entities, frame_entities) = (&found[0].1, &found[1].1);
assert!(!ring_entities.is_empty() && ring_entities.iter().all(|e| kind(e) != "INSERT"), "{v:?}: the circle is in its group's block");
let nested: Vec<&Pairs> = frame_entities.iter().filter(|e| kind(e) == "INSERT").collect();
assert_eq!(nested.len(), 1, "{v:?}: the inner group is placed inside the outer block");
assert_eq!(get(nested[0], 2), Some(ring), "{v:?}");
assert!(frame_entities.iter().any(|e| kind(e) != "INSERT"), "{v:?}: the rectangle is in the outer block");
if v >= DxfVersion::R13 {
// Each block's entities are owned by its BLOCK_RECORD, and the INSERTs by what holds them.
let records = table(&out, "BLOCK_RECORD");
let record = |name: &str| records.iter().find(|r| get(r, 2) == Some(name)).and_then(|r| get(r, 5).map(str::to_string));
for (name, ents) in &found {
let owner = record(name).unwrap_or_else(|| panic!("{v:?}: no BLOCK_RECORD for {name}"));
// A polyline's vertices and its SEQEND are owned by the polyline.
let owned: Vec<&Pairs> = ents.iter().filter(|e| !matches!(kind(e), "VERTEX" | "SEQEND")).collect();
assert!(!owned.is_empty() && owned.iter().all(|e| get(e, 330) == Some(owner.as_str())), "{v:?}: {name}");
}
assert_eq!(get(inserts[0], 330).map(str::to_string), record("*Model_Space"), "{v:?}: the outer INSERT is in model space");
assert_eq!(get(nested[0], 330).map(str::to_string), record(frame), "{v:?}: the inner INSERT is in the outer block");
}
}
}
#[test]
fn without_the_option_groups_are_written_as_their_contents() {
let d = grouped_doc();
let out = export(&d, &opts(&d)).unwrap();
assert!(blocks(&out).is_empty());
assert!(!kinds(&out).iter().any(|k| k == "INSERT"));
let with = export(&d, &DxfOptions { group_blocks: true, ..opts(&d) }).unwrap();
// The same entities are written, moved into blocks.
let count = |o: &DxfOutput| {
let drawn = |ents: &[Pairs]| ents.iter().filter(|e| kind(e) != "INSERT").count();
drawn(&entities(o)) + blocks(o).iter().map(|b| drawn(&b.1)).sum::<usize>()
};
assert_eq!(count(&out), count(&with));
assert_eq!(header(&pairs(&out.bytes), "$EXTMIN"), header(&pairs(&with.bytes), "$EXTMIN"));
assert_eq!(header(&pairs(&out.bytes), "$EXTMAX"), header(&pairs(&with.bytes), "$EXTMAX"));
}
#[test]
fn blocks_read_back_at_the_place_their_group_was() {
let d = grouped_doc();
let o = ImportOptions { unit: Some(Unit::Points), scale: Some(1.0), center: false, ..ImportOptions::default() };
let plain = import(&export(&d, &opts(&d)).unwrap().bytes, &o).unwrap().document;
let blocked = import(&export(&d, &DxfOptions { group_blocks: true, ..opts(&d) }).unwrap().bytes, &o).unwrap().document;
let names: Vec<&str> = blocked.symbols.iter().map(|s| s.name.as_str()).collect();
assert!(names.contains(&"Frame") && names.contains(&"Ring"), "{names:?}");
let (a, b) = (plain.art_bounds().unwrap(), blocked.art_bounds().unwrap());
assert!(close_to(&[a.x0, a.y0, a.x1, a.y1], &[b.x0, b.y0, b.x1, b.y1], 1e-6), "{a:?} against {b:?}");
}
#[test]
fn a_group_with_nothing_written_is_no_block_and_names_stay_unique() {
let mut d = Document::new(200.0, 100.0);
let layer = d.layers[0].id;
let mut hidden = path(&mut d, shapes::rectangle(Rect::new(0.0, 0.0, 5.0, 5.0)), Paint::solid(Color::BLACK), Paint::None, 0.0);
hidden.visible = false;
let empty = Node::group(d.alloc_id(), vec![Arc::new(hidden)]);
d.insert(Some(layer), usize::MAX, empty).unwrap();
for name in [Some("Part"), Some("part"), None, Some("*Model_Space")] {
let p = path(&mut d, shapes::rectangle(Rect::new(10.0, 10.0, 20.0, 20.0)), Paint::solid(Color::BLACK), Paint::None, 0.0);
let mut g = Node::group(d.alloc_id(), vec![Arc::new(p)]);
g.name = name.map(str::to_string);
d.insert(Some(layer), usize::MAX, g).unwrap();
}
let out = export(&d, &DxfOptions { group_blocks: true, ..opts(&d) }).unwrap();
let names: Vec<String> = blocks(&out).into_iter().map(|b| b.0).collect();
assert_eq!(names, ["Part", "part_2", "Group", "_Model_Space"], "the hidden-only group writes no block");
assert_eq!(kinds(&out).iter().filter(|k| *k == "INSERT").count(), 4);
}
+9 -1
View File
@@ -22,7 +22,7 @@ pub fn specs() -> Vec<CommandSpec> {
"Export DXF",
[],
None,
"{path?, dxfPreset?: custom (default)|cnc (CNC / CAM: version 2000, the oldest version that has both lightweight polylines and lineweights; unit mm, scale 1; colors 256, all 2000 holds; preserve editability and alterPaths false, so strokes stay center lines; outlineText true, so type is paths; includeImages and includeHatches false, so fills are their outlines and no image files are written; rasterFormat png; the options given override it), version?: R12|R13|R14|2000|2004|2007|2010|2013|2018 (default), unit?: mm (default; any unit name: pt, in, cm…), scale?: 1 (drawing units per unit), scaleLineweights?: false, colors?: 8|16|256|true (default; true colour needs 2004+, else 256), rasterFormat?: png (default)|jpeg (placed images, written next to the file), includeImages?: true (false: placed images and their files are left out), includeHatches?: true (false: fills are their outlines, without solid hatches), preserve?: appearance (default: type as outlines; strokes a CAD line can't draw as filled outlines; brush art)|editability (type as text; every stroke a line with its lineweight and dashes), alterPaths?: false (strokes a CAD line can't draw as their filled outlines, with editability too; also strokes wider than 2.11 mm, and every stroke in R13 and R14), outlineText?: false, selectedOnly?: false (the selected objects, in their layers), artboard?: 0 (the origin is its bottom-left corner), useArtboards?: true (one drawing per chosen artboard, artboards?/range?, holding the art over it: {stem}-{artboard}.dxf) | false (the origin at the art's bounds)} → {path, bytes, warnings, files?, linked?: [image files]}; no path → {dataBase64, …, linked?: [{name, dataBase64}]}. Layers become DXF layers (hidden: off; locked; non-printing: not plotted); paths become polylines and splines, fills their outlines (which laser and cutter software reads) and solid hatches. Same as document.export {format: dxf}. A key DXF doesn't take is refused",
"{path?, dxfPreset?: custom (default)|cnc (CNC / CAM: version 2000, the oldest version that has both lightweight polylines and lineweights; unit mm, scale 1; colors 256, all 2000 holds; preserve editability and alterPaths false, so strokes stay center lines; outlineText true, so type is paths; includeImages and includeHatches false, so fills are their outlines and no image files are written; rasterFormat png; the options given override it), version?: R12|R13|R14|2000|2004|2007|2010|2013|2018 (default), unit?: mm (default; any unit name: pt, in, cm…), scale?: 1 (drawing units per unit), scaleLineweights?: false, colors?: 8|16|256|true (default; true colour needs 2004+, else 256), rasterFormat?: png (default)|jpeg (placed images, written next to the file), includeImages?: true (false: placed images and their files are left out), includeHatches?: true (false: fills are their outlines, without solid hatches), preserve?: appearance (default: type as outlines; strokes a CAD line can't draw as filled outlines; brush art)|editability (type as text; every stroke a line with its lineweight and dashes), alterPaths?: false (strokes a CAD line can't draw as their filled outlines, with editability too; also strokes wider than 2.11 mm, and every stroke in R13 and R14), outlineText?: false, groupBlocks?: false (Always Export Group as Block Reference: each group a block of its contents, nested groups blocks inside it, placed by an INSERT on the group's layer), selectedOnly?: false (the selected objects, in their layers), artboard?: 0 (the origin is its bottom-left corner), useArtboards?: true (one drawing per chosen artboard, artboards?/range?, holding the art over it: {stem}-{artboard}.dxf) | false (the origin at the art's bounds)} → {path, bytes, warnings, files?, linked?: [image files]}; no path → {dataBase64, …, linked?: [{name, dataBase64}]}. Layers become DXF layers (hidden: off; locked; non-printing: not plotted); paths become polylines and splines, fills their outlines (which laser and cutter software reads) and solid hatches. Same as document.export {format: dxf}. A key DXF doesn't take is refused",
has_doc,
export_dxf
)]
@@ -86,6 +86,12 @@ pub(crate) const OPTIONS: &[FormatOption] = &[
description: "Alter Paths for Appearance: strokes a CAD line can't draw as their filled outlines, with editability too; also strokes wider than 2.11 mm, and every stroke in R13 and R14",
},
FormatOption { name: "outlineText", ty: "boolean", default: "false", description: "type as glyph outlines (always with preserve: appearance)" },
FormatOption {
name: "groupBlocks",
ty: "boolean",
default: "false",
description: "Always Export Group as Block Reference: each group is a block, placed by an INSERT on its layer",
},
FormatOption { name: "selectedOnly", ty: "boolean", default: "false", description: "only the selected objects, in their layers" },
];
@@ -147,6 +153,7 @@ struct Params {
preserve: Option<String>,
alter_paths: Option<bool>,
outline_text: Option<bool>,
group_blocks: Option<bool>,
}
/// A string or number param as text (`2018` and `"2018"` alike).
@@ -192,6 +199,7 @@ fn parse(p: &Value) -> Result<(DxfOptions, ArtboardPick)> {
preserve: choice("preserve", q.preserve, Preserve::from_id, d.preserve, "appearance or editability")?,
alter_paths: q.alter_paths.unwrap_or(d.alter_paths),
outline_text: q.outline_text.unwrap_or(d.outline_text),
group_blocks: q.group_blocks.unwrap_or(d.group_blocks),
..d
};
Ok((opts, q.boards))
+23
View File
@@ -174,6 +174,27 @@ fn placed_images_come_back_as_linked_files() {
let _ = std::fs::remove_dir_all(dir);
}
/// `groupBlocks` writes a group as an INSERT of a block holding its contents; off by default, and
/// not set by CNC / CAM.
#[test]
fn group_blocks_write_a_group_as_an_insert() {
let mut s = two_boards();
s.execute("select.all", &json!({})).unwrap();
s.execute("object.group", &json!({})).unwrap();
let plain = s.execute("document.exportDxf", &json!({})).unwrap();
assert_eq!(entities(&text(&plain)), ["LWPOLYLINE", "HATCH", "LWPOLYLINE", "HATCH"]);
for (cmd, p) in
[("document.exportDxf", json!({"groupBlocks": true})), ("document.export", json!({"format": "dxf", "dxfPreset": "cnc", "groupBlocks": true}))]
{
let dxf = text(&s.execute(cmd, &p).unwrap());
assert_eq!(entities(&dxf), ["INSERT"], "{p}");
let blocks = &dxf[dxf.find("\nBLOCKS\n").unwrap()..dxf.find("\nENTITIES\n").unwrap()];
assert_eq!(blocks.matches("\nLWPOLYLINE\n").count(), 2, "{p}: the group's rectangles are in its block");
}
let cnc = s.execute("document.exportDxf", &json!({"dxfPreset": "cnc"})).unwrap();
assert!(!entities(&text(&cnc)).contains(&"INSERT".to_string()));
}
/// `includeImages` and `includeHatches` leave out placed images (with their files) and fill
/// hatches, each on its own, through both commands, with and without a path; CNC / CAM leaves
/// out both, and the options given override it.
@@ -259,6 +280,7 @@ fn bad_dxf_options_are_refused() {
json!({"alterPaths": "yes"}),
json!({"includeImages": "no"}),
json!({"includeHatches": 0}),
json!({"groupBlocks": "yes"}),
] {
let e = s.execute("document.exportDxf", &p).unwrap_err().to_string();
assert!(e.contains("DXF"), "{p}: {e}");
@@ -286,6 +308,7 @@ fn formats_list_dxf_and_what_can_not_be_written() {
"preserve",
"alterPaths",
"outlineText",
"groupBlocks",
"selectedOnly",
"useArtboards",
] {
+4 -1
View File
@@ -2,7 +2,8 @@
//! cutting software and shows Custom again once one is changed), version, scale (1 unit of the
//! art = N drawing units) and lineweights, number of colours, the format of placed images and
//! Include Placed Images, Preserve Appearance or Maximize Editability, and Export Selected Art
//! Only, Alter Paths for Appearance, Outline Text and Include Fill Hatches.
//! Only, Alter Paths for Appearance, Outline Text, Include Fill Hatches and Always Export Group as
//! Block Reference (not set by a preset).
//!
//! Fields: `document.export` params (`format: dxf`, `path?`, the artboard choice) and the DXF
//! options of `document.exportDxf`. OK remembers the options for next time and writes the file
@@ -37,6 +38,7 @@ fn defaults() -> Map<String, Value> {
let mut m = preset_fields(DxfPreset::Custom);
m.insert(PRESET.into(), json!(DxfPreset::Custom.id()));
m.insert("selectedOnly".into(), json!(false));
m.insert("groupBlocks".into(), json!(DxfPreset::Custom.options().group_blocks));
m
}
@@ -132,6 +134,7 @@ fn rows(selection: bool, has_selection: bool, note: bool) -> Vec<Param> {
// Preserve Appearance always outlines type.
check_param("outlineText", tl!("Outline Text")).enabled_when("preserve", FieldValue::Text(Preserve::Editability.id().into())),
check_param("includeHatches", tl!("Include Fill Hatches")),
check_param("groupBlocks", tl!("Always Export Group as Block Reference")),
]);
rows
}
+23
View File
@@ -151,6 +151,29 @@ fn include_placed_images_and_fill_hatches_follow_the_preset_and_a_change_shows_c
assert_eq!(shown(&app), ("custom".into(), true, true));
}
#[test]
fn always_export_group_as_block_reference_writes_an_insert_and_stays_through_a_preset() {
let (mut app, written) = app(1);
app.run("object.group", json!({})).unwrap();
app.run("ui.dxfOptionsDialog", json!({"path": "/out/a.dxf"})).unwrap();
frame(&mut app);
assert_eq!(fields(&app).bool("groupBlocks"), Some(false), "off by default");
set(&mut app, "groupBlocks", json!(true));
// A preset sets the fields it sets and leaves this one as it is.
set(&mut app, "dxfPreset", json!("cnc"));
frame(&mut app);
assert_eq!((show(&fields(&app), "dxfPreset"), fields(&app).bool("groupBlocks")), ("cnc".into(), Some(true)));
confirm(&mut app);
let dxf = text(&written.borrow()[0].1);
let start = dxf.find("\nENTITIES\n").unwrap();
let entities = &dxf[start..start + dxf[start..].find("\nENDSEC\n").unwrap()];
assert_eq!(entities.matches("\n 0\n").count(), 1, "the group alone, as one entity: {entities}");
assert!(entities.contains("\n 0\nINSERT\n"), "{entities}");
assert_eq!(app.ui.dxf_options["groupBlocks"].as_bool(), Some(true), "remembered for the next export");
crate::menus::invoke(&mut app, "ui.dxfOptionsDialog", json!({}));
assert_eq!(fields(&app).bool("groupBlocks"), Some(true));
}
#[test]
fn bad_dxf_options_keep_the_dialog_open() {
let (mut app, written) = app(1);
+2 -1
View File
@@ -877,7 +877,8 @@ DXF Options: Export As… with the DXF format (`file.exportAs {format: "dxf"}`,
`document.export` params: `dxfPreset` (`custom`, `cnc`), `version`, `unit` (a unit name such as `Millimeters`), `scale`,
`scaleLineweights`, `colors` (`8`, `16`, `256`, `true`), `rasterFormat` (`png`, `jpeg`), `includeImages` (Include
Placed Images), `preserve` (`appearance`, `editability`), `selectedOnly`, `alterPaths`, `outlineText`, `includeHatches`
(Include Fill Hatches), plus `path` and the artboard choice. Setting `dxfPreset` to
(Include Fill Hatches), `groupBlocks` (Always Export Group as Block Reference, which no preset sets), plus `path` and
the artboard choice. Setting `dxfPreset` to
`cnc` sets the fields it sets (see `document.exportDxf`), and `dxfPreset` reads `custom` again once one of them is
changed; setting it to `custom` puts back the defaults. `ui.dialog.confirm` checks them (a bad value, or
Export Selected Art Only with nothing selected, keeps the dialog open), remembers them for the next DXF Options and
+5 -1
View File
@@ -12658,7 +12658,11 @@ from the bottom-left corner of the first artboard (or `artboard`), in drawing un
width profiles, arrowheads, dashes offset into their pattern) as filled outlines; `"editability"` keeps type as text
and every stroke a line. `alterPaths` writes as filled outlines those strokes (with `"editability"` too), strokes
wider than the widest lineweight (2.11 mm), and every stroke in R13 and R14, which have no lineweights; it keeps other
strokes as lines. `outlineText` outlines type, `selectedOnly` writes only the
strokes as lines. `outlineText` outlines type. `groupBlocks: true` (Always Export Group as Block Reference; default
`false`, and `dxfPreset` does not set it) writes each group as a block definition holding its contents, placed by one
INSERT on its layer at the origin, unscaled; a group inside it becomes a block placed inside that block, and a group
that writes nothing writes no block. Block names come from the group names (`Group` for an unnamed one), made unique
with `_2`, `_3`…. `selectedOnly` writes only the
selected objects in their layers (every export takes it), and `useArtboards: true` writes one drawing per chosen
artboard holding the art over it. `dxfPreset: "cnc"` (CNC / CAM; default `"custom"`) sets the options for cutting
software that the call does not give: version `2000` (the oldest version that has both lightweight polylines and lineweights), `unit:
+1
View File
@@ -2566,6 +2566,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
- DXF export's Include Placed Images and Include Fill Hatches (`includeImages`, `includeHatches`; VectorCraft's own options, on by default and off in CNC / CAM) leave out placed images with their linked files, without decoding them, and the solid hatch after each filled area's outlines, each on its own, with one note in `warnings` when something was left out; R12 keeps its own notes. An open path's fill outline is closed, as the fill is, in every version (`an_open_path_s_fill_outline_keeps_its_closing_edge`, `fills_without_hatches_keep_their_outlines`, `images_can_be_left_out_with_their_files`, `images_and_hatches_are_left_out_independently_and_the_cnc_preset_leaves_out_both`, `placed_images_and_fill_hatches_can_be_left_out`, `include_placed_images_and_fill_hatches_follow_the_preset_and_a_change_shows_custom`).
- DXF export writes a path of straight segments and circular arcs (a slot, a D shape, a rounded rectangle, a pie) as one polyline whose vertices carry a bulge (group 42) for each arc: an LWPOLYLINE in R14 and later, a POLYLINE with VERTEX entities in R12 and R13, closed when the path is closed, and it reads back as the same outline (#1299, `crates/cad/src/tests.rs`). Such a path was written as one SPLINE (a flattened polyline in R12); a path with any other curve still is. A shallow curve becomes an ARC or a bulge only when it lies on the circle within 5e-4 of its own extent as well as of the radius, and the drawing extents (`$EXTMIN`, `$EXTMAX`) reach the furthest points of every ARC and bulge.
- DXF export with Use Artboards applies live effects and places symbols' art once for all the artboards' drawings instead of once for each drawing; each drawing's bytes, linked images, warnings and notes are the same as before (`drawings_apply_the_live_effects_once_and_match_drawings_written_alone`, `each_artboard_s_drawing_is_the_drawing_of_that_artboard_alone`).
- DXF Options' Always Export Group as Block Reference (`groupBlocks`, off by default and not set by a preset) writes each group as a block of its contents, placed by an INSERT on its layer, with groups inside it as blocks placed inside that block, in every version from R12 to 2018; the drawing reads back with the same art bounds (`groups_are_blocks_placed_by_inserts_in_every_version`, `blocks_read_back_at_the_place_their_group_was`, `group_blocks_write_a_group_as_an_insert`). Behavior reference: [Export artwork, AutoCAD export options](https://helpx.adobe.com/illustrator/using/exporting-artwork.html).
- DWG drawings open and place in the desktop build, and `document.dxfInfo` reads them: craft-dwg converts the drawing to DXF, in a copy of the app started with `--dwg-worker`, off the UI thread when the user opens or places it, and the DXF reader reads it with the DXF Import Options. The web build and R1.x and R2.x drawings return an error that says to save the drawing as DXF. DWG is not written: Export As keeps it greyed out, exporting to it says to export DXF, and Save over the drawing is refused (`a_dwg_drawing_comes_in_as_its_dxf_does`, `document_open_reads_a_dwg_drawing_as_its_dxf`, `dxf_info_and_place_read_a_dwg`, `a_dwg_opened_is_never_written_back_as_dwg`; scores and estimates unchanged).
- Affinity documents in (AF.1–AF.4): `.af` (Affinity 3) and `.afdesign`/`.afphoto`/`.afpub` (Affinity 1 and 2, container versions 8–12) open and place as editable art: layers and sublayers, groups (pass-through or isolated), artboards (with their names and backgrounds) and Publisher pages side by side, curves with live corners, parametric shapes (rectangles with corner radii, ellipses, polygons, stars, pies, triangles, trapezoids), compound shapes, solid/linear/elliptical gradient fills and strokes (weight, dashes, alignment, scale-with-object), clipping by nesting, vector and pixel masks, artistic and frame text with fonts, sizes, tracking, leading and alignment, placed images (their original JPEG/PNG) and pixel layers (8/16-bit RGB, CMYK), opacity, visibility, locking and blend modes, at the document's resolution in points. Effects, adjustments, brushes and pressure profiles, transparency gradients, master pages, symbol instances (imported as their cached picture), special shapes (cloud, heart, cog…, imported as ellipses) and Affinity-only blend modes are named in the import warning. A file whose native data can't be read opens as its embedded preview with the reason, and that preview can't be placed. Save never writes back over the Affinity file and there is no Affinity export. AF.5 (from DesignCraft's import, storytold/designcraft#291) adds master pages (on a locked layer behind the pages that show them), tables (area type per cell and a line per edge), each paragraph's alignment, indents, spacing and leading, horizontal text scale, outlined text, frame text sized by its text scale, drop shadows and outer glows as live effects (inner shadows as inner glows), outline effects as strokes, colour and gradient overlays baked into the paint, embedded Affinity documents as editable content (their artboards don't become artboards), pixel layers over 64 MP at a reduced resolution and HEIC photos from their stored pixels; automatic leading (size plus the font's line gap) fitted on thumbnails; underlines and strikethrough; strokes whose style is None (every shape stores one) left out, which also brings 6 public files closer to their thumbnails; line breaks inside a paragraph; table cell text centred as Affinity centres it, also where it is taller than its cell; CMYK pixel layers converted through the document's embedded CMYK profile (relative colorimetric with black-point compensation, as each layer's colour settings name), or kept as CMYK images when there is none; outline effects on stroked shapes around their stroke; artistic text whose paragraphs align differently aligned within its longest line, a frame's first baseline at cap height, and frames whose last lines' descenders hang out made tall enough to show them (all measured on a local document's own PDF export: baselines match to 0.1 pt); a local 56-artboard document's mean thumbnail difference went from 16.2 to 11.4, and its pages' mean difference from the owner's PDF export from 12.9 to 9.3. AF.4 adds Affinity 3 artboard recognition and actual-outline clipping, source-backed JPEG/PNG raster tiles, Unicode text-run recovery, stored fallback/exact installed fonts, OpenType feature flags and compound-geometry limits. 51 public CC0/MIT/Apache-2.0 files (33 current `.af`), pinned and sha256-verified (`cargo xtask corpus --affinity`), test native retention and every-board native/SVG/PDF/PSD output for current files; selected files compare their saved thumbnails. No Affinity reopen or independent paired PSD oracle was available; [source audit and complex-font gaps](affinity-validation.md); [scope, provenance and limits](../crates/affinity/README.md).
- `.cdr` drawings of versions 1 to 27 open and place, and `.cdt` templates open as new untitled documents. `craft-cdr` reads the `WL` files of versions 1 and 2 (one page and one layer of rectangles, whole ellipses and curves with uniform fills and outlines), the RIFF chunk tree of versions 3 on and its compressed lists, and the ZIP packages of versions 14 on with the data streams of versions 16 on, and the importer maps pages to artboards side by side, layers by name, the master page's guidelines to guides on every page, groups, clipping containers (as clipping groups), curves and paths, rectangles (live, with each corner's radius), ellipses (live), arcs and polygons, uniform fills in CMYK, CMY, RGB, gray and registration, and outlines with their width (0.25 pt for a width of 0), caps, joins and dashes (behind the fill, or scaled with the object's matrix, where the file says so), an object without a fill or outline of its own taking its style's, hidden and locked layers, groups and objects, the winding flag as the nonzero fill rule, and a uniform transparency of version 13 and later as the object's opacity and blend mode. A library color stored with its name and values (version 13 and later, in a fill or an outline) becomes a spot swatch with its tint; one stored only by its number opens as a black spot color named by its palette and number, with a warning. Text, bitmaps, blends, contours, brush strokes, fountain, pattern, texture and PostScript fills, arrowheads, lenses, other transparency and the envelopes of version 3 are left out with a warning, and encrypted, ZIP64 and split packages are refused with a message. Every record layout has a source in `craft-cdr` (`storytold/craft-libs@9b28b56bc7`, `crates/cdr/PROVENANCE.md`). Reading is bounded by limits on input size, inflated size, package members, nesting, chunks, objects, coordinates and dashes, where an outline's dashes count for every shape that uses it (`craft-cdr` `crates/cdr/tests/it/read.rs`, `crates/engine/src/cmd/fileio/tests_cdr.rs`, `crates/engine/tests/import_fuzz.rs`).
+1 -1
View File
@@ -5,7 +5,7 @@ use std::process::Command;
use serde_json::Value;
const REV: &str = "77ade517ecb2a6ad86feb2f9983a098ad5738fc6";
const REV: &str = "35709fdbe599b8e6309bafa8a18e20645e3602aa";
const PACKAGES: &[(&str, &str, &str)] = &[
("craft-pdf", "0.1.0", REV),
("krilla", "0.8.2", REV),