jsonsystems / json-schema

JSONSchema.Net Public Repository
Apache License 2.0
663 stars 64 forks source link

Ability to Change JSON Schema Graph Node Vertical Spacing / Increase Max Height #102

Closed grant closed 2 years ago

grant commented 3 years ago

Hey, cool tool!

I like the graph feature, but I don't know how to increase the vertical spacing between nodes. Without this, it's hard to visualize large schemas. I think there's a limit on the max height of the viz.

Even if there's some JS variable I can tweak, that'd be cool.

Screen Shot 2020-10-13 at 01 37 06


Example data:

https://raw.githubusercontent.com/googleapis/google-cloudevents/master/jsonschema/google/events/cloud/audit/v1/LogEntryData.json

jackwootton commented 3 years ago

@grant Thank you for providing the sample data. I played around with this and can see the problem comes from the height of the canvas which squashes the nodes to fit. I'll look into this more and update this issue. Thank you for taking the time to post this issue!

image

jackwootton commented 2 years ago

@grant Thanks for taking the time to post this issue. As you will have seen the graph has been removed in the new version of www.jsonschema.net. I would like to re-implement it but with more thought from users. Do you mind opening a new FR at https://github.com/jsonsystems/public if this is still relevant to you?