Skip to content
PACKAGES

computeTotalHeight()

Compute the bottom edge of a positioned block flow.

import { computeTotalHeight } from "@graphrefly/ts/solutions/reactive-layout";
function computeTotalHeight(blocks: readonly PositionedBlock[]): number
ParameterTypeDescription
blocksreadonly PositionedBlock[]blocks value used by the helper.

A number value.

import { computeTotalHeight } from "@graphrefly/ts/solutions/reactive-layout";

packages/ts/src/solutions/reactive-layout/block.ts