Artboards: Artboard Options shows video safe areas and sets the pixel aspect ratio that View › Rulers › Show Video Rulers counts the artboard in

Squashed from #3831 onto main.
This commit is contained in:
bflatastic
2026-10-24 03:09:07 +07:00
parent 6134653951
commit 422ecc0c77
53 changed files with 779 additions and 82 deletions
+4
View File
@@ -602,6 +602,8 @@ mod tests {
locked: false,
show_center_mark: false,
show_cross_hairs: false,
show_video_safe_areas: false,
video_ruler_pixel_aspect_ratio: 1.0,
color: None,
});
d.guides = vec![Guide { artboard: Some(id), ..Guide::new(false, 150.0) }];
@@ -916,6 +918,8 @@ mod tests {
locked: false,
show_center_mark: false,
show_cross_hairs: false,
show_video_safe_areas: false,
video_ruler_pixel_aspect_ratio: 1.0,
color: None,
});
doc.ruler_origin = Point::new(5.0, 5.0);
+2
View File
@@ -461,6 +461,8 @@ impl Tool for ArtboardTool {
v["name"] = json!(a.name);
v["showCenterMark"] = json!(a.show_center_mark);
v["showCrossHairs"] = json!(a.show_cross_hairs);
v["showVideoSafeAreas"] = json!(a.show_video_safe_areas);
v["videoRulerPixelAspectRatio"] = json!(a.video_ruler_pixel_aspect_ratio);
vec![Action::Dialog("artboardOptions".into(), v)]
}
None => vec![],