UNPKG

postit-js-core

Version:

[![Netlify Status](https://api.netlify.com/api/v1/badges/72130b1d-f56b-473e-8f3b-50a5af916e64/deploy-status)](https://app.netlify.com/sites/postit-js-demo/deploys) ![Build Status](https://github.com/pinussilvestrus/postit-js/workflows/ci/badge.svg)

25 lines (19 loc) 642 B
import inherits from 'inherits'; import CoreModule from './core'; import TranslateModule from 'diagram-js/lib/i18n/translate'; import SelectionModule from 'diagram-js/lib/features/selection'; import OverlaysModule from 'diagram-js/lib/features/overlays'; import BaseViewer from './BaseViewer'; export default function Viewer(options) { BaseViewer.call(this, options); } inherits(Viewer, BaseViewer); // modules the viewer is composed of Viewer.prototype._modules = [ CoreModule, TranslateModule, SelectionModule, OverlaysModule ]; // default moddle extensions the viewer is composed of Viewer.prototype._moddleExtensions = {};