0

我正在寻找,但我找不到在煎茶触摸中绘制形状(圆形,方形)的方法,只是为了在平板电脑中拖动该形状。如果有人知道如何做到这一点,将不胜感激。

4

2 回答 2

2

您将需要使用 ext.draw,它是用于 Touch 的Sencha Touch Charts插件的一部分。

于 2011-08-26T23:25:06.443 回答
0

假设您已经在 index.html 中包含了 sencha-touch.js 和 touch-charts.js 文件...

来自Ext.draw.Component上的 Sencha 文档:

var drawComponent = Ext.create('Ext.draw.Component', {
    viewBox: false,
    items: [{
        type: 'circle',
        fill: '#79BB3F',
        radius: 100,
        x: 100,
        y: 100
    }]
});

Ext.create('Ext.Window', {
    width: 215,
    height: 235,
    layout: 'fit',
    items: [drawComponent]
}).show();
于 2011-08-31T21:00:30.707 回答