isPositionInside
Checks if a position is fully contained within another position.
Only the offsets are compared. Containment is full and both bounds are inclusive: a position equal to the outer one is inside it, and one that only partially overlaps it is not.
Import:
import { isPositionInside } from '@mnaoumov/obsidian-lib/position';Signature:
function isPositionInside(inner: Pos, outer: Pos): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
inner |
Pos | The position to check. |
outer |
Pos | The position to check against. |
Returns: boolean — Whether the inner position is fully contained within the outer one.
Links to this page: