Current Behavior
When calling the draw method, the passed-in data object reference is stored directly on the Pixi display object’s properties. If you later modify the original data, the Pixi display object’s values update as well, leading to confusing side effects.
Expected Behavior
Break the reference link so that modifying the original data after calling draw does not affect the Pixi display object’s stored values.
Steps to Reproduce
- Call the draw method with a data object.
- Modify a property on the original data object.
- Observe that the corresponding property on the Pixi display object has also changed.
Environment
.
Additional Context
No response