Removed type definition illegal patch version

This commit is contained in:
nlaitine
2019-02-01 16:54:30 +02:00
parent 457823fd66
commit eb45679057
2 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
// Type definitions for theo 8.1.1
// Type definitions for theo 8.1
// Project: https://github.com/salesforce-ux/theo
// Definitions by: Pete Petrash <https://github.com/petekp>
// Niko Laitinen <https://github.com/laitine>
+4 -6
View File
@@ -21,12 +21,10 @@ theo.registerFormat(
);
theo.registerValueTransform(
"easing/web",
prop => prop.get("category") === "easing",
"relative/pixelValue",
prop => prop.get("category") === "sizing",
prop => {
const [x1, y1, x2, y2] = prop.get("value").toArray();
return `cubic-bezier(${x1}, ${y1}, ${x2}, ${y2})`;
const value = prop.get("value").toString();
return parseFloat(value.replace(/rem/g, "")) * 16;
}
);
theo.registerTransform("web", ["color/rgb", "easing/web"]);