Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ repos:
- id: check-json
exclude: \.geojson$
- id: end-of-file-fixer
# Keep the original bytes emitted by released writers, including absent EOF newlines.
exclude: ^crates/engine/testdata/releases/v[^/]+\.(rgis|prefs\.json)$
- id: trailing-whitespace
- id: check-added-large-files
args: ["--maxkb=1024"]
Expand Down
1 change: 1 addition & 0 deletions ATTRIBUTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ of use.

| File | Author / source | Licence |
|---|---|---|
| Historical release projects and preferences (`crates/engine/testdata/releases/v*.rgis`, `v*.prefs.json`) | The RustGIS project: unchanged output of the published v0.2.0–v0.6.0 binaries, with made-up layer data; writers and archive checksums in the [fixture README](crates/engine/testdata/releases/README.md) | Apache-2.0 |
| Interface themes (`crates/ui-egui/themes/light.json`, `dark.json`) | The RustGIS project | Apache-2.0 |
| Sample data (`countries`, `cities`, `rivers`, `lakes` GeoJSON), embedded at build time from [rustgis-assets](https://github.com/opengeos/rustgis-assets/tree/main/data) | Natural Earth 1:110m, attributes trimmed | Public domain |
| Worldviews (`countries_<code>.geojson` and `original/countries_<code>.geojson.gz` on [source.coop](https://source.coop/opengeos/data/rustgis/worldviews)), downloaded by the app when one is chosen, not part of it | Natural Earth's Admin 0 Countries (1:10m) and its points of view, with the sample countries' attributes by `scripts/worldviews.py` in [rustgis-assets](https://github.com/opengeos/rustgis-assets): simplified to 1:110m density, or at their original detail | Public domain |
Expand Down
4 changes: 4 additions & 0 deletions crates/engine/src/prefs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ pub const FILE: &str = "prefs.json";

static WRITE_LOCK: Mutex<()> = Mutex::new(());

#[cfg(test)]
#[path = "tests/released_files.rs"]
mod released_files;

/// Reads the desktop preferences. A missing file is normal; unreadable or malformed files
/// return an error without including any preference values in the diagnostic.
pub fn read() -> Result<Map<String, Value>, String> {
Expand Down
93 changes: 93 additions & 0 deletions crates/engine/src/tests/released_files.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
//! Compatibility with files written by published releases, never by the code under test.

use crate::{Project, Session};
use rustgis_map::{Marker, Projection, Renderer, Rgba};
use serde_json::json;
use std::path::Path;

#[test]
fn released_projects_and_preferences_still_open() {
let fixtures = Path::new(env!("CARGO_MANIFEST_DIR")).join("testdata/releases");
for version in ["v0.2.0", "v0.3.0", "v0.4.0", "v0.5.0", "v0.6.0"] {
let prefs = super::read_at(&fixtures.join(format!("{version}.prefs.json"))).unwrap();
assert_eq!(prefs.get("ribbon_minimized"), Some(&json!("true")), "{version}");
if matches!(version, "v0.2.0" | "v0.3.0") {
assert_eq!(prefs.len(), 1, "{version}");
} else {
assert_eq!(prefs.len(), 2, "{version}");
let connections = crate::connections::Connections::from_json(prefs["connections"].as_str().unwrap());
assert!(connections.connections.is_empty() && connections.unread().is_empty(), "{version}");
}

let mut s = Session::new(Project::default());
s.run("project.open", &json!({"path": fixtures.join(format!("{version}.rgis"))})).unwrap();
// These inline datasets need no repair. An unexpected loss notice is a regression too.
assert_eq!(
s.notices_since(0).iter().map(|n| (n.text.as_str(), n.error)).collect::<Vec<_>>(),
[(format!("Opened {version}").as_str(), false)],
"{version}"
);
assert_eq!(s.project.name, version);
assert_eq!(s.project.maps.len(), 1, "{version}");
let map = s.map();
assert_eq!(map.name, "Map");
assert_eq!(map.projection, Projection::WebMercator);
let center = map.camera.center_lonlat();
assert!((center.x - 2.0).abs() < 1e-10 && (center.y - 3.0).abs() < 1e-10, "{version}");
assert!((map.camera.scale() - 250_000.0).abs() < 1e-6, "{version}");
// These releases changed where a newly added layer goes; preserve each saved order.
let order = if matches!(version, "v0.5.0" | "v0.6.0") { [(2, "Routes"), (1, "Places")] } else { [(1, "Places"), (2, "Routes")] };
assert_eq!(map.layers.iter().map(|l| (l.id, l.name.as_str())).collect::<Vec<_>>(), order, "{version}");

let places = map.layer(1).unwrap();
assert!(places.visible);
assert_eq!(places.dataset.name, "Places");
assert_eq!(
places.dataset.fields.iter().map(|f| (f.name.as_str(), f.ty)).collect::<Vec<_>>(),
[("name", rustgis_data::FieldType::Text), ("pop", rustgis_data::FieldType::Integer)],
"{version}"
);
assert_eq!(places.definition_query.as_deref(), Some("pop >= 20"));
assert_eq!(places.visible_rows(), [false, true]);
assert_eq!(
serde_json::to_value(&places.dataset.features).unwrap(),
json!([
{"id": 1, "geometry": {"Point": {"x": 1.0, "y": 2.0}}, "attrs": [{"Text": "Alpha"}, {"Int": 10}]},
{"id": 2, "geometry": {"Point": {"x": 3.0, "y": 4.0}}, "attrs": [{"Text": "Béta"}, {"Int": 20}]}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quality (test coverage), medium confidence. The version list is hard-coded, so a release whose v*.rgis / v*.prefs.json files are added to testdata/releases without extending this list passes silently. Only deletions fail (via unwrap). The docs make adding files a manual step, so the test should check the directory itself. Suggested change: list the fixtures on disk and require the list to match, so a new file fails until the test is extended.

Suggested change
{"id": 2, "geometry": {"Point": {"x": 3.0, "y": 4.0}}, "attrs": [{"Text": "Béta"}, {"Int": 20}]}
let fixtures = Path::new(env!("CARGO_MANIFEST_DIR")).join("testdata/releases");
let mut found: Vec<String> = std::fs::read_dir(&fixtures)
.unwrap()
.filter_map(|entry| entry.ok()?.file_name().into_string().ok())
.filter_map(|name| name.strip_suffix(".rgis").map(str::to_owned))
.collect();
found.sort();
assert_eq!(found, ["v0.2.0", "v0.3.0", "v0.4.0", "v0.5.0", "v0.6.0"]);

Not a blocker. The same list should also be checked against the README table, but that is a nit for the release quality pass.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair point. The list stays explicit for now; checking it against the files on disk is left for the release quality pass.

]),
"{version}"
);
let Renderer::Unique { field, classes, other, ramp, .. } = &places.renderer else { panic!("{version}: unique renderer lost") };
assert_eq!(field, "name");
assert_eq!(
classes.iter().map(|(name, symbol)| (name.as_str(), symbol.fill)).collect::<Vec<_>>(),
[("Alpha", Rgba::rgb(59, 125, 216)), ("Béta", Rgba::rgb(232, 122, 65)),],
"{version}"
);
assert_eq!(other.fill, Rgba::rgb(176, 176, 176));
for symbol in classes.iter().map(|(_, symbol)| symbol).chain(std::iter::once(other)) {
assert_eq!(symbol.stroke, Rgba::rgb(255, 255, 255));
assert_eq!((symbol.stroke_width, symbol.size, symbol.marker), (1.0, 7.0, Marker::Circle));
}
assert_eq!(ramp.name(), "Harbour");
assert!(places.labels.enabled && places.labels.default.bold && places.labels.default.halo);
assert_eq!(places.labels.default.field, "name");
assert_eq!(places.labels.default.size, 14.0);
assert_eq!(places.labels.default.color, Rgba::rgb(18, 52, 86));

let routes = map.layer(2).unwrap();
assert!(routes.visible && !routes.labels.enabled);
assert_eq!(routes.transparency, 25.0);
assert_eq!(
serde_json::to_value(&routes.dataset.features).unwrap(),
json!([{"id": 1, "geometry": {"Line": [[{"x": 1.0, "y": 2.0}, {"x": 3.0, "y": 4.0}]]}, "attrs": [{"Text": "Route"}]}]),
"{version}"
);
let Renderer::Single(symbol) = &routes.renderer else { panic!("{version}: single renderer lost") };
assert_eq!(symbol.fill, Rgba::rgb(51, 102, 153));
assert_eq!(symbol.stroke, Rgba::rgb(17, 34, 51));
assert_eq!((symbol.stroke_width, symbol.size, symbol.marker), (2.5, 0.0, Marker::Circle));
assert_eq!(routes.dataset.fields[0].name, "name");
assert_eq!(routes.dataset.fields[0].ty, rustgis_data::FieldType::Text);
}
}
3 changes: 3 additions & 0 deletions crates/engine/testdata/releases/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Preserve released writers' bytes across platforms, including their line endings.
v*.rgis -text
v*.prefs.json -text
37 changes: 37 additions & 0 deletions crates/engine/testdata/releases/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Files written by RustGIS releases

These are the original bytes written by the published Linux x86-64 binaries on
2026-11-14, downloaded with `gh release download` from
[opengeos/RustGIS](https://github.com/opengeos/RustGIS/releases).
Never regenerate, reformat or resave them. Add a project and preferences file for
each new release, and extend `released_projects_and_preferences_still_open`.
All five releases below support both file types; none was skipped.

| Writer | Release archive | Archive SHA-256 |
|---|---|---|
| v0.2.0 | `RustGIS-0.2.0-linux-x86_64.tar.gz` | `1cd13d8c5d84777537d211314adc745ccf9341707b546555e24a294f990b384a` |
| v0.3.0 | `RustGIS-0.3.0-linux-x86_64.tar.gz` | `98c7c2a3c2e646fb0affb6c812db6735f83b316d35c4ef89fd3bb658cebb08f2` |
| v0.4.0 | `RustGIS-0.4.0-linux-x86_64.tar.gz` | `6ccd39f1c35ff824e2ce9d875922394a00ab2468057ad183080205d17f1e07a1` |
| v0.5.0 | `RustGIS-0.5.0-linux-x86_64.tar.gz` | `a14e6bed30059ab8fb1c026c71bdb46891b2b4195e0d0ea39cc1f903b64fa9bf` |
| v0.6.0 | `RustGIS-0.6.0-linux-x86_64.tar.gz` | `633bea1712c3369ce43aa0d5ffcebe9928ff2dd1068280e9a6a8c31a2c94a972` |

Each `v*.rgis` was saved by that release's `rustgis-cli run --no-plugins`
with commands followed by `--save v<version>.rgis`. Starting with `project.new`,
`layer.addDataText` added two made-up GeoJSON datasets, with no external data:

- Places: points (1, 2), (3, 4), with `name` = Alpha, Béta and `pop` = 10, 20.
`layer.symbology` set unique values on `name`; `labels.enable`, `labels.field`
and `labels.style` set bold, haloed labels on `name`, size 14, color `#123456`.
`layer.definitionQuery` set `pop >= 20`.
- Routes: one line from (1, 2) to (3, 4), with `name` = Route.
`layer.color` set `#336699`, `layer.outline` set `#112233`, width 2.5,
and `layer.transparency` set 25 percent.
- `map.camera` set longitude 2, latitude 3, scale 250000.

The same commands saved Places before Routes in v0.2.0–v0.4.0, and Routes before
Places in v0.5.0–v0.6.0, which inserted new layers first. The test pins both orders.

Each `v*.prefs.json` was written by that release's desktop binary, started with
`--sample` and an empty, isolated `XDG_CONFIG_HOME`. Ctrl+F1 collapsed the ribbon;
the resulting `rustgis/prefs.json` was copied unchanged. Releases from v0.4.0 also
write an empty connections collection on startup. No personal settings were used.
1 change: 1 addition & 0 deletions crates/engine/testdata/releases/v0.2.0.prefs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"ribbon_minimized":"true"}
1 change: 1 addition & 0 deletions crates/engine/testdata/releases/v0.2.0.rgis
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"format":1,"name":"v0.2.0","maps":[{"name":"Map","layers":[{"id":1,"name":"Places","visible":true,"dataset":{"name":"Places","geometry_type":"Point","fields":[{"name":"name","ty":"Text","alias":null},{"name":"pop","ty":"Integer","alias":null}],"features":[{"id":1,"geometry":{"Point":{"x":1.0,"y":2.0}},"attrs":[{"Text":"Alpha"},{"Int":10}]},{"id":2,"geometry":{"Point":{"x":3.0,"y":4.0}},"attrs":[{"Text":"Béta"},{"Int":20}]}],"source":"Places.geojson"},"renderer":{"Unique":{"field":"name","classes":[["Alpha",{"fill":[59,125,216,255],"stroke":[255,255,255,255],"stroke_width":1.0,"size":7.0,"marker":"Circle"}],["Béta",{"fill":[232,122,65,255],"stroke":[255,255,255,255],"stroke_width":1.0,"size":7.0,"marker":"Circle"}]],"other":{"fill":[176,176,176,255],"stroke":[255,255,255,255],"stroke_width":1.0,"size":7.0,"marker":"Circle"},"ramp":"Harbour"}},"labels":{"enabled":true,"field":"name","size":14.0,"color":[18,52,86,255],"halo":true,"bold":true,"min_scale":null,"max_scale":null,"closest":null,"farthest":null,"placement":"Auto"},"transparency":0.0,"min_scale":null,"max_scale":null,"definition_query":"pop >= 20","selection":[],"expanded":true,"selectable":true,"graphics":false,"blend":"Normal","mask":null,"display_filters":[],"aggregation":null,"extrusion":null,"priority":0,"geometry_rev":0},{"id":2,"name":"Routes","visible":true,"dataset":{"name":"Routes","geometry_type":"Polyline","fields":[{"name":"name","ty":"Text","alias":null}],"features":[{"id":1,"geometry":{"Line":[[{"x":1.0,"y":2.0},{"x":3.0,"y":4.0}]]},"attrs":[{"Text":"Route"}]}],"source":"Routes.geojson"},"renderer":{"Single":{"fill":[51,102,153,255],"stroke":[17,34,51,255],"stroke_width":2.5,"size":0.0,"marker":"Circle"}},"labels":{"enabled":false,"field":"name","size":10.0,"color":[43,43,43,255],"halo":true,"bold":false,"min_scale":null,"max_scale":null,"closest":null,"farthest":null,"placement":"Auto"},"transparency":25.0,"min_scale":null,"max_scale":null,"definition_query":null,"selection":[],"expanded":true,"selectable":true,"graphics":false,"blend":"Normal","mask":null,"display_filters":[],"aggregation":null,"extrusion":null,"priority":0,"geometry_rev":0}],"basemap":"Paper","camera":{"center":{"x":222638.98158654713,"y":334111.1714019597},"res":70.09606421985447},"bookmarks":[],"graticule":true,"projection":"WebMercator","popup_mode":"Topmost","label_display":{"paused":false,"locked":false,"show_unplaced":false},"editing":{"relationships":[],"snapping":{"enabled":false,"tolerance_px":10.0,"vertex":true,"edge":true,"end":true},"topology":[],"settings":{"enabled":true,"show_vertices":true,"elevation":"None","ground_to_grid":null}},"swipe":null,"view":{"effects":{"sun_time":null,"weather":"None","vignette":false,"edges":false,"tilt_shift":false,"grain":false,"brightness":0.0,"contrast":0.0,"saturation":0.0,"sepia":0.0},"wireframe":false,"clip_distance":null},"animation":[],"next_layer_id":3}],"active_map":0,"tables":[],"gp_history":[],"layouts":[],"folders":[],"styles":[],"tasks":[],"gp_env":{"extent":null,"cell_size":null},"models":[],"workspaces":[],"link_views":false,"jobs":[],"offline_areas":[],"reports":[],"presentations":[],"notebooks":[],"dl_models":[],"shared":[],"data_stores":[]}
1 change: 1 addition & 0 deletions crates/engine/testdata/releases/v0.3.0.prefs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"ribbon_minimized":"true"}
1 change: 1 addition & 0 deletions crates/engine/testdata/releases/v0.3.0.rgis
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"format":1,"name":"v0.3.0","maps":[{"name":"Map","layers":[{"id":1,"name":"Places","visible":true,"dataset":{"name":"Places","geometry_type":"Point","fields":[{"name":"name","ty":"Text","alias":null},{"name":"pop","ty":"Integer","alias":null}],"features":[{"id":1,"geometry":{"Point":{"x":1.0,"y":2.0}},"attrs":[{"Text":"Alpha"},{"Int":10}]},{"id":2,"geometry":{"Point":{"x":3.0,"y":4.0}},"attrs":[{"Text":"Béta"},{"Int":20}]}],"source":"Places.geojson"},"renderer":{"Unique":{"field":"name","classes":[["Alpha",{"fill":[59,125,216,255],"stroke":[255,255,255,255],"stroke_width":1.0,"size":7.0,"marker":"Circle"}],["Béta",{"fill":[232,122,65,255],"stroke":[255,255,255,255],"stroke_width":1.0,"size":7.0,"marker":"Circle"}]],"other":{"fill":[176,176,176,255],"stroke":[255,255,255,255],"stroke_width":1.0,"size":7.0,"marker":"Circle"},"ramp":"Harbour"}},"labels":{"enabled":true,"field":"name","size":14.0,"color":[18,52,86,255],"halo":true,"bold":true,"min_scale":null,"max_scale":null,"closest":null,"farthest":null,"placement":"Auto"},"transparency":0.0,"min_scale":null,"max_scale":null,"definition_query":"pop >= 20","selection":[],"expanded":true,"selectable":true,"graphics":false,"blend":"Normal","mask":null,"display_filters":[],"aggregation":null,"extrusion":null,"priority":0,"geometry_rev":0},{"id":2,"name":"Routes","visible":true,"dataset":{"name":"Routes","geometry_type":"Polyline","fields":[{"name":"name","ty":"Text","alias":null}],"features":[{"id":1,"geometry":{"Line":[[{"x":1.0,"y":2.0},{"x":3.0,"y":4.0}]]},"attrs":[{"Text":"Route"}]}],"source":"Routes.geojson"},"renderer":{"Single":{"fill":[51,102,153,255],"stroke":[17,34,51,255],"stroke_width":2.5,"size":0.0,"marker":"Circle"}},"labels":{"enabled":false,"field":"name","size":10.0,"color":[43,43,43,255],"halo":true,"bold":false,"min_scale":null,"max_scale":null,"closest":null,"farthest":null,"placement":"Auto"},"transparency":25.0,"min_scale":null,"max_scale":null,"definition_query":null,"selection":[],"expanded":true,"selectable":true,"graphics":false,"blend":"Normal","mask":null,"display_filters":[],"aggregation":null,"extrusion":null,"priority":0,"geometry_rev":0}],"basemap":"Paper","camera":{"center":{"x":222638.98158654713,"y":334111.1714019597},"res":70.09606421985447},"bookmarks":[],"graticule":true,"projection":"WebMercator","popup_mode":"Topmost","label_display":{"paused":false,"locked":false,"show_unplaced":false},"editing":{"relationships":[],"snapping":{"enabled":false,"tolerance_px":10.0,"vertex":true,"edge":true,"end":true},"topology":[],"settings":{"enabled":true,"show_vertices":true,"elevation":"None","ground_to_grid":null}},"swipe":null,"view":{"effects":{"stars":true,"sun_time":null,"weather":"None","vignette":false,"edges":false,"tilt_shift":false,"grain":false,"brightness":0.0,"contrast":0.0,"saturation":0.0,"sepia":0.0},"wireframe":false,"clip_distance":null},"animation":[],"next_layer_id":3}],"active_map":0,"tables":[],"next_table_id":1,"gp_history":[],"layouts":[],"folders":[],"styles":[],"ramps":[],"tasks":[],"gp_env":{"extent":null,"cell_size":null},"models":[],"workspaces":[],"link_views":false,"jobs":[],"offline_areas":[],"reports":[],"presentations":[],"notebooks":[],"dl_models":[],"shared":[],"data_stores":[]}
1 change: 1 addition & 0 deletions crates/engine/testdata/releases/v0.4.0.prefs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"connections":"{\"connections\":[],\"next\":0,\"version\":1}","ribbon_minimized":"true"}
1 change: 1 addition & 0 deletions crates/engine/testdata/releases/v0.4.0.rgis
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"format":1,"name":"v0.4.0","maps":[{"name":"Map","layers":[{"id":1,"name":"Places","visible":true,"dataset":{"name":"Places","geometry_type":"Point","fields":[{"name":"name","ty":"Text","alias":null},{"name":"pop","ty":"Integer","alias":null}],"features":[{"id":1,"geometry":{"Point":{"x":1.0,"y":2.0}},"attrs":[{"Text":"Alpha"},{"Int":10}]},{"id":2,"geometry":{"Point":{"x":3.0,"y":4.0}},"attrs":[{"Text":"Béta"},{"Int":20}]}],"source":"Places.geojson"},"renderer":{"Unique":{"field":"name","classes":[["Alpha",{"fill":[59,125,216,255],"stroke":[255,255,255,255],"stroke_width":1.0,"size":7.0,"marker":"Circle"}],["Béta",{"fill":[232,122,65,255],"stroke":[255,255,255,255],"stroke_width":1.0,"size":7.0,"marker":"Circle"}]],"other":{"fill":[176,176,176,255],"stroke":[255,255,255,255],"stroke_width":1.0,"size":7.0,"marker":"Circle"},"ramp":"Harbour"}},"labels":{"enabled":true,"field":"name","size":14.0,"color":[18,52,86,255],"halo":true,"bold":true,"min_scale":null,"max_scale":null,"closest":null,"farthest":null,"placement":"Auto"},"transparency":0.0,"min_scale":null,"max_scale":null,"definition_query":"pop >= 20","selection":[],"expanded":true,"selectable":true,"graphics":false,"blend":"Normal","mask":null,"display_filters":[],"aggregation":null,"extrusion":null,"priority":0,"geometry_rev":0},{"id":2,"name":"Routes","visible":true,"dataset":{"name":"Routes","geometry_type":"Polyline","fields":[{"name":"name","ty":"Text","alias":null}],"features":[{"id":1,"geometry":{"Line":[[{"x":1.0,"y":2.0},{"x":3.0,"y":4.0}]]},"attrs":[{"Text":"Route"}]}],"source":"Routes.geojson"},"renderer":{"Single":{"fill":[51,102,153,255],"stroke":[17,34,51,255],"stroke_width":2.5,"size":0.0,"marker":"Circle"}},"labels":{"enabled":false,"field":"name","size":10.0,"color":[43,43,43,255],"halo":true,"bold":false,"min_scale":null,"max_scale":null,"closest":null,"farthest":null,"placement":"Auto"},"transparency":25.0,"min_scale":null,"max_scale":null,"definition_query":null,"selection":[],"expanded":true,"selectable":true,"graphics":false,"blend":"Normal","mask":null,"display_filters":[],"aggregation":null,"extrusion":null,"priority":0,"geometry_rev":0}],"basemap":"Paper","camera":{"center":{"x":222638.98158654713,"y":334111.1714019597},"res":70.09606421985447,"bearing":0.0,"pitch":0.0},"bookmarks":[],"graticule":true,"projection":"WebMercator","popup_mode":"Topmost","label_display":{"paused":false,"locked":false,"show_unplaced":false},"editing":{"relationships":[],"snapping":{"enabled":false,"tolerance_px":10.0,"vertex":true,"edge":true,"end":true},"topology":[],"settings":{"enabled":true,"show_vertices":true,"elevation":"None","ground_to_grid":null}},"swipe":null,"view":{"effects":{"stars":true,"sun_time":null,"weather":"None","vignette":false,"edges":false,"tilt_shift":false,"grain":false,"brightness":0.0,"contrast":0.0,"saturation":0.0,"sepia":0.0},"wireframe":false,"clip_distance":null,"terrain":null},"animation":[],"next_layer_id":3}],"active_map":0,"tables":[],"next_table_id":1,"gp_history":[],"layouts":[],"folders":[],"styles":[],"ramps":[],"tasks":[],"gp_env":{"extent":null,"cell_size":null},"models":[],"workspaces":[],"link_views":false,"jobs":[],"offline_areas":[],"reports":[],"presentations":[],"notebooks":[],"dl_models":[],"shared":[],"data_stores":[]}
1 change: 1 addition & 0 deletions crates/engine/testdata/releases/v0.5.0.prefs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"connections":"{\"connections\":[],\"next\":0,\"version\":1}","ribbon_minimized":"true"}
Loading
Loading