Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Apache FalconJX 0.7.0
-
None
Description
The following AS:
public function getXML(m:Matrix):XML{ var ta:Point = m.transformPoint(anchor); var tl:Point = m.transformPoint(leftDirection); var tr:Point = m.transformPoint(rightDirection); return <PathPointType Anchor={ta.x + " " + ta.y} LeftDirection={tl.x + " " + tl.y} RightDirection={tr.x + " " + tr.y} />; }
has the following JS output:
/** * @export * @param {org.apache.flex.geom.Matrix} m * @return {XML} */ com.printui.model.vos.PathPointVO.prototype.getXML = function(m) { var /** @type {org.apache.flex.geom.Point} */ ta = m.transformPoint(this.anchor); var /** @type {org.apache.flex.geom.Point} */ tl = m.transformPoint(this.leftDirection); var /** @type {org.apache.flex.geom.Point} */ tr = m.transformPoint(this.rightDirection); return new XML( '<PathPointType Anchor=' + + ' LeftDirection=' + + ' RightDirection=' + + ' />'); };
While the output should be something like this:
/** * @export * @param {org.apache.flex.geom.Matrix} m * @return {XML} */ com.printui.model.vos.PathPointVO.prototype.getXML = function(m) { var /** @type {org.apache.flex.geom.Point} */ ta = m.transformPoint(this.anchor); var /** @type {org.apache.flex.geom.Point} */ tl = m.transformPoint(this.leftDirection); var /** @type {org.apache.flex.geom.Point} */ tr = m.transformPoint(this.rightDirection); return new XML( '<PathPointType Anchor="' + ta.x + ' ' + ta.y + '" LeftDirection="' + tl.x + ' ' + tl.y + '" RightDirection="' + tr.x + ' ' + tr.y + '" />'); };