This commit is contained in:
Aaron Smith 2023-08-03 11:52:05 +01:00
parent f7f589626c
commit 795ff8725c
13 changed files with 145 additions and 314 deletions

View file

@ -1,7 +1,7 @@
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- vide.luau
-- v0.1.0
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not game then script = (require :: any) "test/wrap-require" end
@ -12,12 +12,10 @@ local cleanup, clean_garbage = require(script.cleanup)()
local derive = require(script.derive)
local map = require(script.map)
local spring, update_springs = require(script.spring)()
local action = require(script.action)()
local flags = require(script.flags)
type Map<K, V> = { [K]: V }
type Setter<T> = ( (new: T, force: true?) -> T ) & ( (update: (old: T) -> T, force: true?) -> T )
local vide = {
-- core
create = create,
@ -30,17 +28,13 @@ local vide = {
-- animations
spring = spring,
-- symbols
-- Event = Event,
-- Changed = Changed,
-- Layout = Layout,
-- Children = Children,
-- Created = Created,
-- actions
action = action,
-- flags
strict = (nil :: any) :: boolean,
-- test
-- runtime
step = function(dt: number)
update_springs(dt)
clean_garbage()