Success! Looks like we've fixed this one. According to our records the fix was applied for
a bug in our system
a recent build.
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.
This has been fixed and will be in the next release. Also there is now a direct clearSurface method on DrawComponent.
GXT 3.0.1 has been released and contains this fix.