diff options
author | ab <abdullah_ahmed@brown.edu> | 2020-02-09 16:15:28 -0500 |
---|---|---|
committer | ab <abdullah_ahmed@brown.edu> | 2020-02-09 16:15:28 -0500 |
commit | 8d28c35bb9cf6ec190dbfed2e2cda8b5d1454efb (patch) | |
tree | fffa6f491cc6049fd18d5c0d54c1f011cff4e04b /src | |
parent | ba835bbe5b31e2ad0badc9f960b75f639e0b02e0 (diff) |
some changes
Diffstat (limited to 'src')
-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 42bb02e85..9e90cc764 100644 --- a/src/client/views/animationtimeline/Timeline.tsx +++ b/src/client/views/animationtimeline/Timeline.tsx @@ -539,8 +539,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; } |