File tree Expand file tree Collapse file tree 4 files changed +17
-4
lines changed Expand file tree Collapse file tree 4 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -395,7 +395,7 @@ const FuncTree = class {
395
395
const selectedLabel = d3 . select ( '#label-' + nodeId )
396
396
if ( selectedLabel . empty ( ) ) {
397
397
const selectedNode = d3 . select ( '#' + nodeId )
398
- d3 . select ( "#labels" )
398
+ const text = d3 . select ( "#labels" )
399
399
. append ( 'g' )
400
400
. attr ( 'id' , 'label-' + nodeId )
401
401
. attr ( 'transform' , selectedNode . attr ( "transform" ) )
@@ -405,6 +405,18 @@ const FuncTree = class {
405
405
. attr ( 'font-size' , 4 )
406
406
. attr ( 'fill' , '#555' )
407
407
. text ( selectedNode . attr ( "data-original-title" ) . replace ( / \[ .* \] / , '' ) )
408
+ // add drag behavior
409
+ text . call ( d3 . behavior . drag ( )
410
+ . on ( 'dragstart' , ( ) => {
411
+ d3 . event . sourceEvent . stopPropagation ( ) ;
412
+ } )
413
+ . on ( 'drag' , function ( d ) {
414
+ d3 . select ( this )
415
+ . attr ( 'y' , 0 )
416
+ . attr ( 'transform' , 'translate(' + d3 . event . x + ',' + d3 . event . y + ')' ) ;
417
+ } )
418
+ ) ;
419
+
408
420
} else {
409
421
selectedLabel . remove ( )
410
422
}
Original file line number Diff line number Diff line change @@ -25,10 +25,11 @@ <h3>Publications</h3>
25
25
< hr />
26
26
< h3 > Change log</ h3 >
27
27
< br />
28
- < h5 > Version 0.7.6.2 (dev )</ h5 >
28
+ < h5 > Version 0.7.6.2 (2019-02-15 )</ h5 >
29
29
< ul >
30
30
< li > Addition of a toggle action to show/hide node labels
31
31
< li > Addition of a description to the database selection
32
+ < li > Upgrade of Flask
32
33
</ ul >
33
34
< h5 > Version 0.7.6.1 (2019-01-18)</ h5 >
34
35
< ul >
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ <h2>Mapping</h2>
64
64
< div class ="form-group{% if form.distribute.errors %} has-error{% endif %} ">
65
65
< div class ="col-sm-offset-2 col-sm-10 ">
66
66
< div class ="checkbox ">
67
- < label > {{ form.distribute }} < b > [dev- feature] </ b > {{ form.distribute.label.text }}
67
+ < label > {{ form.distribute }} < span class =" label label-info " > beta feature</ span > {{ form.distribute.label.text }}
68
68
</ label >
69
69
</ div >
70
70
{% if form.distribute.errors %}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ CairoSVG==2.0.3
4
4
cffi == 1.10.0
5
5
click == 6.7
6
6
cssselect == 1.0.1
7
- Flask == 0.12.2
7
+ Flask == 0.12.4
8
8
Flask-Caching == 1.3.3
9
9
Flask-DebugToolbar == 0.10.1
10
10
Flask-HTTPAuth == 3.2.3
You can’t perform that action at this time.
0 commit comments