AykutSarac / jsoncrack.com

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML, CSV and more, into interactive graphs.
https://jsoncrack.com/
Other
30.5k stars 1.89k forks source link

Add a timer before refreshing the diagram #357

Closed zbalkan closed 12 months ago

zbalkan commented 12 months ago

Feature

When one needs to update the JSON data to fix the structural or syntactical issues, it is frustrating to refresh on every action.

Alternative solutions or implementations

It may be possible to use a timer which would be reset on each change action. Therefore, if I start typing or removing within the "sliding window" of a 800-1000ms-timer, it can be reset to count down. Then, if the timer hits 0, it can then redraw the diagram, or refresh partially depending on the internals.

Other context

No response

AykutSarac commented 12 months ago

It currently doesn't update on every action actually, there's 200ms debounce. Though, you may prefer to manually transform the data into graph. It's at the bottom bar.

image
zbalkan commented 12 months ago

Then, it's my bad. It's probably too short for me. I also didn't know the ability to disable the feature.

Closing the comment as already fixed.