| author | ymh <ymh.work@gmail.com> |
| Tue, 10 Jan 2017 17:36:30 +0100 | |
| changeset 649 | 2b9c120dba55 |
| parent 647 | eaaa1efce396 |
| 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 */ |
|
|
445
705a2e9c6c9d
Add popup_editor and editor_panel option to allow the editor panel to bin in an external div
rougeronj
parents:
414
diff
changeset
|
13 |
popup_editor: true, |
| 447 | 14 |
/* show the node editor as a popup inside the renkan view */ |
|
445
705a2e9c6c9d
Add popup_editor and editor_panel option to allow the editor panel to bin in an external div
rougeronj
parents:
414
diff
changeset
|
15 |
editor_panel: 'editor-panel', |
| 447 | 16 |
/* GUI continer DOM element ID of the editor panel */ |
| 172 | 17 |
show_bins: true, |
18 |
/* Show bins in left column */ |
|
19 |
properties: [], |
|
20 |
/* Semantic properties for edges */ |
|
| 188 | 21 |
show_editor: true, |
22 |
/* Show the graph editor... Setting this to "false" only shows the bins part ! */ |
|
| 172 | 23 |
read_only: false, |
24 |
/* Allows editing of renkan without changing the rest of the GUI. Can be switched on/off on the fly to block/enable editing */ |
|
25 |
editor_mode: true, |
|
26 |
/* Switch for Publish/Edit GUI. If editor_mode is false, read_only will be true. */ |
|
| 322 | 27 |
manual_save: false, |
| 172 | 28 |
/* In snapshot mode, clicking on the floppy will save a snapshot. Otherwise, it will show the connection status */ |
29 |
show_top_bar: true, |
|
30 |
/* Show the top bar, (title, buttons, users) */ |
|
31 |
default_user_color: "#303030", |
|
|
519
b94a34c139c1
update parameters function to accept idView parameter
rougeronj
parents:
515
diff
changeset
|
32 |
size_bug_fix: false, |
| 172 | 33 |
/* Resize the canvas after load (fixes a bug on iPad and FF Mac) */ |
34 |
force_resize: false, |
|
35 |
allow_double_click: true, |
|
36 |
/* Allows Double Click to create a node on an empty background */ |
|
|
647
eaaa1efce396
add examples for youtube node types, add a way to open node urls with a single click
ymh <ymh.work@gmail.com>
parents:
637
diff
changeset
|
37 |
double_click_open_url: true, |
|
eaaa1efce396
add examples for youtube node types, add a way to open node urls with a single click
ymh <ymh.work@gmail.com>
parents:
637
diff
changeset
|
38 |
/* In read_only mode open node uri in new window with a double click */ |
|
eaaa1efce396
add examples for youtube node types, add a way to open node urls with a single click
ymh <ymh.work@gmail.com>
parents:
637
diff
changeset
|
39 |
simple_click_open_url: false, |
|
eaaa1efce396
add examples for youtube node types, add a way to open node urls with a single click
ymh <ymh.work@gmail.com>
parents:
637
diff
changeset
|
40 |
/* In read_only mode open node uri in new window with a simple click (do not disable the double click) */ |
|
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
|
41 |
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
|
42 |
/* Allows to use the scrollwheel to zoom */ |
| 176 | 43 |
element_delete_delay: 0, |
|
174
756cfa6570d2
Setting element_delete_delay now shows remove confirm dialog
veltr
parents:
173
diff
changeset
|
44 |
/* 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
|
45 |
Set to 0 for delete confirm */ |
| 173 | 46 |
autoscale_padding: 50, |
|
403
96781c1a8bbe
correct resizing problems especially in next firefox
ymh <ymh.work@gmail.com>
parents:
385
diff
changeset
|
47 |
resize: true, |
|
458
423bdf56d103
migrated to style, added dash style to client + small refactoring for shapes + triangle
ymh <ymh.work@gmail.com>
parents:
414
diff
changeset
|
48 |
|
| 412 | 49 |
/* zoom options */ |
50 |
show_zoom: true, |
|
51 |
/* 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
|
52 |
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
|
53 |
/* show buttons to save view */ |
| 560 | 54 |
view_force_autoscale: true, |
55 |
/* Force autoscale when the Renkan is loaded */ |
|
56 |
view_show_hiddennodes: true, |
|
57 |
/* Show all the node when the Renkan is loaded */ |
|
| 524 | 58 |
default_index_view: -1, |
| 597 | 59 |
|
| 511 | 60 |
/* URL parsing */ |
| 547 | 61 |
url_parameters: true, |
62 |
/* accept or not hash parameters in the url */ |
|
63 |
update_url: true, |
|
| 511 | 64 |
/* update the url each time the paper shift or on zoom in/out, with the serialized view (offset and scale) */ |
| 554 | 65 |
/* Considered as false if url_parameters is false */ |
| 597 | 66 |
|
|
458
423bdf56d103
migrated to style, added dash style to client + small refactoring for shapes + triangle
ymh <ymh.work@gmail.com>
parents:
414
diff
changeset
|
67 |
|
| 190 | 68 |
/* TOP BAR BUTTONS */ |
| 196 | 69 |
show_search_field: true, |
| 190 | 70 |
show_user_list: true, |
| 597 | 71 |
/* show the user list */ |
| 198 | 72 |
user_name_editable: true, |
| 597 | 73 |
/* allow the edition of the user name */ |
| 198 | 74 |
user_color_editable: true, |
| 597 | 75 |
/* allow the edition of the user color */ |
|
637
a823999cbc42
added option (title_editable, default is true) to make the title uneditable in edit mode
durandn
parents:
633
diff
changeset
|
76 |
title_editable: true, |
|
a823999cbc42
added option (title_editable, default is true) to make the title uneditable in edit mode
durandn
parents:
633
diff
changeset
|
77 |
/* allow the edition of the renkan title */ |
|
364
4b37ff239933
Add option show_user_color to hide or show the color of the user
rougeronj
parents:
330
diff
changeset
|
78 |
show_user_color: true, |
| 597 | 79 |
/* show user colors in the list */ |
| 190 | 80 |
show_save_button: true, |
| 297 | 81 |
show_export_button: true, |
| 190 | 82 |
show_open_button: false, |
83 |
show_addnode_button: true, |
|
84 |
show_addedge_button: true, |
|
85 |
show_bookmarklet: true, |
|
86 |
show_fullscreen_button: true, |
|
87 |
home_button_url: false, |
|
88 |
home_button_title: "Home", |
|
| 297 | 89 |
|
| 172 | 90 |
/* MINI-MAP OPTIONS */ |
| 297 | 91 |
|
| 172 | 92 |
show_minimap: true, |
93 |
/* Show a small map at the bottom right */ |
|
94 |
minimap_width: 160, |
|
95 |
minimap_height: 120, |
|
| 173 | 96 |
minimap_padding: 20, |
| 172 | 97 |
minimap_background_color: "#ffffff", |
98 |
minimap_border_color: "#cccccc", |
|
99 |
minimap_highlight_color: "#ffff00", |
|
100 |
minimap_highlight_weight: 5, |
|
|
458
423bdf56d103
migrated to style, added dash style to client + small refactoring for shapes + triangle
ymh <ymh.work@gmail.com>
parents:
414
diff
changeset
|
101 |
|
| 297 | 102 |
|
| 172 | 103 |
/* EDGE/NODE COMMON OPTIONS */ |
| 297 | 104 |
|
| 172 | 105 |
buttons_background: "#202020", |
106 |
buttons_label_color: "#c000c0", |
|
107 |
buttons_label_font_size: 9, |
|
| 297 | 108 |
|
|
462
255b66d1ce78
remove magical constant, put ghost opacity in the defaults.
ymh <ymh.work@gmail.com>
parents:
461
diff
changeset
|
109 |
ghost_opacity : 0.3, |
|
255b66d1ce78
remove magical constant, put ghost opacity in the defaults.
ymh <ymh.work@gmail.com>
parents:
461
diff
changeset
|
110 |
/* opacity when the hidden element is revealed */ |
|
458
423bdf56d103
migrated to style, added dash style to client + small refactoring for shapes + triangle
ymh <ymh.work@gmail.com>
parents:
414
diff
changeset
|
111 |
default_dash_array : [4, 5], |
|
462
255b66d1ce78
remove magical constant, put ghost opacity in the defaults.
ymh <ymh.work@gmail.com>
parents:
461
diff
changeset
|
112 |
/* dash line genometry */ |
|
458
423bdf56d103
migrated to style, added dash style to client + small refactoring for shapes + triangle
ymh <ymh.work@gmail.com>
parents:
414
diff
changeset
|
113 |
|
| 172 | 114 |
/* NODE DISPLAY OPTIONS */ |
| 297 | 115 |
|
| 172 | 116 |
show_node_circles: true, |
117 |
/* Show circles for nodes */ |
|
118 |
clip_node_images: true, |
|
119 |
/* Constraint node images to circles */ |
|
| 185 | 120 |
node_images_fill_mode: false, |
121 |
/* Set to false for "letterboxing" (height/width of node adapted to show full image) |
|
122 |
Set to true for "crop" (adapted to fill circle) */ |
|
| 172 | 123 |
node_size_base: 25, |
124 |
node_stroke_width: 2, |
|
|
459
98cae534083d
add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents:
458
diff
changeset
|
125 |
node_stroke_max_width: 12, |
| 172 | 126 |
selected_node_stroke_width: 4, |
|
459
98cae534083d
add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents:
458
diff
changeset
|
127 |
selected_node_stroke_max_width: 24, |
|
98cae534083d
add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents:
458
diff
changeset
|
128 |
node_stroke_witdh_scale: 5, |
|
649
2b9c120dba55
first implementation of node title size and color
ymh <ymh.work@gmail.com>
parents:
647
diff
changeset
|
129 |
node_title_size_min: 0, |
|
2b9c120dba55
first implementation of node title size and color
ymh <ymh.work@gmail.com>
parents:
647
diff
changeset
|
130 |
/* minimum relative size for node title (in graph) */ |
|
2b9c120dba55
first implementation of node title size and color
ymh <ymh.work@gmail.com>
parents:
647
diff
changeset
|
131 |
node_title_size_max: 5, |
|
2b9c120dba55
first implementation of node title size and color
ymh <ymh.work@gmail.com>
parents:
647
diff
changeset
|
132 |
/* maximum relative size for node title (in graph) */ |
|
2b9c120dba55
first implementation of node title size and color
ymh <ymh.work@gmail.com>
parents:
647
diff
changeset
|
133 |
node_title_size_step: 0.1, |
|
2b9c120dba55
first implementation of node title size and color
ymh <ymh.work@gmail.com>
parents:
647
diff
changeset
|
134 |
/* step for relative size for node title (in graph) */ |
| 172 | 135 |
node_fill_color: "#ffffff", |
|
649
2b9c120dba55
first implementation of node title size and color
ymh <ymh.work@gmail.com>
parents:
647
diff
changeset
|
136 |
/* default color to fill node background */ |
| 172 | 137 |
highlighted_node_fill_color: "#ffff00", |
|
649
2b9c120dba55
first implementation of node title size and color
ymh <ymh.work@gmail.com>
parents:
647
diff
changeset
|
138 |
/* default color to fill highlighted node background */ |
|
2b9c120dba55
first implementation of node title size and color
ymh <ymh.work@gmail.com>
parents:
647
diff
changeset
|
139 |
node_title_color: "#000000", |
|
2b9c120dba55
first implementation of node title size and color
ymh <ymh.work@gmail.com>
parents:
647
diff
changeset
|
140 |
/* default title color */ |
| 172 | 141 |
node_label_distance: 5, |
142 |
/* Vertical distance between node and label */ |
|
143 |
node_label_max_length: 60, |
|
144 |
/* Maximum displayed text length */ |
|
145 |
label_untitled_nodes: "(untitled)", |
|
146 |
/* Label to display on untitled nodes */ |
|
|
503
18cb4c4c4e5e
add parameter to control editor opacity
ymh <ymh.work@gmail.com>
parents:
489
diff
changeset
|
147 |
hide_nodes: true, |
| 489 | 148 |
/* allow hide/show nodes */ |
| 330 | 149 |
change_shapes: true, |
150 |
/* Change shapes enabled */ |
|
| 482 | 151 |
change_types: true, |
152 |
/* Change type enabled */ |
|
|
503
18cb4c4c4e5e
add parameter to control editor opacity
ymh <ymh.work@gmail.com>
parents:
489
diff
changeset
|
153 |
|
| 482 | 154 |
/* NODE EDITOR TEMPLATE*/ |
|
503
18cb4c4c4e5e
add parameter to control editor opacity
ymh <ymh.work@gmail.com>
parents:
489
diff
changeset
|
155 |
|
| 482 | 156 |
node_editor_templates: { |
157 |
"default": "templates/nodeeditor_readonly.html", |
|
158 |
"video": "templates/nodeeditor_video.html" |
|
159 |
}, |
|
| 297 | 160 |
|
| 172 | 161 |
/* EDGE DISPLAY OPTIONS */ |
| 297 | 162 |
|
| 172 | 163 |
edge_stroke_width: 2, |
|
459
98cae534083d
add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents:
458
diff
changeset
|
164 |
edge_stroke_max_width: 12, |
| 172 | 165 |
selected_edge_stroke_width: 4, |
|
459
98cae534083d
add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents:
458
diff
changeset
|
166 |
selected_edge_stroke_max_width: 24, |
|
98cae534083d
add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents:
458
diff
changeset
|
167 |
edge_stroke_witdh_scale: 5, |
|
98cae534083d
add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents:
458
diff
changeset
|
168 |
|
| 172 | 169 |
edge_label_distance: 0, |
170 |
edge_label_max_length: 20, |
|
171 |
edge_arrow_length: 18, |
|
172 |
edge_arrow_width: 12, |
|
|
459
98cae534083d
add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents:
458
diff
changeset
|
173 |
edge_arrow_max_width: 32, |
| 172 | 174 |
edge_gap_in_bundles: 12, |
|
633
fdff56da097d
allow to highlight edges. Add a url selector for edge + seach edges in edge box. remove max width of title
ymh <ymh.work@gmail.com>
parents:
597
diff
changeset
|
175 |
highlighted_edge_color: "#ffff00", |
| 172 | 176 |
label_untitled_edges: "", |
| 297 | 177 |
|
| 172 | 178 |
/* CONTEXTUAL DISPLAY (TOOLTIP OR EDITOR) OPTIONS */ |
| 297 | 179 |
|
| 172 | 180 |
tooltip_width: 275, |
181 |
tooltip_padding: 10, |
|
182 |
tooltip_margin: 15, |
|
183 |
tooltip_arrow_length : 20, |
|
184 |
tooltip_arrow_width : 40, |
|
185 |
tooltip_top_color: "#f0f0f0", |
|
186 |
tooltip_bottom_color: "#d0d0d0", |
|
187 |
tooltip_border_color: "#808080", |
|
| 173 | 188 |
tooltip_border_width: 1, |
|
503
18cb4c4c4e5e
add parameter to control editor opacity
ymh <ymh.work@gmail.com>
parents:
489
diff
changeset
|
189 |
tooltip_opacity: 0.8, |
| 297 | 190 |
|
|
468
364c367df7fc
add rich text editor for description
ymh <ymh.work@gmail.com>
parents:
462
diff
changeset
|
191 |
richtext_editor_config: { |
|
364c367df7fc
add rich text editor for description
ymh <ymh.work@gmail.com>
parents:
462
diff
changeset
|
192 |
toolbarGroups: [ |
|
364c367df7fc
add rich text editor for description
ymh <ymh.work@gmail.com>
parents:
462
diff
changeset
|
193 |
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] }, |
|
364c367df7fc
add rich text editor for description
ymh <ymh.work@gmail.com>
parents:
462
diff
changeset
|
194 |
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] }, |
|
364c367df7fc
add rich text editor for description
ymh <ymh.work@gmail.com>
parents:
462
diff
changeset
|
195 |
'/', |
|
364c367df7fc
add rich text editor for description
ymh <ymh.work@gmail.com>
parents:
462
diff
changeset
|
196 |
{ name: 'styles'}, |
|
364c367df7fc
add rich text editor for description
ymh <ymh.work@gmail.com>
parents:
462
diff
changeset
|
197 |
], |
|
470
47308aa6ce94
correction for rich text editor. correct problem of empty description. make sure that the editor toolbr close
ymh <ymh.work@gmail.com>
parents:
468
diff
changeset
|
198 |
removePlugins : 'colorbutton,find,flash,font,forms,iframe,image,newpage,smiley,specialchar,stylescombo,templates', |
|
468
364c367df7fc
add rich text editor for description
ymh <ymh.work@gmail.com>
parents:
462
diff
changeset
|
199 |
}, |
|
364c367df7fc
add rich text editor for description
ymh <ymh.work@gmail.com>
parents:
462
diff
changeset
|
200 |
|
| 173 | 201 |
/* NODE EDITOR OPTIONS */ |
| 297 | 202 |
|
|
649
2b9c120dba55
first implementation of node title size and color
ymh <ymh.work@gmail.com>
parents:
647
diff
changeset
|
203 |
show_node_title_style: true, |
| 173 | 204 |
show_node_editor_uri: true, |
| 530 | 205 |
show_node_editor_title: true, |
206 |
show_node_editor_title_richtext: true, |
|
| 173 | 207 |
show_node_editor_description: true, |
|
468
364c367df7fc
add rich text editor for description
ymh <ymh.work@gmail.com>
parents:
462
diff
changeset
|
208 |
show_node_editor_description_richtext: true, |
| 173 | 209 |
show_node_editor_size: true, |
|
649
2b9c120dba55
first implementation of node title size and color
ymh <ymh.work@gmail.com>
parents:
647
diff
changeset
|
210 |
show_node_editor_style: true, // show node title style editor |
|
459
98cae534083d
add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents:
458
diff
changeset
|
211 |
show_node_editor_style_color: true, |
|
98cae534083d
add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents:
458
diff
changeset
|
212 |
show_node_editor_style_dash: true, |
|
98cae534083d
add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents:
458
diff
changeset
|
213 |
show_node_editor_style_thickness: true, |
| 173 | 214 |
show_node_editor_image: true, |
215 |
show_node_editor_creator: true, |
|
| 385 | 216 |
allow_image_upload: true, |
| 190 | 217 |
uploaded_image_max_kb: 500, |
| 297 | 218 |
|
|
468
364c367df7fc
add rich text editor for description
ymh <ymh.work@gmail.com>
parents:
462
diff
changeset
|
219 |
|
| 173 | 220 |
/* NODE TOOLTIP OPTIONS */ |
| 297 | 221 |
|
| 173 | 222 |
show_node_tooltip_uri: true, |
223 |
show_node_tooltip_description: true, |
|
224 |
show_node_tooltip_color: true, |
|
225 |
show_node_tooltip_image: true, |
|
226 |
show_node_tooltip_creator: true, |
|
| 297 | 227 |
|
| 173 | 228 |
/* EDGE EDITOR OPTIONS */ |
| 297 | 229 |
|
| 173 | 230 |
show_edge_editor_uri: true, |
|
459
98cae534083d
add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents:
458
diff
changeset
|
231 |
show_edge_editor_style: true, |
|
98cae534083d
add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents:
458
diff
changeset
|
232 |
show_edge_editor_style_color: true, |
|
98cae534083d
add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents:
458
diff
changeset
|
233 |
show_edge_editor_style_dash: true, |
|
98cae534083d
add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents:
458
diff
changeset
|
234 |
show_edge_editor_style_thickness: true, |
|
98cae534083d
add node and edge stroke width + adjust text + arrow placement + conrol arrow visibility
ymh <ymh.work@gmail.com>
parents:
458
diff
changeset
|
235 |
show_edge_editor_style_arrow: true, |
| 173 | 236 |
show_edge_editor_direction: true, |
237 |
show_edge_editor_nodes: true, |
|
238 |
show_edge_editor_creator: true, |
|
| 297 | 239 |
|
| 173 | 240 |
/* EDGE TOOLTIP OPTIONS */ |
| 297 | 241 |
|
| 173 | 242 |
show_edge_tooltip_uri: true, |
243 |
show_edge_tooltip_color: true, |
|
244 |
show_edge_tooltip_nodes: true, |
|
|
468
364c367df7fc
add rich text editor for description
ymh <ymh.work@gmail.com>
parents:
462
diff
changeset
|
245 |
show_edge_tooltip_creator: true, |
| 297 | 246 |
|
| 172 | 247 |
}; |