Skip to content

Commit

Permalink
code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
trusktr committed Jan 11, 2025
1 parent e6b158f commit 148d23c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
19 changes: 17 additions & 2 deletions src/Index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import Easing from './Easing'
import Group from './Group'
import Interpolation from './Interpolation'
import now, { setNow } from './Now'
import now, {setNow} from './Now'
import Sequence from './Sequence'
import Tween from './Tween'
import VERSION from './Version'
Expand Down Expand Up @@ -273,7 +273,22 @@ const update = TWEEN.update.bind(TWEEN)

// NOTE! Make sure both lists of exports below are kept in sync:

export {Easing, Group, Interpolation, now, setNow, Sequence, nextId, Tween, VERSION, getAll, removeAll, add, remove, update}
export {
Easing,
Group,
Interpolation,
now,
setNow,
Sequence,
nextId,
Tween,
VERSION,
getAll,
removeAll,
add,
remove,
update,
}

const exports = {
Easing,
Expand Down
4 changes: 2 additions & 2 deletions src/Now.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
let _nowFunc: Function = () => performance.now()

const now = (): number => {
return _nowFunc()
return _nowFunc()
}

export function setNow(nowFunction: Function) {
_nowFunc = nowFunction
_nowFunc = nowFunction
}

export default now

0 comments on commit 148d23c

Please sign in to comment.