Zoom Box Plugin allows to zoom Y dimension only.
Resource : sample source code
Learn : javascript zoom box plugin sources
Zoom Box mode Y
var zoombox = new JenScript.ZoomBoxPlugin({
mode : 'by',
zoomBoxDrawColor : 'cyan',
zoomBoxFillColor : 'pink'
});
proj.registerPlugin(zoombox);
zoombox.select();