export class InOut { type : 'in' | 'out' = 'in' ; uuid : string = '' ; top : number = 0 ; side : number = 0 ; index : number = 0 ; icon ? : string ; name ? : string ; constructor ( type , uuid , top , side , index , icon ? , name ? ) { this . type = type ; this . uuid = uuid ; this . icon = icon ; this . top = top ; this . side = side ; this . name = name ; this . index = index ; } } export class Path { uuid : string = '' ; startX : number = 0 ; startY : number = 0 ; endX : number = 0 ; endY : number = 0 ; index : number = 0 ; constructor ( uuid , startX , startY , endX , endY , index ) { this . uuid = uuid ; this . startX = startX ; this . startY = startY ; this . endX = endX ; this . endY = endY ; this . index = index ; } getPath ( ) { const x = ( this . endX + this . startX ) / 2 ; const y = ( this . endY + this . startY ) / 2 ; return 'M ' + this . startX + ',' + this . startY + ' C ' + x + ',' + this . startY + ' ' + y + ', ' + this . endY + ' ' + this . endX + ',' + this . endY ; } }