Skip to content

Commit

Permalink
Deploy latest build
Browse files Browse the repository at this point in the history
  • Loading branch information
egon-development committed Jan 28, 2025
1 parent 14eeee6 commit ccc87e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 31 deletions.
41 changes: 11 additions & 30 deletions app-latest-build/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2003,9 +2003,6 @@ function canConnectToAnnotation(source, target, connection) {
// do not allow an annotation connection between an actor or workObject and anything except an annotation
return !(isConnection(connection) && !isAnnotation(target) && (isActor(source) || isWorkObject(source)));
}
/**
* specific rules for custom elements
*/
function DomainStoryRules(eventBus) {
diagram_js_lib_features_rules_RuleProvider__WEBPACK_IMPORTED_MODULE_4__["default"].call(this, eventBus);
}
Expand Down Expand Up @@ -3055,36 +3052,20 @@ function DSModeling(eventBus, elementFactory, commandStack, domainStoryRules) {
}
diagram_js_lib_features_modeling_Modeling__WEBPACK_IMPORTED_MODULE_1__["default"].prototype.updateLabel = function (element, newLabel, newBounds) {
if (element.businessObject ? newLabel !== element.businessObject.name : newLabel !== element.name) {
if (/^domainStory:/.test(element.type)) {
this._commandStack.execute("element.updateCustomLabel", {
element: element,
newLabel: newLabel,
newBounds: newBounds
});
} else {
this._commandStack.execute("element.updateLabel", {
element: element,
newLabel: newLabel,
newBounds: newBounds
});
}
this._commandStack.execute("element.updateLabel", {
element: element,
newLabel: newLabel,
newBounds: newBounds
});
}
};
diagram_js_lib_features_modeling_Modeling__WEBPACK_IMPORTED_MODULE_1__["default"].prototype.updateNumber = function (element, newNumber, newBounds) {
if (element.businessObject ? newNumber !== element.businessObject.number : newNumber !== element.number) {
if (/^domainStory:/.test(element.type)) {
this._commandStack.execute("element.updateCustomLabel", {
element: element,
newNumber: newNumber,
newBounds: newBounds
});
} else {
this._commandStack.execute("element.updateLabel", {
element: element,
newNumber: newNumber,
newBounds: newBounds
});
}
this._commandStack.execute("element.updateLabel", {
element: element,
newNumber: newNumber,
newBounds: newBounds
});
}
};
diagram_js_lib_features_modeling_Modeling__WEBPACK_IMPORTED_MODULE_1__["default"].prototype.replaceShape = function (oldShape, newShape, hints) {
Expand Down Expand Up @@ -3991,7 +3972,7 @@ const NULL_DIMENSIONS = {
* a handler that updates the text or label of an element.
*/
function UpdateLabelHandler(modeling, textRenderer, commandStack) {
commandStack.registerHandler("element.updateCustomLabel", handlerFunction);
commandStack.registerHandler("element.updateLabel", handlerFunction);
function handlerFunction() {
this.execute = function (ctx) {
ctx.oldLabel = (0,_labeling_dsLabelUtil__WEBPACK_IMPORTED_MODULE_0__.getLabel)(ctx.element);
Expand Down
2 changes: 1 addition & 1 deletion app-latest-build/main.js.map

Large diffs are not rendered by default.

0 comments on commit ccc87e9

Please sign in to comment.