# HG changeset patch
# User rougeronj
# Date 1442329733 -7200
# Node ID 1cb7122dd4272cb4934c0ea331072fdae66592df
# Parent 0d9b3f1b97e707b53481fb3ab0a8376cb56296b2
Update version number and copy-server new client version
diff -r 0d9b3f1b97e7 -r 1cb7122dd427 client/bower.json
--- a/client/bower.json Tue Sep 15 12:24:58 2015 +0200
+++ b/client/bower.json Tue Sep 15 17:08:53 2015 +0200
@@ -1,6 +1,6 @@
{
"name": "renkan",
- "version": "0.12.2",
+ "version": "0.12.3",
"authors": [
"IRI \n \n ' +
+((__t = (node.title)) == null ? '' : __t) +
+'\n ';
+ } else { ;
+__p += '\n \n
\n
\n'; } ; -__p += '\n ' + __e(renkan.translate("Link to the node")) + @@ -964,9 +972,9 @@ }); this.read_only = this.options.read_only || !this.options.editor_mode; - + this.router = new Rkns.Router(); - + this.project = new Rkns.Models.Project(); this.dataloader = new Rkns.DataLoader.Loader(this.project, this.options); @@ -1410,8 +1418,7 @@ _path.segments[4].point.y = _path.segments[5].point.y = _bottom; _path.segments[1].point.y = _coords.y - _options.tooltip_arrow_width / 2; _path.segments[6].point.y = _coords.y + _options.tooltip_arrow_width / 2; - _path.closed = true; - _path.fillColor = new paper.GradientColor(new paper.Gradient([_options.tooltip_top_color, _options.tooltip_bottom_color]), [0, _top], [0, _bottom]); + _path.fillColor = new paper.Color(new paper.Gradient([_options.tooltip_top_color, _options.tooltip_bottom_color]), [0, _top], [0, _bottom]); _selector.css({ left: (_options.tooltip_padding + Math.min(_left, _right)), top: (_options.tooltip_padding + _top) @@ -1455,14 +1462,13 @@ index: function (parameters) { var result = {}; - if (parameters === null){ - return; - } - parameters.split("&").forEach(function(part) { - var item = part.split("="); - result[item[0]] = decodeURIComponent(item[1]); - }); - this.trigger('router', result); + if (parameters !== null){ + parameters.split("&").forEach(function(part) { + var item = part.split("="); + result[item[0]] = decodeURIComponent(item[1]); + }); + } + this.trigger('router', result); } }); @@ -1933,7 +1939,7 @@ show_top_bar: true, /* Show the top bar, (title, buttons, users) */ default_user_color: "#303030", - size_bug_fix: true, + size_bug_fix: false, /* Resize the canvas after load (fixes a bug on iPad and FF Mac) */ force_resize: false, allow_double_click: true, @@ -1954,6 +1960,10 @@ default_view: false, /* Allows to load default view (zoom+offset) at start on read_only mode, instead of autoScale. the default_view will be the last */ + /* URL parsing */ + update_url:true, + /* update the url each time the paper shift or on zoom in/out, with the serialized view (offset and scale) */ + /* TOP BAR BUTTONS */ show_search_field: true, @@ -2018,15 +2028,15 @@ /* Maximum displayed text length */ label_untitled_nodes: "(untitled)", /* Label to display on untitled nodes */ - hide_nodes: true, + hide_nodes: true, /* allow hide/show nodes */ change_shapes: true, /* Change shapes enabled */ change_types: true, /* Change type enabled */ - + /* NODE EDITOR TEMPLATE*/ - + node_editor_templates: { "default": "templates/nodeeditor_readonly.html", "video": "templates/nodeeditor_video.html" @@ -2059,6 +2069,7 @@ tooltip_bottom_color: "#d0d0d0", tooltip_border_color: "#808080", tooltip_border_width: 1, + tooltip_opacity: 0.8, richtext_editor_config: { toolbarGroups: [ @@ -2073,8 +2084,10 @@ /* NODE EDITOR OPTIONS */ show_node_editor_uri: true, + show_node_editor_title: true, show_node_editor_description: true, show_node_editor_description_richtext: true, + show_node_editor_title_richtext: true, show_node_editor_size: true, show_node_editor_style: true, show_node_editor_style_color: true, @@ -2235,7 +2248,6 @@ saveStatus : 0 }); _renkan.renderer.redrawActive = true; - _renkan.renderer.fixSize(); }); }; var _save = function() { @@ -2261,6 +2273,9 @@ var _thrSave = Rkns._.throttle(function() { setTimeout(_save, 100); }, 1000); + + //TODO: Rearrange to avoid the 2 firts PUT due to a change in the project model + // Take car of setting up the listener correctly to listen the save action on the view _proj.on("add:nodes add:edges add:users add:views", function(_model) { _model.on("change remove", function(_model) { _thrSave(); @@ -2299,13 +2314,14 @@ url: _opts.url, data: getdata, beforeSend: function(){ + _renkan.renderer.redrawActive = false; _proj.set({loadingStatus:true}); }, success: function(_data) { _renkan.dataloader.load(_data); _proj.set({loadingStatus:false}); _proj.set({saveStatus:0}); - _renkan.renderer.autoScale(); + _renkan.renderer.redrawActive = true; } }); }; @@ -2818,7 +2834,7 @@ define('renderer/baserepresentation',['jquery', 'underscore'], function ($, _) { - 'use strict'; + /* Rkns.Renderer._BaseRepresentation Class */ @@ -2903,7 +2919,7 @@ }); define('requtils',[], function ($, _) { - 'use strict'; + return { getUtils: function(){ return window.Rkns.Utils; @@ -2917,7 +2933,7 @@ define('renderer/basebutton',['jquery', 'underscore', 'requtils', 'renderer/baserepresentation'], function ($, _, requtils, BaseRepresentation) { - 'use strict'; + var Utils = requtils.getUtils(); @@ -2935,7 +2951,9 @@ this.sector.show(); }, hide: function() { - this.sector.hide(); + if (this.sector){ + this.sector.hide(); + } }, select: function() { this.sector.select(); @@ -2957,7 +2975,7 @@ define('renderer/shapebuilder',[], function () { - 'use strict'; + var cloud_path = "M0,0c-0.1218516546,-0.0336420601 -0.2451649928,0.0048580836 -0.3302944641,0.0884969975c-0.0444763883,-0.0550844815 -0.1047003238,-0.0975985034 -0.1769360893,-0.1175406746c-0.1859066673,-0.0513257002 -0.3774236254,0.0626045858 -0.4272374613,0.2541588105c-0.0036603877,0.0140753132 -0.0046241235,0.028229722 -0.0065872453,0.042307536c-0.1674179627,-0.0179317735 -0.3276106855,0.0900599386 -0.3725537463,0.2628868425c-0.0445325077,0.1712456429 0.0395025693,0.3463497959 0.1905420475,0.4183458793c-0.0082101538,0.0183442886 -0.0158652506,0.0372432828 -0.0211098452,0.0574080693c-0.0498130336,0.1915540431 0.0608692569,0.3884647499 0.2467762814,0.4397904033c0.0910577256,0.0251434257 0.1830791813,0.0103792696 0.2594677475,-0.0334472349c0.042100113,0.0928009202 0.1205930075,0.1674914182 0.2240666796,0.1960572479c0.1476344161,0.0407610407 0.297446165,-0.0238077445 0.3783262342,-0.1475652419c0.0327623278,0.0238981846 0.0691792333,0.0436665447 0.1102008706,0.0549940004c0.1859065794,0.0513256592 0.3770116432,-0.0627203154 0.4268255671,-0.2542745401c0.0250490557,-0.0963230532 0.0095494076,-0.1938010889 -0.0356681889,-0.2736906101c0.0447507424,-0.0439678867 0.0797796014,-0.0996624318 0.0969425462,-0.1656617192c0.0498137481,-0.1915564561 -0.0608688118,-0.3884669813 -0.2467755669,-0.4397928163c-0.0195699622,-0.0054005426 -0.0391731675,-0.0084429542 -0.0586916488,-0.0102888295c0.0115683912,-0.1682147574 -0.0933564223,-0.3269222408 -0.2572937178,-0.3721841203z"; /* ShapeBuilder Begin */ @@ -3072,7 +3090,7 @@ }); define('renderer/noderepr',['jquery', 'underscore', 'requtils', 'renderer/baserepresentation', 'renderer/shapebuilder'], function ($, _, requtils, BaseRepresentation, ShapeBuilder) { - 'use strict'; + var Utils = requtils.getUtils(); @@ -3169,7 +3187,7 @@ if (!this.is_dragging || !this.paper_coords) { this.paper_coords = this.renderer.toPaperCoords(_model_coords); } - this.circle_radius = _baseRadius * this.renderer.scale; + this.circle_radius = _baseRadius * this.renderer.view.scale; if (this.last_circle_radius !== this.circle_radius) { this.all_buttons.forEach(function(b) { b.setSectorSize(); @@ -3420,7 +3438,7 @@ this.redraw(); } } else { - this.renderer.paperShift(_delta); + this.renderer.view.paperShift(_delta); } }, openEditor: function() { @@ -3482,8 +3500,7 @@ //when the mouse don't hover the node anymore, we hide it if (this.hidden) { this.hide(); - } - else { + } else { this.hideNeighbors(); } this._super("unselect"); @@ -3528,6 +3545,7 @@ this.title.css('opacity', this.options.ghost_opacity); this.minimap_circle.opacity = this.options.ghost_opacity; } else { + this.minimap_circle.opacity = 1; this.hidden = false; this.redraw(); } @@ -3575,9 +3593,9 @@ if (repr && repr.hidden) { repr.show(ghost); if (!ghost){ - var indexNode = _this.renderer.hiddenNodes.indexOf(repr.model.id); + var indexNode = _this.renderer.view.hiddenNodes.indexOf(repr.model.id); if (indexNode !== -1){ - _this.renderer.hiddenNodes.splice(indexNode, 1); + _this.renderer.view.hiddenNodes.splice(indexNode, 1); } } } @@ -3624,9 +3642,9 @@ this.saveCoords(); } else { if (this.hidden) { - var index = this.renderer.hiddenNodes.indexOf(this.model.id); + var index = this.renderer.view.hiddenNodes.indexOf(this.model.id); if (index !== -1){ - this.renderer.hiddenNodes.splice(index, 1); + this.renderer.view.hiddenNodes.splice(index, 1); } this.show(false); this.select(); @@ -3663,7 +3681,7 @@ define('renderer/edge',['jquery', 'underscore', 'requtils', 'renderer/baserepresentation'], function ($, _, requtils, BaseRepresentation) { - 'use strict'; + var Utils = requtils.getUtils(); @@ -3961,7 +3979,7 @@ define('renderer/tempedge',['jquery', 'underscore', 'requtils', 'renderer/baserepresentation'], function ($, _, requtils, BaseRepresentation) { - 'use strict'; + var Utils = requtils.getUtils(); @@ -4061,7 +4079,7 @@ define('renderer/baseeditor',['jquery', 'underscore', 'requtils', 'renderer/baserepresentation'], function ($, _, requtils, BaseRepresentation) { - 'use strict'; + var Utils = requtils.getUtils(); @@ -4078,14 +4096,14 @@ this.editor_block.add.apply(this.editor_block, _pts); this.editor_block.strokeWidth = this.options.tooltip_border_width; this.editor_block.strokeColor = this.options.tooltip_border_color; - this.editor_block.opacity = 0.8; + this.editor_block.opacity = this.options.tooltip_opacity; this.editor_$ = $('\n \n \n
\n',options.show_edge_editor_uri&&(__p+="\n \n ',options.properties.length&&(__p+="\n\n \n \n
\n")),__p+="\n",options.show_edge_editor_style&&(__p+='\n\n '+__e(renkan.translate("Change edge direction"))+"\n
\n"),__p+="\n",options.show_edge_editor_nodes&&(__p+='\n\n '+__e(renkan.translate("From:"))+'\n \n '+__e(shortenText(edge.from_title,25))+'\n
\n\n '+__e(renkan.translate("To:"))+'\n \n '+__e(shortenText(edge.to_title,25))+"\n
\n"),__p+="\n",options.show_edge_editor_creator&&edge.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(edge.created_by_title,25))+"\n
\n"),__p+="\n";return __p},this.renkanJST["templates/edgeeditor_readonly.html"]=function(obj){obj||(obj={});var __t,__p="",__e=_.escape;Array.prototype.join;with(obj)__p+='"+(null==(__t=edge.description)?"":__t)+"
\n",options.show_edge_tooltip_nodes&&(__p+='\n\n '+__e(renkan.translate("From:"))+'\n \n '+__e(shortenText(edge.from_title,25))+'\n
\n\n '+__e(renkan.translate("To:"))+'\n \n '+__e(shortenText(edge.to_title,25))+"\n
\n"),__p+="\n",options.show_edge_tooltip_creator&&edge.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(edge.created_by_title,25))+"\n
\n"),__p+="\n";return __p},this.renkanJST["templates/ldtjson-bin/annotationtemplate.html"]=function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='"+(null==(__t=hdescription)?"":__t)+"
\nStart: "+(null==(__t=start)?"":__t)+", End: "+(null==(__t=end)?"":__t)+", Duration: "+(null==(__t=duration)?"":__t)+'
\n \n"+(null==(__t=hdescription)?"":__t)+"
\nStart: "+(null==(__t=start)?"":__t)+", End: "+(null==(__t=end)?"":__t)+", Duration: "+(null==(__t=duration)?"":__t)+'
\n \n
\n '+(null==(__t=hdescription)?"":__t)+"
\n "),__p+="\n ",image&&(__p+='\n \n '),__p+="\n\n \n \n
\n',options.show_node_editor_uri&&(__p+="\n \n'),__p+=" ",options.change_types&&(__p+="\n\n \n \n
\n"),__p+=" ",options.show_node_editor_description&&(__p+="\n\n \n ",__p+=options.show_node_editor_description_richtext?'\n
\n '+__e(renkan.translate("Size:"))+'\n -\n '+__e(node.size)+'\n +\n
\n'),__p+=" ",options.show_node_editor_style&&(__p+='\n\n \n
\n \n",options.allow_image_upload&&(__p+="\n\n \n \n
\n')),__p+=" ",options.show_node_editor_creator&&node.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(node.created_by_title,25))+"\n
\n"),__p+=" ",options.change_shapes&&(__p+="\n\n \n \n
\n"),__p+="\n";return __p},this.renkanJST["templates/nodeeditor_readonly.html"]=function(obj){obj||(obj={});var __t,__p="",__e=_.escape;Array.prototype.join;with(obj)__p+=''+(null==(__t=node.description)?"":__t)+"
\n"),__p+=" ",node.image&&options.show_node_tooltip_image&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(node.created_by_title,25))+"\n
\n"),__p+='\n '+__e(renkan.translate("Link to the node"))+"\n";return __p},this.renkanJST["templates/nodeeditor_video.html"]=function(obj){obj||(obj={});var __p="",__e=_.escape;Array.prototype.join;with(obj)__p+='
\n '+(null==(__t=hdescription)?"":__t)+"
\n\n \n \n
\n',options.show_edge_editor_uri&&(__p+="\n \n ',options.properties.length&&(__p+="\n\n \n \n
\n")),__p+="\n",options.show_edge_editor_style&&(__p+='\n\n '+__e(renkan.translate("Change edge direction"))+"\n
\n"),__p+="\n",options.show_edge_editor_nodes&&(__p+='\n\n '+__e(renkan.translate("From:"))+'\n \n '+__e(shortenText(edge.from_title,25))+'\n
\n\n '+__e(renkan.translate("To:"))+'\n \n '+__e(shortenText(edge.to_title,25))+"\n
\n"),__p+="\n",options.show_edge_editor_creator&&edge.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(edge.created_by_title,25))+"\n
\n"),__p+="\n";return __p},this.renkanJST["templates/edgeeditor_readonly.html"]=function(obj){obj||(obj={});{var __t,__p="",__e=_.escape;Array.prototype.join}with(obj)__p+='"+(null==(__t=edge.description)?"":__t)+"
\n",options.show_edge_tooltip_nodes&&(__p+='\n\n '+__e(renkan.translate("From:"))+'\n \n '+__e(shortenText(edge.from_title,25))+'\n
\n\n '+__e(renkan.translate("To:"))+'\n \n '+__e(shortenText(edge.to_title,25))+"\n
\n"),__p+="\n",options.show_edge_tooltip_creator&&edge.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(edge.created_by_title,25))+"\n
\n"),__p+="\n";return __p},this.renkanJST["templates/ldtjson-bin/annotationtemplate.html"]=function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='"+(null==(__t=hdescription)?"":__t)+"
\nStart: "+(null==(__t=start)?"":__t)+", End: "+(null==(__t=end)?"":__t)+", Duration: "+(null==(__t=duration)?"":__t)+'
\n \n"+(null==(__t=hdescription)?"":__t)+"
\nStart: "+(null==(__t=start)?"":__t)+", End: "+(null==(__t=end)?"":__t)+", Duration: "+(null==(__t=duration)?"":__t)+'
\n \n
\n '+(null==(__t=hdescription)?"":__t)+"
\n "),__p+="\n ",image&&(__p+='\n \n '),__p+="\n\n \n ",__p+=options.show_node_editor_title_richtext?'\n
\n \n \n
\n"),__p+=" ",options.show_node_editor_description&&(__p+="\n\n \n ",__p+=options.show_node_editor_description_richtext?'\n
\n '+__e(renkan.translate("Size:"))+'\n -\n '+__e(node.size)+'\n +\n
\n'),__p+=" ",options.show_node_editor_style&&(__p+='\n\n \n
\n \n",options.allow_image_upload&&(__p+="\n\n \n \n
\n')),__p+=" ",options.show_node_editor_creator&&node.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(node.created_by_title,25))+"\n
\n"),__p+=" ",options.change_shapes&&(__p+="\n\n \n \n
\n"),__p+="\n";return __p},this.renkanJST["templates/nodeeditor_readonly.html"]=function(obj){obj||(obj={});{var __t,__p="",__e=_.escape;Array.prototype.join}with(obj)__p+=''+(null==(__t=node.description)?"":__t)+"
\n"),__p+=" ",node.image&&options.show_node_tooltip_image&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(node.created_by_title,25))+"\n
\n"),__p+='\n '+__e(renkan.translate("Link to the node"))+"\n";return __p},this.renkanJST["templates/nodeeditor_video.html"]=function(obj){obj||(obj={});{var __p="",__e=_.escape;Array.prototype.join}with(obj)__p+='
\n '+(null==(__t=hdescription)?"":__t)+"
\n\\n \\n \\n
\\n';\n if (options.show_edge_editor_uri) { ;\n__p += '\\n \\n ';\n if (options.properties.length) { ;\n__p += '\\n\\n \\n \\n
\\n';\n } } ;\n__p += '\\n';\n if (options.show_edge_editor_style) { ;\n__p += '\\n\\n ' +\n__e( renkan.translate(\"Change edge direction\") ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n if (options.show_edge_editor_nodes) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"From:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.from_title, 25) ) +\n'\\n
\\n\\n ' +\n__e(renkan.translate(\"To:\")) +\n'\\n %-edge.to_color%>;\">\\n ' +\n__e( shortenText(edge.to_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n if (options.show_edge_editor_creator && edge.has_creator) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n ;\">\\n ' +\n__e( shortenText(edge.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/edgeeditor_readonly.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\nwith (obj) {\n__p += '\\n ' +\n__e( edge.short_uri ) +\n'\\n
\\n';\n } ;\n__p += '\\n' +\n((__t = (edge.description)) == null ? '' : __t) +\n'
\\n';\n if (options.show_edge_tooltip_nodes) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"From:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.from_title, 25) ) +\n'\\n
\\n\\n ' +\n__e(renkan.translate(\"To:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.to_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n if (options.show_edge_tooltip_creator && edge.has_creator) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/ldtjson-bin/annotationtemplate.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape;\nwith (obj) {\n__p += '' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\nStart: ' +\n((__t = (start)) == null ? '' : __t) +\n', End: ' +\n((__t = (end)) == null ? '' : __t) +\n', Duration: ' +\n((__t = (duration)) == null ? '' : __t) +\n'
\\n \\n' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\nStart: ' +\n((__t = (start)) == null ? '' : __t) +\n', End: ' +\n((__t = (end)) == null ? '' : __t) +\n', Duration: ' +\n((__t = (duration)) == null ? '' : __t) +\n'
\\n \\n' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\n ';\n } ;\n__p += '\\n ';\n if (image) { ;\n__p += '\\n \\n ';\n } ;\n__p += '\\n\\n \\n \\n
\\n';\n if (options.show_node_editor_uri) { ;\n__p += '\\n \\n';\n } ;\n__p += ' ';\n if (options.change_types) { ;\n__p += '\\n\\n \\n \\n
\\n';\n } ;\n__p += ' ';\n if (options.show_node_editor_description) { ;\n__p += '\\n\\n \\n ';\n if (options.show_node_editor_description_richtext) { ;\n__p += '\\n
\\n ' +\n__e(renkan.translate(\"Size:\")) +\n'\\n -\\n ' +\n__e(node.size) +\n'\\n +\\n
\\n';\n } ;\n__p += ' ';\n if (options.show_node_editor_style) { ;\n__p += '\\n\\n \\n
\\n \\n';\n if (options.allow_image_upload) { ;\n__p += '\\n\\n \\n \\n
\\n';\n };\n\n } ;\n__p += ' ';\n if (options.show_node_editor_creator && node.has_creator) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n \\n ' +\n__e( shortenText(node.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += ' ';\n if (options.change_shapes) { ;\n__p += '\\n\\n \\n \\n
\\n';\n } ;\n__p += '\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/nodeeditor_readonly.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\nwith (obj) {\n__p += '\\n ' +\n__e(node.short_uri) +\n'\\n
\\n';\n } ;\n__p += ' ';\n if (options.show_node_tooltip_description) { ;\n__p += '\\n' +\n((__t = (node.description)) == null ? '' : __t) +\n'
\\n';\n } ;\n__p += ' ';\n if (node.image && options.show_node_tooltip_image) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n \\n ' +\n__e( shortenText(node.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n ' +\n__e(renkan.translate(\"Link to the node\")) +\n'\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/nodeeditor_video.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\nwith (obj) {\n__p += '' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\n\\n \\n \\n
\\n';\n if (options.show_edge_editor_uri) { ;\n__p += '\\n \\n ';\n if (options.properties.length) { ;\n__p += '\\n\\n \\n \\n
\\n';\n } } ;\n__p += '\\n';\n if (options.show_edge_editor_style) { ;\n__p += '\\n\\n ' +\n__e( renkan.translate(\"Change edge direction\") ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n if (options.show_edge_editor_nodes) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"From:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.from_title, 25) ) +\n'\\n
\\n\\n ' +\n__e(renkan.translate(\"To:\")) +\n'\\n %-edge.to_color%>;\">\\n ' +\n__e( shortenText(edge.to_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n if (options.show_edge_editor_creator && edge.has_creator) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n ;\">\\n ' +\n__e( shortenText(edge.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/edgeeditor_readonly.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\nwith (obj) {\n__p += '\\n ' +\n__e( edge.short_uri ) +\n'\\n
\\n';\n } ;\n__p += '\\n' +\n((__t = (edge.description)) == null ? '' : __t) +\n'
\\n';\n if (options.show_edge_tooltip_nodes) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"From:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.from_title, 25) ) +\n'\\n
\\n\\n ' +\n__e(renkan.translate(\"To:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.to_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n if (options.show_edge_tooltip_creator && edge.has_creator) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/ldtjson-bin/annotationtemplate.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape;\nwith (obj) {\n__p += '' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\nStart: ' +\n((__t = (start)) == null ? '' : __t) +\n', End: ' +\n((__t = (end)) == null ? '' : __t) +\n', Duration: ' +\n((__t = (duration)) == null ? '' : __t) +\n'
\\n \\n' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\nStart: ' +\n((__t = (start)) == null ? '' : __t) +\n', End: ' +\n((__t = (end)) == null ? '' : __t) +\n', Duration: ' +\n((__t = (duration)) == null ? '' : __t) +\n'
\\n \\n' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\n ';\n } ;\n__p += '\\n ';\n if (image) { ;\n__p += '\\n \\n ';\n } ;\n__p += '\\n\\n \\n ';\n if (options.show_node_editor_title_richtext) { ;\n__p += '\\n
\\n \\n \\n
\\n';\n } ;\n__p += ' ';\n if (options.show_node_editor_description) { ;\n__p += '\\n\\n \\n ';\n if (options.show_node_editor_description_richtext) { ;\n__p += '\\n
\\n ' +\n__e(renkan.translate(\"Size:\")) +\n'\\n -\\n ' +\n__e(node.size) +\n'\\n +\\n
\\n';\n } ;\n__p += ' ';\n if (options.show_node_editor_style) { ;\n__p += '\\n\\n \\n
\\n \\n';\n if (options.allow_image_upload) { ;\n__p += '\\n\\n \\n \\n
\\n';\n };\n\n } ;\n__p += ' ';\n if (options.show_node_editor_creator && node.has_creator) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n \\n ' +\n__e( shortenText(node.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += ' ';\n if (options.change_shapes) { ;\n__p += '\\n\\n \\n \\n
\\n';\n } ;\n__p += '\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/nodeeditor_readonly.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\nwith (obj) {\n__p += '\\n ' +\n__e(node.short_uri) +\n'\\n
\\n';\n } ;\n__p += ' ';\n if (options.show_node_tooltip_description) { ;\n__p += '\\n' +\n((__t = (node.description)) == null ? '' : __t) +\n'
\\n';\n } ;\n__p += ' ';\n if (node.image && options.show_node_tooltip_image) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n \\n ' +\n__e( shortenText(node.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n ' +\n__e(renkan.translate(\"Link to the node\")) +\n'\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/nodeeditor_video.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\nwith (obj) {\n__p += '' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\n\n \n ' + +((__t = (node.title)) == null ? '' : __t) + +'
\n
\n'; } ; -__p += '\n ' + __e(renkan.translate("Link to the node")) + @@ -964,9 +972,9 @@ }); this.read_only = this.options.read_only || !this.options.editor_mode; - + this.router = new Rkns.Router(); - + this.project = new Rkns.Models.Project(); this.dataloader = new Rkns.DataLoader.Loader(this.project, this.options); @@ -1410,8 +1418,7 @@ _path.segments[4].point.y = _path.segments[5].point.y = _bottom; _path.segments[1].point.y = _coords.y - _options.tooltip_arrow_width / 2; _path.segments[6].point.y = _coords.y + _options.tooltip_arrow_width / 2; - _path.closed = true; - _path.fillColor = new paper.GradientColor(new paper.Gradient([_options.tooltip_top_color, _options.tooltip_bottom_color]), [0, _top], [0, _bottom]); + _path.fillColor = new paper.Color(new paper.Gradient([_options.tooltip_top_color, _options.tooltip_bottom_color]), [0, _top], [0, _bottom]); _selector.css({ left: (_options.tooltip_padding + Math.min(_left, _right)), top: (_options.tooltip_padding + _top) @@ -1455,14 +1462,13 @@ index: function (parameters) { var result = {}; - if (parameters === null){ - return; - } - parameters.split("&").forEach(function(part) { - var item = part.split("="); - result[item[0]] = decodeURIComponent(item[1]); - }); - this.trigger('router', result); + if (parameters !== null){ + parameters.split("&").forEach(function(part) { + var item = part.split("="); + result[item[0]] = decodeURIComponent(item[1]); + }); + } + this.trigger('router', result); } }); @@ -1933,7 +1939,7 @@ show_top_bar: true, /* Show the top bar, (title, buttons, users) */ default_user_color: "#303030", - size_bug_fix: true, + size_bug_fix: false, /* Resize the canvas after load (fixes a bug on iPad and FF Mac) */ force_resize: false, allow_double_click: true, @@ -1954,6 +1960,10 @@ default_view: false, /* Allows to load default view (zoom+offset) at start on read_only mode, instead of autoScale. the default_view will be the last */ + /* URL parsing */ + update_url:true, + /* update the url each time the paper shift or on zoom in/out, with the serialized view (offset and scale) */ + /* TOP BAR BUTTONS */ show_search_field: true, @@ -2018,15 +2028,15 @@ /* Maximum displayed text length */ label_untitled_nodes: "(untitled)", /* Label to display on untitled nodes */ - hide_nodes: true, + hide_nodes: true, /* allow hide/show nodes */ change_shapes: true, /* Change shapes enabled */ change_types: true, /* Change type enabled */ - + /* NODE EDITOR TEMPLATE*/ - + node_editor_templates: { "default": "templates/nodeeditor_readonly.html", "video": "templates/nodeeditor_video.html" @@ -2059,6 +2069,7 @@ tooltip_bottom_color: "#d0d0d0", tooltip_border_color: "#808080", tooltip_border_width: 1, + tooltip_opacity: 0.8, richtext_editor_config: { toolbarGroups: [ @@ -2073,8 +2084,10 @@ /* NODE EDITOR OPTIONS */ show_node_editor_uri: true, + show_node_editor_title: true, show_node_editor_description: true, show_node_editor_description_richtext: true, + show_node_editor_title_richtext: true, show_node_editor_size: true, show_node_editor_style: true, show_node_editor_style_color: true, @@ -2235,7 +2248,6 @@ saveStatus : 0 }); _renkan.renderer.redrawActive = true; - _renkan.renderer.fixSize(); }); }; var _save = function() { @@ -2261,6 +2273,9 @@ var _thrSave = Rkns._.throttle(function() { setTimeout(_save, 100); }, 1000); + + //TODO: Rearrange to avoid the 2 firts PUT due to a change in the project model + // Take car of setting up the listener correctly to listen the save action on the view _proj.on("add:nodes add:edges add:users add:views", function(_model) { _model.on("change remove", function(_model) { _thrSave(); @@ -2299,13 +2314,14 @@ url: _opts.url, data: getdata, beforeSend: function(){ + _renkan.renderer.redrawActive = false; _proj.set({loadingStatus:true}); }, success: function(_data) { _renkan.dataloader.load(_data); _proj.set({loadingStatus:false}); _proj.set({saveStatus:0}); - _renkan.renderer.autoScale(); + _renkan.renderer.redrawActive = true; } }); }; @@ -2818,7 +2834,7 @@ define('renderer/baserepresentation',['jquery', 'underscore'], function ($, _) { - 'use strict'; + /* Rkns.Renderer._BaseRepresentation Class */ @@ -2903,7 +2919,7 @@ }); define('requtils',[], function ($, _) { - 'use strict'; + return { getUtils: function(){ return window.Rkns.Utils; @@ -2917,7 +2933,7 @@ define('renderer/basebutton',['jquery', 'underscore', 'requtils', 'renderer/baserepresentation'], function ($, _, requtils, BaseRepresentation) { - 'use strict'; + var Utils = requtils.getUtils(); @@ -2935,7 +2951,9 @@ this.sector.show(); }, hide: function() { - this.sector.hide(); + if (this.sector){ + this.sector.hide(); + } }, select: function() { this.sector.select(); @@ -2957,7 +2975,7 @@ define('renderer/shapebuilder',[], function () { - 'use strict'; + var cloud_path = "M0,0c-0.1218516546,-0.0336420601 -0.2451649928,0.0048580836 -0.3302944641,0.0884969975c-0.0444763883,-0.0550844815 -0.1047003238,-0.0975985034 -0.1769360893,-0.1175406746c-0.1859066673,-0.0513257002 -0.3774236254,0.0626045858 -0.4272374613,0.2541588105c-0.0036603877,0.0140753132 -0.0046241235,0.028229722 -0.0065872453,0.042307536c-0.1674179627,-0.0179317735 -0.3276106855,0.0900599386 -0.3725537463,0.2628868425c-0.0445325077,0.1712456429 0.0395025693,0.3463497959 0.1905420475,0.4183458793c-0.0082101538,0.0183442886 -0.0158652506,0.0372432828 -0.0211098452,0.0574080693c-0.0498130336,0.1915540431 0.0608692569,0.3884647499 0.2467762814,0.4397904033c0.0910577256,0.0251434257 0.1830791813,0.0103792696 0.2594677475,-0.0334472349c0.042100113,0.0928009202 0.1205930075,0.1674914182 0.2240666796,0.1960572479c0.1476344161,0.0407610407 0.297446165,-0.0238077445 0.3783262342,-0.1475652419c0.0327623278,0.0238981846 0.0691792333,0.0436665447 0.1102008706,0.0549940004c0.1859065794,0.0513256592 0.3770116432,-0.0627203154 0.4268255671,-0.2542745401c0.0250490557,-0.0963230532 0.0095494076,-0.1938010889 -0.0356681889,-0.2736906101c0.0447507424,-0.0439678867 0.0797796014,-0.0996624318 0.0969425462,-0.1656617192c0.0498137481,-0.1915564561 -0.0608688118,-0.3884669813 -0.2467755669,-0.4397928163c-0.0195699622,-0.0054005426 -0.0391731675,-0.0084429542 -0.0586916488,-0.0102888295c0.0115683912,-0.1682147574 -0.0933564223,-0.3269222408 -0.2572937178,-0.3721841203z"; /* ShapeBuilder Begin */ @@ -3072,7 +3090,7 @@ }); define('renderer/noderepr',['jquery', 'underscore', 'requtils', 'renderer/baserepresentation', 'renderer/shapebuilder'], function ($, _, requtils, BaseRepresentation, ShapeBuilder) { - 'use strict'; + var Utils = requtils.getUtils(); @@ -3169,7 +3187,7 @@ if (!this.is_dragging || !this.paper_coords) { this.paper_coords = this.renderer.toPaperCoords(_model_coords); } - this.circle_radius = _baseRadius * this.renderer.scale; + this.circle_radius = _baseRadius * this.renderer.view.scale; if (this.last_circle_radius !== this.circle_radius) { this.all_buttons.forEach(function(b) { b.setSectorSize(); @@ -3420,7 +3438,7 @@ this.redraw(); } } else { - this.renderer.paperShift(_delta); + this.renderer.view.paperShift(_delta); } }, openEditor: function() { @@ -3482,8 +3500,7 @@ //when the mouse don't hover the node anymore, we hide it if (this.hidden) { this.hide(); - } - else { + } else { this.hideNeighbors(); } this._super("unselect"); @@ -3528,6 +3545,7 @@ this.title.css('opacity', this.options.ghost_opacity); this.minimap_circle.opacity = this.options.ghost_opacity; } else { + this.minimap_circle.opacity = 1; this.hidden = false; this.redraw(); } @@ -3575,9 +3593,9 @@ if (repr && repr.hidden) { repr.show(ghost); if (!ghost){ - var indexNode = _this.renderer.hiddenNodes.indexOf(repr.model.id); + var indexNode = _this.renderer.view.hiddenNodes.indexOf(repr.model.id); if (indexNode !== -1){ - _this.renderer.hiddenNodes.splice(indexNode, 1); + _this.renderer.view.hiddenNodes.splice(indexNode, 1); } } } @@ -3624,9 +3642,9 @@ this.saveCoords(); } else { if (this.hidden) { - var index = this.renderer.hiddenNodes.indexOf(this.model.id); + var index = this.renderer.view.hiddenNodes.indexOf(this.model.id); if (index !== -1){ - this.renderer.hiddenNodes.splice(index, 1); + this.renderer.view.hiddenNodes.splice(index, 1); } this.show(false); this.select(); @@ -3663,7 +3681,7 @@ define('renderer/edge',['jquery', 'underscore', 'requtils', 'renderer/baserepresentation'], function ($, _, requtils, BaseRepresentation) { - 'use strict'; + var Utils = requtils.getUtils(); @@ -3961,7 +3979,7 @@ define('renderer/tempedge',['jquery', 'underscore', 'requtils', 'renderer/baserepresentation'], function ($, _, requtils, BaseRepresentation) { - 'use strict'; + var Utils = requtils.getUtils(); @@ -4061,7 +4079,7 @@ define('renderer/baseeditor',['jquery', 'underscore', 'requtils', 'renderer/baserepresentation'], function ($, _, requtils, BaseRepresentation) { - 'use strict'; + var Utils = requtils.getUtils(); @@ -4078,14 +4096,14 @@ this.editor_block.add.apply(this.editor_block, _pts); this.editor_block.strokeWidth = this.options.tooltip_border_width; this.editor_block.strokeColor = this.options.tooltip_border_color; - this.editor_block.opacity = 0.8; + this.editor_block.opacity = this.options.tooltip_opacity; this.editor_$ = $('\n \n \n
\n',options.show_edge_editor_uri&&(__p+="\n \n ',options.properties.length&&(__p+="\n\n \n \n
\n")),__p+="\n",options.show_edge_editor_style&&(__p+='\n\n '+__e(renkan.translate("Change edge direction"))+"\n
\n"),__p+="\n",options.show_edge_editor_nodes&&(__p+='\n\n '+__e(renkan.translate("From:"))+'\n \n '+__e(shortenText(edge.from_title,25))+'\n
\n\n '+__e(renkan.translate("To:"))+'\n \n '+__e(shortenText(edge.to_title,25))+"\n
\n"),__p+="\n",options.show_edge_editor_creator&&edge.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(edge.created_by_title,25))+"\n
\n"),__p+="\n";return __p},this.renkanJST["templates/edgeeditor_readonly.html"]=function(obj){obj||(obj={});var __t,__p="",__e=_.escape;Array.prototype.join;with(obj)__p+='"+(null==(__t=edge.description)?"":__t)+"
\n",options.show_edge_tooltip_nodes&&(__p+='\n\n '+__e(renkan.translate("From:"))+'\n \n '+__e(shortenText(edge.from_title,25))+'\n
\n\n '+__e(renkan.translate("To:"))+'\n \n '+__e(shortenText(edge.to_title,25))+"\n
\n"),__p+="\n",options.show_edge_tooltip_creator&&edge.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(edge.created_by_title,25))+"\n
\n"),__p+="\n";return __p},this.renkanJST["templates/ldtjson-bin/annotationtemplate.html"]=function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='"+(null==(__t=hdescription)?"":__t)+"
\nStart: "+(null==(__t=start)?"":__t)+", End: "+(null==(__t=end)?"":__t)+", Duration: "+(null==(__t=duration)?"":__t)+'
\n \n"+(null==(__t=hdescription)?"":__t)+"
\nStart: "+(null==(__t=start)?"":__t)+", End: "+(null==(__t=end)?"":__t)+", Duration: "+(null==(__t=duration)?"":__t)+'
\n \n
\n '+(null==(__t=hdescription)?"":__t)+"
\n "),__p+="\n ",image&&(__p+='\n \n '),__p+="\n\n \n \n
\n',options.show_node_editor_uri&&(__p+="\n \n'),__p+=" ",options.change_types&&(__p+="\n\n \n \n
\n"),__p+=" ",options.show_node_editor_description&&(__p+="\n\n \n ",__p+=options.show_node_editor_description_richtext?'\n
\n '+__e(renkan.translate("Size:"))+'\n -\n '+__e(node.size)+'\n +\n
\n'),__p+=" ",options.show_node_editor_style&&(__p+='\n\n \n
\n \n",options.allow_image_upload&&(__p+="\n\n \n \n
\n')),__p+=" ",options.show_node_editor_creator&&node.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(node.created_by_title,25))+"\n
\n"),__p+=" ",options.change_shapes&&(__p+="\n\n \n \n
\n"),__p+="\n";return __p},this.renkanJST["templates/nodeeditor_readonly.html"]=function(obj){obj||(obj={});var __t,__p="",__e=_.escape;Array.prototype.join;with(obj)__p+=''+(null==(__t=node.description)?"":__t)+"
\n"),__p+=" ",node.image&&options.show_node_tooltip_image&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(node.created_by_title,25))+"\n
\n"),__p+='\n '+__e(renkan.translate("Link to the node"))+"\n";return __p},this.renkanJST["templates/nodeeditor_video.html"]=function(obj){obj||(obj={});var __p="",__e=_.escape;Array.prototype.join;with(obj)__p+='
\n '+(null==(__t=hdescription)?"":__t)+"
\n\n \n \n
\n',options.show_edge_editor_uri&&(__p+="\n \n ',options.properties.length&&(__p+="\n\n \n \n
\n")),__p+="\n",options.show_edge_editor_style&&(__p+='\n\n '+__e(renkan.translate("Change edge direction"))+"\n
\n"),__p+="\n",options.show_edge_editor_nodes&&(__p+='\n\n '+__e(renkan.translate("From:"))+'\n \n '+__e(shortenText(edge.from_title,25))+'\n
\n\n '+__e(renkan.translate("To:"))+'\n \n '+__e(shortenText(edge.to_title,25))+"\n
\n"),__p+="\n",options.show_edge_editor_creator&&edge.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(edge.created_by_title,25))+"\n
\n"),__p+="\n";return __p},this.renkanJST["templates/edgeeditor_readonly.html"]=function(obj){obj||(obj={});{var __t,__p="",__e=_.escape;Array.prototype.join}with(obj)__p+='"+(null==(__t=edge.description)?"":__t)+"
\n",options.show_edge_tooltip_nodes&&(__p+='\n\n '+__e(renkan.translate("From:"))+'\n \n '+__e(shortenText(edge.from_title,25))+'\n
\n\n '+__e(renkan.translate("To:"))+'\n \n '+__e(shortenText(edge.to_title,25))+"\n
\n"),__p+="\n",options.show_edge_tooltip_creator&&edge.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(edge.created_by_title,25))+"\n
\n"),__p+="\n";return __p},this.renkanJST["templates/ldtjson-bin/annotationtemplate.html"]=function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='"+(null==(__t=hdescription)?"":__t)+"
\nStart: "+(null==(__t=start)?"":__t)+", End: "+(null==(__t=end)?"":__t)+", Duration: "+(null==(__t=duration)?"":__t)+'
\n \n"+(null==(__t=hdescription)?"":__t)+"
\nStart: "+(null==(__t=start)?"":__t)+", End: "+(null==(__t=end)?"":__t)+", Duration: "+(null==(__t=duration)?"":__t)+'
\n \n
\n '+(null==(__t=hdescription)?"":__t)+"
\n "),__p+="\n ",image&&(__p+='\n \n '),__p+="\n\n \n ",__p+=options.show_node_editor_title_richtext?'\n
\n \n \n
\n"),__p+=" ",options.show_node_editor_description&&(__p+="\n\n \n ",__p+=options.show_node_editor_description_richtext?'\n
\n '+__e(renkan.translate("Size:"))+'\n -\n '+__e(node.size)+'\n +\n
\n'),__p+=" ",options.show_node_editor_style&&(__p+='\n\n \n
\n \n",options.allow_image_upload&&(__p+="\n\n \n \n
\n')),__p+=" ",options.show_node_editor_creator&&node.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(node.created_by_title,25))+"\n
\n"),__p+=" ",options.change_shapes&&(__p+="\n\n \n \n
\n"),__p+="\n";return __p},this.renkanJST["templates/nodeeditor_readonly.html"]=function(obj){obj||(obj={});{var __t,__p="",__e=_.escape;Array.prototype.join}with(obj)__p+=''+(null==(__t=node.description)?"":__t)+"
\n"),__p+=" ",node.image&&options.show_node_tooltip_image&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(node.created_by_title,25))+"\n
\n"),__p+='\n '+__e(renkan.translate("Link to the node"))+"\n";return __p},this.renkanJST["templates/nodeeditor_video.html"]=function(obj){obj||(obj={});{var __p="",__e=_.escape;Array.prototype.join}with(obj)__p+='
\n '+(null==(__t=hdescription)?"":__t)+"
\n\\n \\n \\n
\\n';\n if (options.show_edge_editor_uri) { ;\n__p += '\\n \\n ';\n if (options.properties.length) { ;\n__p += '\\n\\n \\n \\n
\\n';\n } } ;\n__p += '\\n';\n if (options.show_edge_editor_style) { ;\n__p += '\\n\\n ' +\n__e( renkan.translate(\"Change edge direction\") ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n if (options.show_edge_editor_nodes) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"From:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.from_title, 25) ) +\n'\\n
\\n\\n ' +\n__e(renkan.translate(\"To:\")) +\n'\\n %-edge.to_color%>;\">\\n ' +\n__e( shortenText(edge.to_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n if (options.show_edge_editor_creator && edge.has_creator) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n ;\">\\n ' +\n__e( shortenText(edge.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/edgeeditor_readonly.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\nwith (obj) {\n__p += '\\n ' +\n__e( edge.short_uri ) +\n'\\n
\\n';\n } ;\n__p += '\\n' +\n((__t = (edge.description)) == null ? '' : __t) +\n'
\\n';\n if (options.show_edge_tooltip_nodes) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"From:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.from_title, 25) ) +\n'\\n
\\n\\n ' +\n__e(renkan.translate(\"To:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.to_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n if (options.show_edge_tooltip_creator && edge.has_creator) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/ldtjson-bin/annotationtemplate.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape;\nwith (obj) {\n__p += '' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\nStart: ' +\n((__t = (start)) == null ? '' : __t) +\n', End: ' +\n((__t = (end)) == null ? '' : __t) +\n', Duration: ' +\n((__t = (duration)) == null ? '' : __t) +\n'
\\n \\n' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\nStart: ' +\n((__t = (start)) == null ? '' : __t) +\n', End: ' +\n((__t = (end)) == null ? '' : __t) +\n', Duration: ' +\n((__t = (duration)) == null ? '' : __t) +\n'
\\n \\n' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\n ';\n } ;\n__p += '\\n ';\n if (image) { ;\n__p += '\\n \\n ';\n } ;\n__p += '\\n\\n \\n \\n
\\n';\n if (options.show_node_editor_uri) { ;\n__p += '\\n \\n';\n } ;\n__p += ' ';\n if (options.change_types) { ;\n__p += '\\n\\n \\n \\n
\\n';\n } ;\n__p += ' ';\n if (options.show_node_editor_description) { ;\n__p += '\\n\\n \\n ';\n if (options.show_node_editor_description_richtext) { ;\n__p += '\\n
\\n ' +\n__e(renkan.translate(\"Size:\")) +\n'\\n -\\n ' +\n__e(node.size) +\n'\\n +\\n
\\n';\n } ;\n__p += ' ';\n if (options.show_node_editor_style) { ;\n__p += '\\n\\n \\n
\\n \\n';\n if (options.allow_image_upload) { ;\n__p += '\\n\\n \\n \\n
\\n';\n };\n\n } ;\n__p += ' ';\n if (options.show_node_editor_creator && node.has_creator) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n \\n ' +\n__e( shortenText(node.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += ' ';\n if (options.change_shapes) { ;\n__p += '\\n\\n \\n \\n
\\n';\n } ;\n__p += '\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/nodeeditor_readonly.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\nwith (obj) {\n__p += '\\n ' +\n__e(node.short_uri) +\n'\\n
\\n';\n } ;\n__p += ' ';\n if (options.show_node_tooltip_description) { ;\n__p += '\\n' +\n((__t = (node.description)) == null ? '' : __t) +\n'
\\n';\n } ;\n__p += ' ';\n if (node.image && options.show_node_tooltip_image) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n \\n ' +\n__e( shortenText(node.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n ' +\n__e(renkan.translate(\"Link to the node\")) +\n'\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/nodeeditor_video.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\nwith (obj) {\n__p += '' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\n\\n \\n \\n
\\n';\n if (options.show_edge_editor_uri) { ;\n__p += '\\n \\n ';\n if (options.properties.length) { ;\n__p += '\\n\\n \\n \\n
\\n';\n } } ;\n__p += '\\n';\n if (options.show_edge_editor_style) { ;\n__p += '\\n\\n ' +\n__e( renkan.translate(\"Change edge direction\") ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n if (options.show_edge_editor_nodes) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"From:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.from_title, 25) ) +\n'\\n
\\n\\n ' +\n__e(renkan.translate(\"To:\")) +\n'\\n %-edge.to_color%>;\">\\n ' +\n__e( shortenText(edge.to_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n if (options.show_edge_editor_creator && edge.has_creator) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n ;\">\\n ' +\n__e( shortenText(edge.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/edgeeditor_readonly.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\nwith (obj) {\n__p += '\\n ' +\n__e( edge.short_uri ) +\n'\\n
\\n';\n } ;\n__p += '\\n' +\n((__t = (edge.description)) == null ? '' : __t) +\n'
\\n';\n if (options.show_edge_tooltip_nodes) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"From:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.from_title, 25) ) +\n'\\n
\\n\\n ' +\n__e(renkan.translate(\"To:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.to_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n if (options.show_edge_tooltip_creator && edge.has_creator) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/ldtjson-bin/annotationtemplate.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape;\nwith (obj) {\n__p += '' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\nStart: ' +\n((__t = (start)) == null ? '' : __t) +\n', End: ' +\n((__t = (end)) == null ? '' : __t) +\n', Duration: ' +\n((__t = (duration)) == null ? '' : __t) +\n'
\\n \\n' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\nStart: ' +\n((__t = (start)) == null ? '' : __t) +\n', End: ' +\n((__t = (end)) == null ? '' : __t) +\n', Duration: ' +\n((__t = (duration)) == null ? '' : __t) +\n'
\\n \\n' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\n ';\n } ;\n__p += '\\n ';\n if (image) { ;\n__p += '\\n \\n ';\n } ;\n__p += '\\n\\n \\n ';\n if (options.show_node_editor_title_richtext) { ;\n__p += '\\n
\\n \\n \\n
\\n';\n } ;\n__p += ' ';\n if (options.show_node_editor_description) { ;\n__p += '\\n\\n \\n ';\n if (options.show_node_editor_description_richtext) { ;\n__p += '\\n
\\n ' +\n__e(renkan.translate(\"Size:\")) +\n'\\n -\\n ' +\n__e(node.size) +\n'\\n +\\n
\\n';\n } ;\n__p += ' ';\n if (options.show_node_editor_style) { ;\n__p += '\\n\\n \\n
\\n \\n';\n if (options.allow_image_upload) { ;\n__p += '\\n\\n \\n \\n
\\n';\n };\n\n } ;\n__p += ' ';\n if (options.show_node_editor_creator && node.has_creator) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n \\n ' +\n__e( shortenText(node.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += ' ';\n if (options.change_shapes) { ;\n__p += '\\n\\n \\n \\n
\\n';\n } ;\n__p += '\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/nodeeditor_readonly.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\nwith (obj) {\n__p += '\\n ' +\n__e(node.short_uri) +\n'\\n
\\n';\n } ;\n__p += ' ';\n if (options.show_node_tooltip_description) { ;\n__p += '\\n' +\n((__t = (node.description)) == null ? '' : __t) +\n'
\\n';\n } ;\n__p += ' ';\n if (node.image && options.show_node_tooltip_image) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n \\n ' +\n__e( shortenText(node.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n ' +\n__e(renkan.translate(\"Link to the node\")) +\n'\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/nodeeditor_video.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\nwith (obj) {\n__p += '' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\n