Skip to content

Commit

Permalink
fix: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
daybrush committed Nov 7, 2020
1 parent 26248ed commit 726b964
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scenejs",
"version": "1.4.2",
"version": "1.4.3",
"description": "JavaScript & CSS timeline-based animation library",
"main": "dist/scene.cjs.js",
"module": "dist/scene.esm.js",
Expand Down Expand Up @@ -76,7 +76,7 @@
"typescript": "^3.9.7"
},
"dependencies": {
"@daybrush/utils": "^1.1.0",
"@daybrush/utils": "^1.3.1",
"@scena/event-emitter": "^1.0.3",
"css-styled": "^1.0.0",
"order-map": "^0.2.2"
Expand Down
2 changes: 1 addition & 1 deletion src/Frame.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
ALIAS, TIMING_FUNCTION, TRANSFORM_NAME, EASING_NAME, NAME_SEPARATOR
} from "./consts";
import { isRole, getType, isPropertyObject, getValueByNames, isFixed, getNames, getEasing, getFullName } from "./utils";
import { isRole, getType, isPropertyObject, getValueByNames, isFixed, getNames, getEasing } from "./utils";
import { toPropertyObject, splitStyle, toObject } from "./utils/property";
import {
isObject, isArray, isString, getKeys,
Expand Down
3 changes: 2 additions & 1 deletion src/easing.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { between } from "@daybrush/utils";
import { EasingFunction } from "./types";

function cubic(y1: number, y2: number, t: number) {
Expand Down Expand Up @@ -49,7 +50,7 @@ export function bezier(x1: number, y1: number, x2: number, y2: number) {
t = f-1(x)
*/
const func: EasingFunction = (x: number) => {
const t = solveFromX(x1, x2, Math.max(Math.min(1, x), 0));
const t = solveFromX(x1, x2, between(x, 0, 1));

return cubic(y1, y2, t);
};
Expand Down
4 changes: 0 additions & 4 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,3 @@ export function getEasing(curveArray: string | number[] | EasingFunction): Easin

return easing;
}

export function getFullName(names: NameType[]) {
return names.join(NAME_SEPARATOR);
}

0 comments on commit 726b964

Please sign in to comment.