| 84 | _transformProp = "transform", |
| 85 | _transformOriginProp = _transformProp + "Origin", |
| 86 | _saveStyle = function _saveStyle(property, isNotCSS) { |
| 87 | var _this = this; |
| 88 | |
| 89 | var target = this.target, |
| 90 | style = target.style, |
| 91 | cache = target._gsap; |
| 92 | |
| 93 | if (property in _transformProps && style) { |
| 94 | this.tfm = this.tfm || {}; |
| 95 | |
| 96 | if (property !== "transform") { |
| 97 | property = _propertyAliases[property] || property; |
| 98 | ~property.indexOf(",") ? property.split(",").forEach(function (a) { |
| 99 | return _this.tfm[a] = _get(target, a); |
| 100 | }) : this.tfm[property] = cache.x ? cache[property] : _get(target, property); // note: scale would map to "scaleX,scaleY", thus we loop and apply them both. |
| 101 | |
| 102 | property === _transformOriginProp && (this.tfm.zOrigin = cache.zOrigin); |
| 103 | } else { |
| 104 | return _propertyAliases.transform.split(",").forEach(function (p) { |
| 105 | return _saveStyle.call(_this, p, isNotCSS); |
| 106 | }); |
| 107 | } |
| 108 | |
| 109 | if (this.props.indexOf(_transformProp) >= 0) { |
| 110 | return; |
| 111 | } |
| 112 | |
| 113 | if (cache.svg) { |
| 114 | this.svgo = target.getAttribute("data-svg-origin"); |
| 115 | this.props.push(_transformOriginProp, isNotCSS, ""); |
| 116 | } |
| 117 | |
| 118 | property = _transformProp; |
| 119 | } |
| 120 | |
| 121 | (style || isNotCSS) && this.props.push(property, isNotCSS, style[property]); |
| 122 | }, |
| 123 | _removeIndependentTransforms = function _removeIndependentTransforms(style) { |
| 124 | if (style.translate) { |
| 125 | style.removeProperty("translate"); |