MCPcopy Create free account
hub / github.com/cycfi/elements / allocate

Function allocate

lib/src/element/tile.cpp:51–92  ·  view source on GitHub ↗

Distribute space proportionally to each element stretchiness. Each element will get at least stretch / sum_stretch * free_space, but may get more if other elements reach their max size.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

compute_layoutFunction · 0.85

Calls 5

densityFunction · 0.85
is_almost_zeroFunction · 0.85
rangeFunction · 0.85
beginMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected