mirror of
https://github.com/centau/vide.git
synced 2026-08-20 23:01:37 +00:00
This commit is contained in:
parent
f7f589626c
commit
795ff8725c
13 changed files with 145 additions and 314 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue