mirror of
https://github.com/storytold/gridcraft.git
synced 2026-10-24 10:46:50 -06:00
Review fix-up: build test anchors with ..Anchor::default()
Keeps the smooth round-trip test compiling as Anchor gains fields (e.g. #12's anchor mode). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
c975b5dc75
commit
e8ec40da8b
@@ -22,7 +22,7 @@ fn smooth_line_setting_round_trips() {
|
||||
s.charts.push(Chart {
|
||||
id: 1,
|
||||
kind: ChartKind::Line,
|
||||
anchor: Anchor { cell: gridcraft_core::CellRef::new(0, 3), dx: 0.0, dy: 0.0, width: 480.0, height: 300.0 },
|
||||
anchor: Anchor { cell: gridcraft_core::CellRef::new(0, 3), width: 480.0, height: 300.0, ..Anchor::default() },
|
||||
title: Some("Straight Line".into()),
|
||||
series: vec![base_series.clone()],
|
||||
legend: LegendPos::Bottom,
|
||||
@@ -39,7 +39,7 @@ fn smooth_line_setting_round_trips() {
|
||||
s.charts.push(Chart {
|
||||
id: 2,
|
||||
kind: ChartKind::ScatterLines,
|
||||
anchor: Anchor { cell: gridcraft_core::CellRef::new(15, 3), dx: 0.0, dy: 0.0, width: 480.0, height: 300.0 },
|
||||
anchor: Anchor { cell: gridcraft_core::CellRef::new(15, 3), width: 480.0, height: 300.0, ..Anchor::default() },
|
||||
title: Some("Smooth Scatter".into()),
|
||||
series: vec![smooth_series],
|
||||
legend: LegendPos::Bottom,
|
||||
|
||||
Reference in New Issue
Block a user