add compositeChild flag to prevent copying
desandro opened this issue · comments
David DeSandro commented
A to-do for me. The composite shapes have some API weirdness:
- Currently
Box
usesBoxRect
class, which like aRect
only it isn't copied withcopyGraph
, because aBox
will add its onBoxRect
children when created. Cone
also has aAnchor
which gets duplicated, it should be aConeAnchor
or something.- And I'm considering adding an
Anchor
insideHemisphere
for keeping track of its apex.
Rather than creating special classes like BoxRect
, I think a cleaner solution would be to add a flag property like compositeChild
. So that items with this flag will not get copied with copyGraph
.