#NEWLINE# def _find_highlighted_bounds( self , highlights ) : #NEWLINE# #INDENT# hl_bounds = [ self . bounds [ 2 ] , self . bounds [ 3 ] , self . bounds [ 0 ] , self . bounds [ 1 ] ] #NEWLINE# for module in self . modules : #NEWLINE# #INDENT# if ( module . ref not in highlights ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# a = ( max ( module . bounds ) * 2 ) #NEWLINE# hl_bounds [ 0 ] = min ( hl_bounds [ 0 ] , ( module . at [ 0 ] - a ) ) #NEWLINE# hl_bounds [ 1 ] = min ( hl_bounds [ 1 ] , ( module . at [ 1 ] - a ) ) #NEWLINE# hl_bounds [ 2 ] = max ( hl_bounds [ 2 ] , ( module . at [ 0 ] + a ) ) #NEWLINE# hl_bounds [ 3 ] = max ( highlights [ 3 ] , ( module . at [ 1 ] + a ) ) #NEWLINE# #UNINDENT# return hl_bounds