@willcgage/module-schematic 0.111.0 → 0.113.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 +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +60 -17
- package/dist/index.d.ts +60 -17
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2214,7 +2214,7 @@ function crossoverAssembly(part) {
|
|
|
2214
2214
|
const spacing = part.trackSpacing?.inches;
|
|
2215
2215
|
const n = part.frogNumber;
|
|
2216
2216
|
if (!overall || !spacing || !n) return null;
|
|
2217
|
-
const lengthInches = overall
|
|
2217
|
+
const lengthInches = overall;
|
|
2218
2218
|
const tan = part.actualAngle ? Math.tan(part.actualAngle.deg * Math.PI / 180) : 1 / n;
|
|
2219
2219
|
if (!(tan > 0)) return null;
|
|
2220
2220
|
const crossingRunInches = spacing / tan;
|
|
@@ -2224,6 +2224,7 @@ function crossoverAssembly(part) {
|
|
|
2224
2224
|
lengthInches,
|
|
2225
2225
|
spacingInches: spacing,
|
|
2226
2226
|
crossingRunInches,
|
|
2227
|
+
approachInches: mid - half,
|
|
2227
2228
|
pointsAtInches: [mid - half, mid + half],
|
|
2228
2229
|
scissorsAtInches: mid
|
|
2229
2230
|
};
|