mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Removed type definition illegal patch version
This commit is contained in:
Vendored
+1
-1
@@ -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>
|
||||
|
||||
@@ -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"]);
|
||||
|
||||
Reference in New Issue
Block a user