@willcgage/module-schematic 0.53.0 → 0.54.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.d.cts CHANGED
@@ -1039,22 +1039,24 @@ declare const RAIL_GAUGE_INCHES = 0.354;
1039
1039
  * frog, i.e. a turnout's LEAD if lead were proportional to frog number. From an
1040
1040
  * Atlas code 55 #7 measuring 3⅜″ (Steve Branton, #173) ⇒ 3.375 / 7.
1041
1041
  *
1042
- * It is NOT proportional. Measured lead ÷ N: **#7 = 0.482, #10 = 0.419.** The
1043
- * rule predicted 4.82″ for the #10; it measures 4³⁄₁₆″ **13% over**. Atlas
1044
- * compress the lead on long turnouts, just as they compress overall length.
1042
+ * It is NOT proportional, and the error CHANGES SIGN. Measured lead ÷ N:
1043
+ * **#5 = 0.600, #7 = 0.482, #10 = 0.419**it falls monotonically. This rule
1044
+ * reads **20% SHORT at N=5** (2.41″ vs a measured 3.00″) and **13% LONG at
1045
+ * N=10** (4.82″ vs 4³⁄₁₆″). There is no safe direction to be wrong in.
1045
1046
  *
1046
1047
  * Prefer {@link leadInchesForSize}, which returns a real part's measurement when
1047
1048
  * one exists and only falls back here for sizes nothing in the library covers.
1048
- * A fallback at N 10 will read LONG.
1049
+ * ⚠️ The remaining fallback user is the #2.5 wye at 1.21″; since per-frog RISES
1050
+ * as N falls, that is very likely SHORT. Treat it as a placeholder.
1049
1051
  *
1050
- * BETTER MODEL (hypothesis, not yet enough data): a roughly CONSTANT SWITCH
1051
- * ANGLE α the angle the point rails leave the stock rail at — which is real
1052
- * prototype practice, points being planed to a standard angle. Inverting
1053
- * {@link turnoutClosure} gives `lead = 2g / (1/N + α)`, and the two measured
1054
- * leads agree to 3%: #7 α = 0.0669, #10 α = 0.0691. If it holds, lead is
1055
- * whatever falls out of a fixed point angle meeting the frog, not a multiple
1056
- * of N. DISCRIMINATING TEST: at α 0.068 the #5's lead is **2.64″**, where
1057
- * this constant says 2.41″ measure a physical 2050 to settle it.
1052
+ * A constant-switch-angle model was also proposed here and is likewise REFUTED:
1053
+ * inverting {@link turnoutClosure} gives α = 0.036 (#5), 0.067 (#7), 0.069
1054
+ * (#10). It was floated when only the #7 and #10 were known, which agreed to
1055
+ * 3%; the #5 killed it. Kept as a warning two agreeing parts are not a law,
1056
+ * and this library has now watched three separate rules die that way.
1057
+ *
1058
+ * The pattern that DOES fit both fully-measured parts is on {@link
1059
+ * ATLAS_CODE55_N}: the frog sits at a fixed 4.75″ and the points move.
1058
1060
  */
1059
1061
  declare const TURNOUT_LEAD_INCHES_PER_FROG = 0.482;
1060
1062
  /** Where a dimension came from. `derived` = we computed it from another part or
@@ -1123,26 +1125,37 @@ declare const CODE55_RAIL_HEIGHT_INCHES = 0.055;
1123
1125
  * (3⅜″ points→frog, #173) and Will Gage's #5/#7/#10 overall lengths plus the
1124
1126
  * #10's lead and points offset. The #5's lead and the wye's are still derived.
1125
1127
  *
1126
- * NEITHER DIMENSION IS PROPORTIONAL TO FROG NUMBER. Both rules that assumed so
1127
- * have now been tested and failed:
1128
- * - **Lead does NOT scale with N.** Measured lead ÷ N: #7 = 0.482, #10 = 0.419.
1129
- * {@link TURNOUT_LEAD_INCHES_PER_FROG} predicted 4.82 for the #10 against a
1130
- * measured 4³⁄₁₆″ — 13% over. See that constant for the constant-switch-angle
1131
- * model that fits both measurements, and the test that would confirm it.
1132
- * - **Overall length is NOT A FUNCTION OF N AT ALL.** Measured: #5 = 6.00″,
1133
- * **#7 = 6.00″**, #10 = 8.00″. The #5 and #7 are the SAME LENGTH — Atlas mould
1134
- * them on a shared 6″ tie strip and vary only the frog angle and where the frog
1135
- * sits. NEVER derive a length from a frog number; look the part up.
1128
+ * ⭐⭐ **THE FROG SITS AT 4.75″ FROM THE TIE END — ON BOTH MEASURED PARTS.**
1129
+ *
1130
+ * part points FROG overall lead
1131
+ * #5 1¾″ 4.75 6.00″ 3.0000″
1132
+ * #10 ⁹⁄₁₆″ 4.75″ 8.00″ 4.1875″
1133
+ *
1134
+ * Atlas appear to FIX where the frog casting sits in the moulding and move the
1135
+ * POINTS to change the frog number. That single fact explains every failed rule
1136
+ * below at once: lead was never a property of N it is just
1137
+ * `4.75 wherever the points landed`.
1138
+ *
1139
+ * ⚠️ TESTABLE, AND CHEAP: Steve's #7 lead of 3⅜″ was measured independently, by
1140
+ * someone else, on a different part. If the frog really is fixed at 4.75″, that
1141
+ * part's POINTS must sit at 4.75 − 3.375 = **1⅜″**. Measure a physical 2052 and
1142
+ * this model is confirmed or dead. Nobody has measured the #7's points offset.
1136
1143
  *
1137
- * This is what the frog-number definition actually says, and it's easy to forget:
1138
- * #N fixes the DIVERGENCE RATE AT THE FROG (1 across per N along). It says
1139
- * nothing about how much tie strip the manufacturer wraps around it. Angle is
1140
- * geometry; length is packaging. Hence the lead where the frog falls inside
1141
- * that strip is the only dimension worth chasing.
1144
+ * NOTHING HERE IS PROPORTIONAL TO FROG NUMBER. Three rules assumed otherwise;
1145
+ * all three were tested against a physical part and FAILED:
1146
+ * - **Lead N.** Measured lead ÷ N: #5 = 0.600, #7 = 0.482, #10 = 0.419 —
1147
+ * falls monotonically. {@link TURNOUT_LEAD_INCHES_PER_FROG} reads 13% LONG at
1148
+ * N=10 and 20% SHORT at N=5, so its error even changes sign.
1149
+ * - ❌ **Constant switch angle.** Inverting {@link turnoutClosure} gives α =
1150
+ * 0.036 (#5), 0.067 (#7), 0.069 (#10). The #7 and #10 agreed to 3% and the #5
1151
+ * killed it. Two agreeing parts are not a law.
1152
+ * - ❌ **Overall length ∝ N.** #5 = 6.00″ and #7 = 6.00″ — same moulding, two
1153
+ * frog numbers.
1142
1154
  *
1143
- * (Lengths are whole inches and the #5 diverges at exactly 1/32 of a circle, so
1144
- * Atlas do seem to work to round numbers but a prediction that the #7 would
1145
- * therefore be 7.00″ was tested and FAILED. Round, but not one inch per frog.)
1155
+ * The definition is the reason: #N fixes the DIVERGENCE RATE AT THE FROG (1
1156
+ * across per N along) and says NOTHING about how much tie strip the manufacturer
1157
+ * wraps around it, or where inside it the frog goes. Angle is geometry;
1158
+ * everything else is a tooling decision. **Measure the part. Do not model it.**
1146
1159
  */
1147
1160
  declare const ATLAS_CODE55_N: TrackPart[];
1148
1161
  /** Every built-in part, across manufacturers. */
package/dist/index.d.ts CHANGED
@@ -1039,22 +1039,24 @@ declare const RAIL_GAUGE_INCHES = 0.354;
1039
1039
  * frog, i.e. a turnout's LEAD if lead were proportional to frog number. From an
1040
1040
  * Atlas code 55 #7 measuring 3⅜″ (Steve Branton, #173) ⇒ 3.375 / 7.
1041
1041
  *
1042
- * It is NOT proportional. Measured lead ÷ N: **#7 = 0.482, #10 = 0.419.** The
1043
- * rule predicted 4.82″ for the #10; it measures 4³⁄₁₆″ **13% over**. Atlas
1044
- * compress the lead on long turnouts, just as they compress overall length.
1042
+ * It is NOT proportional, and the error CHANGES SIGN. Measured lead ÷ N:
1043
+ * **#5 = 0.600, #7 = 0.482, #10 = 0.419**it falls monotonically. This rule
1044
+ * reads **20% SHORT at N=5** (2.41″ vs a measured 3.00″) and **13% LONG at
1045
+ * N=10** (4.82″ vs 4³⁄₁₆″). There is no safe direction to be wrong in.
1045
1046
  *
1046
1047
  * Prefer {@link leadInchesForSize}, which returns a real part's measurement when
1047
1048
  * one exists and only falls back here for sizes nothing in the library covers.
1048
- * A fallback at N 10 will read LONG.
1049
+ * ⚠️ The remaining fallback user is the #2.5 wye at 1.21″; since per-frog RISES
1050
+ * as N falls, that is very likely SHORT. Treat it as a placeholder.
1049
1051
  *
1050
- * BETTER MODEL (hypothesis, not yet enough data): a roughly CONSTANT SWITCH
1051
- * ANGLE α the angle the point rails leave the stock rail at — which is real
1052
- * prototype practice, points being planed to a standard angle. Inverting
1053
- * {@link turnoutClosure} gives `lead = 2g / (1/N + α)`, and the two measured
1054
- * leads agree to 3%: #7 α = 0.0669, #10 α = 0.0691. If it holds, lead is
1055
- * whatever falls out of a fixed point angle meeting the frog, not a multiple
1056
- * of N. DISCRIMINATING TEST: at α 0.068 the #5's lead is **2.64″**, where
1057
- * this constant says 2.41″ measure a physical 2050 to settle it.
1052
+ * A constant-switch-angle model was also proposed here and is likewise REFUTED:
1053
+ * inverting {@link turnoutClosure} gives α = 0.036 (#5), 0.067 (#7), 0.069
1054
+ * (#10). It was floated when only the #7 and #10 were known, which agreed to
1055
+ * 3%; the #5 killed it. Kept as a warning two agreeing parts are not a law,
1056
+ * and this library has now watched three separate rules die that way.
1057
+ *
1058
+ * The pattern that DOES fit both fully-measured parts is on {@link
1059
+ * ATLAS_CODE55_N}: the frog sits at a fixed 4.75″ and the points move.
1058
1060
  */
1059
1061
  declare const TURNOUT_LEAD_INCHES_PER_FROG = 0.482;
1060
1062
  /** Where a dimension came from. `derived` = we computed it from another part or
@@ -1123,26 +1125,37 @@ declare const CODE55_RAIL_HEIGHT_INCHES = 0.055;
1123
1125
  * (3⅜″ points→frog, #173) and Will Gage's #5/#7/#10 overall lengths plus the
1124
1126
  * #10's lead and points offset. The #5's lead and the wye's are still derived.
1125
1127
  *
1126
- * NEITHER DIMENSION IS PROPORTIONAL TO FROG NUMBER. Both rules that assumed so
1127
- * have now been tested and failed:
1128
- * - **Lead does NOT scale with N.** Measured lead ÷ N: #7 = 0.482, #10 = 0.419.
1129
- * {@link TURNOUT_LEAD_INCHES_PER_FROG} predicted 4.82 for the #10 against a
1130
- * measured 4³⁄₁₆″ — 13% over. See that constant for the constant-switch-angle
1131
- * model that fits both measurements, and the test that would confirm it.
1132
- * - **Overall length is NOT A FUNCTION OF N AT ALL.** Measured: #5 = 6.00″,
1133
- * **#7 = 6.00″**, #10 = 8.00″. The #5 and #7 are the SAME LENGTH — Atlas mould
1134
- * them on a shared 6″ tie strip and vary only the frog angle and where the frog
1135
- * sits. NEVER derive a length from a frog number; look the part up.
1128
+ * ⭐⭐ **THE FROG SITS AT 4.75″ FROM THE TIE END — ON BOTH MEASURED PARTS.**
1129
+ *
1130
+ * part points FROG overall lead
1131
+ * #5 1¾″ 4.75 6.00″ 3.0000″
1132
+ * #10 ⁹⁄₁₆″ 4.75″ 8.00″ 4.1875″
1133
+ *
1134
+ * Atlas appear to FIX where the frog casting sits in the moulding and move the
1135
+ * POINTS to change the frog number. That single fact explains every failed rule
1136
+ * below at once: lead was never a property of N it is just
1137
+ * `4.75 wherever the points landed`.
1138
+ *
1139
+ * ⚠️ TESTABLE, AND CHEAP: Steve's #7 lead of 3⅜″ was measured independently, by
1140
+ * someone else, on a different part. If the frog really is fixed at 4.75″, that
1141
+ * part's POINTS must sit at 4.75 − 3.375 = **1⅜″**. Measure a physical 2052 and
1142
+ * this model is confirmed or dead. Nobody has measured the #7's points offset.
1136
1143
  *
1137
- * This is what the frog-number definition actually says, and it's easy to forget:
1138
- * #N fixes the DIVERGENCE RATE AT THE FROG (1 across per N along). It says
1139
- * nothing about how much tie strip the manufacturer wraps around it. Angle is
1140
- * geometry; length is packaging. Hence the lead where the frog falls inside
1141
- * that strip is the only dimension worth chasing.
1144
+ * NOTHING HERE IS PROPORTIONAL TO FROG NUMBER. Three rules assumed otherwise;
1145
+ * all three were tested against a physical part and FAILED:
1146
+ * - **Lead N.** Measured lead ÷ N: #5 = 0.600, #7 = 0.482, #10 = 0.419 —
1147
+ * falls monotonically. {@link TURNOUT_LEAD_INCHES_PER_FROG} reads 13% LONG at
1148
+ * N=10 and 20% SHORT at N=5, so its error even changes sign.
1149
+ * - ❌ **Constant switch angle.** Inverting {@link turnoutClosure} gives α =
1150
+ * 0.036 (#5), 0.067 (#7), 0.069 (#10). The #7 and #10 agreed to 3% and the #5
1151
+ * killed it. Two agreeing parts are not a law.
1152
+ * - ❌ **Overall length ∝ N.** #5 = 6.00″ and #7 = 6.00″ — same moulding, two
1153
+ * frog numbers.
1142
1154
  *
1143
- * (Lengths are whole inches and the #5 diverges at exactly 1/32 of a circle, so
1144
- * Atlas do seem to work to round numbers but a prediction that the #7 would
1145
- * therefore be 7.00″ was tested and FAILED. Round, but not one inch per frog.)
1155
+ * The definition is the reason: #N fixes the DIVERGENCE RATE AT THE FROG (1
1156
+ * across per N along) and says NOTHING about how much tie strip the manufacturer
1157
+ * wraps around it, or where inside it the frog goes. Angle is geometry;
1158
+ * everything else is a tooling decision. **Measure the part. Do not model it.**
1146
1159
  */
1147
1160
  declare const ATLAS_CODE55_N: TrackPart[];
1148
1161
  /** Every built-in part, across manufacturers. */
package/dist/index.js CHANGED
@@ -1102,9 +1102,14 @@ var ATLAS_CODE55_N = [
1102
1102
  partNumbers: { left: "2050", right: "2051" },
1103
1103
  frogNumber: 5,
1104
1104
  lead: {
1105
- inches: 5 * TURNOUT_LEAD_INCHES_PER_FROG,
1106
- source: "derived",
1107
- note: "scaled from the measured #7 by frog number \u2014 not measured, BUT now corroborated: a photo read of Will's physical 2050 puts points\u2192frog at ~2.4\u2033, i.e. 0.48/frog against the #7's 0.482. Replace with a real measurement when someone puts a rule on it."
1105
+ inches: 3,
1106
+ source: "measured",
1107
+ note: "Will Gage, physical Atlas 2050 (#5 LH): points at 1\xBE\u2033, frog at 4.75\u2033 \u21D2 3\u2033 exactly. REFUTED BOTH standing models \u2014 the per-frog rule predicted 2.41\u2033, the constant-switch-angle model 2.64\u2033; both read short. It also retired my earlier ~2.4\u2033 photo estimate, which was 20% under."
1108
+ },
1109
+ pointsOffset: {
1110
+ inches: 1.75,
1111
+ source: "measured",
1112
+ note: "Will Gage, physical Atlas 2050 (#5 LH) \u2014 end of tie strip to point tips"
1108
1113
  },
1109
1114
  overallLength: {
1110
1115
  inches: 6,