bpmn-js/lib/NavigatedViewer.js

26 lines
643 B
JavaScript
Raw Normal View History

import inherits from 'inherits';
2015-03-23 14:15:32 +00:00
import Viewer from './Viewer';
import MoveCanvasModule from 'diagram-js/lib/navigation/movecanvas';
import ZoomScrollModule from 'diagram-js/lib/navigation/zoomscroll';
/**
* A viewer that includes mouse navigation facilities
*
* @param {Object} options
*/
export default function NavigatedViewer(options) {
Viewer.call(this, options);
}
2015-03-23 14:15:32 +00:00
inherits(NavigatedViewer, Viewer);
NavigatedViewer.prototype._navigationModules = [
MoveCanvasModule,
ZoomScrollModule
];
NavigatedViewer.prototype._modules = [].concat(
NavigatedViewer.prototype._modules,
NavigatedViewer.prototype._navigationModules);