update
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import inherits from 'inherits';
|
||||
|
||||
import RuleProvider from 'diagram-js/lib/features/rules/RuleProvider';
|
||||
|
||||
|
||||
export default function CustomRules(eventBus) {
|
||||
RuleProvider.call(this, eventBus);
|
||||
}
|
||||
|
||||
CustomRules.$inject = [ 'eventBus' ];
|
||||
|
||||
inherits(CustomRules, RuleProvider);
|
||||
|
||||
CustomRules.prototype.init = function() {
|
||||
// placeholder
|
||||
};
|
||||
@@ -0,0 +1,6 @@
|
||||
import CustomRules from './CustomRules';
|
||||
|
||||
export default {
|
||||
__init__: [ 'customRules' ],
|
||||
customRules: [ 'type', CustomRules ]
|
||||
};
|
||||
Reference in New Issue
Block a user