mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-02 06:07:06 -06:00
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:
@@ -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);
|
||||
|
||||
@@ -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![],
|
||||
|
||||
Reference in New Issue
Block a user