client/js/defaults.js
author ymh <ymh.work@gmail.com>
Tue, 23 Apr 2013 22:15:10 +0200
changeset 168 f978d70a9e63
parent 132 860340d4c645
child 169 a60a450b8f3b
permissions -rw-r--r--
Added tag V00.06.03 for changeset 5c34cc851c4b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
114
110f99eb417e moved options to defaults.js and improved read-only switching
veltr
parents:
diff changeset
     1
Rkns.defaults = {
168
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
     2
    
114
110f99eb417e moved options to defaults.js and improved read-only switching
veltr
parents:
diff changeset
     3
    language: (navigator.language || navigator.userLanguage || "en"),
168
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
     4
        /* GUI Language */
114
110f99eb417e moved options to defaults.js and improved read-only switching
veltr
parents:
diff changeset
     5
    container: "renkan",
168
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
     6
        /* GUI Container DOM element ID */
114
110f99eb417e moved options to defaults.js and improved read-only switching
veltr
parents:
diff changeset
     7
    search: [],
168
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
     8
        /* List of Search Engines */
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
     9
    bins: [],
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    10
           /* List of Bins */
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    11
    static_url: "",
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    12
        /* URL for static resources */
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    13
    show_bins: true,
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    14
        /* Show bins in left column */
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    15
    properties: [],
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    16
        /* Semantic properties for edges */
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    17
    read_only: false,
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    18
        /* Allows editing of renkan without changing the rest of the GUI. Can be switched on/off on the fly to block/enable editing */
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    19
    editor_mode: true,
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    20
        /* Switch for Publish/Edit GUI. If editor_mode is false, read_only will be true.  */
120
112a82ddd7e5 Settings transferred from paper-renderer.js to defaults.js
veltr
parents: 114
diff changeset
    21
    snapshot_mode: false,
168
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    22
        /* In snapshot mode, clicking on the floppy will save a snapshot. Otherwise, it will show the connection status */
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    23
    show_top_bar: true,
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    24
        /* Show the top bar, (title, buttons, users) */
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    25
    default_user_color: "#303030",
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    26
    size_bug_fix: true,
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    27
        /* Resize the canvas after load (fixes a bug on iPad and FF Mac) */
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    28
    force_resize: false,
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    29
    allow_double_click: true,
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    30
        /* Allows Double Click to create a node on an empty background */
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    31
    element_delete_delay: 5000,
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    32
    
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    33
    /* MINI-MAP OPTIONS */
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    34
    
120
112a82ddd7e5 Settings transferred from paper-renderer.js to defaults.js
veltr
parents: 114
diff changeset
    35
    show_minimap: true,
168
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    36
        /* Show a small map at the bottom right */
120
112a82ddd7e5 Settings transferred from paper-renderer.js to defaults.js
veltr
parents: 114
diff changeset
    37
    minimap_width: 160,
112a82ddd7e5 Settings transferred from paper-renderer.js to defaults.js
veltr
parents: 114
diff changeset
    38
    minimap_height: 120,
132
860340d4c645 Improvements for CineCard
veltr
parents: 120
diff changeset
    39
    minimap_background_color: "#ffffff",
860340d4c645 Improvements for CineCard
veltr
parents: 120
diff changeset
    40
    minimap_border_color: "#cccccc",
860340d4c645 Improvements for CineCard
veltr
parents: 120
diff changeset
    41
    minimap_highlight_color: "#ffff00",
860340d4c645 Improvements for CineCard
veltr
parents: 120
diff changeset
    42
    minimap_highlight_weight: 5,
120
112a82ddd7e5 Settings transferred from paper-renderer.js to defaults.js
veltr
parents: 114
diff changeset
    43
    
112a82ddd7e5 Settings transferred from paper-renderer.js to defaults.js
veltr
parents: 114
diff changeset
    44
    /* EDGE/NODE COMMON OPTIONS */
168
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    45
       
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    46
    buttons_background: "#202020",
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    47
    buttons_label_color: "#c000c0",
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    48
    buttons_label_font_size: 9,
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    49
    
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    50
    /* NODE DISPLAY OPTIONS */
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    51
    
120
112a82ddd7e5 Settings transferred from paper-renderer.js to defaults.js
veltr
parents: 114
diff changeset
    52
    show_node_circles: true,
168
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    53
        /* Show circles for nodes */
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    54
    clip_node_images: true,
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    55
        /* Constraint node images to circles */
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    56
    node_size_base: 25,
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    57
    node_stroke_width: 2,
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    58
    selected_node_stroke_width: 4,
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    59
    node_fill_color: "#ffffff",
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    60
    highlighted_node_fill_color: "#ffff00",
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    61
    node_label_distance: 5,
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    62
        /* Vertical distance between node and label */
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    63
    node_label_max_length: 60,
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    64
        /* Maximum displayed text length */
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    65
    label_untitled_nodes: "(untitled)",
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    66
        /* Label to display on untitled nodes */
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    67
    
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    68
    /* EDGE DISPLAY OPTIONS */
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    69
    
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    70
    edge_stroke_width: 2,
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    71
    selected_edge_stroke_width: 4,
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    72
    edge_label_distance: 0,
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    73
    edge_label_max_length: 20,
120
112a82ddd7e5 Settings transferred from paper-renderer.js to defaults.js
veltr
parents: 114
diff changeset
    74
    edge_arrow_length: 18,
112a82ddd7e5 Settings transferred from paper-renderer.js to defaults.js
veltr
parents: 114
diff changeset
    75
    edge_arrow_width: 12,
112a82ddd7e5 Settings transferred from paper-renderer.js to defaults.js
veltr
parents: 114
diff changeset
    76
    edge_gap_in_bundles: 12,
168
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    77
    label_untitled_edges: "",
120
112a82ddd7e5 Settings transferred from paper-renderer.js to defaults.js
veltr
parents: 114
diff changeset
    78
    
112a82ddd7e5 Settings transferred from paper-renderer.js to defaults.js
veltr
parents: 114
diff changeset
    79
    /* CONTEXTUAL DISPLAY (TOOLTIP OR EDITOR) OPTIONS */
112a82ddd7e5 Settings transferred from paper-renderer.js to defaults.js
veltr
parents: 114
diff changeset
    80
   
168
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    81
    tooltip_width: 275,
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    82
    tooltip_padding: 10,
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    83
    tooltip_margin: 15,
120
112a82ddd7e5 Settings transferred from paper-renderer.js to defaults.js
veltr
parents: 114
diff changeset
    84
    tooltip_arrow_length : 20,
112a82ddd7e5 Settings transferred from paper-renderer.js to defaults.js
veltr
parents: 114
diff changeset
    85
    tooltip_arrow_width : 40,
168
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    86
    tooltip_top_color: "#f0f0f0",
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    87
    tooltip_bottom_color: "#d0d0d0",
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    88
    tooltip_border_color: "#808080",
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    89
    tooltip_border_width: 1
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    90
    
f978d70a9e63 Added tag V00.06.03 for changeset 5c34cc851c4b
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
    91
};