...

Source file src/oss.terrastruct.com/d2/d2layouts/d2grid/constants.go

Documentation: oss.terrastruct.com/d2/d2layouts/d2grid

     1  package d2grid
     2  
     3  const (
     4  	// don't consider layouts with rows longer than targetSize*1.2 or shorter than targetSize/1.2
     5  	STARTING_THRESHOLD = 1.2
     6  	// next try layouts with a 25% larger threshold
     7  	THRESHOLD_STEP_SIZE    = 0.25
     8  	MIN_THRESHOLD_ATTEMPTS = 1
     9  	MAX_THRESHOLD_ATTEMPTS = 3
    10  
    11  	ATTEMPT_LIMIT = 100_000
    12  	SKIP_LIMIT    = 10_000_000
    13  )
    14  

View as plain text