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