Description
Subtract firstRightEdge from nextLeftEdge for signed gap and mark overlaps when the latter is smaller.
Layout calculations relate dimensions, offsets, and normalized positions in a drawing or display. A numeric coordinate depends on its origin and scale, while a size allowance must use the same length unit as the object.
Subtract firstRightEdge from nextLeftEdge for signed gap and mark overlaps when the latter is smaller.
When to use this tool
Use Gallery Frame Gap when you need a stated layout component from supplied dimensions or a normalized position.
How to use the tool and how it works
- Enter firstRightEdge, nextLeftEdge. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read gap, overlaps. Inspect overlaps before interpreting the associated values.
Subtract firstRightEdge from nextLeftEdge for signed gap and mark overlaps when the latter is smaller.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| firstRightEdge | First Right Edge | Required. Finite number. |
| nextLeftEdge | Next Left Edge | Required. Finite number. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| gap | Signed difference under the formula above. | Required. Finite number. |
| overlaps | Overlaps | Required. Boolean. |
{
"input": {
"firstRightEdge": 120,
"nextLeftEdge": 135
},
"output": {
"gap": 15,
"overlaps": false
}
} Limitations and assumptions
- Use one coordinate and length unit; only the supplied horizontal edges are compared, without frame shape or hanging clearance standards.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Check the assembled layout at its final scale and include installation or production allowances separately.
References
Similar or alternative tools
- Canvas Crop Margin Layout
Subtract left/right and top/bottom margins for croppedWidth and croppedHeight.
- Artwork Framed Unframed Dimension Delta
Return added width/height and halve each addition for average opposing borders.