@willcgage/module-schematic 0.19.0 → 0.20.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 +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -365,7 +365,8 @@ function stateToDoc(state, recordNumber) {
|
|
|
365
365
|
onTrack: t.onTrack,
|
|
366
366
|
divergeTrack: t.divergeTrack,
|
|
367
367
|
kind: t.kind,
|
|
368
|
-
name: t.name || void 0
|
|
368
|
+
name: t.name || void 0,
|
|
369
|
+
...t.size ? { size: t.size } : {}
|
|
369
370
|
})),
|
|
370
371
|
...state.crossings.length > 0 ? {
|
|
371
372
|
crossings: state.crossings.map((x) => ({
|
|
@@ -521,7 +522,8 @@ function docToState(doc, fallbackLength, moduleTracks = []) {
|
|
|
521
522
|
pos: sc(t.pos),
|
|
522
523
|
onTrack: t.onTrack,
|
|
523
524
|
divergeTrack: t.divergeTrack,
|
|
524
|
-
kind: t.kind ?? "right"
|
|
525
|
+
kind: t.kind ?? "right",
|
|
526
|
+
...t.size ? { size: t.size } : {}
|
|
525
527
|
})),
|
|
526
528
|
controlPoints: readControlPoints(d, sc),
|
|
527
529
|
industries: (d.industries ?? []).map((ind) => ({
|