Describe the bug
Adding Text to Group breaks it. Not only text can't be seen, but other objects in the group also disappear. However, if you create a group with text in one function, it works.
To Reproduce
Steps to reproduce the behavior:
- Go to CodeHS sandbox with JavaScript Graphics
- Put this code
// const group = new Group(new Text("abc123"));
var group = new Group();
group.add(new Text("abc123"));
group.add(new Circle(5));
group.setPosition(0, 0);
add(group);
- Run it. You won't see a circle or a text.
- Try commenting out line 1 and commenting lines 2 and 3. You will see a small circle and a text
Expected behavior
A circle and a text visible in both cases
Screenshots
They are seen only in second case
Desktop
- OS: Windows 10
- Browser Firefox
- Version 110
AND
Desktop
- OS: Chrome OS
- Browser Chrome
- Version 107
Additional context
If you create a group with text in one function, it works.
Describe the bug
Adding Text to Group breaks it. Not only text can't be seen, but other objects in the group also disappear. However, if you create a group with text in one function, it works.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A circle and a text visible in both cases
Screenshots
They are seen only in second case
Desktop
AND
Desktop
Additional context
If you create a group with text in one function, it works.