Mercurial > code > home > repos > light9
view web/timeline/TimeAxis.coffee @ 2427:cc69faa87c27
tear up and rewrite ascoltami to emit player state into the graph. web ui works but displays nothing but songs
author | drewp@bigasterisk.com |
---|---|
date | Sat, 25 May 2024 15:44:11 -0700 |
parents | 4556eebe5d73 |
children |
line wrap: on
line source
log = debug('timeline') debug.enable('*') Drawing = window.Drawing ROW_COUNT = 7 @customElement("light9-timeline-time-axis") class TimeAxis extends LitElement @getter_properties: viewState: { type: Object, notify: true, observer: "onViewState" } onViewState: -> ko.computed => dependOn = [@viewState.zoomSpec.t1(), @viewState.zoomSpec.t2()] pxPerTick = 50 axis = d3.axisTop(@viewState.zoomInX).ticks(@viewState.width() / pxPerTick) d3.select(@$.axis).call(axis)