Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: integrate create/append anything #2848

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 50 additions & 56 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@
"@bpmn-io/dmn-migrate": "^0.4.3",
"@bpmn-io/extract-process-variables": "^0.4.3",
"@bpmn-io/form-js": "^0.7.0",
"@bpmn-io/properties-panel": "^0.11.0",
"@bpmn-io/properties-panel": "^0.12.0",
"@bpmn-io/replace-ids": "^0.2.0",
"@ibm/plex": "^6.0.0",
"@sentry/browser": "^6.3.6",
"bpmn-js": "^9.0.3",
"bpmn-js-properties-panel": "^1.0.0-alpha.5",
"bpmn-js-connectors-extension": "github:bpmn-io/bpmn-js-connectors-extension#template-categories-search",
"bpmn-js-properties-panel": "^1.0.0-alpha.7",
"bpmn-moddle": "^7.1.2",
"bpmnlint": "^7.2.1",
"camunda-bpmn-js": "^0.13.0-alpha.4",
"camunda-bpmn-js": "^0.13.0-alpha.5",
"camunda-bpmn-moddle": "^6.1.1",
"camunda-cmmn-moddle": "^1.0.0",
"camunda-dmn-moddle": "^1.1.0",
Expand All @@ -29,7 +30,7 @@
"cmmn-js-properties-panel": "^0.8.3",
"codemirror": "^5.65.2",
"debug": "^4.1.1",
"diagram-js": "^7.8.2",
"diagram-js": "^8.2.1",
"diagram-js-direct-editing": "^1.6.3",
"diagram-js-origin": "^1.3.2",
"dmn-js": "^11.1.2",
Expand Down
11 changes: 10 additions & 1 deletion client/src/app/tabs/bpmn/modeler/BpmnModeler.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ import globalClipboardModule from './features/global-clipboard';
import handToolOnSpaceModule from './features/hand-tool-on-space';
import propertiesPanelKeyboardBindingsModule from './features/properties-panel-keyboard-bindings';

import connectorsExtensionModule from 'bpmn-js-connectors-extension';
nikku marked this conversation as resolved.
Show resolved Hide resolved

import 'bpmn-js-connectors-extension/dist/connectors-extension.css';

import Flags, { DISABLE_ADJUST_ORIGIN } from '../../../../util/Flags';

import 'camunda-bpmn-js/dist/assets/camunda-platform-modeler.css';
Expand All @@ -36,6 +40,10 @@ export default class PlatformBpmnModeler extends BpmnModeler {
disableAdjustOrigin: Flags.get(DISABLE_ADJUST_ORIGIN),
moddleExtensions: {
...(moddleExtensions || {})
},
connectorsExtension: {
appendAnything: true,
elementTemplateChooser: false
}
});
}
Expand All @@ -48,7 +56,8 @@ const extensionModules = [
completeDirectEditingModule,
globalClipboardModule,
handToolOnSpaceModule,
propertiesPanelKeyboardBindingsModule
propertiesPanelKeyboardBindingsModule,
connectorsExtensionModule
];

PlatformBpmnModeler.prototype._modules = [
Expand Down
13 changes: 11 additions & 2 deletions client/src/app/tabs/cloud-bpmn/modeler/BpmnModeler.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ import Flags, {
DISABLE_ADJUST_ORIGIN
} from '../../../../util/Flags';

import connectorsExtensionModule from 'bpmn-js-connectors-extension';

import 'bpmn-js-connectors-extension/dist/connectors-extension.css';

import 'camunda-bpmn-js/dist/assets/camunda-cloud-modeler.css';


Expand All @@ -36,7 +40,11 @@ export default class CloudBpmnModeler extends BpmnModeler {
super({
...otherOptions,
moddleExtensions: moddleExtensions || {},
disableAdjustOrigin: Flags.get(DISABLE_ADJUST_ORIGIN)
disableAdjustOrigin: Flags.get(DISABLE_ADJUST_ORIGIN),
connectorsExtension: {
appendAnything: true,
elementTemplateChooser: false
}
});
}
}
Expand All @@ -49,5 +57,6 @@ CloudBpmnModeler.prototype._modules = [
completeDirectEditingModule,
globalClipboardModule,
handToolOnSpaceModule,
propertiesPanelKeyboardBindingsModule
propertiesPanelKeyboardBindingsModule,
connectorsExtensionModule
];