mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-24 18:46:57 -06:00
Fix up merged PRs: Edit Points hits select their shape on right click; Hyperlink sound fields in #713's tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
8a56ce8340
commit
edaef792e0
@@ -1743,7 +1743,7 @@ fn east_asian_vertical_text_stands_ideographs_upright() {
|
||||
#[test]
|
||||
fn placed_shapes_give_the_click_boxes_of_a_slide_in_drawing_order() {
|
||||
use deckcraft_model::text::{Action, Hyperlink};
|
||||
let link = Hyperlink { action: Action::NextSlide, tooltip: String::new(), highlight_click: false };
|
||||
let link = Hyperlink { action: Action::NextSlide, tooltip: String::new(), highlight_click: false, sound: None, stop_sound: false };
|
||||
let rect = |id: u32, x: f64, click: Option<Hyperlink>| Shape {
|
||||
id: ShapeId(id),
|
||||
xfrm: Some(Xfrm::new(x, 50.0, 100.0, 40.0)),
|
||||
@@ -1783,7 +1783,7 @@ fn a_text_hyperlink_belongs_to_the_shape_that_holds_the_text() {
|
||||
use deckcraft_model::text::{Action, Hyperlink};
|
||||
let mut body = TextBody::from_text("click here");
|
||||
for r in &mut body.paragraphs[0].runs {
|
||||
r.props.link = Some(Hyperlink { action: Action::FirstSlide, tooltip: String::new(), highlight_click: false });
|
||||
r.props.link = Some(Hyperlink { action: Action::FirstSlide, tooltip: String::new(), highlight_click: false, sound: None, stop_sound: false });
|
||||
}
|
||||
let sh = Shape { id: ShapeId(7), xfrm: Some(Xfrm::new(100.0, 100.0, 300.0, 60.0)), text: Some(body), ..Default::default() };
|
||||
let placed = place_slide(&deck_with(vec![sh]), 0);
|
||||
|
||||
Reference in New Issue
Block a user