var board = JXG.JSXGraph.initBoard('box',{
boundingbox: [-5, 20, 10, -20],
showCopyright: true,
showNavigation: true,
keepaspectratio: false,
zoom:
{
wheel: true,
enabled: true
},
pan:
{
needTwoFingers: false,
enabled: true
}
});
/**
* zoom: {
* factorX: 1.25, // horizontal zoom factor (multiplied to {@link JXG.Board#zoomX})
* factorY: 1.25, // vertical zoom factor (multiplied to {@link JXG.Board#zoomY})
* wheel: false, // allow zooming by mouse wheel or
* // by pinch-to-toom gesture on touch devices
* needShift: false, // mouse wheel zooming needs pressing of the shift key
* min: 0.001 // minimal values of {@link JXG.Board#zoomX} and {@link JXG.Board#zoomY}, limits zoomOut
* max: 1000.0 // maximal values of {@link JXG.Board#zoomX} and {@link JXG.Board#zoomY}, limits zoomIn
*
* pinchHorizontal: true // Allow pinch-to-zoom to zoom only horizontal axis
* pinchVertical: true // Allow pinch-to-zoom to zoom only vertical axis
* pinchSensitivity: 7 // Sensitivity (in degree) for recognizing horizontal or vertical pinch-to-zoom gestures.
*
* pan: {
* enabled: true // Allow panning
* needTwoFingers: true, // panning is done with two fingers on touch devices
* needShift: true, // mouse panning needs pressing of the shift key
* }
*/