Changeset - b355f8089950
[Not reviewed]
default
0 2 0
Drew Perttula - 9 years ago 2016-06-04 08:52:38
drewp@bigasterisk.com
move row & note elements to coffee
Ignore-this: fa6a3b252138df332e1eb166353509ff
2 files changed with 14 insertions and 35 deletions:
0 comments (0 inline, 0 general)
light9/web/timeline-elements.html
Show inline comments
 
@@ -68,7 +68,6 @@
 
         display: flex;
 
         flex-direction: column;
 
         height: 100%;
 

	
 
     }
 
     light9-timeline-audio {
 
         width: 100%;
 
@@ -183,17 +182,6 @@
 
      <light9-timeline-note></light9-timeline-note>
 
    </template>
 
  </template>
 
  <script>
 
   Polymer({
 
       is: "light9-timeline-graph-row",
 
       behaviors: [
 
           Polymer.IronResizableBehavior
 
       ],
 
       properties: {
 
           
 
       }
 
   });
 
  </script>
 
</dom-module>
 

	
 
<!-- One trapezoid note shape in a row.
 
@@ -211,26 +199,6 @@
 
    </style>
 
    <light9-timeline-note-inline-attrs></light9-timeline-note-inline-attrs>
 
  </template>
 
  <script>
 
   window.xserial = 0;
 
   Polymer({
 
       is: "light9-timeline-note",
 
       behaviors: [
 
           Polymer.IronResizableBehavior
 
       ],
 
       listeners: {
 
           'iron-resize': '_onIronResize'
 
       },
 
       properties: {
 
       },
 
       
 
       _onIronResize: function() {
 

	
 
           setNote('myuri', 60 + 150 * (window.xserial++), 180, this.offsetTop, this.offsetTop + this.offsetHeight);
 
           
 
       } 
 
   });
 
  </script>
 
</dom-module>
 

	
 
<!-- All the adjusters you can edit or select.
 
@@ -242,10 +210,7 @@
 
<dom-module id="light9-timeline-adjusters">
 
  <template>
 
    <style>
 
     :host {
 
     }
 
    </style>
 

	
 
    <template is="dom-repeat" items="{{adjs}}">
 
      <light9-timeline-adjuster dia="{{dia}}" adj="{{item}}"></light9-timeline-adjuster>
 
    </template>
light9/web/timeline.coffee
Show inline comments
 
@@ -121,6 +121,20 @@ Polymer
 
  # for now since it's just one line calling dia,
 
  # light9-timeline-editor does our drawing work.
 

	
 
Polymer
 
  is: 'light9-timeline-graph-row'
 
  behaviors: [ Polymer.IronResizableBehavior ]
 
  properties: {}
 

	
 
  
 
window.xserial = 0
 
Polymer
 
  is: 'light9-timeline-note'
 
  behaviors: [ Polymer.IronResizableBehavior ]
 
  listeners: 'iron-resize': '_onIronResize'
 
  properties: {}
 
  _onIronResize: ->
 
    setNote 'myuri', 60 + 150 * window.xserial++, 180, @offsetTop, @offsetTop + @offsetHeight
 

	
 
Polymer
 
  is: "light9-timeline-adjusters"
0 comments (0 inline, 0 general)