Changeset - d6b7567e8d19
[Not reviewed]
default
0 3 0
Drew Perttula - 6 years ago 2019-06-06 12:00:27
drewp@bigasterisk.com
testing image effect graphics on timeline
Ignore-this: ccaf058be152ebd8fa5d50517a157270
3 files changed with 7 insertions and 1 deletions:
0 comments (0 inline, 0 general)
light9/web/timeline/inline-attrs.html
Show inline comments
 
@@ -24,10 +24,10 @@
 
      <table>
 
        <tr><th>effect:</th><td><edit-choice id="effect" graph="{{graph}}" uri="{{effectStr}}"></edit-choice></td></tr>
 
        <tr><th>colorScale:</th><td>
 
          <light9-color-picker color="{{colorScale}}"></light9-color-picker>
 
        </td></tr>
 
      </table>
 

	
 
      <img src="/show/dance2019/anim/rainbow1.png">
 
  </template>
 
  <script src="inline-attrs.js"></script>
 
</dom-module>
light9/web/timeline/timeline-elements.html
Show inline comments
 
@@ -120,12 +120,15 @@
 
                             song="{{song}}"
 
                             show="{{show}}"
 
                             zoom="{{zoomFlattened}}">
 
      </light9-timeline-audio>
 
    </div>
 
    <div id="rows"></div>
 
    <template is="dom-repeat" items="{{imageSamples}}">
 
      <img src="/show/dance2019/anim/rainbow1.png">
 
    </template>
 
    <template is="dom-repeat" items="{{inlineAttrConfigs}}">
 
      <light9-timeline-note-inline-attrs graph="{{graph}}"
 
                                         project="{{project}}"
 
                                         selection="{{selection}}"
 
                                         song="{{song}}"
 
                                         config="{{item}}">
light9/web/timeline/timeline.coffee
Show inline comments
 
@@ -288,12 +288,13 @@ coffeeElementSetup(class TimeZoomed exte
 
    graph: { type: Object, notify: true }
 
    project: { type: Object }
 
    selection: { type: Object, notify: true }
 
    song: { type: String, notify: true }
 
    viewState: { type: Object, notify: true }
 
    inlineAttrConfigs: { type: Array, value: [] } # only for inlineattrs that should be displayed
 
    imageSamples: { type: Array, value: [] }
 
  @getter_observers: [
 
    '_onGraph(graph, setAdjuster, song, viewState, project)',
 
    'onZoom(viewState)',
 
    '_onViewState(viewState)',
 
  ]
 
  constructor: ->
 
@@ -313,12 +314,14 @@ coffeeElementSetup(class TimeZoomed exte
 

	
 
    @dirty = _.debounce(@_repaint.bind(@), 10)
 

	
 
  ready: ->
 
    super.ready()
 

	
 
    @imageSamples = ['one']
 

	
 
    @addEventListener('iron-resize', @_onResize.bind(@))
 
    Polymer.RenderStatus.afterNextRender(this, @_onResize.bind(@))
 

	
 
    @$.rows.appendChild(@renderer.view)
 

	
 
    # This works for display, but pixi hit events didn't correctly
0 comments (0 inline, 0 general)