Class: Flms::TargetStateKeyframe

Inherits:
Keyframe
  • Object
show all
Defined in:
app/models/flms/target_state_keyframe.rb

Constant Summary

Constants inherited from Keyframe

Keyframe::POSITION_COORDINATES, Keyframe::POSITION_NAMES

Instance Method Summary collapse

Methods inherited from Keyframe

#blur_percent, #blur_percent=, #height_percent, #height_percent=, #left_percent, #left_percent=, #margin_left_percent, #margin_left_percent=, #margin_top_percent, #margin_top_percent=, #opacity_percent, #opacity_percent=, #position_coordinates_to_name, #position_coordinates_valid?, #position_name, #position_name=, #position_name_to_coordinates, #position_name_valid?, #scale_percent, #scale_percent=, #top_percent, #top_percent=, #width_percent, #width_percent=

Instance Method Details

#set_default_valuesObject



5
6
7
8
9
10
11
12
13
14
15
# File 'app/models/flms/target_state_keyframe.rb', line 5

def set_default_values
  # scroll_start is auto-calculated in layer prior to saving the records
  self.scroll_duration ||= 100
  self.width ||= 1.0
  self.height ||= 1.0
  self.position_x ||= 0.5
  self.position_y ||= 0.5
  self.opacity ||= 1.0
  self.scale ||= 1.0
  self.blur ||= 0.0
end