PDA

View Full Version : draw.Text - Rotate Text.html example feedback



LesJ
21 Dec 2011, 11:52 AM
I modified the RotateText.js file. Text rotation is very uneven (in VML or SVG ) when I use the setAngle method instead of the commented out code.


Ext.create('Ext.slider.Single', {
renderTo: Ext.get('slider-ph'),
hideLabel: true,
width: 400,
minValue: 0,
maxValue: 360,
value: 315,
listeners: {
change: function(slider, value) {
// var sprite = Ext.getCmp('snappy').surface.items.first();
// sprite.setAttributes({
// rotation: {
// degrees: value
// }
// }, true);
Ext.getCmp('snappy').setAngle(value); // new code
}
}
});

Is the Text component going to be included in 4.1 final?

mitchellsimoens
21 Dec 2011, 3:16 PM
It looks like the Text component is ready. We will find out for sure with beta 1 drops soon but it's in the git repo.