2015-02-02 13:46:21 +00:00
|
|
|
'use strict';
|
|
|
|
|
2015-01-10 11:04:26 +00:00
|
|
|
var Viewer = require('./Viewer');
|
|
|
|
|
2015-02-02 13:46:21 +00:00
|
|
|
|
2015-01-10 11:04:26 +00:00
|
|
|
/**
|
|
|
|
* A viewer that includes mouse navigation facilities
|
|
|
|
*
|
|
|
|
* @param {Object} options
|
|
|
|
*/
|
|
|
|
function NavigatedViewer(options) {
|
|
|
|
Viewer.call(this, options);
|
|
|
|
}
|
|
|
|
|
|
|
|
NavigatedViewer.prototype = Object.create(Viewer.prototype);
|
|
|
|
|
|
|
|
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);
|