mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Refactor tween handling with tweenFactory
This commit is contained in:
parent
ec35a0fddd
commit
659fa1c1ae
1 changed files with 3 additions and 2 deletions
|
|
@ -25,7 +25,8 @@ local flags = require "./flags"
|
|||
local draggable = require "./draggable"
|
||||
local toggle = require "./toggle"
|
||||
local dropdown = require "./dropdown"
|
||||
local tween = require "./tween"
|
||||
local tweenFactory = require "./tween"
|
||||
local tween = tweenFactory(action, cleanup)
|
||||
local sliderFactory = require "./slider"
|
||||
local slider = sliderFactory(create, source, action, cleanup)
|
||||
|
||||
|
|
@ -81,11 +82,11 @@ local vide = {
|
|||
|
||||
-- animations
|
||||
spring = spring,
|
||||
tween = tween,
|
||||
|
||||
-- actions
|
||||
action = action,
|
||||
changed = changed,
|
||||
tween = tween,
|
||||
|
||||
-- flags
|
||||
strict = (nil :: any) :: boolean,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue