1. #1
    Touch Premium Member
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    1,299
    Vote Rating
    109
    LesJ is a glorious beacon of light LesJ is a glorious beacon of light LesJ is a glorious beacon of light LesJ is a glorious beacon of light LesJ is a glorious beacon of light LesJ is a glorious beacon of light

      0  

    Default draw.Text - Rotate Text.html example feedback

    draw.Text - Rotate Text.html example feedback


    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.

    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?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,604
    Vote Rating
    818
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    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.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1