@@ -43,7 +43,7 @@ export const CutSites = (props: {
4343 cutSites ,
4444 firstBase ,
4545 lastBase ,
46- findXAndWidth
46+ findXAndWidth ,
4747 ) ;
4848 if ( ! enhancedCutSites . length ) return null ;
4949
@@ -159,7 +159,7 @@ const enhanceCutSites = (
159159 cutSites : CutSite [ ] ,
160160 firstBase : number ,
161161 lastBase : number ,
162- findXAndWidth : FindXAndWidthType
162+ findXAndWidth : FindXAndWidthType ,
163163) : CutSiteEnhanced [ ] =>
164164 cutSites . map ( ( c : CutSite ) => {
165165 // Prevent double rendering of cut-site lines across SeqBlocks. Without the shenanigans below,
@@ -225,7 +225,7 @@ const enhanceCutSites = (
225225 lastBase ,
226226 showTopLine ,
227227 showBottomLine ,
228- findXAndWidth
228+ findXAndWidth ,
229229 ) ,
230230 highlight : calcHighlight ( enhancedCutSite , firstBase , lastBase , findXAndWidth ) ,
231231 top : {
@@ -242,18 +242,18 @@ const calcHighlight = (
242242 c : CutSite ,
243243 firstBase : number ,
244244 lastBase : number ,
245- findXAndWidth : FindXAndWidthType
245+ findXAndWidth : FindXAndWidthType ,
246246) : { width : number ; x : number } => {
247247 if ( isWithinSeqBlock ( c . start , c . end , firstBase , lastBase ) ) {
248248 if ( c . start > c . end ) {
249249 return findXAndWidth (
250250 c . end < firstBase ? lastBase : Math . min ( lastBase , c . end ) ,
251- c . start > lastBase ? firstBase : Math . max ( firstBase , c . start )
251+ c . start > lastBase ? firstBase : Math . max ( firstBase , c . start ) ,
252252 ) ;
253253 }
254254 return findXAndWidth (
255255 c . start < firstBase ? lastBase : Math . min ( lastBase , c . start ) ,
256- c . end > lastBase ? firstBase : Math . max ( firstBase , c . end )
256+ c . end > lastBase ? firstBase : Math . max ( firstBase , c . end ) ,
257257 ) ;
258258 }
259259 return findXAndWidth ( c . start , c . end ) ;
@@ -281,7 +281,7 @@ const calcConnector = (
281281 lastBase : number ,
282282 showTopLine : boolean ,
283283 showBottomLine : boolean ,
284- findXAndWidth : FindXAndWidthType
284+ findXAndWidth : FindXAndWidthType ,
285285) : { render : boolean ; width : number ; x : number } => {
286286 if ( showTopLine && showBottomLine ) {
287287 return {
0 commit comments