client/js/defaults.js
changeset 168 f978d70a9e63
parent 132 860340d4c645
child 169 a60a450b8f3b
equal deleted inserted replaced
167:eb97351d5e9b 168:f978d70a9e63
     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 	
    26     size_bug_fix: true,
    27 	/* MINI-MAP OPTIONS */
    27         /* Resize the canvas after load (fixes a bug on iPad and FF Mac) */
    28 	
    28     force_resize: false,
       
    29     allow_double_click: true,
       
    30         /* Allows Double Click to create a node on an empty background */
       
    31     element_delete_delay: 5000,
       
    32     
       
    33     /* MINI-MAP OPTIONS */
       
    34     
    29     show_minimap: true,
    35     show_minimap: true,
    30     	/* Show a small map at the bottom right */
    36         /* Show a small map at the bottom right */
    31     minimap_width: 160,
    37     minimap_width: 160,
    32     minimap_height: 120,
    38     minimap_height: 120,
    33     minimap_background_color: "#ffffff",
    39     minimap_background_color: "#ffffff",
    34     minimap_border_color: "#cccccc",
    40     minimap_border_color: "#cccccc",
    35     minimap_highlight_color: "#ffff00",
    41     minimap_highlight_color: "#ffff00",
    36     minimap_highlight_weight: 5,
    42     minimap_highlight_weight: 5,
    37     
    43     
    38     /* EDGE/NODE COMMON OPTIONS */
    44     /* EDGE/NODE COMMON OPTIONS */
    39    	
    45        
    40    	buttons_background: "#202020",
    46     buttons_background: "#202020",
    41    	buttons_label_color: "#c000c0",
    47     buttons_label_color: "#c000c0",
    42    	buttons_label_font_size: 9,
    48     buttons_label_font_size: 9,
    43 	
    49     
    44 	/* NODE DISPLAY OPTIONS */
    50     /* NODE DISPLAY OPTIONS */
    45 	
    51     
    46     show_node_circles: true,
    52     show_node_circles: true,
    47     	/* Show circles for nodes */
    53         /* Show circles for nodes */
    48 	clip_node_images: true,
    54     clip_node_images: true,
    49 		/* Constraint node images to circles */
    55         /* Constraint node images to circles */
    50 	node_size_base: 25,
    56     node_size_base: 25,
    51 	node_stroke_width: 2,
    57     node_stroke_width: 2,
    52 	selected_node_stroke_width: 4,
    58     selected_node_stroke_width: 4,
    53 	node_fill_color: "#ffffff",
    59     node_fill_color: "#ffffff",
    54 	highlighted_node_fill_color: "#ffff00",
    60     highlighted_node_fill_color: "#ffff00",
    55 	node_label_color: "#000000",
    61     node_label_distance: 5,
    56 	node_label_font_size: 10,
    62         /* Vertical distance between node and label */
    57 	node_label_font: 'Helvetica, Arial, sans-serif',
    63     node_label_max_length: 60,
    58 	node_label_distance: 5,
    64         /* Maximum displayed text length */
    59 		/* Vertical distance between node and label */
    65     label_untitled_nodes: "(untitled)",
    60 	node_label_max_length: 40,
    66         /* Label to display on untitled nodes */
    61 		/* Maximum displayed text length */
    67     
    62 	
    68     /* EDGE DISPLAY OPTIONS */
    63 	/* EDGE DISPLAY OPTIONS */
    69     
    64 	
    70     edge_stroke_width: 2,
    65 	edge_stroke_width: 2,
    71     selected_edge_stroke_width: 4,
    66 	selected_edge_stroke_width: 4,
    72     edge_label_distance: 0,
    67 	edge_label_color: "#000000",
    73     edge_label_max_length: 20,
    68 	edge_label_font_size: 9,
       
    69 	edge_label_font: 'Helvetica, Arial, sans-serif',
       
    70 	edge_label_distance: -3,
       
    71 	edge_label_max_length: 20,
       
    72     edge_arrow_length: 18,
    74     edge_arrow_length: 18,
    73     edge_arrow_width: 12,
    75     edge_arrow_width: 12,
    74     edge_gap_in_bundles: 12,
    76     edge_gap_in_bundles: 12,
       
    77     label_untitled_edges: "",
    75     
    78     
    76     /* CONTEXTUAL DISPLAY (TOOLTIP OR EDITOR) OPTIONS */
    79     /* CONTEXTUAL DISPLAY (TOOLTIP OR EDITOR) OPTIONS */
    77    
    80    
    78    	tooltip_width: 275,
    81     tooltip_width: 275,
    79    	tooltip_padding: 10,
    82     tooltip_padding: 10,
    80    	tooltip_margin: 15,
    83     tooltip_margin: 15,
    81     tooltip_arrow_length : 20,
    84     tooltip_arrow_length : 20,
    82     tooltip_arrow_width : 40,
    85     tooltip_arrow_width : 40,
    83    	tooltip_top_color: "#f0f0f0",
    86     tooltip_top_color: "#f0f0f0",
    84    	tooltip_bottom_color: "#d0d0d0",
    87     tooltip_bottom_color: "#d0d0d0",
    85    	tooltip_border_color: "#808080",
    88     tooltip_border_color: "#808080",
    86    	tooltip_border_width: 1
    89     tooltip_border_width: 1
    87 	
    90     
    88 }
    91 };