Chart aspect ratio buttom improved
This commit is contained in:
1 parent
292b104168
commit
cf73d625b9
4 files changed
+16
-4
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user