@@ -13,21 +13,6 @@ export class Complex extends Interactor {
1313 this . upperGroup = document . createElementNS ( svgns , "g" ) ;
1414 this . initLabel ( ) ;
1515 this . padding = 28 ;
16-
17- // const self = this;
18- // // its bad if you end up with these getting called
19- // Object.defineProperty(this, "width", {
20- // get: function height() {
21- // return self.naryLink.path.getBBox().width;
22- // //return 160;
23- // }
24- // });
25- // Object.defineProperty(this, "height", {
26- // get: function height() {
27- // return self.naryLink.path.getBBox().height;
28- // //return 160;
29- // }
30- // });
3116 }
3217
3318 initLink ( naryLink ) {
@@ -36,15 +21,14 @@ export class Complex extends Interactor {
3621 }
3722
3823 setLinked ( ) {
39-
4024 this . naryLink . path2 . classList . add ( "linked-complex" ) ;
4125 }
4226
4327 getPosition ( originPoint ) {
44- let mapped = this . naryLink . mapped ; //getMappedCoordinates();
28+ let mapped = this . naryLink . mapped ;
4529 if ( ! mapped ) {
4630 this . naryLink . setLinkCoordinates ( ) ;
47- mapped = this . naryLink . mapped ; //this.naryLink.orbitNodeCount(this.naryLink.getMappedCoordinates());
31+ mapped = this . naryLink . mapped ;
4832 }
4933 const mc = mapped . length ;
5034 let xSum = 0 ,
@@ -55,8 +39,6 @@ export class Complex extends Interactor {
5539 }
5640 let center = [ xSum / mc , ySum / mc ] ;
5741 if ( originPoint ) {
58- // if (participant.type === "complex"){
59- // startPoint = participant.getPosition();
6042 let naryPath = this . naryLink . hull ;
6143 let iPath = [ ] ;
6244 for ( let p of naryPath ) {
0 commit comments