| author | rougeronj |
| Wed, 20 May 2015 10:53:40 +0200 | |
| changeset 451 | 278f8da09c04 |
| parent 434 | 0d5998b32a7c |
| permissions | -rw-r--r-- |
| 284 | 1 |
|
2 |
define(['jquery', 'underscore', 'requtils', 'renderer/baserepresentation'], function ($, _, requtils, BaseRepresentation) { |
|
|
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 |
/* MiniFrame Begin */ |
|
8 |
||
9 |
//var MiniFrame = Renderer.MiniFrame = Utils.inherit(Renderer._BaseRepresentation); |
|
10 |
var MiniFrame = Utils.inherit(BaseRepresentation); |
|
11 |
||
12 |
_(MiniFrame.prototype).extend({ |
|
13 |
paperShift: function(_delta) { |
|
14 |
this.renderer.offset = this.renderer.offset.subtract(_delta.divide(this.renderer.minimap.scale).multiply(this.renderer.scale)); |
|
15 |
this.renderer.redraw(); |
|
16 |
}, |
|
17 |
mouseup: function(_delta) { |
|
18 |
this.renderer.click_target = null; |
|
19 |
this.renderer.is_dragging = false; |
|
20 |
} |
|
| 433 | 21 |
}).value(); |
|
434
0d5998b32a7c
clean, and finalize lodash migration
ymh <ymh.work@gmail.com>
parents:
433
diff
changeset
|
22 |
|
| 284 | 23 |
|
24 |
/* MiniFrame End */ |
|
|
293
fba23fde14ba
Correct jshint errors and force it on build
ymh <ymh.work@gmail.com>
parents:
284
diff
changeset
|
25 |
|
| 284 | 26 |
return MiniFrame; |
27 |
||
|
293
fba23fde14ba
Correct jshint errors and force it on build
ymh <ymh.work@gmail.com>
parents:
284
diff
changeset
|
28 |
}); |