source: node_modules/victory-vendor/lib-vendor/d3-ease/src/poly.js

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 6 months ago

Added visualizations

  • Property mode set to 100644
File size: 754 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.polyOut = exports.polyInOut = exports.polyIn = void 0;
7var exponent = 3;
8var polyIn = exports.polyIn = function custom(e) {
9 e = +e;
10 function polyIn(t) {
11 return Math.pow(t, e);
12 }
13 polyIn.exponent = custom;
14 return polyIn;
15}(exponent);
16var polyOut = exports.polyOut = function custom(e) {
17 e = +e;
18 function polyOut(t) {
19 return 1 - Math.pow(1 - t, e);
20 }
21 polyOut.exponent = custom;
22 return polyOut;
23}(exponent);
24var polyInOut = exports.polyInOut = function custom(e) {
25 e = +e;
26 function polyInOut(t) {
27 return ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2;
28 }
29 polyInOut.exponent = custom;
30 return polyInOut;
31}(exponent);
Note: See TracBrowser for help on using the repository browser.