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