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