Sha256: fb49b88642fd76d60d25291974e4dfa91301e8874617c088a74cb38c9f6739ea

Contents?: true

Size: 437 Bytes

Versions: 2

Compression:

Stored size: 437 Bytes

Contents

module Flms
  class TargetStateKeyframe < Keyframe
    after_initialize :set_default_values

    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
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flms-0.9.0 app/models/flms/target_state_keyframe.rb
flms-0.1.0 app/models/flms/target_state_keyframe.rb