feat(renderer): Add getOrAcquire method and enhance get method in RendererWorkingSet implementation

This commit is contained in:
extio-de
2025-12-25 12:49:53 +01:00
parent 478dbc3f3c
commit 5d80ba3f9e
4 changed files with 70 additions and 5 deletions

View File

@@ -120,7 +120,6 @@ rendererWorkingSet.commit(myModule.getId(), true);
var existingRect = rendererWorkingSet.get(myModule.getId(), "myRect");
existingRect.setColor(Color.RED);
existingRect.setPosition(150, 250);
rendererWorkingSet.put(myModule.getId(), existingRect);
// Commit again to apply the changes
rendererWorkingSet.commit(myModule.getId(), true);