mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-30 12:11:35 -05:00
style: use one spelling across the codebase
The repo mixed variants such as center/centre and color/colour, so a name could be spelled either way and searches missed half the hits. Standardize on the US spelling, matching .NET's own APIs (Color, Center). Wire values owned by other systems keep their spelling: the material ledger's "Cancelled" hold status and GitHub's "cancelled" job status. No behavior change beyond the spelling of a few status messages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2a128c5a11
commit
4d55e11318
230 files changed
+864
-864
No files matched your search
@@ -31,8 +31,8 @@ internal static class AreaPacker
|
||||
|
||||
/// <summary>
|
||||
/// Returns the packed parts. Items and the area grow by <paramref name="spacing"/> on their
|
||||
/// right/top sides, so neighbouring parts are one spacing apart and the last may touch the
|
||||
/// area's edge. A cancelled token stops between candidates and keeps the best layout so far.
|
||||
/// right/top sides, so neighboring parts are one spacing apart and the last may touch the
|
||||
/// area's edge. A canceled token stops between candidates and keeps the best layout so far.
|
||||
/// </summary>
|
||||
/// <param name="workArea">Plate work area, when known. Only matching right/top boundaries
|
||||
/// receive the existing work-area overhang allowance; internal areas remain strict.</param>
|
||||
|
||||
@@ -73,7 +73,7 @@ internal sealed class MaxRectsSheet
|
||||
foreach (var f in free)
|
||||
{
|
||||
// Clamp only at the bin's allowed plate boundaries. Internal free edges still
|
||||
// use Eps, and real sizes are retained there to preserve neighbour spacing.
|
||||
// use Eps, and real sizes are retained there to preserve neighbor spacing.
|
||||
var packW = w > f.W && w <= f.W + rightSlack && System.Math.Abs(f.Right - Width) <= Eps
|
||||
? f.W : w;
|
||||
var packH = h > f.H && h <= f.H + topSlack && System.Math.Abs(f.Top - Height) <= Eps
|
||||
|
||||
Reference in new issue
Block a user