Class: AnimateIt::Tracks::Layer
- Inherits:
-
Data
- Object
- Data
- AnimateIt::Tracks::Layer
- Defined in:
- lib/animate_it/tracks/layer.rb
Overview
One structural slice of a composition: a scene segment's DOM rendered
at from_frame, shown by the client runtime for frames in
[from_frame, to_frame). Layers are the union of timeline-segment
windows and structure_epochs boundaries.
Instance Attribute Summary collapse
-
#from_frame ⇒ Object
readonly
Returns the value of attribute from_frame.
-
#segment ⇒ Object
readonly
Returns the value of attribute segment.
-
#segment_index ⇒ Object
readonly
Returns the value of attribute segment_index.
-
#to_frame ⇒ Object
readonly
Returns the value of attribute to_frame.
Instance Method Summary collapse
Instance Attribute Details
#from_frame ⇒ Object (readonly)
Returns the value of attribute from_frame
7 8 9 |
# File 'lib/animate_it/tracks/layer.rb', line 7 def from_frame @from_frame end |
#segment ⇒ Object (readonly)
Returns the value of attribute segment
7 8 9 |
# File 'lib/animate_it/tracks/layer.rb', line 7 def segment @segment end |
#segment_index ⇒ Object (readonly)
Returns the value of attribute segment_index
7 8 9 |
# File 'lib/animate_it/tracks/layer.rb', line 7 def segment_index @segment_index end |
#to_frame ⇒ Object (readonly)
Returns the value of attribute to_frame
7 8 9 |
# File 'lib/animate_it/tracks/layer.rb', line 7 def to_frame @to_frame end |
Instance Method Details
#key ⇒ Object
8 9 10 |
# File 'lib/animate_it/tracks/layer.rb', line 8 def key "s#{segment_index}/e#{from_frame}" end |