Layers: a selection change keeps the panel's row order

The Layers panel built its row order again on every selection change:
each change made a new Tracked for the rows, and the rows reported no
order revision, so the panel asked every row for the rows inside it
(7 calls for the 6 rows of the new test's document).

- LayerRows reports LayerTree::order_revision: a hash of the document,
  the open rows, Show Layers Only and the isolated node. The selection,
  the highlighted rows, the current layer and the names are not in it.
- refresh_rows writes new rows into the kept Tracked while the document
  (uid and revert count) stays the same, and makes a new Tracked for
  another document or after File > Revert.
- The craft-libs pin moves from 186a229c8 to aa7e668ec, current
  craft-libs main, which has craft-libs#4319 (LayerTree::order_revision).
  The winit rev moves to 0dfcec0eb, as craft-libs pins it; egui stays
  at 14c39fed1. xtask pdf-deps checks the new rev. craft-nightly keeps
  the rev main pins it at.

Two tests failed on the new craft-libs:

- canvas::tests::a_selection_drag_draws_its_marks_in_the_frame_the_pointer_moves:
  since craft-libs#4143 a frame runs one pass where it ran two, and the
  bounding box, Live Corners, hollow corners and shape widgets were drawn
  before the tool host took the frame's pointer event, so the box showed
  at the old corner. They are now drawn after it, into paint slots kept
  in their old order.
- tests::nativemenu::applying_a_dialog_preview_reads_the_menus: since
  craft-libs#4350 the closed dialog's angle field gives up the keys one
  frame sooner, so the menus are sent again without the text-editing
  gate within the frames the test ran. The test now waits for the gate
  and counts the read and that send apart.
This commit is contained in:
dotCooCoo committed 2026-11-29 21:37:32 -08:00
1 parent ad642cb34c
commit 32a5fef78d
9 files changed
+295 -165

No files matched your search

Generated
+104 -107
View File
@@ -626,12 +626,6 @@ dependencies = [
"cpufeatures 0.3.1",
]
[[package]]
name = "block"
version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a"
[[package]]
name = "block-buffer"
version = "0.10.4"
@@ -725,6 +719,17 @@ dependencies = [
"brotli-decompressor 5.0.3",
]
[[package]]
name = "brotli"
version = "9.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9071f285ed78f04f37d675abaaef5de7689e2f30a216c8dc6795465d81910a13"
dependencies = [
"alloc-no-stdlib 3.0.0",
"alloc-stdlib 0.3.0",
"brotli-decompressor 6.3.2",
]
[[package]]
name = "brotli-decompressor"
version = "5.0.3"
@@ -1184,19 +1189,6 @@ dependencies = [
"libc",
]
[[package]]
name = "core-graphics2"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5b65858d95344d2711161cd92196732f67d6c5fea238cf12f994584828731a5c"
dependencies = [
"bitflags 2.13.2",
"block",
"cfg-if",
"core-foundation 0.10.1",
"libc",
]
[[package]]
name = "core_detect"
version = "1.0.0"
@@ -1239,7 +1231,7 @@ dependencies = [
[[package]]
name = "craft"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-automation",
"craft-behavior",
@@ -1280,7 +1272,7 @@ dependencies = [
[[package]]
name = "craft-affinity"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"crc32fast",
"flate2",
@@ -1291,18 +1283,19 @@ dependencies = [
[[package]]
name = "craft-appkit"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"block2 0.6.2",
"objc2 0.6.5",
"objc2-app-kit 0.3.2",
"objc2-core-graphics",
"objc2-foundation 0.3.2",
]
[[package]]
name = "craft-atomic"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"rustix 1.1.6",
]
@@ -1310,7 +1303,7 @@ dependencies = [
[[package]]
name = "craft-automation"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"base64 0.23.1",
"craft-behavior",
@@ -1335,7 +1328,7 @@ dependencies = [
[[package]]
name = "craft-behavior"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"accesskit",
"bitflags 2.13.2",
@@ -1353,7 +1346,7 @@ dependencies = [
[[package]]
name = "craft-browse"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-behavior",
"craft-docpath",
@@ -1371,7 +1364,7 @@ dependencies = [
[[package]]
name = "craft-cdr"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"crc32fast",
"flate2",
@@ -1380,7 +1373,7 @@ dependencies = [
[[package]]
name = "craft-cloud-ui"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"egui",
]
@@ -1388,7 +1381,7 @@ dependencies = [
[[package]]
name = "craft-cms"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"md-5",
"rayon",
@@ -1397,12 +1390,12 @@ dependencies = [
[[package]]
name = "craft-codepage"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
[[package]]
name = "craft-color-ui"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-behavior",
"craft-cms",
@@ -1422,7 +1415,7 @@ dependencies = [
[[package]]
name = "craft-control"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-control-protocol",
"craft-platform",
@@ -1433,7 +1426,7 @@ dependencies = [
[[package]]
name = "craft-control-protocol"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"getrandom 0.3.4",
"serde_json",
@@ -1443,7 +1436,7 @@ dependencies = [
[[package]]
name = "craft-dds"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"rayon",
]
@@ -1451,7 +1444,7 @@ dependencies = [
[[package]]
name = "craft-dialogs"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"block2 0.6.2",
"craft-appkit",
@@ -1477,7 +1470,7 @@ dependencies = [
[[package]]
name = "craft-doc"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"blake3",
"craft-ecproj-format",
@@ -1493,7 +1486,7 @@ dependencies = [
[[package]]
name = "craft-docpath"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"serde",
]
@@ -1501,7 +1494,7 @@ dependencies = [
[[package]]
name = "craft-draw"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-behavior",
"craft-color-ui",
@@ -1520,7 +1513,7 @@ dependencies = [
[[package]]
name = "craft-dxf"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-codepage",
"encoding_rs",
@@ -1532,7 +1525,7 @@ dependencies = [
[[package]]
name = "craft-ecproj-format"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"serde",
"serde_json",
@@ -1542,12 +1535,12 @@ dependencies = [
[[package]]
name = "craft-eps"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
[[package]]
name = "craft-font-catalog"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"fontique",
"harfrust 0.13.3",
@@ -1562,7 +1555,7 @@ dependencies = [
[[package]]
name = "craft-font-manager"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-behavior",
"craft-font-catalog",
@@ -1581,7 +1574,7 @@ dependencies = [
[[package]]
name = "craft-font-os-windows"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"windows-registry",
"windows-sys 0.61.2",
@@ -1590,7 +1583,7 @@ dependencies = [
[[package]]
name = "craft-font-store"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"cap-primitives",
"craft-atomic",
@@ -1613,12 +1606,12 @@ dependencies = [
[[package]]
name = "craft-fonts-build"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
[[package]]
name = "craft-gif"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"gif",
]
@@ -1626,7 +1619,7 @@ dependencies = [
[[package]]
name = "craft-gzip"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"flate2",
]
@@ -1634,7 +1627,7 @@ dependencies = [
[[package]]
name = "craft-host"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"bitflags 2.13.2",
"craft-i18n",
@@ -1647,8 +1640,10 @@ dependencies = [
[[package]]
name = "craft-i18n"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"brotli 9.1.3",
"brotli-decompressor 6.3.2",
"chrono",
"fixed_decimal",
"icu_calendar",
@@ -1675,7 +1670,7 @@ dependencies = [
[[package]]
name = "craft-image-codecs"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-dds",
"craft-jpeg",
@@ -1702,7 +1697,7 @@ dependencies = [
[[package]]
name = "craft-imaging"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-behavior",
"craft-color-ui",
@@ -1720,7 +1715,7 @@ dependencies = [
[[package]]
name = "craft-jpeg"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"thiserror 2.0.21",
]
@@ -1728,7 +1723,7 @@ dependencies = [
[[package]]
name = "craft-jxl"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"brotli-decompressor 5.0.3",
"jixel",
@@ -1739,7 +1734,7 @@ dependencies = [
[[package]]
name = "craft-keymap"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-host",
"craft-i18n",
@@ -1754,7 +1749,7 @@ dependencies = [
[[package]]
name = "craft-layers"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-behavior",
"craft-i18n",
@@ -1768,7 +1763,7 @@ dependencies = [
[[package]]
name = "craft-menu"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-behavior",
"craft-host",
@@ -1786,7 +1781,7 @@ dependencies = [
[[package]]
name = "craft-metadata"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"brotli-decompressor 6.3.2",
"chrono",
@@ -1798,7 +1793,7 @@ dependencies = [
[[package]]
name = "craft-metafile"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"encoding_rs",
"image",
@@ -1809,7 +1804,7 @@ dependencies = [
[[package]]
name = "craft-mime"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"chrono",
"craft-codepage",
@@ -1827,7 +1822,7 @@ dependencies = [
[[package]]
name = "craft-pages"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-behavior",
"craft-keymap",
@@ -1843,7 +1838,7 @@ dependencies = [
[[package]]
name = "craft-pcraft-format"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"flate2",
"serde",
@@ -1854,7 +1849,7 @@ dependencies = [
[[package]]
name = "craft-pdf"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"hayro-interpret",
"hayro-syntax",
@@ -1866,12 +1861,12 @@ dependencies = [
[[package]]
name = "craft-platform"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"async-channel",
"async-io",
"async-process",
"core-graphics2",
"craft-appkit",
"craft-atomic",
"craft-docpath",
"craft-host",
@@ -1881,6 +1876,8 @@ dependencies = [
"js-sys",
"log",
"objc2-app-kit 0.3.2",
"objc2-core-foundation",
"objc2-core-graphics",
"rfd",
"serde",
"serde_json",
@@ -1897,7 +1894,7 @@ dependencies = [
[[package]]
name = "craft-plotter"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"kurbo 0.13.1",
"thiserror 2.0.21",
@@ -1906,7 +1903,7 @@ dependencies = [
[[package]]
name = "craft-print"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-behavior",
"craft-host",
@@ -1930,7 +1927,7 @@ dependencies = [
[[package]]
name = "craft-proof"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"log",
"miniz_oxide 0.9.1",
@@ -1941,7 +1938,7 @@ dependencies = [
[[package]]
name = "craft-ps"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-eps",
"flate2",
@@ -1955,7 +1952,7 @@ dependencies = [
[[package]]
name = "craft-psd"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"encoding_rs",
"flate2",
@@ -1966,7 +1963,7 @@ dependencies = [
[[package]]
name = "craft-quit"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"dispatch2",
"egui",
@@ -1979,7 +1976,7 @@ dependencies = [
[[package]]
name = "craft-review"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"base64 0.23.1",
"craft-behavior",
@@ -1998,7 +1995,7 @@ dependencies = [
[[package]]
name = "craft-settings"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-atomic",
"craft-host",
@@ -2015,7 +2012,7 @@ dependencies = [
[[package]]
name = "craft-stream-codecs"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"fax",
"hayro-ccitt",
@@ -2026,7 +2023,7 @@ dependencies = [
[[package]]
name = "craft-svg"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-image-codecs",
"craft-xml",
@@ -2047,7 +2044,7 @@ dependencies = [
[[package]]
name = "craft-table"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-behavior",
"craft-keymap",
@@ -2059,7 +2056,7 @@ dependencies = [
[[package]]
name = "craft-text"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-behavior",
"craft-font-manager",
@@ -2084,7 +2081,7 @@ dependencies = [
[[package]]
name = "craft-theme"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"bitflags 2.13.2",
"craft-tracked",
@@ -2099,7 +2096,7 @@ dependencies = [
[[package]]
name = "craft-theme-store"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-atomic",
"craft-behavior",
@@ -2114,7 +2111,7 @@ dependencies = [
[[package]]
name = "craft-tiff"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"serde",
"thiserror 2.0.21",
@@ -2124,7 +2121,7 @@ dependencies = [
[[package]]
name = "craft-time"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"serde",
"thiserror 2.0.21",
@@ -2133,7 +2130,7 @@ dependencies = [
[[package]]
name = "craft-timeline"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-behavior",
"craft-keymap",
@@ -2148,12 +2145,12 @@ dependencies = [
[[package]]
name = "craft-tracked"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
[[package]]
name = "craft-ui"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-cloud-ui",
"craft-ui-canvas",
@@ -2167,7 +2164,7 @@ dependencies = [
[[package]]
name = "craft-ui-canvas"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-behavior",
"craft-i18n",
@@ -2183,7 +2180,7 @@ dependencies = [
[[package]]
name = "craft-ui-contract"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"accesskit",
"craft-behavior",
@@ -2221,7 +2218,7 @@ dependencies = [
[[package]]
name = "craft-ui-macros"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"proc-macro-crate",
"proc-macro2",
@@ -2232,7 +2229,7 @@ dependencies = [
[[package]]
name = "craft-ui-panels"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2250,7 +2247,7 @@ dependencies = [
[[package]]
name = "craft-ui-patterns"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2271,7 +2268,7 @@ dependencies = [
[[package]]
name = "craft-ui-shell"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2292,7 +2289,7 @@ dependencies = [
[[package]]
name = "craft-ui-widgets"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2311,7 +2308,7 @@ dependencies = [
[[package]]
name = "craft-update"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"base64 0.22.1",
"chrono",
@@ -2343,7 +2340,7 @@ dependencies = [
[[package]]
name = "craft-vectorcraft-format"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"flate2",
"serde",
@@ -2354,7 +2351,7 @@ dependencies = [
[[package]]
name = "craft-wayland"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"raw-window-handle",
"wayland-backend",
@@ -2364,7 +2361,7 @@ dependencies = [
[[package]]
name = "craft-web-api"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"js-sys",
"serde_json",
@@ -2375,7 +2372,7 @@ dependencies = [
[[package]]
name = "craft-win32"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"winsafe",
]
@@ -2383,7 +2380,7 @@ dependencies = [
[[package]]
name = "craft-window"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"craft-appkit",
"craft-atomic",
@@ -2415,7 +2412,7 @@ dependencies = [
[[package]]
name = "craft-xml"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"quick-xml 0.41.0",
"serde",
@@ -3770,16 +3767,16 @@ checksum = "9f4d0e94ddd48749f06bbe4e5389fb9799a0c45bcaf00495042076ef05e3241a"
[[package]]
name = "hayro-cmap"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"brotli",
"brotli 8.0.4",
"hayro-postscript",
]
[[package]]
name = "hayro-interpret"
version = "0.7.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"bitflags 2.13.2",
"hayro-cmap",
@@ -3797,7 +3794,7 @@ dependencies = [
[[package]]
name = "hayro-jbig2"
version = "0.3.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"fearless_simd",
"hayro-ccitt",
@@ -3815,12 +3812,12 @@ dependencies = [
[[package]]
name = "hayro-postscript"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
[[package]]
name = "hayro-syntax"
version = "0.7.2"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"flate2",
"hayro-ccitt",
@@ -4803,7 +4800,7 @@ dependencies = [
[[package]]
name = "krilla"
version = "0.8.2"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"base64 0.22.1",
"bumpalo",
@@ -4960,7 +4957,7 @@ checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4"
[[package]]
name = "linesweeper"
version = "0.5.0"
source = "git+https://github.com/storytold/craft-libs?rev=186a229c8da8db5916f8a863dfd894f1879af735#186a229c8da8db5916f8a863dfd894f1879af735"
source = "git+https://github.com/storytold/craft-libs?rev=aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b#aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b"
dependencies = [
"arrayvec",
"kurbo 0.13.1",
@@ -10076,7 +10073,7 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
[[package]]
name = "winit"
version = "0.30.13"
source = "git+https://github.com/storytold/winit.git?rev=a517b3846ee8457d84ee4975110bfda6797c44dc#a517b3846ee8457d84ee4975110bfda6797c44dc"
source = "git+https://github.com/storytold/winit.git?rev=0dfcec0eb62fda5904137a63a6dd0c3d83295f45#0dfcec0eb62fda5904137a63a6dd0c3d83295f45"
dependencies = [
"ahash",
"android-activity",
+38 -38
View File
@@ -10,49 +10,49 @@ license = "MIT OR Apache-2.0"
rust-version = "1.95"
[workspace.dependencies]
craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735", default-features = false, features = ["interpret", "write"] }
craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-proof = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b", default-features = false, features = ["interpret", "write"] }
craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
craft-proof = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
# Language packs: the Craft apps' shared font store installs them (#4936).
craft-font-store = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-font-catalog = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-font-store = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
craft-font-catalog = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
# 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 = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-gzip = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-vectorcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
craft-gzip = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
# `.pcraft` documents: their manifest, full-size composite, preview, layer pixels and ICC profile.
craft-doc = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735", features = ["pcraft-pixels"] }
craft-doc = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b", features = ["pcraft-pixels"] }
# Native Affinity documents (craft-libs#914).
craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
# Bounded CDR (v1-v27) and CMX (32-bit) reader (craft-libs#778).
craft-cdr = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-cdr = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
# SVG parsing, limits, SVGZ and writer (craft-libs#778).
craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735", features = ["tree"] }
craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b", features = ["tree"] }
craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
# EPS container, previews, ASCII85 and DSC comments (craft-libs#778).
craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
# DXF tags, reader and writer (craft-libs#778, #926, #927).
craft-plotter = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-plotter = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
craft-dxf = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
# WMF, EMF and EMF+ reader (craft-libs#778).
craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-ps = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735", default-features = false, features = ["read", "write"] }
craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-stream-codecs = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-codepage = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
craft-gif = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
craft-ps = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b", default-features = false, features = ["read", "write"] }
craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
craft-stream-codecs = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
craft-jxl = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
craft-codepage = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
# 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 = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
# 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 = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-theme = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
craft-color-ui = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
craft-theme = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
# Nightly profile isolation, launch protocol, and security fence.
craft-nightly = { git = "https://github.com/storytold/craft-libs", rev = "1f6c3a21f85ed96f8fd4ddd5a959d4e1edbedb24" }
# internal
@@ -194,13 +194,13 @@ lto = "thin"
codegen-units = 1
[patch.crates-io]
hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
krilla = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "186a229c8da8db5916f8a863dfd894f1879af735" }
hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
krilla = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b" }
ecolor = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
emath = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
epaint = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
@@ -212,4 +212,4 @@ egui_glow = { git = "https://github.com/storytold/egui.git", rev = "14c39fed1817
egui_extras = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
egui_kittest = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
eframe = { git = "https://github.com/storytold/egui.git", rev = "14c39fed181756be6f357c284354e0ab55b64443" }
winit = { git = "https://github.com/storytold/winit.git", rev = "a517b3846ee8457d84ee4975110bfda6797c44dc" }
winit = { git = "https://github.com/storytold/winit.git", rev = "0dfcec0eb62fda5904137a63a6dd0c3d83295f45" }
+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 = "186a229c8da8db5916f8a863dfd894f1879af735", version = "0.1.0" }
craft-web-api = { git = "https://github.com/storytold/craft-libs", rev = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b", version = "0.1.0" }
wasm-bindgen = "0.2"
serde_json = { workspace = true }
+16 -6
View File
@@ -278,8 +278,8 @@ pub(crate) fn show_document(app: &mut VectorcraftApp, ui: &mut Ui, win: Win, kin
pressed
}
/// The body of the canvas in order: controls that take presses first, the tool host, the selection's marks, the
/// picture last.
/// The body of the canvas in order: controls that take presses first, the tool host, the selection's marks and the
/// widgets that take no press, the picture last.
fn show_body(app: &mut VectorcraftApp, ui: &mut Ui, space: &CanvasSpace, pass: Option<&ToolPass>, win: Win, kind: BodyKind) -> Body {
let live = kind == BodyKind::Live;
let presenting = app.ui.screen_mode == 3;
@@ -299,11 +299,12 @@ fn show_body(app: &mut VectorcraftApp, ui: &mut Ui, space: &CanvasSpace, pass: O
crate::dialogs::simplify_slider::show(app, ui, &space.view);
}
guides::show(app, ui, space, win, kind);
widgets::show_hollow_corners(app, ui, space, kind);
// The selection's marks paint here, under the widgets and bars, and are drawn after the tool host has taken this
// The hollow corners, the selection's marks and the bounding box with the shape widgets paint here, in that order,
// under the 3D handles and the bars. They take no press, so they are drawn after the tool host has taken this
// frame's pointer event, from the document as the event leaves it.
let hollow = PaintSlot::reserve(ui.painter());
let marks = PaintSlot::reserve(ui.painter());
widgets::show(app, ui, space, win, kind);
let boxes = PaintSlot::reserve(ui.painter());
if !presenting && !revolve_editing(app) {
crate::panels::three_d::handles::show(app, ui, space);
}
@@ -340,8 +341,17 @@ fn show_body(app: &mut VectorcraftApp, ui: &mut Ui, space: &CanvasSpace, pass: O
}
}
let after = PaintSlot::reserve(ui.painter());
widgets::show_hollow_corners(app, ui, space, kind);
let hollow_shapes = after.take_after(ui.ctx());
let after = PaintSlot::reserve(ui.painter());
selection::show(app, ui, space, win, kind);
marks.extend(ui.ctx(), after.take_after(ui.ctx()));
let mark_shapes = after.take_after(ui.ctx());
let after = PaintSlot::reserve(ui.painter());
widgets::show(app, ui, space, win, kind);
let box_shapes = after.take_after(ui.ctx());
hollow.extend(ui.ctx(), hollow_shapes);
marks.extend(ui.ctx(), mark_shapes);
boxes.extend(ui.ctx(), box_shapes);
drops::show(app, ui, win, kind);
raster::picture(app, ui, space, win, kind);
out
+18 -7
View File
@@ -182,8 +182,9 @@ pub struct LayersUi {
/// The selection square clicked last in each open document, by the document's `uid`: where a Shift-click on another
/// square starts.
pub art_anchors: HashMap<u64, NodeId>,
/// The active document's rows with the [`LayerRows::key`] they were listed at.
rows: Option<(u64, Tracked<LayerRows>)>,
/// The active document's rows with the [`LayerRows::key`] they were listed at and the document's `uid` and
/// `reverts`.
rows: Option<(u64, (u64, u64), Tracked<LayerRows>)>,
}
impl Default for LayersUi {
@@ -223,7 +224,7 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
thumbnails.hold(app.session.active().is_some_and(|st| st.interaction.is_some()) || app.session.tool_busy());
let settings = app.ui.layers_panel.settings();
refresh_rows(app);
let (Some(st), Some((_, kept))) = (app.session.active(), &app.ui.layers_ui.rows) else { return };
let (Some(st), Some((_, _, kept))) = (app.session.active(), &app.ui.layers_ui.rows) else { return };
let tree = DocLayers::of(st, kept);
let source = thumbs::LayerThumbs { doc: &st.doc };
let mut panel = LayersPanel::new(kept)
@@ -294,13 +295,23 @@ fn unrevealed<T>(app: &mut VectorcraftApp, f: impl FnOnce(&mut VectorcraftApp) -
r
}
/// Lists the active document's rows again when what they are listed from changed.
/// Lists the active document's rows again when what they are listed from changed. The new rows go into the kept
/// [`Tracked`] while the document is the same, so the panel keeps its display order when the
/// [order revision](LayerRows::order_of) stays; another document, or the same one after File › Revert, gets a new one.
fn refresh_rows(app: &mut VectorcraftApp) {
let Some(st) = app.session.active() else { return };
let key = LayerRows::key(app, st);
if app.ui.layers_ui.rows.as_ref().is_none_or(|(kept, _)| *kept != key) {
let rows = Tracked::new(LayerRows::new(app, st));
app.ui.layers_ui.rows = Some((key, rows));
let doc = (st.uid, st.reverts);
if app.ui.layers_ui.rows.as_ref().is_some_and(|(kept, _, _)| *kept == key) {
return;
}
let new = LayerRows::new(app, st);
match &mut app.ui.layers_ui.rows {
Some((kept, of, rows)) if *of == doc => {
rows.edit(|rows| *rows = new);
*kept = key;
}
slot => *slot = Some((key, doc, Tracked::new(new))),
}
}
+28 -1
View File
@@ -202,6 +202,14 @@ pub(super) struct LayerRows {
/// In isolation mode, the isolated node: the top row.
#[plain_data(assume = "a node id is an integer")]
root: Option<NodeId>,
/// What the display order is built from ([`LayerRows::order_of`]).
order: u64,
}
#[cfg(test)]
thread_local! {
/// How many times [`LayerRows::children`] was asked on this thread.
pub(super) static CHILDREN_CALLS: std::cell::Cell<usize> = const { std::cell::Cell::new(0) };
}
/// [`LayerRows`] with the editing state of their document, for the panel's host code in one pass.
@@ -243,7 +251,9 @@ impl LayerRows {
let guide_rows = ruler.iter().enumerate().filter_map(|(i, g)| Some((g.id?, i))).collect();
let blends = st.selection.objects.iter().copied().filter(|id| doc.node(*id).is_some_and(|n| matches!(n.kind, NodeKind::Blend { .. })));
let selected: HashSet<NodeId> = st.selection.objects.iter().copied().collect();
let root = st.isolation.and_then(|i| isolated_root(doc, i)).map(|(n, ..)| n.id);
Self {
order: Self::order_of(doc, &st.layers_open, app.ui.layers_panel.layers_only, root),
doc: doc.clone(),
opts: app.ui.layers_panel.clone(),
xml_id: by_xml_id(app),
@@ -258,10 +268,20 @@ impl LayerRows {
holding: super::rows::holding(doc, &selected),
selected,
blends: blends.collect(),
root: st.isolation.and_then(|i| isolated_root(doc, i)).map(|(n, ..)| n.id),
root,
}
}
/// A hash of everything the display order reads ([`LayerTree::children`] and [`LayerTree::is_open`]): the
/// document, which an edit replaces and a selection change keeps (its ruler guides and an opacity mask being
/// edited are in it), the open rows, Show Layers Only and the isolated node. The selection, the highlighted rows,
/// the current layer, the names and the other Panel Options are not in it.
fn order_of(doc: &Arc<Document>, open: &OpenRows, layers_only: bool, root: Option<NodeId>) -> u64 {
let mut hasher = DefaultHasher::new();
(Arc::as_ptr(doc) as usize, open.generation(), layers_only, root).hash(&mut hasher);
hasher.finish()
}
/// What the rows of `st` are listed from: the document and its revision (which every edit and
/// selection change moves), the open rows, isolation mode, the highlighted rows and the current
/// layer, the Panel Options, Identify Objects By and the language.
@@ -461,6 +481,8 @@ impl LayerTree for LayerRows {
/// The top rows are the layers (only the opacity mask's while one is edited), or in isolation
/// mode the isolated layer, sublayer, group or object.
fn children(&self, parent: Option<&RowId>) -> Vec<RowId> {
#[cfg(test)]
CHILDREN_CALLS.with(|c| c.set(c.get() + 1));
match parent {
None => match self.root {
Some(root) => vec![RowId::Node(root)],
@@ -491,6 +513,11 @@ impl LayerTree for LayerRows {
false
}
/// The display order changes only with what [`LayerRows::order_of`] hashes: a selection change keeps it.
fn order_revision(&self) -> Option<u64> {
Some(self.order)
}
fn info(&self, id: &RowId) -> LayerInfo {
match *id {
RowId::Node(id) => match self.doc.node(id) {
+75
View File
@@ -1352,3 +1352,78 @@ fn idle_frames_walk_no_node_for_the_selection_squares() {
}
assert!((1..=12).contains(&(visits() - before)), "a new selection walks the tree once: {}", visits() - before);
}
/// A selection change keeps the panel's display order: no row is asked for the rows inside it. Closing a row, Show
/// Layers Only and an edit build the order again, and the rows follow.
#[test]
fn a_selection_change_keeps_the_display_order() {
use crate::tests::panel_harness::Panel;
let calls = || super::model::CHILDREN_CALLS.with(std::cell::Cell::get);
let (mut app, [_, sub, _, b, a, c]) = nested();
for (id, name) in [(sub, "Sub"), (b, "B"), (a, "A"), (c, "C")] {
name_row(&mut app, id, name);
}
app.session.execute("select.set", &json!({"ids": [b.0]})).unwrap();
let mut panel = Panel::new(app, show);
panel.frame();
let before = calls();
panel.app().session.execute("select.set", &json!({"ids": [a.0]})).unwrap();
for _ in 0..3 {
panel.frame();
}
assert_eq!(calls() - before, 0, "a selection change asks no row for its rows");
assert!(panel.shows("A") && panel.shows("B"), "the rows stay");
expand(&mut panel.app(), &json!({"ids": [sub.0], "open": false})).unwrap();
let before = calls();
panel.frame();
panel.frame();
assert!(calls() > before, "closing a row builds the order again");
assert!(!panel.shows("A") && panel.shows("Sub") && panel.shows("C"), "the closed sublayer's rows are gone");
panel.app().ui.layers_panel.layers_only = true;
panel.frame();
panel.frame();
assert!(!panel.shows("C") && panel.shows("Sub"), "Show Layers Only leaves the objects out");
panel.app().ui.layers_panel.layers_only = false;
panel.app().session.execute("object.isolate", &json!({"id": sub.0})).unwrap();
panel.frame();
panel.frame();
assert!(panel.shows("Sub") && !panel.shows("C"), "isolation mode lists only the isolated sublayer");
panel.app().session.execute("object.exitIsolation", &json!({})).unwrap();
expand(&mut panel.app(), &json!({"ids": [sub.0], "open": true})).unwrap();
let made = panel.app().session.execute("shape.rectangle", &json!({"x": 200, "y": 200, "width": 10, "height": 10})).unwrap();
let d = NodeId(made["id"].as_u64().unwrap());
name_row(&mut panel.app(), d, "D");
panel.frame();
panel.frame();
assert!(panel.shows("D") && panel.shows("C"), "an edit lists the new object");
}
/// The order revision stays through a selection change and moves with the document, the open rows, Show Layers Only
/// and isolation mode.
#[test]
fn the_order_revision_follows_what_the_display_order_reads() {
let order = |app: &VectorcraftApp| LayerRows::new(app, app.session.active().unwrap()).order_revision();
let (mut app, [_, sub, g, b, a, _]) = nested();
let first = order(&app);
assert!(first.is_some(), "the rows report an order revision");
app.session.execute("select.set", &json!({"ids": [b.0]})).unwrap();
assert_eq!(order(&app), first, "a selection change keeps it");
app.session.execute("object.isolate", &json!({"id": sub.0})).unwrap();
let isolated = order(&app);
assert_ne!(isolated, first, "isolation mode moves it");
app.session.execute("object.exitIsolation", &json!({})).unwrap();
let left = order(&app);
assert_ne!(left, isolated, "leaving isolation mode moves it");
app.ui.layers_panel.layers_only = true;
assert_ne!(order(&app), left, "Show Layers Only moves it");
app.ui.layers_panel.layers_only = false;
assert_eq!(order(&app), left, "and turning it off gives it back");
expand(&mut app, &json!({"ids": [g.0], "open": false})).unwrap();
let closed = order(&app);
assert_ne!(closed, left, "closing a row moves it");
name_row(&mut app, a, "A");
assert_ne!(order(&app), closed, "an edit moves it");
}
+14 -4
View File
@@ -355,10 +355,11 @@ fn a_control_port_cancel_of_a_dialog_preview_reads_the_menus() {
}
/// OK applies the rotation a dialog previews as one undo step: the menus are read then, with Undo
/// naming it, and not for the angles previewed before.
/// naming it, and not for the angles previewed before. Once the dialog's angle field no longer takes
/// the keys, the menus are sent once more without the text-editing gate.
#[test]
fn applying_a_dialog_preview_reads_the_menus() {
let (m, (read, synced, closed, after)) = undisturbed(|m| {
let (m, (read, synced, applied, closed, after)) = undisturbed(|m| {
m.rotate_preview();
let read = m.angles(4);
let synced = m.fake.synced();
@@ -367,12 +368,21 @@ fn applying_a_dialog_preview_reads_the_menus() {
// gone two frames later.
m.frame(vec![]);
m.frame(vec![]);
let applied = m.fake.synced();
// The frame after the field gives up the keys sets the gate.
for _ in 0..4 {
if !m.ctx.egui_wants_keyboard_input() {
break;
}
m.frame(vec![]);
}
m.frame(vec![]);
(read, synced, !m.app.session.in_interaction() && !m.app.any_dialog_open(), m.fake.synced())
(read, synced, applied, !m.app.session.in_interaction() && !m.app.any_dialog_open(), m.fake.synced())
});
assert_eq!(read, 0, "the menus weren't read while the dialog previewed the angles");
assert!(closed);
assert_eq!(after, synced + 1, "the menus were read");
assert_eq!(applied, synced + 1, "the menus were read");
assert_eq!(after, synced + 2, "and sent once more when the gate changed");
assert_eq!(find(&m.fake.last(), "edit.undo").label, "Undo Rotate");
}
+1 -1
View File
@@ -5,7 +5,7 @@ use std::process::Command;
use serde_json::Value;
const REV: &str = "186a229c8da8db5916f8a863dfd894f1879af735";
const REV: &str = "aa7e668ec6e2f2b723de34dceeb7d756f5ff9f4b";
const PACKAGES: &[(&str, &str, &str)] = &[
("craft-pdf", "0.1.0", REV),
("krilla", "0.8.2", REV),