client/js/defaults.js
changeset 297 7de2652f7ee8
parent 270 aaef418cdf8d
child 322 5897669370f4
equal deleted inserted replaced
296:ded85569cb98 297:7de2652f7ee8
     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: [],
    36         /* Delay between clicking on the bin on an element and really deleting it
    36         /* Delay between clicking on the bin on an element and really deleting it
    37            Set to 0 for delete confirm */
    37            Set to 0 for delete confirm */
    38     autoscale_padding: 50,
    38     autoscale_padding: 50,
    39     default_view: false,
    39     default_view: false,
    40 	/* Allows to load default view (zoom+offset) at start on read_only mode, instead of autoScale. default_view has to be an integer 0,1,2... */
    40 	/* Allows to load default view (zoom+offset) at start on read_only mode, instead of autoScale. default_view has to be an integer 0,1,2... */
    41     
    41 
    42     /* TOP BAR BUTTONS */
    42     /* TOP BAR BUTTONS */
    43     show_search_field: true,
    43     show_search_field: true,
    44     show_user_list: true,
    44     show_user_list: true,
    45     user_name_editable: true,
    45     user_name_editable: true,
    46     user_color_editable: true,
    46     user_color_editable: true,
    47     show_save_button: true,
    47     show_save_button: true,
       
    48     show_export_button: true,
    48     show_open_button: false,
    49     show_open_button: false,
    49     show_addnode_button: true,
    50     show_addnode_button: true,
    50     show_addedge_button: true,
    51     show_addedge_button: true,
    51     show_bookmarklet: true,
    52     show_bookmarklet: true,
    52     show_fullscreen_button: true,
    53     show_fullscreen_button: true,
    53     home_button_url: false,
    54     home_button_url: false,
    54     home_button_title: "Home",
    55     home_button_title: "Home",
    55     
    56 
    56     /* MINI-MAP OPTIONS */
    57     /* MINI-MAP OPTIONS */
    57     
    58 
    58     show_minimap: true,
    59     show_minimap: true,
    59         /* Show a small map at the bottom right */
    60         /* Show a small map at the bottom right */
    60     minimap_width: 160,
    61     minimap_width: 160,
    61     minimap_height: 120,
    62     minimap_height: 120,
    62     minimap_padding: 20,
    63     minimap_padding: 20,
    63     minimap_background_color: "#ffffff",
    64     minimap_background_color: "#ffffff",
    64     minimap_border_color: "#cccccc",
    65     minimap_border_color: "#cccccc",
    65     minimap_highlight_color: "#ffff00",
    66     minimap_highlight_color: "#ffff00",
    66     minimap_highlight_weight: 5,
    67     minimap_highlight_weight: 5,
    67     
    68 
    68     /* EDGE/NODE COMMON OPTIONS */
    69     /* EDGE/NODE COMMON OPTIONS */
    69        
    70 
    70     buttons_background: "#202020",
    71     buttons_background: "#202020",
    71     buttons_label_color: "#c000c0",
    72     buttons_label_color: "#c000c0",
    72     buttons_label_font_size: 9,
    73     buttons_label_font_size: 9,
    73     
    74 
    74     /* NODE DISPLAY OPTIONS */
    75     /* NODE DISPLAY OPTIONS */
    75     
    76 
    76     show_node_circles: true,
    77     show_node_circles: true,
    77         /* Show circles for nodes */
    78         /* Show circles for nodes */
    78     clip_node_images: true,
    79     clip_node_images: true,
    79         /* Constraint node images to circles */
    80         /* Constraint node images to circles */
    80     node_images_fill_mode: false,
    81     node_images_fill_mode: false,
    89         /* Vertical distance between node and label */
    90         /* Vertical distance between node and label */
    90     node_label_max_length: 60,
    91     node_label_max_length: 60,
    91         /* Maximum displayed text length */
    92         /* Maximum displayed text length */
    92     label_untitled_nodes: "(untitled)",
    93     label_untitled_nodes: "(untitled)",
    93         /* Label to display on untitled nodes */
    94         /* Label to display on untitled nodes */
    94     
    95 
    95     /* EDGE DISPLAY OPTIONS */
    96     /* EDGE DISPLAY OPTIONS */
    96     
    97 
    97     edge_stroke_width: 2,
    98     edge_stroke_width: 2,
    98     selected_edge_stroke_width: 4,
    99     selected_edge_stroke_width: 4,
    99     edge_label_distance: 0,
   100     edge_label_distance: 0,
   100     edge_label_max_length: 20,
   101     edge_label_max_length: 20,
   101     edge_arrow_length: 18,
   102     edge_arrow_length: 18,
   102     edge_arrow_width: 12,
   103     edge_arrow_width: 12,
   103     edge_gap_in_bundles: 12,
   104     edge_gap_in_bundles: 12,
   104     label_untitled_edges: "",
   105     label_untitled_edges: "",
   105     
   106 
   106     /* CONTEXTUAL DISPLAY (TOOLTIP OR EDITOR) OPTIONS */
   107     /* CONTEXTUAL DISPLAY (TOOLTIP OR EDITOR) OPTIONS */
   107    
   108 
   108     tooltip_width: 275,
   109     tooltip_width: 275,
   109     tooltip_padding: 10,
   110     tooltip_padding: 10,
   110     tooltip_margin: 15,
   111     tooltip_margin: 15,
   111     tooltip_arrow_length : 20,
   112     tooltip_arrow_length : 20,
   112     tooltip_arrow_width : 40,
   113     tooltip_arrow_width : 40,
   113     tooltip_top_color: "#f0f0f0",
   114     tooltip_top_color: "#f0f0f0",
   114     tooltip_bottom_color: "#d0d0d0",
   115     tooltip_bottom_color: "#d0d0d0",
   115     tooltip_border_color: "#808080",
   116     tooltip_border_color: "#808080",
   116     tooltip_border_width: 1,
   117     tooltip_border_width: 1,
   117     
   118 
   118     /* NODE EDITOR OPTIONS */
   119     /* NODE EDITOR OPTIONS */
   119     
   120 
   120     show_node_editor_uri: true,
   121     show_node_editor_uri: true,
   121     show_node_editor_description: true,
   122     show_node_editor_description: true,
   122     show_node_editor_size: true,
   123     show_node_editor_size: true,
   123     show_node_editor_color: true,
   124     show_node_editor_color: true,
   124     show_node_editor_image: true,
   125     show_node_editor_image: true,
   125     show_node_editor_creator: true,
   126     show_node_editor_creator: true,
   126     uploaded_image_max_kb: 500,
   127     uploaded_image_max_kb: 500,
   127     
   128 
   128     /* NODE TOOLTIP OPTIONS */
   129     /* NODE TOOLTIP OPTIONS */
   129     
   130 
   130     show_node_tooltip_uri: true,
   131     show_node_tooltip_uri: true,
   131     show_node_tooltip_description: true,
   132     show_node_tooltip_description: true,
   132     show_node_tooltip_color: true,
   133     show_node_tooltip_color: true,
   133     show_node_tooltip_image: true,
   134     show_node_tooltip_image: true,
   134     show_node_tooltip_creator: true,
   135     show_node_tooltip_creator: true,
   135     
   136 
   136     /* EDGE EDITOR OPTIONS */
   137     /* EDGE EDITOR OPTIONS */
   137     
   138 
   138     show_edge_editor_uri: true,
   139     show_edge_editor_uri: true,
   139     show_edge_editor_color: true,
   140     show_edge_editor_color: true,
   140     show_edge_editor_direction: true,
   141     show_edge_editor_direction: true,
   141     show_edge_editor_nodes: true,
   142     show_edge_editor_nodes: true,
   142     show_edge_editor_creator: true,
   143     show_edge_editor_creator: true,
   143     
   144 
   144     /* EDGE TOOLTIP OPTIONS */
   145     /* EDGE TOOLTIP OPTIONS */
   145     
   146 
   146     show_edge_tooltip_uri: true,
   147     show_edge_tooltip_uri: true,
   147     show_edge_tooltip_color: true,
   148     show_edge_tooltip_color: true,
   148     show_edge_tooltip_nodes: true,
   149     show_edge_tooltip_nodes: true,
   149     show_edge_tooltip_creator: true
   150     show_edge_tooltip_creator: true
   150     
   151 
   151     /* */
   152     /* */
   152     
   153 
   153 };
   154 };