client/js/defaults.js
changeset 120 112a82ddd7e5
parent 114 110f99eb417e
child 132 860340d4c645
--- a/client/js/defaults.js	Fri Mar 29 18:19:47 2013 +0100
+++ b/client/js/defaults.js	Tue Apr 02 18:01:14 2013 +0200
@@ -1,13 +1,75 @@
 Rkns.defaults = {
     language: (navigator.language || navigator.userLanguage || "en"),
+    	/* GUI Language */
     container: "renkan",
+    	/* GUI Container DOM element ID */
     search: [],
+    	/* List of Search Engines */
    	bins: [],
+   		/* List of Bins */
 	static_url: "",
+		/* URL for static resources */
 	show_bins: true,
+		/* Show bins in left column */
 	properties: [],
-	clip_images: true,
-	editor_mode: true,
+		/* Semantic properties for edges */
 	read_only: false,
-    snapshot_mode: false
+		/* Allows editing of renkan without changing the rest of the GUI. Can be switched on/off on the fly to block/enable editing */
+	editor_mode: true,
+		/* Switch for Publish/Edit GUI. If editor_mode is false, read_only will be true.  */
+    snapshot_mode: false,
+    	/* In snapshot mode, clicking on the floppy will save a snapshot. Otherwise, it will show the connection status */
+	
+	/* MINI-MAP OPTIONS */
+	
+    show_minimap: true,
+    	/* Show a small map at the bottom right */
+    minimap_width: 160,
+    minimap_height: 120,
+    
+    /* EDGE/NODE COMMON OPTIONS */
+   	
+   	buttons_background: "#202020",
+   	buttons_label_color: "#c000c0",
+   	buttons_label_font_size: 9,
+	
+	/* NODE DISPLAY OPTIONS */
+	
+    show_node_circles: true,
+    	/* Show circles for nodes */
+	clip_node_images: true,
+		/* Constraint node images to circles */
+	node_stroke_width: 2,
+	selected_node_stroke_width: 4,
+	node_label_color: "#000000",
+	node_label_font_size: 10,
+	node_label_font: 'Helvetica, Arial, sans-serif',
+	node_label_distance: 5,
+		/* Vertical distance between node and label */
+	node_label_max_length: 40,
+		/* Maximum displayed text length */
+	
+	/* EDGE DISPLAY OPTIONS */
+	
+	edge_stroke_width: 2,
+	selected_edge_stroke_width: 4,
+	edge_label_color: "#000000",
+	edge_label_font_size: 9,
+	edge_label_font: 'Helvetica, Arial, sans-serif',
+	edge_label_distance: -3,
+	edge_label_max_length: 20,
+    edge_arrow_length: 18,
+    edge_arrow_width: 12,
+    edge_gap_in_bundles: 12,
+    
+    /* CONTEXTUAL DISPLAY (TOOLTIP OR EDITOR) OPTIONS */
+   
+   	tooltip_width: 275,
+   	tooltip_padding: 10,
+   	tooltip_margin: 15,
+    tooltip_arrow_length : 20,
+    tooltip_arrow_width : 40,
+   	tooltip_top_color: "#f0f0f0",
+   	tooltip_bottom_color: "#d0d0d0",
+	
 }