bpmn-js/lib/NavigatedViewer.js

28 lines
608 B
JavaScript
Raw Normal View History

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