Mercurial > hg > ugly-duckling
changeset 371:44ed7a3916c8
Remove changes to offset and zoom when adding layer.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Tue, 30 May 2017 23:21:13 +0100 |
parents | 3fa0c8cab919 |
children | bc2680f0736b |
files | src/app/visualisations/waves-base.component.ts |
diffstat | 1 files changed, 0 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/app/visualisations/waves-base.component.ts Tue May 30 23:01:12 2017 +0100 +++ b/src/app/visualisations/waves-base.component.ts Tue May 30 23:21:13 2017 +0100 @@ -77,8 +77,6 @@ private resetTimelineState($el: ElementRef): void { const height = $el.nativeElement.getBoundingClientRect().height; - this.timeline.timeContext.offset = - 0.5 * this.timeline.timeContext.visibleDuration; // time axis const timeAxis = new Waves.helpers.TimeAxisLayer({ @@ -96,7 +94,6 @@ track: Track, timeContext: any, isAxis: boolean = false): void { - timeContext.zoom = 1.0; if (!layer.timeContext) { layer.setTimeContext(isAxis ? timeContext : new Waves.core.LayerTimeContext(timeContext));