| author | veltr |
| Wed, 15 May 2013 15:40:09 +0200 | |
| changeset 185 | ad8c900d87e5 |
| parent 176 | f3da1f26f949 |
| child 188 | 50b3287d06dd |
| permissions | -rw-r--r-- |
| 172 | 1 |
Rkns.defaults = { |
2 |
|
|
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 */ |
|
17 |
read_only: false, |
|
18 |
/* Allows editing of renkan without changing the rest of the GUI. Can be switched on/off on the fly to block/enable editing */ |
|
19 |
editor_mode: true, |
|
20 |
/* Switch for Publish/Edit GUI. If editor_mode is false, read_only will be true. */ |
|
21 |
snapshot_mode: false, |
|
22 |
/* In snapshot mode, clicking on the floppy will save a snapshot. Otherwise, it will show the connection status */ |
|
23 |
show_top_bar: true, |
|
24 |
/* Show the top bar, (title, buttons, users) */ |
|
25 |
default_user_color: "#303030", |
|
26 |
size_bug_fix: true, |
|
27 |
/* Resize the canvas after load (fixes a bug on iPad and FF Mac) */ |
|
28 |
force_resize: false, |
|
29 |
allow_double_click: true, |
|
30 |
/* Allows Double Click to create a node on an empty background */ |
|
| 176 | 31 |
element_delete_delay: 0, |
|
174
756cfa6570d2
Setting element_delete_delay now shows remove confirm dialog
veltr
parents:
173
diff
changeset
|
32 |
/* 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
|
33 |
Set to 0 for delete confirm */ |
| 173 | 34 |
autoscale_padding: 50, |
| 172 | 35 |
|
36 |
/* MINI-MAP OPTIONS */ |
|
37 |
|
|
38 |
show_minimap: true, |
|
39 |
/* Show a small map at the bottom right */ |
|
40 |
minimap_width: 160, |
|
41 |
minimap_height: 120, |
|
| 173 | 42 |
minimap_padding: 20, |
| 172 | 43 |
minimap_background_color: "#ffffff", |
44 |
minimap_border_color: "#cccccc", |
|
45 |
minimap_highlight_color: "#ffff00", |
|
46 |
minimap_highlight_weight: 5, |
|
47 |
|
|
48 |
/* EDGE/NODE COMMON OPTIONS */ |
|
49 |
|
|
50 |
buttons_background: "#202020", |
|
51 |
buttons_label_color: "#c000c0", |
|
52 |
buttons_label_font_size: 9, |
|
53 |
|
|
54 |
/* NODE DISPLAY OPTIONS */ |
|
55 |
|
|
56 |
show_node_circles: true, |
|
57 |
/* Show circles for nodes */ |
|
58 |
clip_node_images: true, |
|
59 |
/* Constraint node images to circles */ |
|
| 185 | 60 |
node_images_fill_mode: false, |
61 |
/* Set to false for "letterboxing" (height/width of node adapted to show full image) |
|
62 |
Set to true for "crop" (adapted to fill circle) */ |
|
| 172 | 63 |
node_size_base: 25, |
64 |
node_stroke_width: 2, |
|
65 |
selected_node_stroke_width: 4, |
|
66 |
node_fill_color: "#ffffff", |
|
67 |
highlighted_node_fill_color: "#ffff00", |
|
68 |
node_label_distance: 5, |
|
69 |
/* Vertical distance between node and label */ |
|
70 |
node_label_max_length: 60, |
|
71 |
/* Maximum displayed text length */ |
|
72 |
label_untitled_nodes: "(untitled)", |
|
73 |
/* Label to display on untitled nodes */ |
|
74 |
|
|
75 |
/* EDGE DISPLAY OPTIONS */ |
|
76 |
|
|
77 |
edge_stroke_width: 2, |
|
78 |
selected_edge_stroke_width: 4, |
|
79 |
edge_label_distance: 0, |
|
80 |
edge_label_max_length: 20, |
|
81 |
edge_arrow_length: 18, |
|
82 |
edge_arrow_width: 12, |
|
83 |
edge_gap_in_bundles: 12, |
|
84 |
label_untitled_edges: "", |
|
85 |
|
|
86 |
/* CONTEXTUAL DISPLAY (TOOLTIP OR EDITOR) OPTIONS */ |
|
87 |
|
|
88 |
tooltip_width: 275, |
|
89 |
tooltip_padding: 10, |
|
90 |
tooltip_margin: 15, |
|
91 |
tooltip_arrow_length : 20, |
|
92 |
tooltip_arrow_width : 40, |
|
93 |
tooltip_top_color: "#f0f0f0", |
|
94 |
tooltip_bottom_color: "#d0d0d0", |
|
95 |
tooltip_border_color: "#808080", |
|
| 173 | 96 |
tooltip_border_width: 1, |
97 |
|
|
98 |
/* NODE EDITOR OPTIONS */ |
|
99 |
|
|
100 |
show_node_editor_uri: true, |
|
101 |
show_node_editor_description: true, |
|
102 |
show_node_editor_size: true, |
|
103 |
show_node_editor_color: true, |
|
104 |
show_node_editor_image: true, |
|
105 |
show_node_editor_creator: true, |
|
106 |
|
|
107 |
/* NODE TOOLTIP OPTIONS */ |
|
108 |
|
|
109 |
show_node_tooltip_uri: true, |
|
110 |
show_node_tooltip_description: true, |
|
111 |
show_node_tooltip_color: true, |
|
112 |
show_node_tooltip_image: true, |
|
113 |
show_node_tooltip_creator: true, |
|
114 |
|
|
115 |
/* EDGE EDITOR OPTIONS */ |
|
116 |
|
|
117 |
show_edge_editor_uri: true, |
|
118 |
show_edge_editor_color: true, |
|
119 |
show_edge_editor_direction: true, |
|
120 |
show_edge_editor_nodes: true, |
|
121 |
show_edge_editor_creator: true, |
|
122 |
|
|
123 |
/* EDGE TOOLTIP OPTIONS */ |
|
124 |
|
|
125 |
show_edge_tooltip_uri: true, |
|
126 |
show_edge_tooltip_color: true, |
|
127 |
show_edge_tooltip_nodes: true, |
|
128 |
show_edge_tooltip_creator: true |
|
129 |
|
|
130 |
/* */ |
|
| 172 | 131 |
|
132 |
}; |