UNPKG

861 BSource Map (JSON)View Raw
1{"version":3,"sources":["core/style/apply-transform.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,kCAAkC,OAAoB,EAAE,cAAsB;IAC5E,uFAAuF;IACvF,0CAA0C;IAC1C,IAAI,KAAK,GAAG,cAAc,CAAC,IAAI,EAAE,CAAC;IAElC,OAAO,CAAC,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC;IAChC,OAAO,CAAC,KAAK,CAAC,eAAe,GAAG,KAAK,CAAC;AACxC,CAAC","file":"core/style/apply-transform.js","sourcesContent":["/**\n * Applies a CSS transform to an element, including browser-prefixed properties.\n * @param element\n * @param transformValue\n */\nexport function applyCssTransform(element: HTMLElement, transformValue: string) {\n // It's important to trim the result, because the browser will ignore the set operation\n // if the string contains only whitespace.\n let value = transformValue.trim();\n\n element.style.transform = value;\n element.style.webkitTransform = value;\n}\n"],"sourceRoot":"/source/"}
\No newline at end of file