Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

update defaultJson

AykutSarac27f4dba9d7e0
diff --git a/src/constants/data.ts b/src/constants/data.ts
index 759ec3f1..71accf74 100644
--- a/src/constants/data.ts
+++ b/src/constants/data.ts
@@ -1,39 +1,37 @@
import { StorageConfig } from "src/typings/global";
-export const defaultJson = [
- {
- Author: "J. K. Rowling",
- Genre: "Fantasy",
- Characters: ["Hermione Granger", "Harry Potter", "Lord Voldemort", "MORE"],
- Books: [
- { title: "Philosopher's Stone", date: "1997" },
- {
- title: "Chamber of Secrets",
- date: "1998",
- },
- {
- title: "Prisoner of Azkaban",
- date: "1999",
- },
- {
- title: "Goblet of Fire",
- date: "1999",
- },
- {
- title: "Order of the Phoenix",
- date: "2003",
- },
- {
- title: "Half-Blood Prince",
- date: "2005",
- },
- {
- title: "Deathly Hallows",
- date: "2007",
- },
- ],
- },
-];
+export const defaultJson = {
+ Author: "J. K. Rowling",
+ Genre: "Fantasy",
+ Characters: ["Hermione Granger", "Harry Potter", "Lord Voldemort", "MORE"],
+ Books: [
+ { title: "Philosopher's Stone", date: "1997" },
+ {
+ title: "Chamber of Secrets",
+ date: "1998",
+ },
+ {
+ title: "Prisoner of Azkaban",
+ date: "1999",
+ },
+ {
+ title: "Goblet of Fire",
+ date: "1999",
+ },
+ {
+ title: "Order of the Phoenix",
+ date: "2003",
+ },
+ {
+ title: "Half-Blood Prince",
+ date: "2005",
+ },
+ {
+ title: "Deathly Hallows",
+ date: "2007",
+ },
+ ],
+};
export const defaultConfig: StorageConfig = {
layout: "LEFT",
@@ -42,4 +40,5 @@ export const defaultConfig: StorageConfig = {
hideEditor: false,
zoomScale: 0.8,
transform: 0,
+ searchNode: "",
};