rochbu
6 Nov 2011, 5:58 AM
I'm porting a small javascript html canvas app to Sencha touch.
The docs indicate you can use Ext.draw.Component and get access to basic graphics.
1st issue was Ext.Loader not enabled... so I've done that.
Next error is:
TypeError: 'null' is not a constructor (evaluating 'new c(a[0])')
source snippet is:
Ext.application({
name: 'Explore',
launch: function() {
Ext.Loader.setConfig({enabled : true});
var drawComponent = Ext.create('Ext.draw.Component', {
viewBox: false,
items: [{
type: 'circle',
fill: '#ffc',
radius: 100,
x: 100,
y: 100
}]
});
The docs indicate you can use Ext.draw.Component and get access to basic graphics.
1st issue was Ext.Loader not enabled... so I've done that.
Next error is:
TypeError: 'null' is not a constructor (evaluating 'new c(a[0])')
source snippet is:
Ext.application({
name: 'Explore',
launch: function() {
Ext.Loader.setConfig({enabled : true});
var drawComponent = Ext.create('Ext.draw.Component', {
viewBox: false,
items: [{
type: 'circle',
fill: '#ffc',
radius: 100,
x: 100,
y: 100
}]
});