Sha256: eb0fcfc7db50e18c651b28ed35f7512cd36696ed0f05f005529f86cdf9db871c

Contents?: true

Size: 403 Bytes

Versions: 2

Compression:

Stored size: 403 Bytes

Contents

module Flms
  class ParagraphLayerViewObject < Flms::LayerViewObject

    def attributes(scroll_offset = 0)
      attributes = keyframe_data_hash(scroll_offset)
      attributes[:id] = @layer.name
      attributes[:style] += "color: \##{ @layer.color };"
      attributes
    end

  protected

    def style_data_for_keyframes
      { width: @layer.width,
        free_height: true }
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flms-0.9.0 app/view_objects/flms/paragraph_layer_view_object.rb
flms-0.1.0 app/view_objects/flms/paragraph_layer_view_object.rb