@willcgage/module-schematic 0.40.0 → 0.41.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 +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -615,7 +615,11 @@ function buildTransition(state) {
|
|
|
615
615
|
// Branton, #131). Main 1 runs the full module; Main 2 is the branch.
|
|
616
616
|
onTrack: MAIN_TRACK_ID,
|
|
617
617
|
divergeTrack: MAIN2_TRACK_ID,
|
|
618
|
-
|
|
618
|
+
// Hand so the diverging leg lands on Main 2's side. Main 2 extends toward
|
|
619
|
+
// the double end (sign −1 west / +1 east) and sits above (+1) or, when the
|
|
620
|
+
// mains are swapped, below (−1). divergeSideForHand(left)=sign(toward),
|
|
621
|
+
// (right)=−sign(toward), so pick the hand whose side matches Main 2's (#131).
|
|
622
|
+
kind: (aDouble ? -1 : 1) === (state.mainsSwapped ? -1 : 1) ? "left" : "right"
|
|
619
623
|
};
|
|
620
624
|
const cpId = nextId("cp", state.controlPoints.map((c) => c.id));
|
|
621
625
|
const sig = (facing) => ({
|