Class: AnimateIt::Tracks::Layer

Inherits:
Data
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#from_frameObject (readonly)

Returns the value of attribute from_frame

Returns:

  • (Object)

    the current value of from_frame



7
8
9
# File 'lib/animate_it/tracks/layer.rb', line 7

def from_frame
  @from_frame
end

#segmentObject (readonly)

Returns the value of attribute segment

Returns:

  • (Object)

    the current value of segment



7
8
9
# File 'lib/animate_it/tracks/layer.rb', line 7

def segment
  @segment
end

#segment_indexObject (readonly)

Returns the value of attribute segment_index

Returns:

  • (Object)

    the current value of segment_index



7
8
9
# File 'lib/animate_it/tracks/layer.rb', line 7

def segment_index
  @segment_index
end

#to_frameObject (readonly)

Returns the value of attribute to_frame

Returns:

  • (Object)

    the current value of to_frame



7
8
9
# File 'lib/animate_it/tracks/layer.rb', line 7

def to_frame
  @to_frame
end

Instance Method Details

#keyObject



8
9
10
# File 'lib/animate_it/tracks/layer.rb', line 8

def key
  "s#{segment_index}/e#{from_frame}"
end