@willcgage/module-schematic 0.68.0 → 0.69.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
@@ -1105,6 +1105,12 @@ interface ModuleFeatures {
1105
1105
  atFrac: number;
1106
1106
  doubleSide: "west" | "east";
1107
1107
  } | null;
1108
+ /** Whether the module presents a far endplate at all. False for an *end of
1109
+ * the line* or a *pocket*, which offer one conforming face and simply stop
1110
+ * (#184) — a renderer must not label that end, or it announces a plate the
1111
+ * module hasn't got and invites something to be coupled to it (#191). A loop
1112
+ * is separate: see {@link loop} and {@link loopInterchange}. */
1113
+ hasEndplateB: boolean;
1108
1114
  /** Lane extents across every feature (mains included; negative = outside
1109
1115
  * Main 1). Renderers size their vertical space from these. */
1110
1116
  laneMin: number;
package/dist/index.d.ts CHANGED
@@ -1105,6 +1105,12 @@ interface ModuleFeatures {
1105
1105
  atFrac: number;
1106
1106
  doubleSide: "west" | "east";
1107
1107
  } | null;
1108
+ /** Whether the module presents a far endplate at all. False for an *end of
1109
+ * the line* or a *pocket*, which offer one conforming face and simply stop
1110
+ * (#184) — a renderer must not label that end, or it announces a plate the
1111
+ * module hasn't got and invites something to be coupled to it (#191). A loop
1112
+ * is separate: see {@link loop} and {@link loopInterchange}. */
1113
+ hasEndplateB: boolean;
1108
1114
  /** Lane extents across every feature (mains included; negative = outside
1109
1115
  * Main 1). Renderers size their vertical space from these. */
1110
1116
  laneMin: number;
package/dist/index.js CHANGED
@@ -1868,6 +1868,7 @@ function moduleFeatures(doc) {
1868
1868
  crossings,
1869
1869
  crossovers,
1870
1870
  branchConnectors,
1871
+ hasEndplateB: doc.endplates.some((e) => e.id === "B"),
1871
1872
  industries,
1872
1873
  laneMin: Math.min(...allLanes),
1873
1874
  laneMax: Math.max(...allLanes)