@willcgage/module-schematic 0.49.4 → 0.49.5

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.js CHANGED
@@ -462,13 +462,15 @@ function moduleFootprint(input) {
462
462
  const authored = benchworkOutline(input);
463
463
  const offA = input.endplateTrackOffsets?.["A"] ?? 0;
464
464
  const offB = input.endplateTrackOffsets?.["B"] ?? 0;
465
- const sectionOutlines = sectionFootprints(input, {
465
+ const secs = input.sections ?? [];
466
+ const sectionsOwnShape = secs.length > 1 || secs.some((s) => (s.outline?.length ?? 0) >= 3);
467
+ const sectionOutlines = sectionsOwnShape ? sectionFootprints(input, {
466
468
  centerline,
467
469
  widthA,
468
470
  widthB,
469
471
  offsetA: offA,
470
472
  offsetB: offB
471
- });
473
+ }) : [];
472
474
  return {
473
475
  centerline,
474
476
  band: benchworkBand(centerline, widthA, widthB, offA, offB),