| author | ymh <ymh.work@gmail.com> |
| Fri, 19 Jun 2015 13:35:23 +0200 | |
| changeset 489 | 7f25a4453865 |
| parent 487 | 48be7ebb3187 |
| child 503 | 18cb4c4c4e5e |
| child 512 | 480c1d2d6915 |
| 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", |
|
32 |
size_bug_fix: true, |
|
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 */ |
|
|
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
|
37 |
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
|
38 |
/* Allows to use the scrollwheel to zoom */ |
| 176 | 39 |
element_delete_delay: 0, |
|
174
756cfa6570d2
Setting element_delete_delay now shows remove confirm dialog
veltr
parents:
173
diff
changeset
|
40 |
/* 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
|
41 |
Set to 0 for delete confirm */ |
| 173 | 42 |
autoscale_padding: 50, |
|
403
96781c1a8bbe
correct resizing problems especially in next firefox
ymh <ymh.work@gmail.com>
parents:
385
diff
changeset
|
43 |
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
|
44 |
|
| 412 | 45 |
/* zoom options */ |
46 |
show_zoom: true, |
|
47 |
/* 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
|
48 |
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
|
49 |
/* show buttons to save view */ |
| 270 | 50 |
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
|
51 |
/* Allows to load default view (zoom+offset) at start on read_only mode, instead of autoScale. the default_view will be the last */ |
|
458
423bdf56d103
migrated to style, added dash style to client + small refactoring for shapes + triangle
ymh <ymh.work@gmail.com>
parents:
414
diff
changeset
|
52 |
|
|
423bdf56d103
migrated to style, added dash style to client + small refactoring for shapes + triangle
ymh <ymh.work@gmail.com>
parents:
414
diff
changeset
|
53 |
|
| 190 | 54 |
/* TOP BAR BUTTONS */ |
| 196 | 55 |
show_search_field: true, |
| 190 | 56 |
show_user_list: true, |
| 198 | 57 |
user_name_editable: true, |
58 |
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
|
59 |
show_user_color: true, |
| 190 | 60 |
show_save_button: true, |
| 297 | 61 |
show_export_button: true, |
| 190 | 62 |
show_open_button: false, |
63 |
show_addnode_button: true, |
|
64 |
show_addedge_button: true, |
|
65 |
show_bookmarklet: true, |
|
66 |
show_fullscreen_button: true, |
|
67 |
home_button_url: false, |
|
68 |
home_button_title: "Home", |
|
| 297 | 69 |
|
| 172 | 70 |
/* MINI-MAP OPTIONS */ |
| 297 | 71 |
|
| 172 | 72 |
show_minimap: true, |
73 |
/* Show a small map at the bottom right */ |
|
74 |
minimap_width: 160, |
|
75 |
minimap_height: 120, |
|
| 173 | 76 |
minimap_padding: 20, |
| 172 | 77 |
minimap_background_color: "#ffffff", |
78 |
minimap_border_color: "#cccccc", |
|
79 |
minimap_highlight_color: "#ffff00", |
|
80 |
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
|
81 |
|
| 297 | 82 |
|
| 172 | 83 |
/* EDGE/NODE COMMON OPTIONS */ |
| 297 | 84 |
|
| 172 | 85 |
buttons_background: "#202020", |
86 |
buttons_label_color: "#c000c0", |
|
87 |
buttons_label_font_size: 9, |
|
| 297 | 88 |
|
|
462
255b66d1ce78
remove magical constant, put ghost opacity in the defaults.
ymh <ymh.work@gmail.com>
parents:
461
diff
changeset
|
89 |
ghost_opacity : 0.3, |
|
255b66d1ce78
remove magical constant, put ghost opacity in the defaults.
ymh <ymh.work@gmail.com>
parents:
461
diff
changeset
|
90 |
/* 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
|
91 |
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
|
92 |
/* 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
|
93 |
|
| 172 | 94 |
/* NODE DISPLAY OPTIONS */ |
| 297 | 95 |
|
| 172 | 96 |
show_node_circles: true, |
97 |
/* Show circles for nodes */ |
|
98 |
clip_node_images: true, |
|
99 |
/* Constraint node images to circles */ |
|
| 185 | 100 |
node_images_fill_mode: false, |
101 |
/* Set to false for "letterboxing" (height/width of node adapted to show full image) |
|
102 |
Set to true for "crop" (adapted to fill circle) */ |
|
| 172 | 103 |
node_size_base: 25, |
104 |
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
|
105 |
node_stroke_max_width: 12, |
| 172 | 106 |
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
|
107 |
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
|
108 |
node_stroke_witdh_scale: 5, |
| 172 | 109 |
node_fill_color: "#ffffff", |
110 |
highlighted_node_fill_color: "#ffff00", |
|
111 |
node_label_distance: 5, |
|
112 |
/* Vertical distance between node and label */ |
|
113 |
node_label_max_length: 60, |
|
114 |
/* Maximum displayed text length */ |
|
115 |
label_untitled_nodes: "(untitled)", |
|
116 |
/* Label to display on untitled nodes */ |
|
|
487
48be7ebb3187
add hide_nodes option to allow or node the hiding behavior on nodes
rougeronj
parents:
482
diff
changeset
|
117 |
hide_nodes: true, |
| 489 | 118 |
/* allow hide/show nodes */ |
| 330 | 119 |
change_shapes: true, |
120 |
/* Change shapes enabled */ |
|
| 482 | 121 |
change_types: true, |
122 |
/* Change type enabled */ |
|
123 |
|
|
124 |
/* NODE EDITOR TEMPLATE*/ |
|
125 |
|
|
126 |
node_editor_templates: { |
|
127 |
"default": "templates/nodeeditor_readonly.html", |
|
128 |
"video": "templates/nodeeditor_video.html" |
|
129 |
}, |
|
| 297 | 130 |
|
| 172 | 131 |
/* EDGE DISPLAY OPTIONS */ |
| 297 | 132 |
|
| 172 | 133 |
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
|
134 |
edge_stroke_max_width: 12, |
| 172 | 135 |
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
|
136 |
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
|
137 |
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
|
138 |
|
| 172 | 139 |
edge_label_distance: 0, |
140 |
edge_label_max_length: 20, |
|
141 |
edge_arrow_length: 18, |
|
142 |
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
|
143 |
edge_arrow_max_width: 32, |
| 172 | 144 |
edge_gap_in_bundles: 12, |
145 |
label_untitled_edges: "", |
|
| 297 | 146 |
|
| 172 | 147 |
/* CONTEXTUAL DISPLAY (TOOLTIP OR EDITOR) OPTIONS */ |
| 297 | 148 |
|
| 172 | 149 |
tooltip_width: 275, |
150 |
tooltip_padding: 10, |
|
151 |
tooltip_margin: 15, |
|
152 |
tooltip_arrow_length : 20, |
|
153 |
tooltip_arrow_width : 40, |
|
154 |
tooltip_top_color: "#f0f0f0", |
|
155 |
tooltip_bottom_color: "#d0d0d0", |
|
156 |
tooltip_border_color: "#808080", |
|
| 173 | 157 |
tooltip_border_width: 1, |
| 297 | 158 |
|
|
468
364c367df7fc
add rich text editor for description
ymh <ymh.work@gmail.com>
parents:
462
diff
changeset
|
159 |
richtext_editor_config: { |
|
364c367df7fc
add rich text editor for description
ymh <ymh.work@gmail.com>
parents:
462
diff
changeset
|
160 |
toolbarGroups: [ |
|
364c367df7fc
add rich text editor for description
ymh <ymh.work@gmail.com>
parents:
462
diff
changeset
|
161 |
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] }, |
|
364c367df7fc
add rich text editor for description
ymh <ymh.work@gmail.com>
parents:
462
diff
changeset
|
162 |
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] }, |
|
364c367df7fc
add rich text editor for description
ymh <ymh.work@gmail.com>
parents:
462
diff
changeset
|
163 |
'/', |
|
364c367df7fc
add rich text editor for description
ymh <ymh.work@gmail.com>
parents:
462
diff
changeset
|
164 |
{ name: 'styles'}, |
|
364c367df7fc
add rich text editor for description
ymh <ymh.work@gmail.com>
parents:
462
diff
changeset
|
165 |
], |
|
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
|
166 |
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
|
167 |
}, |
|
364c367df7fc
add rich text editor for description
ymh <ymh.work@gmail.com>
parents:
462
diff
changeset
|
168 |
|
| 173 | 169 |
/* NODE EDITOR OPTIONS */ |
| 297 | 170 |
|
| 173 | 171 |
show_node_editor_uri: true, |
172 |
show_node_editor_description: true, |
|
|
468
364c367df7fc
add rich text editor for description
ymh <ymh.work@gmail.com>
parents:
462
diff
changeset
|
173 |
show_node_editor_description_richtext: true, |
| 173 | 174 |
show_node_editor_size: 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
|
175 |
show_node_editor_style: 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
|
176 |
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
|
177 |
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
|
178 |
show_node_editor_style_thickness: true, |
| 173 | 179 |
show_node_editor_image: true, |
180 |
show_node_editor_creator: true, |
|
| 385 | 181 |
allow_image_upload: true, |
| 190 | 182 |
uploaded_image_max_kb: 500, |
| 297 | 183 |
|
|
468
364c367df7fc
add rich text editor for description
ymh <ymh.work@gmail.com>
parents:
462
diff
changeset
|
184 |
|
| 173 | 185 |
/* NODE TOOLTIP OPTIONS */ |
| 297 | 186 |
|
| 173 | 187 |
show_node_tooltip_uri: true, |
188 |
show_node_tooltip_description: true, |
|
189 |
show_node_tooltip_color: true, |
|
190 |
show_node_tooltip_image: true, |
|
191 |
show_node_tooltip_creator: true, |
|
| 297 | 192 |
|
| 173 | 193 |
/* EDGE EDITOR OPTIONS */ |
| 297 | 194 |
|
| 173 | 195 |
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
|
196 |
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
|
197 |
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
|
198 |
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
|
199 |
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
|
200 |
show_edge_editor_style_arrow: true, |
| 173 | 201 |
show_edge_editor_direction: true, |
202 |
show_edge_editor_nodes: true, |
|
203 |
show_edge_editor_creator: true, |
|
| 297 | 204 |
|
| 173 | 205 |
/* EDGE TOOLTIP OPTIONS */ |
| 297 | 206 |
|
| 173 | 207 |
show_edge_tooltip_uri: true, |
208 |
show_edge_tooltip_color: true, |
|
209 |
show_edge_tooltip_nodes: true, |
|
|
468
364c367df7fc
add rich text editor for description
ymh <ymh.work@gmail.com>
parents:
462
diff
changeset
|
210 |
show_edge_tooltip_creator: true, |
| 297 | 211 |
|
| 172 | 212 |
}; |