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 Aug 13, 2024
1 parent 7926db3 commit ec76c8c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions app-latest-build/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9709,21 +9709,38 @@ class InitializerService {
}
});
let pasteColor = [];
let pasteText = [];
let pasteHeight = [];
eventBus.on('copyPaste.pasteElement', 10000, e => {
console.log('old: ', e.descriptor.oldBusinessObject);
pasteColor.push(e.descriptor.oldBusinessObject.pickedColor);
if (e.descriptor.oldBusinessObject.type.includes(_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_0__.ElementTypes.TEXTANNOTATION)) {
pasteText.push(e.descriptor.oldBusinessObject.text ?? '');
pasteHeight.push(e.descriptor.oldBusinessObject.height);
}
});
eventBus.on('create.end', e => {
if (!pasteColor) {
return;
}
for (let elementsKey in e.elements) {
const element = e.elements[elementsKey];
if (element.businessObject.type.includes(_domain_entities_elementTypes__WEBPACK_IMPORTED_MODULE_0__.ElementTypes.TEXTANNOTATION)) {
element.businessObject.text = pasteText[0];
element.businessObject.number = pasteHeight[0];
element.businessObject.height = pasteHeight[0];
pasteText.shift();
pasteHeight.shift();
}
console.log('new: ', element.businessObject);
element.businessObject.pickedColor = pasteColor[parseInt(elementsKey)];
eventBus.fire('element.changed', {
element
});
}
pasteColor = [];
pasteText = [];
pasteHeight = [];
});
}
/** Overrrides for Canvas Functions **/
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 ec76c8c

Please sign in to comment.