Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
0.18.4 source code.tar.gz | 2024-02-04 | 556.9 kB | |
0.18.4 source code.zip | 2024-02-04 | 710.8 kB | |
README.md | 2024-02-04 | 638 Bytes | |
Totals: 3 Items | 1.3 MB | 0 |
This version removes the features introduced in the previous release. We noticed that the proposed solution did not update the undo stack. As a result, we removed that feature in this version. Instead, we added a new method to the Designer class called replaceDefinition
, which allows for the replacement of the entire definition and updates the undo stack.
:::ts
function appendStep() {
const newStep: Step = { /* ... */ };
const newDefinition = ObjectCloner.deepClone(designer.getDefinition());
newDefinition.sequence.push(newStep);
await designer.replaceDefinition(newDefinition);
}