Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18749] Windows: Implement Ti.UI.2DMatrix proxy

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2015-04-30T10:03:53.000+0000
Affected Version/sn/a
Fix Version/sRelease 4.1.0
ComponentsWindows
Labelsn/a
ReporterChristopher Williams
AssigneeChristopher Williams
Created2015-03-27T14:10:39.000+0000
Updated2017-03-14T20:13:08.000+0000

Description

http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.UI.2DMatrix Note that Ti.UI.create2DMatrix() takes a special object defined as: http://docs.appcelerator.com/titanium/3.0/#!/api/MatrixCreationDict We should represent that with a struct, much as we do other defined-object abstract types such as Point or Dimension. This class is used in conjunction with Ti.UI.Animation, which eventually is consumed in the Ti.UI.View.animate() method. It seems to map 1:1 to https://msdn.microsoft.com/en-us/library/ie/windows.ui.xaml.media.matrixtransform

Properties

- a : Number - b : Number - c : Number - d : Number - tx : Number - Amount to move horizontally? - ty : Number - Amount to move vertically?

Methods

- invert( ) : Titanium.UI.2DMatrix - multiply( Titanium.UI.2DMatrix m2 ) : Titanium.UI.2DMatrix - rotate( Number angle, \[toAngle] ) : Titanium.UI.2DMatrix - scale( Number sx, Number sy, \[toSx], \[toSy] ) : Titanium.UI.2DMatrix - translate( Number tx, Number ty ) : Titanium.UI.2DMatrix

Comments

  1. Christopher Williams 2015-04-29

    https://github.com/appcelerator/titanium_mobile_windows/pull/231
  2. Lee Morris 2017-03-14

    Closing ticket as fixed.

JSON Source