| author | ymh <ymh.work@gmail.com> |
| Tue, 17 Mar 2015 18:53:36 +0100 | |
| changeset 403 | 96781c1a8bbe |
| parent 385 | 29dcaa4c1748 |
| child 412 | 1ebaa106b580 |
| permissions | -rw-r--r-- |
| 172 | 1 |
Rkns.defaults = { |
| 297 | 2 |
|
| 172 | 3 |
language: (navigator.language || navigator.userLanguage || "en"), |
4 |
/* GUI Language */ |
|
5 |
container: "renkan", |
|
6 |
/* GUI Container DOM element ID */ |
|
7 |
search: [], |
|
8 |
/* List of Search Engines */ |
|
9 |
bins: [], |
|
10 |
/* List of Bins */ |
|
11 |
static_url: "", |
|
12 |
/* URL for static resources */ |
|
13 |
show_bins: true, |
|
14 |
/* Show bins in left column */ |
|
15 |
properties: [], |
|
16 |
/* Semantic properties for edges */ |
|
| 188 | 17 |
show_editor: true, |
18 |
/* Show the graph editor... Setting this to "false" only shows the bins part ! */ |
|
| 172 | 19 |
read_only: false, |
20 |
/* Allows editing of renkan without changing the rest of the GUI. Can be switched on/off on the fly to block/enable editing */ |
|
21 |
editor_mode: true, |
|
22 |
/* Switch for Publish/Edit GUI. If editor_mode is false, read_only will be true. */ |
|
| 322 | 23 |
manual_save: false, |
| 172 | 24 |
/* In snapshot mode, clicking on the floppy will save a snapshot. Otherwise, it will show the connection status */ |
25 |
show_top_bar: true, |
|
26 |
/* Show the top bar, (title, buttons, users) */ |
|
27 |
default_user_color: "#303030", |
|
28 |
size_bug_fix: true, |
|
29 |
/* Resize the canvas after load (fixes a bug on iPad and FF Mac) */ |
|
30 |
force_resize: false, |
|
31 |
allow_double_click: true, |
|
32 |
/* Allows Double Click to create a node on an empty background */ |
|
|
211
d87f6bdee43d
upgrade libs + add no minified versions of libs + improve build + allow disabling zoom on scroll
ymh <ymh.work@gmail.com>
parents:
198
diff
changeset
|
33 |
zoom_on_scroll: true, |
|
d87f6bdee43d
upgrade libs + add no minified versions of libs + improve build + allow disabling zoom on scroll
ymh <ymh.work@gmail.com>
parents:
198
diff
changeset
|
34 |
/* Allows to use the scrollwheel to zoom */ |
| 176 | 35 |
element_delete_delay: 0, |
|
174
756cfa6570d2
Setting element_delete_delay now shows remove confirm dialog
veltr
parents:
173
diff
changeset
|
36 |
/* Delay between clicking on the bin on an element and really deleting it |
|
756cfa6570d2
Setting element_delete_delay now shows remove confirm dialog
veltr
parents:
173
diff
changeset
|
37 |
Set to 0 for delete confirm */ |
| 173 | 38 |
autoscale_padding: 50, |
|
403
96781c1a8bbe
correct resizing problems especially in next firefox
ymh <ymh.work@gmail.com>
parents:
385
diff
changeset
|
39 |
resize: true, |
| 270 | 40 |
default_view: false, |
41 |
/* 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... */ |
|
| 297 | 42 |
|
| 190 | 43 |
/* TOP BAR BUTTONS */ |
| 196 | 44 |
show_search_field: true, |
| 190 | 45 |
show_user_list: true, |
| 198 | 46 |
user_name_editable: true, |
47 |
user_color_editable: true, |
|
|
364
4b37ff239933
Add option show_user_color to hide or show the color of the user
rougeronj
parents:
330
diff
changeset
|
48 |
show_user_color: true, |
| 190 | 49 |
show_save_button: true, |
| 297 | 50 |
show_export_button: true, |
| 190 | 51 |
show_open_button: false, |
52 |
show_addnode_button: true, |
|
53 |
show_addedge_button: true, |
|
54 |
show_bookmarklet: true, |
|
55 |
show_fullscreen_button: true, |
|
56 |
home_button_url: false, |
|
57 |
home_button_title: "Home", |
|
| 297 | 58 |
|
| 172 | 59 |
/* MINI-MAP OPTIONS */ |
| 297 | 60 |
|
| 172 | 61 |
show_minimap: true, |
62 |
/* Show a small map at the bottom right */ |
|
63 |
minimap_width: 160, |
|
64 |
minimap_height: 120, |
|
| 173 | 65 |
minimap_padding: 20, |
| 172 | 66 |
minimap_background_color: "#ffffff", |
67 |
minimap_border_color: "#cccccc", |
|
68 |
minimap_highlight_color: "#ffff00", |
|
69 |
minimap_highlight_weight: 5, |
|
| 297 | 70 |
|
| 172 | 71 |
/* EDGE/NODE COMMON OPTIONS */ |
| 297 | 72 |
|
| 172 | 73 |
buttons_background: "#202020", |
74 |
buttons_label_color: "#c000c0", |
|
75 |
buttons_label_font_size: 9, |
|
| 297 | 76 |
|
| 172 | 77 |
/* NODE DISPLAY OPTIONS */ |
| 297 | 78 |
|
| 172 | 79 |
show_node_circles: true, |
80 |
/* Show circles for nodes */ |
|
81 |
clip_node_images: true, |
|
82 |
/* Constraint node images to circles */ |
|
| 185 | 83 |
node_images_fill_mode: false, |
84 |
/* Set to false for "letterboxing" (height/width of node adapted to show full image) |
|
85 |
Set to true for "crop" (adapted to fill circle) */ |
|
| 172 | 86 |
node_size_base: 25, |
87 |
node_stroke_width: 2, |
|
88 |
selected_node_stroke_width: 4, |
|
89 |
node_fill_color: "#ffffff", |
|
90 |
highlighted_node_fill_color: "#ffff00", |
|
91 |
node_label_distance: 5, |
|
92 |
/* Vertical distance between node and label */ |
|
93 |
node_label_max_length: 60, |
|
94 |
/* Maximum displayed text length */ |
|
95 |
label_untitled_nodes: "(untitled)", |
|
96 |
/* Label to display on untitled nodes */ |
|
| 330 | 97 |
change_shapes: true, |
98 |
/* Change shapes enabled */ |
|
| 297 | 99 |
|
| 172 | 100 |
/* EDGE DISPLAY OPTIONS */ |
| 297 | 101 |
|
| 172 | 102 |
edge_stroke_width: 2, |
103 |
selected_edge_stroke_width: 4, |
|
104 |
edge_label_distance: 0, |
|
105 |
edge_label_max_length: 20, |
|
106 |
edge_arrow_length: 18, |
|
107 |
edge_arrow_width: 12, |
|
108 |
edge_gap_in_bundles: 12, |
|
109 |
label_untitled_edges: "", |
|
| 297 | 110 |
|
| 172 | 111 |
/* CONTEXTUAL DISPLAY (TOOLTIP OR EDITOR) OPTIONS */ |
| 297 | 112 |
|
| 172 | 113 |
tooltip_width: 275, |
114 |
tooltip_padding: 10, |
|
115 |
tooltip_margin: 15, |
|
116 |
tooltip_arrow_length : 20, |
|
117 |
tooltip_arrow_width : 40, |
|
118 |
tooltip_top_color: "#f0f0f0", |
|
119 |
tooltip_bottom_color: "#d0d0d0", |
|
120 |
tooltip_border_color: "#808080", |
|
| 173 | 121 |
tooltip_border_width: 1, |
| 297 | 122 |
|
| 173 | 123 |
/* NODE EDITOR OPTIONS */ |
| 297 | 124 |
|
| 173 | 125 |
show_node_editor_uri: true, |
126 |
show_node_editor_description: true, |
|
127 |
show_node_editor_size: true, |
|
128 |
show_node_editor_color: true, |
|
129 |
show_node_editor_image: true, |
|
130 |
show_node_editor_creator: true, |
|
| 385 | 131 |
allow_image_upload: true, |
| 190 | 132 |
uploaded_image_max_kb: 500, |
| 297 | 133 |
|
| 173 | 134 |
/* NODE TOOLTIP OPTIONS */ |
| 297 | 135 |
|
| 173 | 136 |
show_node_tooltip_uri: true, |
137 |
show_node_tooltip_description: true, |
|
138 |
show_node_tooltip_color: true, |
|
139 |
show_node_tooltip_image: true, |
|
140 |
show_node_tooltip_creator: true, |
|
| 297 | 141 |
|
| 173 | 142 |
/* EDGE EDITOR OPTIONS */ |
| 297 | 143 |
|
| 173 | 144 |
show_edge_editor_uri: true, |
145 |
show_edge_editor_color: true, |
|
146 |
show_edge_editor_direction: true, |
|
147 |
show_edge_editor_nodes: true, |
|
148 |
show_edge_editor_creator: true, |
|
| 297 | 149 |
|
| 173 | 150 |
/* EDGE TOOLTIP OPTIONS */ |
| 297 | 151 |
|
| 173 | 152 |
show_edge_tooltip_uri: true, |
153 |
show_edge_tooltip_color: true, |
|
154 |
show_edge_tooltip_nodes: true, |
|
155 |
show_edge_tooltip_creator: true |
|
| 297 | 156 |
|
| 173 | 157 |
/* */ |
| 297 | 158 |
|
| 172 | 159 |
}; |