In GXT 3.0.0, it looks like the Surface.getSprites() method was removed.
This method, in prior versions like RC, returned a SpriteList object, which had a clear() method():
Clears all items from the composite and removes them their surface.
This allowed something like this, for removing all Sprites from a drawing/surface:
// clear the dashboard drawing.
SpriteList<Sprite> sprites = drawing.getSurface().getSprites();
With the changes in 3.0.0 chart/draw, I see no simple way of doing this. I assume this is a mistake/oversight, because surely we are not expected to iterate over every Sprite in a Surface in order to call Sprite.remove.
Please advise on how to clear a DrawComponent or Surface of all its Sprites.