mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-31 22:16:59 -06:00
Fix up merged PRs: WordArt warp handles on main's warp catalog and hover hit list
- #519's handle test iterated the old `ALL` preset list; main has `CATALOG` now. - The hover hit-test match lists every Hit variant; add #519's Hit::Warp. - Drop the duplicate "tabs" dialog title that #569 and #637 both added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
b267a921cd
commit
e6862f18ae
@@ -1104,7 +1104,8 @@ impl Session {
|
||||
| Hit::Adjust { id, .. }
|
||||
| Hit::LineEnd { id, .. }
|
||||
| Hit::Handle { id, .. }
|
||||
| Hit::Vertex { id, .. },
|
||||
| Hit::Vertex { id, .. }
|
||||
| Hit::Warp { id, .. },
|
||||
) => Some(*id),
|
||||
None => None,
|
||||
};
|
||||
|
||||
@@ -281,7 +281,7 @@ fn hostile_adjusts_and_boxes_stay_finite() {
|
||||
#[test]
|
||||
fn every_preset_has_one_handle_per_adjust() {
|
||||
let r = rect();
|
||||
for name in ALL {
|
||||
for name in CATALOG.iter().map(|p| p.id) {
|
||||
let hs = handles(name, &[], r);
|
||||
assert_eq!(hs.len(), adjust_count(name), "{name}");
|
||||
let defaults = adjust_defaults(name);
|
||||
|
||||
@@ -47,7 +47,6 @@ fn title(id: &str) -> &'static str {
|
||||
"paragraph" => "Paragraph",
|
||||
"tabs" => "Tabs",
|
||||
"font" => "Font",
|
||||
"tabs" => "Tabs",
|
||||
"about" => "About DeckCraft",
|
||||
"preferences" => "Preferences",
|
||||
"gridOptions" => "Grid Options",
|
||||
|
||||
Reference in New Issue
Block a user