Using your existing storage implementation is not an issue. You can store your elements in whatever store you're already using, mutate them there and pass the result to Vue Flow.
In this example we use pinia to store our elements, update their positions and toggle classes.