@willcgage/module-schematic 0.22.0 → 0.23.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.js CHANGED
@@ -106,6 +106,7 @@ var DEG_FP = Math.PI / 180;
106
106
  function moduleCenterline(input) {
107
107
  const drawn = trackPath(input.mainPath);
108
108
  if (drawn) return samplePath(drawn);
109
+ if (!input.geometryType) return [];
109
110
  const L = input.lengthInches > 0 ? input.lengthInches : 24;
110
111
  const gt = input.geometryType;
111
112
  if (gt === "dead_end") return [{ x: 0, y: 0 }];