add a hidebutton to the nodes buttons
remove the "hidden" attribute from the node model. It is the view which controls the hidden nodes with a array of Hidden Nodes
define(['jquery', 'underscore', 'requtils', 'renderer/nodebutton'], function ($, _, requtils, NodeButton) {
'use strict';
var Utils = requtils.getUtils();
/* NodeEditButton Begin */
//var NodeEditButton = Renderer.NodeEditButton = Utils.inherit(Renderer._NodeButton);
var NodeEditButton = Utils.inherit(NodeButton);
_(NodeEditButton.prototype).extend({
_init: function() {
this.type = "Node-edit-button";
this.lastSectorInner = 0;
this.startAngle = -135;
this.endAngle = -45;
this.imageName = "edit";
this.text = "Edit";
},
mouseup: function() {
if (!this.renderer.is_dragging) {
this.source_representation.openEditor();
}
}
}).value();
/* NodeEditButton End */
return NodeEditButton;
});