Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

Commit 08889d8

Browse files
authored
Added declarations for some undeclared variables. (#210)
1 parent c8ff5d4 commit 08889d8

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/idd/idd.animation.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ InteractiveDataDisplay.PanZoomAnimation = function () {
5555
var screenSize = undefined;
5656
var startPlotRect = undefined;
5757
var estimatedPlotRect = undefined;
58+
var startCS = undefined;
59+
60+
var startScreenCenter = undefined;
61+
var previousFrameScreenCenter = undefined;
62+
var endScreenCenter = undefined;
5863

5964
var prevTime = new Date();
6065
var prevFramePlotRect = undefined;

src/idd/idd.navigation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ InteractiveDataDisplay.Navigation = function (_plot, _setVisibleRegion) {
1212
var screenWidth = plot.screenSize.width;
1313
var screenHeight = plot.screenSize.width;
1414

15-
ct = plot.coordinateTransform;
16-
vis = ct.getPlotRect({ x: 0, y: 0, width: screenWidth, height: screenHeight });
15+
var ct = plot.coordinateTransform;
16+
var vis = ct.getPlotRect({ x: 0, y: 0, width: screenWidth, height: screenHeight });
1717

1818
var scaleToReport = screenWidth/vis.width;
1919
//console.log('navigation: plot x='+vis.x+' y='+vis.y+' w='+vis.width+' h='+vis.height);

0 commit comments

Comments
 (0)