Skip to main content

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​

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​

Source: packages/core/src/layout/layout.ts:207