@n-uf/placement 26.11.22 → 26.11.23
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
Versions are calendar versions, `YY.M.R` (year, month of the release, counter within the month), shared with
|
|
4
4
|
`@n-uf/motion`: both packages carry the same version, and a release bumps both.
|
|
5
5
|
|
|
6
|
+
## 26.11.23
|
|
7
|
+
|
|
8
|
+
- `@n-uf/placement/scene`, **fixed:** a side bar outside the inset counts for the side's order only while it lays out
|
|
9
|
+
an item. An empty or all-closed side bar draws as nothing, so the layout is the one without it: the rail stays at
|
|
10
|
+
the window's side inside the inset (it used to land flush at the window edge, as if the bar were there). An empty
|
|
11
|
+
top or bottom bar outside the inset keeps nothing from the inset either.
|
|
12
|
+
|
|
6
13
|
## 26.11.22
|
|
7
14
|
|
|
8
15
|
- `@n-uf/placement/scene`, **fixed:** `isOutsideSideBar` counts an edge as a side bar only when its side has a column
|
|
@@ -484,7 +484,7 @@ function solve(given, options = {}) {
|
|
|
484
484
|
let x0 = area3.x;
|
|
485
485
|
let x1 = area3.x + area3.width;
|
|
486
486
|
for (const side of ["left", "right"]) {
|
|
487
|
-
const outsideSideBar = (c) => isOutsideSideBar(scene, c.edge) && !g.railed(c) && !g.riding(c);
|
|
487
|
+
const outsideSideBar = (c) => c.width > 0 && isOutsideSideBar(scene, c.edge) && !g.railed(c) && !g.riding(c);
|
|
488
488
|
const all = cols.filter((c) => c.side === side);
|
|
489
489
|
const mine = [...all.filter(outsideSideBar), ...all.filter((c) => !outsideSideBar(c))];
|
|
490
490
|
const railed = mine.filter((c) => g.railed(c));
|
|
@@ -1661,4 +1661,4 @@ export {
|
|
|
1661
1661
|
refusals,
|
|
1662
1662
|
stops
|
|
1663
1663
|
};
|
|
1664
|
-
//# sourceMappingURL=chunk-
|
|
1664
|
+
//# sourceMappingURL=chunk-6WFVXHA3.js.map
|