- What is the recommended technique to toggle the visibility of both the timeline and the animation control? We would like to switch between animation views and “aggregate” views that do not rely upon entity availability for visibility. The following works, but is there a better method?
if ($scope.timelineContainer == null) {
$scope.timelineContainer = viewer._timeline.container;
$scope.animationContainer = viewer._animation.container;
}
if (showClock && $scope.timelineContainer.parentNode != viewer._element) {
viewer._element.appendChild($scope.timelineContainer);
viewer._element.appendChild($scope.animationContainer);
} else if (!showClock && $scope.timelineContainer.parentNode == viewer._element) {
viewer._element.removeChild($scope.timelineContainer);
viewer._element.removeChild($scope.animationContainer);
}
- When hiding the Timeline and Animation controls, what is the recommended technique for “refreshing” the CreditDisplay so that it redraws at the bottom of the Viewer screen? (And vice versa when restoring the Timeline and Animation controls.)