Skip to content

Commit

Permalink
Fix Codacy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrycze-volk committed Jan 30, 2023
1 parent 04a3497 commit 08c9b78
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Resources/Public/Javascript/PageView/Navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ class dlfNavigation {
button: document.querySelector('.page-last'),
getPage: (prevPageNo) => this.docController.numPages - (this.docController.simultaneousPages - 1),
},
}
};

/** @private */
this.pageSelect = document.querySelector('.page-select')
this.pageSelect = document.querySelector('.page-select');

this.registerEvents();
this.updateNavigationControls();
Expand Down
14 changes: 7 additions & 7 deletions Resources/Public/Javascript/PageView/PageView.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ var dlfViewer = function(settings){
* @type {Object|null}
* @private
*/
this.ov_view = null;
this.ovView = null;

/**
* @type {Boolean|false}
Expand Down Expand Up @@ -649,11 +649,11 @@ dlfViewer.prototype.getVisiblePages = function () {
return this.initDoc.pages.map( (page, i) => ({
pageNo: this.initDoc.query.minPage + i,
pageObj: page
}))
}));
} else {
return this.docController.getVisiblePages();
}
}
};

/**
*
Expand All @@ -673,7 +673,7 @@ dlfViewer.prototype.setDocController = function (docController) {
this.docController.eventTarget.addEventListener('tx-dlf-stateChanged', () => {
this.loadPages(this.getVisiblePages());
});
}
};

/**
*
Expand Down Expand Up @@ -891,7 +891,7 @@ dlfViewer.prototype.addMagnifier = function (rotation) {
extent: extent
});

this.ov_view = new ol.View({
this.ovView = new ol.View({
constrainRotation: false,
projection: layerProj,
center: ol.extent.getCenter(extent),
Expand All @@ -901,7 +901,7 @@ dlfViewer.prototype.addMagnifier = function (rotation) {

this.ov_map = new ol.Map({
target: 'ov_map',
view: this.ov_view,
view: this.ovView,
controls: [],
interactions: []
});
Expand All @@ -914,7 +914,7 @@ dlfViewer.prototype.addMagnifier = function (rotation) {

this.map.on('pointermove', function (evt) {
mousePosition = dlfViewer.map.getEventCoordinate(evt.originalEvent);
dlfViewer.ov_view.setCenter(mousePosition);
dlfViewer.ovView.setCenter(mousePosition);
});

var adjustViews = function(sourceView, destMap) {
Expand Down

0 comments on commit 08c9b78

Please sign in to comment.