mirror of
https://github.com/bpmn-io/bpmn-js.git
synced 2025-05-20 00:26:04 +08:00

* use ES6 import / export * UTILS: export individual utilities * TESTS: localize TestHelper includes BREAKING CHANGE: * all utilities export independent functions * library sources got ported to ES6. You must now use a ES module bundler such as Browserify + babelify or Webpack to consume this library (or parts of it).
28 lines
658 B
JavaScript
28 lines
658 B
JavaScript
'use strict';
|
|
|
|
import inherits from 'inherits';
|
|
|
|
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);
|
|
}
|
|
|
|
inherits(NavigatedViewer, Viewer);
|
|
|
|
NavigatedViewer.prototype._navigationModules = [
|
|
MoveCanvasModule,
|
|
ZoomScrollModule
|
|
];
|
|
|
|
NavigatedViewer.prototype._modules = [].concat(
|
|
NavigatedViewer.prototype._modules,
|
|
NavigatedViewer.prototype._navigationModules); |