rsyntaxtree 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 69c3a36921d2441f35c9729197aaea3ded204780b7033361a3434605e17e70cb
4
- data.tar.gz: 342c7b8e779e2fca098d441f11ea7a458e050e42b49957369a7af3ac9ffd5ce8
3
+ metadata.gz: e72c92c9014be74d57f4406e6f1e143b3f9e8dffc32f48ecfebd4a0adbf6a4e2
4
+ data.tar.gz: 4efd624a82d601829b48ed8fedec7265d65b5bc353deb5356ac37a6eefa0a7da
5
5
  SHA512:
6
- metadata.gz: ddffb304231af332a8de21e29a97943570b8297749c7368c536b0f15103a392c4f10f1b6c77c79c0ab8b48a3fbe05ccfcc09da69b20b53c0f5a41692245d5137
7
- data.tar.gz: 0c6a91490bdf0a26bcfed5cdad68bc25fdd9252577b86a638a8a6ce72a4c5c297324dda81e9e0f1852bee545d437d16f625ec312141fd8a56868b691d9bd05b6
6
+ metadata.gz: b26b81c9ebfec90f73e66cf562ad664d8081291fd869c4e9913220ab24e90fe81f081c729abf35f32af4141084ae26e8c29af97cb1a1e0e5be165900d358cc45
7
+ data.tar.gz: 7f08d17d331d2510357bb586d5c70190418c134654d1fbdac6c2a0b7b0c2716caabf8762ed231eabf627e59d5b07cc77b3e40d46e2ce1f78f90852122a166a32
@@ -262,8 +262,8 @@ EOD
262
262
  if sub && sub != ""
263
263
  sub_data = @text_styles.sub(/COLOR/, col)
264
264
  sub_data = sub_data.sub(/FONT_SIZE/, @sub_size.to_s)
265
- sub_x = right - sub_width
266
- sub_y = main_y + sub_height / 4
265
+ sub_x = txt_pos + (main_width / 2) - (sub_width / 2)
266
+ sub_y = main_y + sub_height / 6
267
267
  sub_data = sub_data.sub(/X_VALUE/, sub_x.to_s)
268
268
  sub_data = sub_data.sub(/Y_VALUE/, sub_y.to_s)
269
269
  @tree_data += sub_data.sub(/TD/, "text-decoration='#{sub_decoration}'")
@@ -189,7 +189,6 @@ class TreeGraph < Graph
189
189
  end
190
190
 
191
191
  if sub != ""
192
- # add a separation of the width of "M"
193
192
  sub_width = img_get_txt_width(sub.to_s, sub_font, @sub_size)
194
193
  sub_height = img_get_txt_height(sub.to_s, sub_font, @sub_size)
195
194
  else
@@ -1,4 +1,4 @@
1
1
  module RSyntaxTree
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
4
4
 
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: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoichiro Hasebe