client/js/defaults.js
changeset 472 6dcff4438175
parent 462 255b66d1ce78
child 468 364c367df7fc
equal deleted inserted replaced
471:e0c7be5dc02c 472:6dcff4438175
    39     element_delete_delay: 0,
    39     element_delete_delay: 0,
    40         /* Delay between clicking on the bin on an element and really deleting it
    40         /* Delay between clicking on the bin on an element and really deleting it
    41            Set to 0 for delete confirm */
    41            Set to 0 for delete confirm */
    42     autoscale_padding: 50,
    42     autoscale_padding: 50,
    43     resize: true,
    43     resize: true,
    44     
    44 
    45     /* zoom options */
    45     /* zoom options */
    46     show_zoom: true,
    46     show_zoom: true,
    47         /* show zoom buttons */
    47         /* show zoom buttons */
    48     save_view: true,
    48     save_view: true,
    49         /* show buttons to save view */
    49         /* show buttons to save view */
    50     default_view: false,
    50     default_view: false,
    51         /* Allows to load default view (zoom+offset) at start on read_only mode, instead of autoScale. the default_view will be the last */
    51         /* Allows to load default view (zoom+offset) at start on read_only mode, instead of autoScale. the default_view will be the last */
    52     
    52 
    53     
    53 
    54     /* TOP BAR BUTTONS */
    54     /* TOP BAR BUTTONS */
    55     show_search_field: true,
    55     show_search_field: true,
    56     show_user_list: true,
    56     show_user_list: true,
    57     user_name_editable: true,
    57     user_name_editable: true,
    58     user_color_editable: true,
    58     user_color_editable: true,
    76     minimap_padding: 20,
    76     minimap_padding: 20,
    77     minimap_background_color: "#ffffff",
    77     minimap_background_color: "#ffffff",
    78     minimap_border_color: "#cccccc",
    78     minimap_border_color: "#cccccc",
    79     minimap_highlight_color: "#ffff00",
    79     minimap_highlight_color: "#ffff00",
    80     minimap_highlight_weight: 5,
    80     minimap_highlight_weight: 5,
    81     
    81 
    82 
    82 
    83     /* EDGE/NODE COMMON OPTIONS */
    83     /* EDGE/NODE COMMON OPTIONS */
    84 
    84 
    85     buttons_background: "#202020",
    85     buttons_background: "#202020",
    86     buttons_label_color: "#c000c0",
    86     buttons_label_color: "#c000c0",
    87     buttons_label_font_size: 9,
    87     buttons_label_font_size: 9,
       
    88 
       
    89     ghost_opacity : 0.3,
       
    90         /* opacity when the hidden element is revealed */
       
    91     default_dash_array : [4, 5],
       
    92         /* dash line genometry */
    88 
    93 
    89     /* NODE DISPLAY OPTIONS */
    94     /* NODE DISPLAY OPTIONS */
    90 
    95 
    91     show_node_circles: true,
    96     show_node_circles: true,
    92         /* Show circles for nodes */
    97         /* Show circles for nodes */
    95     node_images_fill_mode: false,
   100     node_images_fill_mode: false,
    96         /* Set to false for "letterboxing" (height/width of node adapted to show full image)
   101         /* Set to false for "letterboxing" (height/width of node adapted to show full image)
    97            Set to true for "crop" (adapted to fill circle) */
   102            Set to true for "crop" (adapted to fill circle) */
    98     node_size_base: 25,
   103     node_size_base: 25,
    99     node_stroke_width: 2,
   104     node_stroke_width: 2,
       
   105     node_stroke_max_width: 12,
   100     selected_node_stroke_width: 4,
   106     selected_node_stroke_width: 4,
       
   107     selected_node_stroke_max_width: 24,
       
   108     node_stroke_witdh_scale: 5,
   101     node_fill_color: "#ffffff",
   109     node_fill_color: "#ffffff",
   102     highlighted_node_fill_color: "#ffff00",
   110     highlighted_node_fill_color: "#ffff00",
   103     node_label_distance: 5,
   111     node_label_distance: 5,
   104         /* Vertical distance between node and label */
   112         /* Vertical distance between node and label */
   105     node_label_max_length: 60,
   113     node_label_max_length: 60,
   110         /* Change shapes enabled */
   118         /* Change shapes enabled */
   111 
   119 
   112     /* EDGE DISPLAY OPTIONS */
   120     /* EDGE DISPLAY OPTIONS */
   113 
   121 
   114     edge_stroke_width: 2,
   122     edge_stroke_width: 2,
       
   123     edge_stroke_max_width: 12,
   115     selected_edge_stroke_width: 4,
   124     selected_edge_stroke_width: 4,
       
   125     selected_edge_stroke_max_width: 24,
       
   126     edge_stroke_witdh_scale: 5,
       
   127 
   116     edge_label_distance: 0,
   128     edge_label_distance: 0,
   117     edge_label_max_length: 20,
   129     edge_label_max_length: 20,
   118     edge_arrow_length: 18,
   130     edge_arrow_length: 18,
   119     edge_arrow_width: 12,
   131     edge_arrow_width: 12,
       
   132     edge_arrow_max_width: 32,
   120     edge_gap_in_bundles: 12,
   133     edge_gap_in_bundles: 12,
   121     label_untitled_edges: "",
   134     label_untitled_edges: "",
   122 
   135 
   123     /* CONTEXTUAL DISPLAY (TOOLTIP OR EDITOR) OPTIONS */
   136     /* CONTEXTUAL DISPLAY (TOOLTIP OR EDITOR) OPTIONS */
   124 
   137 
   135     /* NODE EDITOR OPTIONS */
   148     /* NODE EDITOR OPTIONS */
   136 
   149 
   137     show_node_editor_uri: true,
   150     show_node_editor_uri: true,
   138     show_node_editor_description: true,
   151     show_node_editor_description: true,
   139     show_node_editor_size: true,
   152     show_node_editor_size: true,
   140     show_node_editor_color: true,
   153     show_node_editor_style: true,
       
   154     show_node_editor_style_color: true,
       
   155     show_node_editor_style_dash: true,
       
   156     show_node_editor_style_thickness: true,
   141     show_node_editor_image: true,
   157     show_node_editor_image: true,
   142     show_node_editor_creator: true,
   158     show_node_editor_creator: true,
   143     allow_image_upload: true,
   159     allow_image_upload: true,
   144     uploaded_image_max_kb: 500,
   160     uploaded_image_max_kb: 500,
   145 
   161 
   152     show_node_tooltip_creator: true,
   168     show_node_tooltip_creator: true,
   153 
   169 
   154     /* EDGE EDITOR OPTIONS */
   170     /* EDGE EDITOR OPTIONS */
   155 
   171 
   156     show_edge_editor_uri: true,
   172     show_edge_editor_uri: true,
   157     show_edge_editor_color: true,
   173     show_edge_editor_style: true,
       
   174     show_edge_editor_style_color: true,
       
   175     show_edge_editor_style_dash: true,
       
   176     show_edge_editor_style_thickness: true,
       
   177     show_edge_editor_style_arrow: true,
   158     show_edge_editor_direction: true,
   178     show_edge_editor_direction: true,
   159     show_edge_editor_nodes: true,
   179     show_edge_editor_nodes: true,
   160     show_edge_editor_creator: true,
   180     show_edge_editor_creator: true,
   161 
   181 
   162     /* EDGE TOOLTIP OPTIONS */
   182     /* EDGE TOOLTIP OPTIONS */