| author | rougeronj |
| Fri, 22 May 2015 17:48:18 +0200 | |
| changeset 453 | 04b7d46e9d67 |
| parent 434 | 0d5998b32a7c |
| child 487 | 48be7ebb3187 |
| permissions | -rw-r--r-- |
| 284 | 1 |
|
2 |
define(['jquery', 'underscore', 'requtils', 'renderer/nodebutton'], function ($, _, requtils, NodeButton) { |
|
|
293
fba23fde14ba
Correct jshint errors and force it on build
ymh <ymh.work@gmail.com>
parents:
284
diff
changeset
|
3 |
'use strict'; |
|
fba23fde14ba
Correct jshint errors and force it on build
ymh <ymh.work@gmail.com>
parents:
284
diff
changeset
|
4 |
|
| 284 | 5 |
var Utils = requtils.getUtils(); |
6 |
||
7 |
/* NodeEditButton Begin */ |
|
8 |
||
9 |
//var NodeEditButton = Renderer.NodeEditButton = Utils.inherit(Renderer._NodeButton); |
|
10 |
var NodeEditButton = Utils.inherit(NodeButton); |
|
11 |
||
12 |
_(NodeEditButton.prototype).extend({ |
|
13 |
_init: function() { |
|
14 |
this.type = "Node-edit-button"; |
|
15 |
this.lastSectorInner = 0; |
|
| 453 | 16 |
this.startAngle = -125; |
17 |
this.endAngle = -55; |
|
| 284 | 18 |
this.imageName = "edit"; |
19 |
this.text = "Edit"; |
|
20 |
}, |
|
21 |
mouseup: function() { |
|
22 |
if (!this.renderer.is_dragging) { |
|
23 |
this.source_representation.openEditor(); |
|
24 |
} |
|
25 |
} |
|
| 433 | 26 |
}).value(); |
| 284 | 27 |
|
28 |
/* NodeEditButton End */ |
|
|
293
fba23fde14ba
Correct jshint errors and force it on build
ymh <ymh.work@gmail.com>
parents:
284
diff
changeset
|
29 |
|
| 284 | 30 |
return NodeEditButton; |
31 |
||
|
293
fba23fde14ba
Correct jshint errors and force it on build
ymh <ymh.work@gmail.com>
parents:
284
diff
changeset
|
32 |
}); |