From b57944265c6873d6a5da9eaa4b757fd45f9d8460 Mon Sep 17 00:00:00 2001 From: Greg Poole Date: Tue, 11 Jul 2023 15:06:16 +1000 Subject: [PATCH] docs(easing): adding a list of valid function names to easing function docs --- docs/assets/polished.js | 9 ++++++--- docs/docs/index.html | 11 +++++++---- src/easings/easeIn.js | 4 +++- src/easings/easeInOut.js | 4 +++- src/easings/easeOut.js | 4 +++- src/mixins/timingFunctions.js | 2 +- 6 files changed, 23 insertions(+), 11 deletions(-) diff --git a/docs/assets/polished.js b/docs/assets/polished.js index 9f8e19ad..9c0c54a8 100644 --- a/docs/assets/polished.js +++ b/docs/assets/polished.js @@ -858,7 +858,8 @@ }; /** - * String to represent common easing functions as demonstrated here: (github.com/jaukia/easie). + * String to represent common easing functions as demonstrated here: https://easings.net/. + * Valid function names are: back, circ, cubic, expo, quad, quart, quint, sine. * * @example * // Styles as object usage @@ -893,7 +894,8 @@ }; /** - * String to represent common easing functions as demonstrated here: (github.com/jaukia/easie). + * String to represent common easing functions as demonstrated here: https://easings.net/. + * Valid function names are: back, circ, cubic, expo, quad, quart, quint, sine. * * @example * // Styles as object usage @@ -928,7 +930,8 @@ }; /** - * String to represent common easing functions as demonstrated here: (github.com/jaukia/easie). + * String to represent common easing functions as demonstrated here: https://easings.net/. + * Valid function names are: back, circ, cubic, expo, quad, quart, quint, sine. * * @example * // Styles as object usage diff --git a/docs/docs/index.html b/docs/docs/index.html index 7daf04ed..22ffc6e9 100644 --- a/docs/docs/index.html +++ b/docs/docs/index.html @@ -2795,7 +2795,7 @@

-

String to represent common easing functions as demonstrated here: (github.com/jaukia/easie).

+

String to represent common easing functions as demonstrated here: (https://easings.net/).

timingFunctions(timingFunction: TimingFunction): string
@@ -9468,7 +9468,8 @@

-

String to represent common easing functions as demonstrated here: (github.com/jaukia/easie).

+

String to represent common easing functions as demonstrated here: (https://easings.net/).

+

Valid function names are: back, circ, cubic, expo, quad, quart, quint, sine.

easeIn(functionName: string): TimingFunction
@@ -9573,7 +9574,8 @@

-

String to represent common easing functions as demonstrated here: (github.com/jaukia/easie).

+

String to represent common easing functions as demonstrated here: (https://easings.net/).

+

Valid function names are: back, circ, cubic, expo, quad, quart, quint, sine.

easeInOut(functionName: string): TimingFunction
@@ -9678,7 +9680,8 @@

-

String to represent common easing functions as demonstrated here: (github.com/jaukia/easie).

+

String to represent common easing functions as demonstrated here: (https://easings.net/).

+

Valid function names are: back, circ, cubic, expo, quad, quart, quint, sine.

easeOut(functionName: string): TimingFunction
diff --git a/src/easings/easeIn.js b/src/easings/easeIn.js index 94083be9..0e3b1d9f 100644 --- a/src/easings/easeIn.js +++ b/src/easings/easeIn.js @@ -13,7 +13,9 @@ const functionsMap = { } /** - * String to represent common easing functions as demonstrated here: (github.com/jaukia/easie). + * String to represent common easing functions as demonstrated here: (https://easings.net/). + * + * Valid function names are: back, circ, cubic, expo, quad, quart, quint, sine. * * @example * // Styles as object usage diff --git a/src/easings/easeInOut.js b/src/easings/easeInOut.js index 60fe472a..cb5af427 100644 --- a/src/easings/easeInOut.js +++ b/src/easings/easeInOut.js @@ -13,7 +13,9 @@ const functionsMap = { } /** - * String to represent common easing functions as demonstrated here: (github.com/jaukia/easie). + * String to represent common easing functions as demonstrated here: (https://easings.net/). + * + * Valid function names are: back, circ, cubic, expo, quad, quart, quint, sine. * * @example * // Styles as object usage diff --git a/src/easings/easeOut.js b/src/easings/easeOut.js index 8db9ae39..dbd31783 100644 --- a/src/easings/easeOut.js +++ b/src/easings/easeOut.js @@ -13,7 +13,9 @@ const functionsMap = { } /** - * String to represent common easing functions as demonstrated here: (github.com/jaukia/easie). + * String to represent common easing functions as demonstrated here: (https://easings.net/). + * + * Valid function names are: back, circ, cubic, expo, quad, quart, quint, sine. * * @example * // Styles as object usage diff --git a/src/mixins/timingFunctions.js b/src/mixins/timingFunctions.js index bc42c2d4..9f346c44 100644 --- a/src/mixins/timingFunctions.js +++ b/src/mixins/timingFunctions.js @@ -37,7 +37,7 @@ function getTimingFunction(functionName: string): string { } /** - * String to represent common easing functions as demonstrated here: (github.com/jaukia/easie). + * String to represent common easing functions as demonstrated here: (https://easings.net/). * * @deprecated - This will be deprecated in v5 in favor of `easeIn`, `easeOut`, `easeInOut`. *