# clearsInlineEnd

Whether `box` starts at least `gap` pixels past where `anchor` ends along the
reading direction: to the right of it when reading left to right, to the
left when reading right to left.

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

## Signature

```ts
import { clearsInlineEnd } from "@mapcairn/core";
 
function clearsInlineEnd(anchor: {
    left: number;
    right: number;
}, box: {
    left: number;
    right: number;
}, gap: number, direction: ReadingDirection): boolean;
```

## Parameters

- `anchor` (`{
    left: number;
    right: number;
}`)
- `box` (`{
    left: number;
    right: number;
}`)
- `gap` (`number`)
- `direction` (`ReadingDirection`)

## Returns

`boolean`

## See also

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

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