In Obsidian 1.6.5, when you have a Graph view in a vault, the settings for the Graph are serialized into graph.json which can then be version-controlled (e.g. in Git).
Most of the values in here make sense to be serialized, since they allow the view to be consistent across multiple users, however the scale
value is serialized in here too, which changes each time you scroll the zoom level of the graph with the mouse scroll wheel in Obsidian’s Graph view.
The fact that "scale"
is serialized means that multiple users submitting a Graph to a shared vault will end up with conflicts every time they change the zoom level of the Graph, which is very frustrating and isn’t a value which needs to be shared.
It makes sense that graph.json contains anything truly “shared” (such as a group definitions), but since the graph.json doesn’t contain values like the view offset (e.g. from panning using the mouse), then it also follows that the zoom level should be considered as a “local” value and not serialized.
Did you follow the troubleshooting guide?
Yes - but you can’t repro this in Sandbox because it doesn’t serialize results, but it does repro in Restricted mode.
Expected result
"scale"
property should not be serialized into graph.json after zooming with scroll wheel.
Actual result
Whenever the scroll wheel is used to zoom in the Graph view, the value for "scale"
changes in graph.json.
Environment
SYSTEM INFO:
Obsidian version: v1.6.5
Installer version: v1.6.5
Operating system: Windows 11 Pro 10.0.22631
Login status: not logged in
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on
RECOMMENDATIONS:
none
Additional information
None, you just need a Graph.