Results 1 to 2 of 2

Thread: draw.Text - Rotate Text.html example feedback

  1. #1
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    2,377
    Vote Rating
    720
      -1  

    Default 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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Vote Rating
    1381
      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 @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •