amcharts.rb 3.4.7.3 → 3.4.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/amcharts/chart.rb +4 -2
- data/lib/amcharts/export_settings.rb +5 -0
- data/lib/amcharts/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDM5ZjUxNGRkNzk3ZWFiMGY2NzZhYzdhN2ZmYjM1YWVkNTYyMjE3Yg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTIzMzYyN2RhYzk4YWU3ZTMzYjA5Mjc4NzYwNDE4ZjI0OTNiOTY4ZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MGJhM2M5YTJjN2M4NTU4YWMxZjE1YmViMDkwMWFiOGU0Yjg0OWE5NGQzZWNm
|
10
|
+
NTY3OWU1MjM1OGQ4Nzg5MWFhNDdjZTFhZjBmMGE1MTE1ZDNiNDc3ZjliNzA2
|
11
|
+
NGE5NmVmZGU5ZDhkM2E5YWVkMThlODQ2YzQ1Njg3ZGJhZDhiMDY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjRiOWMyNzhjODA2NWRjNGFiNDU5ZDA3NTZkZjEwODIxYjBmMDg1Y2RkOWQy
|
14
|
+
MDQzOTQ2ZWFhODVlNGVlMDU3YjcwODkxYzVjYzE1NDgwNmE3NTVhNTc5NmRl
|
15
|
+
NmY0NmY4OTg0OWNlZmZlYTBkYjczYTFjNWM4NGMyMTVkOTNhOWE=
|
data/lib/amcharts/chart.rb
CHANGED
@@ -24,7 +24,7 @@ module AmCharts
|
|
24
24
|
@legends = Collection[Legend]
|
25
25
|
@listeners = Collection[Listener]
|
26
26
|
@settings = Settings.new
|
27
|
-
@export =
|
27
|
+
@export = nil
|
28
28
|
@titles = []
|
29
29
|
update_settings(&block) if block_given?
|
30
30
|
end
|
@@ -60,13 +60,15 @@ module AmCharts
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def export?
|
63
|
-
!@export.
|
63
|
+
!@export.nil?
|
64
64
|
end
|
65
65
|
|
66
66
|
def export(&block)
|
67
|
+
@export ||= ExportSettings.new
|
67
68
|
yield @export if block_given?
|
68
69
|
@export
|
69
70
|
end
|
71
|
+
alias_method :exportable!, :export
|
70
72
|
|
71
73
|
def add_title(text, options = {})
|
72
74
|
@titles << [text, options.reverse_merge(size: 13, bold: true, alpha: 1, color: '#000000')]
|
data/lib/amcharts/version.rb
CHANGED