client/js/defaults.js
changeset 160 408da84d4dc0
parent 159 1796e0220bef
child 161 c7a503c80ef4
equal deleted inserted replaced
159:1796e0220bef 160:408da84d4dc0
     1 Rkns.defaults = {
     1 Rkns.defaults = {
     2 	
     2     
     3     language: (navigator.language || navigator.userLanguage || "en"),
     3     language: (navigator.language || navigator.userLanguage || "en"),
     4     	/* GUI Language */
     4         /* GUI Language */
     5     container: "renkan",
     5     container: "renkan",
     6     	/* GUI Container DOM element ID */
     6         /* GUI Container DOM element ID */
     7     search: [],
     7     search: [],
     8     	/* List of Search Engines */
     8         /* List of Search Engines */
     9    	bins: [],
     9     bins: [],
    10    		/* List of Bins */
    10            /* List of Bins */
    11 	static_url: "",
    11     static_url: "",
    12 		/* URL for static resources */
    12         /* URL for static resources */
    13 	show_bins: true,
    13     show_bins: true,
    14 		/* Show bins in left column */
    14         /* Show bins in left column */
    15 	properties: [],
    15     properties: [],
    16 		/* Semantic properties for edges */
    16         /* Semantic properties for edges */
    17 	read_only: false,
    17     read_only: false,
    18 		/* Allows editing of renkan without changing the rest of the GUI. Can be switched on/off on the fly to block/enable editing */
    18         /* Allows editing of renkan without changing the rest of the GUI. Can be switched on/off on the fly to block/enable editing */
    19 	editor_mode: true,
    19     editor_mode: true,
    20 		/* Switch for Publish/Edit GUI. If editor_mode is false, read_only will be true.  */
    20         /* Switch for Publish/Edit GUI. If editor_mode is false, read_only will be true.  */
    21     snapshot_mode: false,
    21     snapshot_mode: false,
    22     	/* In snapshot mode, clicking on the floppy will save a snapshot. Otherwise, it will show the connection status */
    22         /* In snapshot mode, clicking on the floppy will save a snapshot. Otherwise, it will show the connection status */
    23 	show_top_bar: true,
    23     show_top_bar: true,
    24 		/* Show the top bar, (title, buttons, users) */
    24         /* Show the top bar, (title, buttons, users) */
    25 	default_user_color: "#303030",
    25     default_user_color: "#303030",
    26 	size_bug_fix: true,
    26     size_bug_fix: true,
    27 		/* Resize the canvas after load (fixes a bug on iPad and FF Mac) */
    27         /* Resize the canvas after load (fixes a bug on iPad and FF Mac) */
    28 	allow_double_click: true,
    28     allow_double_click: true,
    29 		/* Allows Double Click to create a node on an empty background */
    29         /* Allows Double Click to create a node on an empty background */
    30 	
    30     
    31 	/* MINI-MAP OPTIONS */
    31     /* MINI-MAP OPTIONS */
    32 	
    32     
    33     show_minimap: true,
    33     show_minimap: true,
    34     	/* Show a small map at the bottom right */
    34         /* Show a small map at the bottom right */
    35     minimap_width: 160,
    35     minimap_width: 160,
    36     minimap_height: 120,
    36     minimap_height: 120,
    37     minimap_background_color: "#ffffff",
    37     minimap_background_color: "#ffffff",
    38     minimap_border_color: "#cccccc",
    38     minimap_border_color: "#cccccc",
    39     minimap_highlight_color: "#ffff00",
    39     minimap_highlight_color: "#ffff00",
    40     minimap_highlight_weight: 5,
    40     minimap_highlight_weight: 5,
    41     
    41     
    42     /* EDGE/NODE COMMON OPTIONS */
    42     /* EDGE/NODE COMMON OPTIONS */
    43    	
    43        
    44    	buttons_background: "#202020",
    44     buttons_background: "#202020",
    45    	buttons_label_color: "#c000c0",
    45     buttons_label_color: "#c000c0",
    46    	buttons_label_font_size: 9,
    46     buttons_label_font_size: 9,
    47 	
    47     
    48 	/* NODE DISPLAY OPTIONS */
    48     /* NODE DISPLAY OPTIONS */
    49 	
    49     
    50     show_node_circles: true,
    50     show_node_circles: true,
    51     	/* Show circles for nodes */
    51         /* Show circles for nodes */
    52 	clip_node_images: true,
    52     clip_node_images: true,
    53 		/* Constraint node images to circles */
    53         /* Constraint node images to circles */
    54 	node_size_base: 25,
    54     node_size_base: 25,
    55 	node_stroke_width: 2,
    55     node_stroke_width: 2,
    56 	selected_node_stroke_width: 4,
    56     selected_node_stroke_width: 4,
    57 	node_fill_color: "#ffffff",
    57     node_fill_color: "#ffffff",
    58 	highlighted_node_fill_color: "#ffff00",
    58     highlighted_node_fill_color: "#ffff00",
    59 	node_label_distance: 5,
    59     node_label_distance: 5,
    60 		/* Vertical distance between node and label */
    60         /* Vertical distance between node and label */
    61 	node_label_max_length: 60,
    61     node_label_max_length: 60,
    62 		/* Maximum displayed text length */
    62         /* Maximum displayed text length */
    63 	label_untitled_nodes: "(untitled)",
    63     label_untitled_nodes: "(untitled)",
    64 		/* Label to display on untitled nodes */
    64         /* Label to display on untitled nodes */
    65 	
    65     
    66 	/* EDGE DISPLAY OPTIONS */
    66     /* EDGE DISPLAY OPTIONS */
    67 	
    67     
    68 	edge_stroke_width: 2,
    68     edge_stroke_width: 2,
    69 	selected_edge_stroke_width: 4,
    69     selected_edge_stroke_width: 4,
    70 	edge_label_distance: 0,
    70     edge_label_distance: 0,
    71 	edge_label_max_length: 20,
    71     edge_label_max_length: 20,
    72     edge_arrow_length: 18,
    72     edge_arrow_length: 18,
    73     edge_arrow_width: 12,
    73     edge_arrow_width: 12,
    74     edge_gap_in_bundles: 12,
    74     edge_gap_in_bundles: 12,
    75 	label_untitled_edges: "",
    75     label_untitled_edges: "",
    76     
    76     
    77     /* CONTEXTUAL DISPLAY (TOOLTIP OR EDITOR) OPTIONS */
    77     /* CONTEXTUAL DISPLAY (TOOLTIP OR EDITOR) OPTIONS */
    78    
    78    
    79    	tooltip_width: 275,
    79     tooltip_width: 275,
    80    	tooltip_padding: 10,
    80     tooltip_padding: 10,
    81    	tooltip_margin: 15,
    81     tooltip_margin: 15,
    82     tooltip_arrow_length : 20,
    82     tooltip_arrow_length : 20,
    83     tooltip_arrow_width : 40,
    83     tooltip_arrow_width : 40,
    84    	tooltip_top_color: "#f0f0f0",
    84     tooltip_top_color: "#f0f0f0",
    85    	tooltip_bottom_color: "#d0d0d0",
    85     tooltip_bottom_color: "#d0d0d0",
    86    	tooltip_border_color: "#808080",
    86     tooltip_border_color: "#808080",
    87    	tooltip_border_width: 1
    87     tooltip_border_width: 1
    88 	
    88     
    89 }
    89 }