viewcontrol.js   viewcontrol.js 
define(["jquery", "api/viewcontrol", "api/viewoptions", "api/actions", "jqu ery-ui"], function($, viewControlApi, viewOptionApi, actionApi) { define(["jquery", "api/viewcontrol", "api/viewoptions", "api/actions", "jqu ery-ui"], function($, viewControlApi, viewOptionApi, actionApi) {
"use strict"; "use strict";
var $view_fov; var $view_fov;
var view_fov_text; var view_fov_text;
var view_projection;
var minFov = 0.001389; var minFov = 0.001389;
//TODO make this depend on current projection //TODO make this depend on current projection
var maxFov = 360; var maxFov = 360;
var fovSteps = 1000; var fovSteps = 1000;
//sets the FOV slider from a given fov //sets the FOV slider from a given fov
function setFovSlider(fov) { function setFovSlider(fov) {
//inverse of handleFovSlide //inverse of handleFovSlide
var val = Math.pow(((fov - minFov) / (maxFov - minFov)), 1 / 4); var val = Math.pow(((fov - minFov) / (maxFov - minFov)), 1 / 4);
skipping to change at line 75 skipping to change at line 74
stop: function(evt, ui) { stop: function(evt, ui) {
console.log("slide stop"); console.log("slide stop");
} }
}); });
$("#view_center").click(function(evt) { $("#view_center").click(function(evt) {
actionApi.execute("actionGoto_Selected_Object"); actionApi.execute("actionGoto_Selected_Object");
}); });
view_fov_text = document.getElementById("view_fov_text"); view_fov_text = document.getElementById("view_fov_text");
view_projection = document.getElementById("view_projection") ;
} }
$(viewOptionApi).on("projectionChanged", function(evt, proj, str) {
view_projection.textContent = str;
});
$(viewControlApi).on("fovChanged", function(evt, fov) { $(viewControlApi).on("fovChanged", function(evt, fov) {
setFovText(fov); setFovText(fov);
setFovSlider(fov); setFovSlider(fov);
}); });
$(initControls); $(initControls);
}); });
 End of changes. 3 change blocks. 
6 lines changed or deleted 0 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/