Chart aspect ratio buttom improved

This commit is contained in:
Luis Fernando Molina committed 2018-10-03 10:00:56 +02:00
1 parent 292b104168
commit cf73d625b9
4 files changed
+16 -4

No files matched your search

+6 -3
View File
@@ -44,7 +44,7 @@
canDrawIcon = true;
}
icon.src = "Images/aspect.ratio.Y.png";
icon.src = "Images/Icons/chart-scale.png";
thisObject.container.eventHandler.listenToEvent('Mouse Wheel', onMouseWheel);
@@ -52,6 +52,8 @@
function onMouseWheel(pDelta) {
if (viewPort.isMinZoom() === false) { return; } // We only make this button to work at the min zoom level.
if (pDelta < 0) {
pDelta = -0.1;
} else {
@@ -100,11 +102,12 @@
thisObject.container.frame.draw(false, false);
if (canDrawIcon === false) { return; }
if (viewPort.isMinZoom() === false) { return; } // We only show this button at the min zoom level.
let breakpointsHeight = 15;
let imageHeight = 30;
let imageWidth = 30;
let imageHeight = 15;
let imageWidth = 15;
let imagePoint = {
x: 10,