123456789101112131415161718192021222324252627282930313233 |
- import {
- CommandInterceptor
- } from "./chunk-6IT32OMX.js";
- import {
- e
- } from "./chunk-6C2KFJ7V.js";
- import "./chunk-4AK4GF4H.js";
- import "./chunk-2LSFTFF7.js";
- // node_modules/.pnpm/diagram-js@11.9.1/node_modules/diagram-js/lib/features/rules/RuleProvider.js
- function RuleProvider(eventBus) {
- CommandInterceptor.call(this, eventBus);
- this.init();
- }
- RuleProvider.$inject = ["eventBus"];
- e(RuleProvider, CommandInterceptor);
- RuleProvider.prototype.addRule = function(actions, priority, fn) {
- var self = this;
- if (typeof actions === "string") {
- actions = [actions];
- }
- actions.forEach(function(action) {
- self.canExecute(action, priority, function(context, action2, event) {
- return fn(context);
- }, true);
- });
- };
- RuleProvider.prototype.init = function() {
- };
- export {
- RuleProvider as default
- };
- //# sourceMappingURL=diagram-js_lib_features_rules_RuleProvider.js.map
|