
On Sat, 2006-11-18 at 19:10 -0400, bulia byak wrote:
Perhaps that's because they really are a special case in SVG spec. Markers are shapes which are supposed to be updated and rendered with the main shape as if they are a group, but they are not regular objects and there's no real group involved. That alone is special enough, and as far as I can see, our code just reflects this. Or am I missing something?
Well, NRArena doesn't know about SVG groups, though. It seems like the best way would be to refactor the NRArenaItem classes so that any item could have children, not just groups.
I actually ended up using a design like that for the canvas in Inkscape Lambda -- it worked out pretty well.
Any-object-with-children is also the direction we evolved in even with SPObject. Originally only SPObjectGroup and SPItemGroup could properly have children, but eventually the having-children stuff got pushed up into SPObject. So I think there's a strong evolutionary pressure in that direction.
-mental