2018-04-02 19:01:53 +00:00
|
|
|
import inherits from 'inherits';
|
2015-03-23 14:15:32 +00:00
|
|
|
|
2018-04-02 19:01:53 +00:00
|
|
|
import Viewer from './Viewer';
|
2015-01-10 11:04:26 +00:00
|
|
|
|
2018-10-26 22:54:31 +00:00
|
|
|
import KeyboardMoveModule from 'diagram-js/lib/navigation/keyboard-move';
|
2018-04-02 19:01:53 +00:00
|
|
|
import MoveCanvasModule from 'diagram-js/lib/navigation/movecanvas';
|
|
|
|
import ZoomScrollModule from 'diagram-js/lib/navigation/zoomscroll';
|
2015-02-02 13:46:21 +00:00
|
|
|
|
2019-12-01 14:18:09 +00:00
|
|
|
|
2015-01-10 11:04:26 +00:00
|
|
|
/**
|
|
|
|
* A viewer that includes mouse navigation facilities
|
|
|
|
*
|
|
|
|
* @param {Object} options
|
|
|
|
*/
|
2018-04-02 19:01:53 +00:00
|
|
|
export default function NavigatedViewer(options) {
|
2015-01-10 11:04:26 +00:00
|
|
|
Viewer.call(this, options);
|
|
|
|
}
|
|
|
|
|
2015-03-23 14:15:32 +00:00
|
|
|
inherits(NavigatedViewer, Viewer);
|
2015-01-10 11:04:26 +00:00
|
|
|
|
2019-12-01 14:18:09 +00:00
|
|
|
|
2015-01-10 11:04:26 +00:00
|
|
|
NavigatedViewer.prototype._navigationModules = [
|
2018-10-26 22:54:31 +00:00
|
|
|
KeyboardMoveModule,
|
2018-04-02 19:01:53 +00:00
|
|
|
MoveCanvasModule,
|
|
|
|
ZoomScrollModule
|
2015-01-10 11:04:26 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
NavigatedViewer.prototype._modules = [].concat(
|
2019-12-01 14:18:09 +00:00
|
|
|
Viewer.prototype._modules,
|
|
|
|
NavigatedViewer.prototype._navigationModules
|
|
|
|
);
|