Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
GlobalPositionStrategy.prototype.apply = function (element) {
element.style.position = this._cssPosition;
element.style.top = this._top;
element.style.left = this._left;
element.style.bottom = this._bottom;
element.style.right = this._right;
// TODO(jelbourn): we don't want to always overwrite the transform property here,
// because it will need to be used for animations.
var tranlateX = this._reduceTranslateValues('translateX', this._translateX);
var translateY = this._reduceTranslateValues('translateY', this._translateY);
apply_transform_1.applyCssTransform(element, tranlateX + " " + translateY);
return Promise.resolve();
};
/** Reduce a list of translate values to a string that can be used in the transform property */