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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2cab83f32f9b3adab3a84ef896406e8683cf3a9abcecfe132540bda198475a10
4
- data.tar.gz: 29d0804c7d76c1661103e9dcbc922ea7b916ba503f3fb0c9a8f2d78c8e8008d6
3
+ metadata.gz: 29c74ae703c5b75a9100880de8509ab0a36a39187f17582c49471f461a8a0bb2
4
+ data.tar.gz: be721952067d9f4f0f67caeb26298f6b32e8eded9ffde7c4e08294393e7db4bc
5
5
  SHA512:
6
- metadata.gz: 22ddead5114613c3a1c82ce9774911e4c414721495b66ed152f904f55ba8aef3d8dde957a473dc563c764635f2892f58f7f2d0d74dd6142427e3de279e34d5c4
7
- data.tar.gz: 4be4281b2e805ac45c0c01a0cc4d67b837fac67118c807812e88038ecf08fef63952897ba8fab3c66d2ec2b5a66d84428de4e038d1409ee766ab371c17fa907c
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
- row = element.enclosure == :none && row_ink[element.vertical_indent.round(1)]
1208
- row ? row[:bottom] : element.ink_bottom
1215
+ element.ink_bottom
1209
1216
  end
1210
1217
 
1211
1218
  def connector_edges(child, parent)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RSyntaxTree
4
- VERSION = "2.4.0"
4
+ VERSION = "2.4.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsyntaxtree
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoichiro Hasebe