diff options
author | monikahedman <monika_hedman@brown.edu> | 2020-02-09 17:01:53 -0500 |
---|---|---|
committer | monikahedman <monika_hedman@brown.edu> | 2020-02-09 17:01:53 -0500 |
commit | 45a8133bfaf4e3722db5da833ade42220d303126 (patch) | |
tree | b3fc377cad7d190329c4674e7c9f4ef8e7da18f9 | |
parent | d3f9765c98595788eaeb8b5c0ef52af1cd3adab3 (diff) | |
parent | cf291047a4ba25c0bf56cb3f4255ec9bc929e420 (diff) |
Merge branch 'monika_animation' of https://github.com/browngraphicslab/Dash-Web into monika_animation
-rw-r--r-- | src/client/views/animationtimeline/Timeline.tsx | 6 | ||||
-rw-r--r-- | src/client/views/animationtimeline/Track.tsx | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/client/views/animationtimeline/Timeline.tsx b/src/client/views/animationtimeline/Timeline.tsx index 256b98ffa..9d5f2d769 100644 --- a/src/client/views/animationtimeline/Timeline.tsx +++ b/src/client/views/animationtimeline/Timeline.tsx @@ -561,8 +561,10 @@ export class Timeline extends React.Component<FieldViewProps> { tracks = () => { console.log(this.mapOfTracks.length); this.mapOfTracks.forEach(track => { - if (track !== null) { - track.getLastRegion(); + console.log(track); + if (track) { + const region = track.getLastRegion(); + console.log(region.time); } else { } diff --git a/src/client/views/animationtimeline/Track.tsx b/src/client/views/animationtimeline/Track.tsx index 620668db7..9f63b3562 100644 --- a/src/client/views/animationtimeline/Track.tsx +++ b/src/client/views/animationtimeline/Track.tsx @@ -82,7 +82,7 @@ export class Track extends React.Component<IProps> { getLastRegion = () => { - + console.log(this.regions.length); console.log((this.regions[this.regions.length - 1] as Doc).time); return this.regions[this.regions.length - 1] as Doc; } |