@willcgage/module-schematic 0.45.0 → 0.47.0

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
@@ -474,7 +474,9 @@ function moduleFootprint(input) {
474
474
  return {
475
475
  centerline,
476
476
  band: benchworkBand(centerline, widthA, widthB, offA, offB),
477
- endplateFaces: endplateFaceSegments(centerline, widthA, widthB, offA, offB),
477
+ // A loop's centre-line ends at the throat, not a far endplate — keep only
478
+ // endplate A's face (the far face would be a spurious plate at the throat).
479
+ endplateFaces: input.loop ? endplateFaceSegments(centerline, widthA, widthB, offA, offB).slice(0, 1) : endplateFaceSegments(centerline, widthA, widthB, offA, offB),
478
480
  outline: sectionOutlines.length || !authored ? null : sampleBenchworkOutline(authored),
479
481
  sectionOutlines
480
482
  };
@@ -1356,7 +1358,7 @@ function deriveEndplatePoses(geo) {
1356
1358
  trackOffsets: offsetsFor(cfg(0), half)
1357
1359
  })
1358
1360
  );
1359
- const noB = geo.geometryType === "dead_end";
1361
+ const noB = geo.geometryType === "dead_end" || geo.loop === true;
1360
1362
  const end = sectionedEndPose({ sections: geo.sections });
1361
1363
  if (!noB && end) {
1362
1364
  poses.push(