| changeset 293 | fba23fde14ba |
| parent 284 | fa8035885814 |
| child 433 | e457ec945e50 |
| 292:f67047a16084 | 293:fba23fde14ba |
|---|---|
1 "use strict"; |
|
2 |
1 |
3 define(['jquery', 'underscore', 'requtils', 'renderer/baserepresentation'], function ($, _, requtils, BaseRepresentation) { |
2 define(['jquery', 'underscore', 'requtils', 'renderer/baserepresentation'], function ($, _, requtils, BaseRepresentation) { |
4 |
3 'use strict'; |
4 |
|
5 var Utils = requtils.getUtils(); |
5 var Utils = requtils.getUtils(); |
6 |
6 |
7 /* Rkns.Renderer._BaseButton Class */ |
7 /* Rkns.Renderer._BaseButton Class */ |
8 |
8 |
9 /* BaseButton is extended by contextual buttons that appear when hovering on nodes and edges */ |
9 /* BaseButton is extended by contextual buttons that appear when hovering on nodes and edges */ |
10 |
10 |
11 var _BaseButton = Utils.inherit(BaseRepresentation); |
11 var _BaseButton = Utils.inherit(BaseRepresentation); |
12 |
12 |
13 _(_BaseButton.prototype).extend({ |
13 _(_BaseButton.prototype).extend({ |
14 moveTo: function(_pos) { |
14 moveTo: function(_pos) { |
15 this.sector.moveTo(_pos); |
15 this.sector.moveTo(_pos); |
35 }); |
35 }); |
36 |
36 |
37 return _BaseButton; |
37 return _BaseButton; |
38 |
38 |
39 }); |
39 }); |
40 |