bos-bpmn-js
Version:
bosFoundation工作流引擎,基于bpmn-js定制版
20 lines (15 loc) • 601 B
JavaScript
import inherits from 'inherits';
import CustomRenderer from '../modeler/custom/custom-renderer';
import CustomPathMap from '../modeler/custom/custom-path-map';
import Modeler from './custom/Modeler';
const customModules = {
__init__: ['bpmnRenderer', 'pathMap'],
bpmnRenderer: ['type', CustomRenderer],
pathMap: ['type', CustomPathMap]
};
export default function CustomModeler(options) {
Modeler.call(this, options);
this._customElements = [];
}
inherits(CustomModeler, Modeler);
CustomModeler.prototype._modules = [].concat(CustomModeler.prototype._modules, [customModules]);