equal
deleted
inserted
replaced
400 el.text(_title); |
400 el.text(_title); |
401 } |
401 } |
402 }); |
402 }); |
403 |
403 |
404 //register router events |
404 //register router events |
405 this.renkan.router.on("idnode", function(_id){ |
405 this.renkan.router.on("router", function(_params){ |
406 _this.unhighlightAll(); |
406 _this.parameters(_params); |
407 _this.highlightModel(_this.renkan.project.get("nodes").get(_id)); |
|
408 |
|
409 }); |
407 }); |
410 |
408 |
411 if (_renkan.options.size_bug_fix) { |
409 if (_renkan.options.size_bug_fix) { |
412 var _delay = ( |
410 var _delay = ( |
413 typeof _renkan.options.size_bug_fix === "number" ? |
411 typeof _renkan.options.size_bug_fix === "number" ? |
973 position: { |
971 position: { |
974 x: _coords.x, |
972 x: _coords.x, |
975 y: _coords.y |
973 y: _coords.y |
976 } |
974 } |
977 }; |
975 }; |
978 _node = this.renkan.project.addNode(_data); |
976 var _node = this.renkan.project.addNode(_data); |
979 this.getRepresentationByModel(_node).openEditor(); |
977 this.getRepresentationByModel(_node).openEditor(); |
980 } |
978 } |
981 } |
979 } |
982 } |
980 } |
983 if (this.click_mode) { |
981 if (this.click_mode) { |
1316 var projectJSONStr = JSON.stringify(projectJSON, null, 2); |
1314 var projectJSONStr = JSON.stringify(projectJSON, null, 2); |
1317 var blob = new Blob([projectJSONStr], {type: "application/json;charset=utf-8"}); |
1315 var blob = new Blob([projectJSONStr], {type: "application/json;charset=utf-8"}); |
1318 filesaver(blob,fileNameToSaveAs); |
1316 filesaver(blob,fileNameToSaveAs); |
1319 |
1317 |
1320 }, |
1318 }, |
|
1319 parameters: function(_params){ |
|
1320 if (typeof _params.idnode !== 'undefined'){ |
|
1321 this.unhighlightAll(); |
|
1322 this.highlightModel(this.renkan.project.get("nodes").get(_params.idnode)); |
|
1323 } |
|
1324 }, |
1321 foldBins: function() { |
1325 foldBins: function() { |
1322 var foldBinsButton = this.$.find(".Rk-Fold-Bins"), |
1326 var foldBinsButton = this.$.find(".Rk-Fold-Bins"), |
1323 bins = this.renkan.$.find(".Rk-Bins"); |
1327 bins = this.renkan.$.find(".Rk-Bins"); |
1324 var _this = this, |
1328 var _this = this, |
1325 sizeBef = _this.canvas_$.width(), |
1329 sizeBef = _this.canvas_$.width(), |