Class: Flms::ParagraphLayerViewObject
- Inherits:
-
LayerViewObject
- Object
- LayerViewObject
- Flms::ParagraphLayerViewObject
- Defined in:
- app/view_objects/flms/paragraph_layer_view_object.rb
Instance Method Summary collapse
Methods inherited from LayerViewObject
#initialize, #keyframe_data_hash, link_path_for, #view_partial_name
Constructor Details
This class inherits a constructor from Flms::LayerViewObject
Instance Method Details
#attributes(scroll_offset = 0) ⇒ Object
4 5 6 7 8 9 |
# File 'app/view_objects/flms/paragraph_layer_view_object.rb', line 4 def attributes(scroll_offset = 0) attributes = keyframe_data_hash(scroll_offset) attributes[:id] = @layer.name attributes[:style] += "color: \##{ @layer.color };" attributes end |