28 lines
608 B
JavaScript
28 lines
608 B
JavaScript
'use strict';
|
|
|
|
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);
|
|
}
|
|
|
|
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); |