Search Docs
Loading...
Skip to content

Type Alias: MovementConstraintRule

type MovementConstraintRule =
| {
overshoot: number;
}
| {
overshoot: number;
block: number;
}
| {
overshoot: number;
blockType: string;
};

A movement constraint rule. The scope is determined by which key is present: neither (scene-wide default), block (per-block, includes pages), or blockType (per-block-type).

overshoot is a non-negative fraction of the moved block’s own size.