You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After creating a Shape object such as a Box, setting properties like color do not set the property for children such as rectangles that make up the faces.
Example:
let box = new Zdog.Box({
addTo: scene,
color: '#fa0',
...
});
box.color = '#ef9';
This will set the parent item's color to '#ef9' but not the children which have their own color properties. Children can currently be set by iterating through the parent item and setting the color property for each child Shape.
Having a method to update the color for all children would be a useful feature.
After creating a Shape object such as a Box, setting properties like
color
do not set the property for children such as rectangles that make up the faces.Example:
This will set the parent item's color to '#ef9' but not the children which have their own color properties. Children can currently be set by iterating through the parent item and setting the color property for each child Shape.
Having a method to update the color for all children would be a useful feature.
Test case: https://codepen.io/alexgoff/pen/vqBLEj
The text was updated successfully, but these errors were encountered: