Extjs提供了一个Draw package来绘制图形和动画。在绘制图形时,需要包含:Draw Container,Sprites等。
- Draw Container:The Draw Container is a surface to which sprites can be rendered. The Draw Container manages and holds a Surface instance. Depending on the browser, this interface has an SVG or Canvas implementation where Sprites can be appended.Draw Container是一个图层,可以理解为画布,在上面绘制sprites定义的图形。
- Sprites: A sprite is an object rendered in a drawing Surface. They are added to a surface in the getItems() collection. Ext.draw.sprit