diff --git a/macrovision.js b/macrovision.js index d8e5447b..704b6972 100644 --- a/macrovision.js +++ b/macrovision.js @@ -1343,7 +1343,12 @@ function fitWorld() { Object.entries(entities).forEach(([key, entity]) => { const view = entity.view; - max = fitMode.binop(max, entity.views[view].height.toNumber("meter")); + let extra = entity.views[view].image.extra; + extra = extra === undefined ? 1 : extra; + let bottom = entity.views[view].image.bottom; + bottom = bottom === undefined ? 0 : bottom; + + max = fitMode.binop(max, math.multiply(extra * (1 - bottom), entity.views[view].height.toNumber("meter"))); count += 1; });