# inlineDistanceToFarEdge

How far a box's far edge is from the inline-start side of its container:
from the left when reading left to right, from the right when reading right
to left. Layout offsets are always from the left, so a right-to-left page
needs the container's width to turn them round.

This is a function exported by `@mapcairn/core`, checked against version 0.2.0.

## Signature

```ts
import { inlineDistanceToFarEdge } from "@mapcairn/core";
 
function inlineDistanceToFarEdge(input: {
    offsetLeft: number;
    offsetWidth: number;
    containerWidth: number;
    direction: ReadingDirection;
}): number;
```

## Parameters

- `input` (`{
    offsetLeft: number;
    offsetWidth: number;
    containerWidth: number;
    direction: ReadingDirection;
}`)

## Returns

`number`

## See also

- [`ReadingDirection`](https://docs.mapcairn.com/api/core/ReadingDirection.md)

Source: [packages/core/src/layout/layout.ts:191](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/layout/layout.ts#L191)
