| author | ymh <ymh.work@gmail.com> |
| Mon, 30 Mar 2015 09:53:48 +0200 | |
| changeset 414 | 276042cb477c |
| parent 412 | 1ebaa106b580 |
| child 445 | 705a2e9c6c9d |
| child 458 | 423bdf56d103 |
| 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, |
| 412 | 40 |
|
41 |
/* zoom options */ |
|
42 |
show_zoom: true, |
|
43 |
/* show zoom buttons */ |
|
|
414
276042cb477c
correct fix size, improve control on view save button and related init state
ymh <ymh.work@gmail.com>
parents:
412
diff
changeset
|
44 |
save_view: true, |
|
276042cb477c
correct fix size, improve control on view save button and related init state
ymh <ymh.work@gmail.com>
parents:
412
diff
changeset
|
45 |
/* show buttons to save view */ |
| 270 | 46 |
default_view: false, |
|
414
276042cb477c
correct fix size, improve control on view save button and related init state
ymh <ymh.work@gmail.com>
parents:
412
diff
changeset
|
47 |
/* Allows to load default view (zoom+offset) at start on read_only mode, instead of autoScale. the default_view will be the last */ |
| 412 | 48 |
|
49 |
|
|
| 190 | 50 |
/* TOP BAR BUTTONS */ |
| 196 | 51 |
show_search_field: true, |
| 190 | 52 |
show_user_list: true, |
| 198 | 53 |
user_name_editable: true, |
54 |
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
|
55 |
show_user_color: true, |
| 190 | 56 |
show_save_button: true, |
| 297 | 57 |
show_export_button: true, |
| 190 | 58 |
show_open_button: false, |
59 |
show_addnode_button: true, |
|
60 |
show_addedge_button: true, |
|
61 |
show_bookmarklet: true, |
|
62 |
show_fullscreen_button: true, |
|
63 |
home_button_url: false, |
|
64 |
home_button_title: "Home", |
|
| 297 | 65 |
|
| 172 | 66 |
/* MINI-MAP OPTIONS */ |
| 297 | 67 |
|
| 172 | 68 |
show_minimap: true, |
69 |
/* Show a small map at the bottom right */ |
|
70 |
minimap_width: 160, |
|
71 |
minimap_height: 120, |
|
| 173 | 72 |
minimap_padding: 20, |
| 172 | 73 |
minimap_background_color: "#ffffff", |
74 |
minimap_border_color: "#cccccc", |
|
75 |
minimap_highlight_color: "#ffff00", |
|
76 |
minimap_highlight_weight: 5, |
|
| 412 | 77 |
|
| 297 | 78 |
|
| 172 | 79 |
/* EDGE/NODE COMMON OPTIONS */ |
| 297 | 80 |
|
| 172 | 81 |
buttons_background: "#202020", |
82 |
buttons_label_color: "#c000c0", |
|
83 |
buttons_label_font_size: 9, |
|
| 297 | 84 |
|
| 172 | 85 |
/* NODE DISPLAY OPTIONS */ |
| 297 | 86 |
|
| 172 | 87 |
show_node_circles: true, |
88 |
/* Show circles for nodes */ |
|
89 |
clip_node_images: true, |
|
90 |
/* Constraint node images to circles */ |
|
| 185 | 91 |
node_images_fill_mode: false, |
92 |
/* Set to false for "letterboxing" (height/width of node adapted to show full image) |
|
93 |
Set to true for "crop" (adapted to fill circle) */ |
|
| 172 | 94 |
node_size_base: 25, |
95 |
node_stroke_width: 2, |
|
96 |
selected_node_stroke_width: 4, |
|
97 |
node_fill_color: "#ffffff", |
|
98 |
highlighted_node_fill_color: "#ffff00", |
|
99 |
node_label_distance: 5, |
|
100 |
/* Vertical distance between node and label */ |
|
101 |
node_label_max_length: 60, |
|
102 |
/* Maximum displayed text length */ |
|
103 |
label_untitled_nodes: "(untitled)", |
|
104 |
/* Label to display on untitled nodes */ |
|
| 330 | 105 |
change_shapes: true, |
106 |
/* Change shapes enabled */ |
|
| 297 | 107 |
|
| 172 | 108 |
/* EDGE DISPLAY OPTIONS */ |
| 297 | 109 |
|
| 172 | 110 |
edge_stroke_width: 2, |
111 |
selected_edge_stroke_width: 4, |
|
112 |
edge_label_distance: 0, |
|
113 |
edge_label_max_length: 20, |
|
114 |
edge_arrow_length: 18, |
|
115 |
edge_arrow_width: 12, |
|
116 |
edge_gap_in_bundles: 12, |
|
117 |
label_untitled_edges: "", |
|
| 297 | 118 |
|
| 172 | 119 |
/* CONTEXTUAL DISPLAY (TOOLTIP OR EDITOR) OPTIONS */ |
| 297 | 120 |
|
| 172 | 121 |
tooltip_width: 275, |
122 |
tooltip_padding: 10, |
|
123 |
tooltip_margin: 15, |
|
124 |
tooltip_arrow_length : 20, |
|
125 |
tooltip_arrow_width : 40, |
|
126 |
tooltip_top_color: "#f0f0f0", |
|
127 |
tooltip_bottom_color: "#d0d0d0", |
|
128 |
tooltip_border_color: "#808080", |
|
| 173 | 129 |
tooltip_border_width: 1, |
| 297 | 130 |
|
| 173 | 131 |
/* NODE EDITOR OPTIONS */ |
| 297 | 132 |
|
| 173 | 133 |
show_node_editor_uri: true, |
134 |
show_node_editor_description: true, |
|
135 |
show_node_editor_size: true, |
|
136 |
show_node_editor_color: true, |
|
137 |
show_node_editor_image: true, |
|
138 |
show_node_editor_creator: true, |
|
| 385 | 139 |
allow_image_upload: true, |
| 190 | 140 |
uploaded_image_max_kb: 500, |
| 297 | 141 |
|
| 173 | 142 |
/* NODE TOOLTIP OPTIONS */ |
| 297 | 143 |
|
| 173 | 144 |
show_node_tooltip_uri: true, |
145 |
show_node_tooltip_description: true, |
|
146 |
show_node_tooltip_color: true, |
|
147 |
show_node_tooltip_image: true, |
|
148 |
show_node_tooltip_creator: true, |
|
| 297 | 149 |
|
| 173 | 150 |
/* EDGE EDITOR OPTIONS */ |
| 297 | 151 |
|
| 173 | 152 |
show_edge_editor_uri: true, |
153 |
show_edge_editor_color: true, |
|
154 |
show_edge_editor_direction: true, |
|
155 |
show_edge_editor_nodes: true, |
|
156 |
show_edge_editor_creator: true, |
|
| 297 | 157 |
|
| 173 | 158 |
/* EDGE TOOLTIP OPTIONS */ |
| 297 | 159 |
|
| 173 | 160 |
show_edge_tooltip_uri: true, |
161 |
show_edge_tooltip_color: true, |
|
162 |
show_edge_tooltip_nodes: true, |
|
163 |
show_edge_tooltip_creator: true |
|
| 297 | 164 |
|
| 173 | 165 |
/* */ |
| 297 | 166 |
|
| 172 | 167 |
}; |