Class: Ambling::Pie::Settings::Animation

Inherits:
Object
  • Object
show all
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

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#pull_out_effectObject

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_clickObject

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_oneObject

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_radiusObject

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_timeObject

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

#sequencedObject

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_alphaObject

0

(Number)



266
267
268
# File 'lib/ambling/pie.rb', line 266

def start_alpha
  @start_alpha
end

#start_effectObject

bounce

(bounce, regular, strong)



256
257
258
# File 'lib/ambling/pie.rb', line 256

def start_effect
  @start_effect
end

#start_radiusObject

500%

(Number / Number%)



261
262
263
# File 'lib/ambling/pie.rb', line 261

def start_radius
  @start_radius
end

#start_timeObject

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