Class: AnimateIt::FramesController
Constant Summary
ApplicationController::NullPolicy
Instance Method Summary
collapse
Instance Method Details
#filmstrip ⇒ Object
17
18
19
20
|
# File 'app/controllers/animate_it/frames_controller.rb', line 17
def filmstrip
@composition = composition
@props = preview_props
end
|
#player ⇒ Object
22
23
24
25
26
27
|
# File 'app/controllers/animate_it/frames_controller.rb', line 22
def player
@composition = composition
@props = preview_props
@track_document = @composition.track_document(props: @props)
TrackDocumentSchema.validate!(@track_document)
end
|
#show ⇒ Object
6
7
8
9
10
11
12
13
14
15
|
# File 'app/controllers/animate_it/frames_controller.rb', line 6
def show
@composition = composition
@frame = params[:frame].to_i
@content = @composition.render_frame(view_context, frame: @frame, props: preview_props)
render(:fragment) if params[:only] == "body"
end
|