Mercurial > code > home > repos > light9
changeset 1320:f40b1796d956
remove old DOM cursor. we just use svg now
Ignore-this: 90d83ea8247976cd8e44415a12b3fc44
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Fri, 03 Jun 2016 21:58:57 +0000 |
parents | a6259ab66885 |
children | 715a442c2635 |
files | light9/web/timeline-elements.html |
diffstat | 1 files changed, 0 insertions(+), 35 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/web/timeline-elements.html Fri Jun 03 21:43:22 2016 +0000 +++ b/light9/web/timeline-elements.html Fri Jun 03 21:58:57 2016 +0000 @@ -60,11 +60,6 @@ height: 100%; } - light9-timeline-cursor { - width: 0; - height: 100%; - z-index: 1; - } light9-timeline-audio { width: 100%; height: 90px; @@ -253,36 +248,6 @@ </script> </dom-module> -<!-- playback cursor on top of everything. Maybe other cursors too: hover, snap, etc --> -<dom-module id="light9-timeline-cursor"> - <template> - <style> - :host { - /* parent has arranged for us to be 0 wide and the proper height */ - } - div { - background: red; - position: relative; - height: 100%; - width: 3px; - box-shadow: 3px 0 5px rgba(0, 0, 0, 0.34); - } - </style> - <div style="left: {{x}}px"></div> - </template> - <script> - Polymer({ - is: "light9-timeline-cursor", - properties: { - x: {type: Number} - }, - ready: function () { - setInterval(function() { this.x = 50 + 35 * Math.sin(Date.now()/4); }.bind(this), 50); - } - }); - </script> -</dom-module> - <!-- One trapezoid note shape in a row. This element has the right Y coords. We compute X coords from the zoom setting.