-
-
Notifications
You must be signed in to change notification settings - Fork 461
Description
Describe the bug
I'm trying to use a Two.Arc object (in the "extras") and to dynamically update the height and width after adding it to the scene. Binding a function to the update event that changes the rotation, height and width of the arc doesn't result in the width or height of the arc changing. The rotation does update, but I believe the height and width should also update.
To Reproduce
Check out this CodePen example:
https://codepen.io/dickinson0718/pen/vYwRGgv
The rectangle and ellipse dynamically update their width, height, and rotation.
The rotation of the arc dynamically updates, but not the width and height.
I think the height and width update once because in the CodePen example the original arc has a width of 100 and a height of 800, but the rotating image seems to be an arc with width and height of about 200.
Expected behavior
The arc should update in this same way as the rectangle and ellipse in the CodePen example.
Screenshots
CodePen example shows the behavior
Environment (please select one):
- [X ] Code executes in browser (e.g: using script tag to load library)
- Packaged software (e.g: ES6 imports, react, angular, vue.js)
- Running headless (usually Node.js)
Desktop (please complete the following information):
- OS: 14.5
- Chrome
- Version 126.0.6478.61 (Official Build) (arm64)
Smartphone (please complete the following information):
Not checked
Additional context
Thanks for building and maintaining Two.js!