Class: Ambling::Pie::Settings::Animation
- Inherits:
-
Object
- Object
- Ambling::Pie::Settings::Animation
- Includes:
- Base
- Defined in:
- lib/ambling/pie.rb
Constant Summary collapse
- VALUES =
[:start_time,:start_effect,:start_radius,:start_alpha,:sequenced,:pull_out_on_click,:pull_out_time,:pull_out_effect,:pull_out_radius,:pull_out_only_one]
Instance Attribute Summary collapse
-
#pull_out_effect ⇒ Object
- bounce
-
(bounce, regular, strong).
-
#pull_out_on_click ⇒ Object
- true
-
(true / false) whether to pull out slices when user clicks on them (or on legend entry).
-
#pull_out_only_one ⇒ Object
- false
-
(true / false) if set to true, when you click on any slice, all other slices will be pushed in.
-
#pull_out_radius ⇒ Object
- 20%
-
(Number / Number%) how far pie slices should be pulled-out then user clicks on them.
-
#pull_out_time ⇒ Object
- 0
-
(number) pull-out time (then user clicks on the slice).
-
#sequenced ⇒ Object
- false
-
(true / false) Whether the slices should appear all together or one after another.
-
#start_alpha ⇒ Object
- 0
-
(Number).
-
#start_effect ⇒ Object
- bounce
-
(bounce, regular, strong).
-
#start_radius ⇒ Object
- 500%
-
(Number / Number%).
-
#start_time ⇒ Object
- 0
-
(Number) fly-in time in seconds.
Method Summary
Methods included from Base
#build_xml, #initialize, #populate, #to_xml
Instance Attribute Details
#pull_out_effect ⇒ Object
- bounce
-
(bounce, regular, strong)
286 287 288 |
# File 'lib/ambling/pie.rb', line 286 def pull_out_effect @pull_out_effect end |
#pull_out_on_click ⇒ Object
- true
-
(true / false) whether to pull out slices when user clicks on them (or on legend entry)
276 277 278 |
# File 'lib/ambling/pie.rb', line 276 def pull_out_on_click @pull_out_on_click end |
#pull_out_only_one ⇒ Object
- false
-
(true / false) if set to true, when you click on any slice, all other slices will be pushed in
296 297 298 |
# File 'lib/ambling/pie.rb', line 296 def pull_out_only_one @pull_out_only_one end |
#pull_out_radius ⇒ Object
- 20%
-
(Number / Number%) how far pie slices should be pulled-out then user clicks on them
291 292 293 |
# File 'lib/ambling/pie.rb', line 291 def pull_out_radius @pull_out_radius end |
#pull_out_time ⇒ Object
- 0
-
(number) pull-out time (then user clicks on the slice)
281 282 283 |
# File 'lib/ambling/pie.rb', line 281 def pull_out_time @pull_out_time end |
#sequenced ⇒ Object
- false
-
(true / false) Whether the slices should appear all together or one after another
271 272 273 |
# File 'lib/ambling/pie.rb', line 271 def sequenced @sequenced end |
#start_alpha ⇒ Object
- 0
-
(Number)
266 267 268 |
# File 'lib/ambling/pie.rb', line 266 def start_alpha @start_alpha end |
#start_effect ⇒ Object
- bounce
-
(bounce, regular, strong)
256 257 258 |
# File 'lib/ambling/pie.rb', line 256 def start_effect @start_effect end |
#start_radius ⇒ Object
- 500%
-
(Number / Number%)
261 262 263 |
# File 'lib/ambling/pie.rb', line 261 def start_radius @start_radius end |
#start_time ⇒ Object
- 0
-
(Number) fly-in time in seconds. Leave 0 to appear instantly
251 252 253 |
# File 'lib/ambling/pie.rb', line 251 def start_time @start_time end |