@willcgage/module-schematic 0.23.0 → 0.24.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 CHANGED
@@ -368,7 +368,8 @@ function stateToDoc(state, recordNumber) {
368
368
  divergeTrack: t.divergeTrack,
369
369
  kind: t.kind,
370
370
  name: t.name || void 0,
371
- ...t.size ? { size: t.size } : {}
371
+ ...t.size ? { size: t.size } : {},
372
+ ...t.curved ? { curved: true } : {}
372
373
  })),
373
374
  ...state.crossings.length > 0 ? {
374
375
  crossings: state.crossings.map((x) => ({
@@ -529,7 +530,8 @@ function docToState(doc, fallbackLength, moduleTracks = []) {
529
530
  onTrack: t.onTrack,
530
531
  divergeTrack: t.divergeTrack,
531
532
  kind: t.kind ?? "right",
532
- ...t.size ? { size: t.size } : {}
533
+ ...t.size ? { size: t.size } : {},
534
+ ...t.curved ? { curved: true } : {}
533
535
  })),
534
536
  controlPoints: readControlPoints(d, sc),
535
537
  industries: (d.industries ?? []).map((ind) => ({