glimmer-libui-cc-graphs_and_charts 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +2 -2
- data/VERSION +1 -1
- data/glimmer-libui-cc-graphs_and_charts.gemspec +2 -2
- data/lib/glimmer/view/bar_chart.rb +1 -1
- data/lib/glimmer/view/line_graph.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: 263ed1c13a5130568949ac82714104e494a4e8ffd1ded95fec7d14110d5fc364
|
4
|
+
data.tar.gz: 2eea70d52135a1381d2ae30c2fb03dac37f5a07c0f74ba94875ea8a5fb82b867
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cf72862f552c4d9de06163653465ea4cf4779f371080b8fb4a345fa1bce9315ad190e12c8cdffaf71ae546d43510804d1574e12a7080e30a35901e3e842d947
|
7
|
+
data.tar.gz: cff63fd75943908ee9084e821c7a6a32d517c729796cbdc705f4928431f27540d904c0ea1080c9248a0542a43cbc660e652d07b0cb69e8e641153956d1354e47
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Graphs and Charts 0.2.
|
1
|
+
# Graphs and Charts 0.2.1 (Alpha)
|
2
2
|
## [Glimmer DSL for LibUI](https://github.com/AndyObtiva/glimmer-dsl-libui) Custom Controls
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/glimmer-libui-cc-graphs_and_charts.svg)](http://badge.fury.io/rb/glimmer-libui-cc-graphs_and_charts)
|
4
4
|
[![Join the chat at https://gitter.im/AndyObtiva/glimmer](https://badges.gitter.im/AndyObtiva/glimmer.svg)](https://gitter.im/AndyObtiva/glimmer?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
@@ -14,7 +14,7 @@ Graphs and Charts (Custom Controls) for [Glimmer DSL for LibUI](https://github.c
|
|
14
14
|
Add this line to Bundler `Gemfile`:
|
15
15
|
|
16
16
|
```ruby
|
17
|
-
gem 'glimmer-libui-cc-graphs_and_charts', '~> 0.2.
|
17
|
+
gem 'glimmer-libui-cc-graphs_and_charts', '~> 0.2.1'
|
18
18
|
```
|
19
19
|
|
20
20
|
Run:
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: glimmer-libui-cc-graphs_and_charts 0.2.
|
5
|
+
# stub: glimmer-libui-cc-graphs_and_charts 0.2.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "glimmer-libui-cc-graphs_and_charts".freeze
|
9
|
-
s.version = "0.2.
|
9
|
+
s.version = "0.2.1".freeze
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
@@ -240,7 +240,7 @@ module Glimmer
|
|
240
240
|
def estimate_width_of_text(text_string, font_properties)
|
241
241
|
# TODO refactor move this method to somewhere common like Glimmer module
|
242
242
|
font_size = font_properties[:size] || 16
|
243
|
-
estimated_font_width = 0.
|
243
|
+
estimated_font_width = 0.62 * font_size
|
244
244
|
text_string.chars.size * estimated_font_width
|
245
245
|
end
|
246
246
|
|
@@ -553,7 +553,7 @@ module Glimmer
|
|
553
553
|
|
554
554
|
def estimate_width_of_text(text_string, font_properties)
|
555
555
|
font_size = font_properties[:size] || 16
|
556
|
-
estimated_font_width = 0.
|
556
|
+
estimated_font_width = 0.62 * font_size
|
557
557
|
text_string.chars.size * estimated_font_width
|
558
558
|
end
|
559
559
|
|