@willcgage/module-schematic 0.28.0 → 0.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -204,8 +204,8 @@ function checkEndplateWidth(input) {
204
204
  requiredInches: FREEMO_ENDPLATE_WIDTH_MIN_INCHES
205
205
  });
206
206
  }
207
- const off = input.trackOffsetInches ?? 0;
208
- const centres = input.config === "double" ? [off - FREEMO_TRACK_SPACING_INCHES / 2, off + FREEMO_TRACK_SPACING_INCHES / 2] : [off];
207
+ const off = endplateTrackOffsetInches(input.trackOffsetInches, input.config ?? void 0);
208
+ const centres = input.config === "double" ? [off, off + FREEMO_TRACK_SPACING_INCHES] : [off];
209
209
  const worst = Math.max(...centres.map((c) => Math.abs(c)));
210
210
  const clearance = width / 2 - worst;
211
211
  if (clearance < FREEMO_ENDPLATE_TRACK_FASCIA_CLEARANCE_INCHES) {