Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-1639

Use Matrix2D/Matrix3D instead of 2DMatrix/3DMatrix

    Details

      Description

      Description

      TIMOB-26137 deprecates the use of 2DMatrix/3DMatrix for Matrix2D/Matrix3D, the Alloy codebase uses these

      2DMatrix usage

      $rg -n -w -i create2DMatrix
      Alloy/builtins/animation.js
      199:		view.transform = Ti.UI.create2DMatrix();
      206:		transform: Ti.UI.create2DMatrix().scale(1.05, 1.05),
      210:		transform: Ti.UI.create2DMatrix(),
      228:		transform: Ti.UI.create2DMatrix().translate(5, 0),
      232:		transform: Ti.UI.create2DMatrix().translate(-5, 0),
      236:		transform: Ti.UI.create2DMatrix().translate(5, 0),
      240:		transform: Ti.UI.create2DMatrix().translate(-5, 0),
      244:		transform: Ti.UI.create2DMatrix(),
       
      Alloy/template/lib/alloy.js
      37:var IDENTITY_TRANSFORM = OS_ANDROID ? Ti.UI.create2DMatrix() : undefined;
       
      test/apps/testing/ALOY-717/alloy.js
      1:Alloy.Globals.transform = Ti.UI.create2DMatrix().rotate(45);
       
      samples/apps/advanced/themes/alloy.js
      1:Alloy.CFG.sliderTransform = Ti.UI.create2DMatrix().rotate(-90);
      

      3DMatrix usage

      $rg -n -w -i create3DMatrix
      Alloy/builtins/animation.js
      37:	var flipped_matrix = Ti.UI.create3DMatrix().rotate(
      49:		var unflipped_matrix = Ti.UI.create3DMatrix().rotate(
      

      I think we'll need to wrap these in SDK 8 checks? Do you know Feon Sua Xin Miao?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fmiao Feon Sua Xin Miao
                Reporter:
                eharris Ewan Harris
                Reviewer:
                Ewan Harris
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration