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
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