Refactor tween handling with tweenFactory

This commit is contained in:
sindri 2026-03-03 10:05:12 +01:00 committed by GitHub
parent ec35a0fddd
commit 659fa1c1ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,7 +25,8 @@ local flags = require "./flags"
local draggable = require "./draggable" local draggable = require "./draggable"
local toggle = require "./toggle" local toggle = require "./toggle"
local dropdown = require "./dropdown" local dropdown = require "./dropdown"
local tween = require "./tween" local tweenFactory = require "./tween"
local tween = tweenFactory(action, cleanup)
local sliderFactory = require "./slider" local sliderFactory = require "./slider"
local slider = sliderFactory(create, source, action, cleanup) local slider = sliderFactory(create, source, action, cleanup)
@ -81,11 +82,11 @@ local vide = {
-- animations -- animations
spring = spring, spring = spring,
tween = tween,
-- actions -- actions
action = action, action = action,
changed = changed, changed = changed,
tween = tween,
-- flags -- flags
strict = (nil :: any) :: boolean, strict = (nil :: any) :: boolean,