@@ -31,9 +31,53 @@ class Link {
3131 this . te = types . LINK ;
3232 }
3333
34+ this . arrow1Style ;
35+ this . arrow2Style ;
36+
37+ this . arrow1 = null ;
38+ this . arrow2 = null ;
39+
40+ if ( this . direction == directions . FORWARD ) {
41+ this . arrow1Style = new ArrowStyle ( 0 , - 3 , circleArrowPath , new FillStyle ( '#000000' , 1.0 ) ) ;
42+ this . arrow2Style = new ArrowStyle ( 0 , - 1 , downArrowPath , new FillStyle ( '#000000' , 1.0 ) ) ;
43+ ;
44+ } else if ( this . direction == directions . BACKWARD ) {
45+ this . arrow1Style = new ArrowStyle ( 0 , - 1 , downArrowPath , new FillStyle ( '#000000' , 1.0 ) ) ;
46+ this . arrow2Style = new ArrowStyle ( 0 , - 3 , circleArrowPath , new FillStyle ( '#000000' , 1.0 ) ) ;
47+ } else if ( this . direction == directions . BOTH ) {
48+ this . arrow1Style = new ArrowStyle ( 0 , - 1 , downArrowPath , new FillStyle ( '#000000' , 1.0 ) ) ;
49+ this . arrow2Style = new ArrowStyle ( 0 , - 1 , downArrowPath , new FillStyle ( '#000000' , 1.0 ) ) ;
50+ } else { //NONE
51+ this . arrow1Style = new ArrowStyle ( 0 , - 3 , circleArrowPath , new FillStyle ( '#000000' , 1.0 ) ) ;
52+ this . arrow2Style = new ArrowStyle ( 0 , - 3 , circleArrowPath , new FillStyle ( '#000000' , 1.0 ) ) ;
53+ }
54+
55+
3456 this . x1percent = 0.0 ;
3557 this . x2percent = 0.0 ;
3658
59+
60+ this . needsUpdate = true ;
61+
62+ this . numLineSegments = 0 ;
63+ this . polylines = [ ] ;
64+ this . polylineSVGs = [ ] ; //null;
65+ this . labels = [ ] ;
66+ this . labelRectSVGs = [ ] ;
67+ this . labelTextSVGs = [ ] ;
68+
69+ //this.polyline = null;
70+ //this.polylineSVG = null;
71+ this . label = null ;
72+ this . labelRectSVG = null ;
73+ this . labelTextSVG = null ;
74+ //this.arrow1SVG = null;
75+ //this.arrow2SVG = null;
76+
77+
78+
79+
80+
3781 //this.rootMinWord
3882 //this.rootMaxWord
3983
@@ -121,6 +165,8 @@ class Word {
121165
122166
123167 //used for calculating positions during drag
168+ //this.needsUpdate = true;
169+
124170 this . tempX = 0.0 ;
125171 this . tempW = 0.0 ;
126172 this . tempY = 0.0 ;
0 commit comments