mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-30 05:27:06 -06:00
Merge PR #520 from NikitkaRa: Insert: Summary, Section and Slide Zoom with Return to Zoom
Fix-ups in the merge (review): zoom targets, sections and titles are looked up with get() instead of indexing; Hyperlink literals carry both main's sound fields and zoom_return; duplicated test statements left by the test-file union are removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -489,6 +489,7 @@ pub fn hyperlink(imp: &mut Imp, part: &Part, h: &El) -> Option<Hyperlink> {
|
||||
highlight_click: h.bool("highlightClick").unwrap_or(false),
|
||||
stop_sound: h.bool("endSnd").unwrap_or(false),
|
||||
sound: h.child("snd").and_then(|s| media_ref(imp, part, s)),
|
||||
zoom_return: None,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -783,6 +783,7 @@ fn media(w: &mut W, x: &mut Exp, o: &mut Out, id: u32, s: &Shape, m: &deckcraft_
|
||||
highlight_click: false,
|
||||
sound: None,
|
||||
stop_sound: false,
|
||||
zoom_return: None,
|
||||
});
|
||||
}
|
||||
cnvpr(w, x, o, id, &s2);
|
||||
|
||||
Reference in New Issue
Block a user