GraphReFlyTS

API Reference

computeTotalHeight()

Compute the bottom edge of a positioned block flow.

Import

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

Signature

function computeTotalHeight(blocks: readonly PositionedBlock[]): number

Parameters

ParameterTypeDescription
blocksreadonly PositionedBlock[]blocks value used by the helper.

Returns

A number value.

Example

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

Source

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