【发布时间】:2012-03-07 13:40:11
【问题描述】:
Sencha Touch Charts 1 是否与 Sencha Touch 2 兼容?
例如
我希望这是在一个 html 中(../touch 是 Sencha Touch 2 版本):
<title>Simple Animation with Sprites</title>
<script type="text/javascript" src="../touch-charts/sencha-touch-debug.js"></script>
<script type="text/javascript" src="../touch-charts/touch-charts-debug.js"></script>
<script type="text/javascript" src="app.js"></script>
而app.js 包含:
Ext.application({
name: 'Animation',
requires: [
'Ext.draw.Component'
],
launch: function() {
var titleVisible = false;
var drawComponent = new Ext.draw.Component({
items: [{
type: 'circle',
fill: '#EECC00',
radius: 100,
x: 200,
y: 200
}]
});
Ext.Viewport.add({
xtype: 'panel',
id: 'panel-container',
fullscreen: true,
layout: fit,
items: [drawComponent]
});
drawComponent.surface.renderFrame();
}
});
可能会给我一个圆圈。
相反,我在 touch-charts-debug.js 的第 339 行得到一个异常,表明 Ext.util.Observable 不存在。
这是否意味着 Charts 1 与 Touch 2 不兼容?
【问题讨论】:
标签: sencha-touch-2 sencha-charts