@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.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -108,6 +108,7 @@ var DEG_FP = Math.PI / 180;
|
|
|
108
108
|
function moduleCenterline(input) {
|
|
109
109
|
const drawn = trackPath(input.mainPath);
|
|
110
110
|
if (drawn) return samplePath(drawn);
|
|
111
|
+
if (!input.geometryType) return [];
|
|
111
112
|
const L = input.lengthInches > 0 ? input.lengthInches : 24;
|
|
112
113
|
const gt = input.geometryType;
|
|
113
114
|
if (gt === "dead_end") return [{ x: 0, y: 0 }];
|