Extjs学习——绘图

本文介绍了ExtJS中的绘图功能,主要涉及Draw Container和Sprites的概念。Draw Container作为图形渲染的表面,管理和持有Surface实例,支持SVG或Canvas实现。Sprites是绘制在Surface上的对象,可用来创建各种图形如circle、rect、path等。通过定义Draw Container的尺寸和Sprites的属性(如颜色、位置、大小),可以实现丰富的图形和文字展示。
摘要由CSDN通过智能技术生成

  Extjs提供了一个Draw package来绘制图形和动画。在绘制图形时,需要包含:Draw Container,Sprites等。

  •  Draw ContainerThe 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
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值