rsyntaxtree 2.4.0 → 2.4.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/rsyntaxtree/svg_graph.rb +9 -2
- data/lib/rsyntaxtree/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 29c74ae703c5b75a9100880de8509ab0a36a39187f17582c49471f461a8a0bb2
|
|
4
|
+
data.tar.gz: be721952067d9f4f0f67caeb26298f6b32e8eded9ffde7c4e08294393e7db4bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f3569367ab3af4e4c4fda929312c049634cff02ba620407c7709d535377fb206afd6a7a4c07f0a245802cd773d6a9b8e04a927d96e876dec53ed4be4a11a0c95
|
|
7
|
+
data.tar.gz: 3690f70dc1a2b68008c5d4b41eb8fc54434cc722c33ee3d2bf42beaaa914cab40e22f6673f709b2b7791d6229a86831a2412e906a431f227060365f19a7cccb1
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.4.1] - 2026-09-02
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- A node shorter than its row-mates connects to its children from its own
|
|
7
|
+
bottom. A row aligns its labels at the top, so a tall one — a feature
|
|
8
|
+
matrix, a two-line label — reaches far below the short ones beside it. The
|
|
9
|
+
downward connector took the row's shared bottom for its upper end, so a
|
|
10
|
+
short node's line began at the tall neighbour's depth: a gap opened under
|
|
11
|
+
the label, and a polyline's branch flattened into a rule above the
|
|
12
|
+
children. No committed figure changes; the effect shows only where a row
|
|
13
|
+
mixes label heights.
|
|
14
|
+
|
|
3
15
|
## [2.4.0] - 2026-09-02
|
|
4
16
|
|
|
5
17
|
### Added
|
|
@@ -1203,9 +1203,16 @@ module RSyntaxTree
|
|
|
1203
1203
|
row ? row[:top] : element.ink_top
|
|
1204
1204
|
end
|
|
1205
1205
|
|
|
1206
|
+
# The lower endpoint clears the element's own ink, not the row's. A row
|
|
1207
|
+
# keeps its labels top-aligned, so a tall one — a feature matrix, a
|
|
1208
|
+
# two-line label — reaches far below its neighbours; taking the row's
|
|
1209
|
+
# union here dragged every short label's downward connector down to that
|
|
1210
|
+
# depth, opening a gap under the label with no line in it and flattening
|
|
1211
|
+
# the branch of a polyline. The upper endpoint still takes the row (see
|
|
1212
|
+
# ink_over): the edges arriving at a row of leaves are what must line up,
|
|
1213
|
+
# which was the point of the band, and that is unchanged.
|
|
1206
1214
|
def ink_under(element)
|
|
1207
|
-
|
|
1208
|
-
row ? row[:bottom] : element.ink_bottom
|
|
1215
|
+
element.ink_bottom
|
|
1209
1216
|
end
|
|
1210
1217
|
|
|
1211
1218
|
def connector_edges(child, parent)
|
data/lib/rsyntaxtree/version.rb
CHANGED