Rename independent measurement point toggle
Beffroi/beffroi-tools/pipeline/head There was a failure building this commit
Details
Beffroi/beffroi-tools/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
0939223405
commit
0a5f893bad
|
|
@ -1278,7 +1278,7 @@ impl Editor {
|
|||
if ui
|
||||
.put(
|
||||
Rect::from_min_size(ink.point(0.0, 360.0), Vec2::new(w, 24.0)),
|
||||
egui::Checkbox::new(&mut independent, "Use a different layer point"),
|
||||
egui::Checkbox::new(&mut independent, "Use a different measure point"),
|
||||
)
|
||||
.changed()
|
||||
{
|
||||
|
|
@ -3918,7 +3918,7 @@ mod tests {
|
|||
)
|
||||
};
|
||||
assert!(!has_advanced(&frame(&mut app, &ctx, vec![])));
|
||||
click_text(&mut app, &ctx, "Use a different layer point");
|
||||
click_text(&mut app, &ctx, "Use a different measure point");
|
||||
let output = frame(&mut app, &ctx, vec![]);
|
||||
let center = output
|
||||
.shapes
|
||||
|
|
@ -3945,7 +3945,7 @@ mod tests {
|
|||
app.apply_fields();
|
||||
assert_eq!(app.layout.layers()[1].center(), center);
|
||||
let resized = app.layout.layers().clone();
|
||||
click_text(&mut app, &ctx, "Use a different layer point");
|
||||
click_text(&mut app, &ctx, "Use a different measure point");
|
||||
assert!(app.position_layer_point.is_none());
|
||||
assert!(!has_advanced(&frame(&mut app, &ctx, vec![])));
|
||||
assert_eq!(app.layout.layers(), &resized);
|
||||
|
|
|
|||
|
|
@ -443,7 +443,7 @@ mod tests {
|
|||
frame(&mut app, &ctx, vec![mouse(pos, false)]);
|
||||
external.editor.position_point = PositionPoint::BottomRight;
|
||||
assert_eq!(Project::read(&path).unwrap(), external);
|
||||
click_text(&mut app, &ctx, "Use a different layer point");
|
||||
click_text(&mut app, &ctx, "Use a different measure point");
|
||||
external.editor.position_layer_point = Some(PositionPoint::BottomRight);
|
||||
assert_eq!(Project::read(&path).unwrap(), external);
|
||||
let output = frame(&mut app, &ctx, vec![]);
|
||||
|
|
@ -465,7 +465,7 @@ mod tests {
|
|||
frame(&mut app, &ctx, vec![mouse(pos, false)]);
|
||||
external.editor.position_layer_point = Some(PositionPoint::Center);
|
||||
assert_eq!(Project::read(&path).unwrap(), external);
|
||||
click_text(&mut app, &ctx, "Use a different layer point");
|
||||
click_text(&mut app, &ctx, "Use a different measure point");
|
||||
external.editor.position_layer_point = None;
|
||||
assert_eq!(Project::read(&path).unwrap(), external);
|
||||
app.write_project_file(
|
||||
|
|
|
|||
|
|
@ -294,7 +294,7 @@ Reference settings are session-only and independent of layer undo/redo.
|
|||
### Optional independent positioning points
|
||||
|
||||
**Measure position from** normally uses matching screen/layer points, keeping the
|
||||
inspector compact. Enable **Use a different layer point** to reveal **To layer
|
||||
inspector compact. Enable **Use a different measure point** to reveal **To layer
|
||||
point**. The first selector is the screen origin; the second is the layer endpoint.
|
||||
For absolute center coordinates, choose screen **Top left** and layer **Center**.
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
## Unreleased
|
||||
|
||||
- Rename the positioning toggle to “Use a different measure point”.
|
||||
|
||||
- Keep the example presentation visible for every output format, adapting its title, grid, tagline and screen labels to the new dimensions.
|
||||
|
||||
- Right-click a layer in the viewport or layer list to rename/delete it; list menus stay compact. Delete supports Undo and respects locked/hidden/last-layer protection.
|
||||
|
|
|
|||
Loading…
Reference in New Issue