{ "id": "63505", "key": "TIMOB-2873", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11240", "name": "Release 1.6.0 M07", "archived": true, "released": true, "releaseDate": "2011-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T02:00:19.000+0000", "created": "2011-04-15T03:31:42.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "android", "animation", "feature", "release-1.6.0", "reported-1.6.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T02:00:19.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

The new Matrix based animations only support absolute positions\nin anchorPoint, not 0-1 like our current API dictates. This will\nrequire us to save us a Matrix array internally so we can correctly\napply the rotate() operation with the calculated width/height of\nthe child.

{html}", "attachment": [], "flagged": false, "summary": "Android: Rotate + Scale animations need to support relative anchorPoints", "creator": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "129595", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [15e1a2e25a563b55ff15f42c0f6b4e5e88fb1671])\nTi2DMatrix now saves it's state in a linked list so all operations\ncan be applied in order and relative to widget height/width. scale\nand
\nrotate also now accept \"from\" arguments to allow for more\nfine-grained
\ncontrol of each matrix operation [#2873\nstate:fixed-in-qa]
\n\nhttps://github.com/appcelerator/titanium_mobile/commit/15e1a2e25a56...

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:31:42.000+0000", "updated": "2011-04-15T03:31:42.000+0000" }, { "id": "129596", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Here's the code I used to test this bug:

\n
\n\nvar view = Ti.UI.createLabel({\n    backgroundColor: 'blue',\n    center: {\n        x: '50%',\n        y: '50%'\n    },\n    color: 'white',\n    text: 'Animate me',\n    width: 120, height: 100\n});\n\nvar inout = true;\nwin.add(view);\n\nvar inTransform = Ti.UI.create2DMatrix().rotate(0, 180).scale(1.0, 1.0, 2.0, 2.0);\nvar outTransform = Ti.UI.create2DMatrix().rotate(180, 0).scale(2.0, 2.0, 1.0, 1.0);\n\nview.addEventListener(\"click\", function(e) {\n    view.animate({ transform: inout ? inTransform : outTransform, duration: 800, anchorPoint: { x: 0.5, y: 0.5 }});\n    inout = !inout;\n});\n
{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:31:43.000+0000", "updated": "2011-04-15T03:31:43.000+0000" }, { "id": "129597", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [5b58229a4a9ebaf4f37a9e7e9264f94005d0a39c])\nfix for iterating back in the matrix linked list, don't even try to\ninterpolate frames when the user supplies a transform. this\nmakes
\nconstant transform application much smoother [#2841]\n[#2873]
\n\nhttps://github.com/appcelerator/titanium_mobile/commit/5b58229a4a9e...

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:31:43.000+0000", "updated": "2011-04-15T03:31:43.000+0000" }, { "id": "129598", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "{html}

verified emulator 2.2

{html}", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:31:43.000+0000", "updated": "2011-04-15T03:31:43.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }