Commit graph

64 commits

Author SHA1 Message Date
Ketasaja
dd8c8f0b03
Add --!strict to main module 2024-08-07 18:25:11 +00:00
Ketasaja
79d3a86004
Fix source type 2024-08-06 23:09:26 +00:00
aaron
31da86c30b Allow indexes() and values() to return functions 2024-07-20 18:08:04 +01:00
aaron
2dc2814d76 Fix regression with derived sources 2024-07-19 11:21:49 +01:00
aaron
4f3fccd3bb Fix root() not showing full error trace 2024-07-17 23:28:43 +01:00
aaron
7bae2517cd Improve error reporting 2024-07-15 17:37:26 +01:00
aaron
f2de9b0e63 Refactor 2024-07-03 15:02:52 +01:00
richard
e1d69afa20
Fix springs passing negative Color3 values (#25)
* Fix springs passing negative Color3 values

* Clamp color values between 0 and 1
2024-04-21 13:57:29 +01:00
Aaron Smith
d682161c06 Update docs 2023-12-07 17:26:01 +00:00
aaron
c527a62ab1 Bump version to 0.2.0 2023-11-22 10:14:00 +00:00
Aaron Smith
c288cb92c4 Minor refactors
Also fixed potential bug with `create()` being called recursively if a
property binding passed as a property to `create()` also calls
`create()`
2023-11-20 16:53:30 +00:00
Aaron Smith
8eb5f96c5b Fix recursive batch() use 2023-11-20 12:27:56 +00:00
Aaron Smith
65fe3fcf47 Fix some graph edge cases 2023-11-16 18:01:45 +00:00
Aaron Smith
ec998ccbc8 Implement batched updates
No docs yet, more testing needed.
2023-10-27 16:47:49 +01:00
Aaron Smith
7d82fe353e Fix error in test
Also misc changes
2023-10-27 15:47:43 +01:00
Aaron Smith
15255855c3 Add repeated read test 2023-10-25 16:58:29 +01:00
Aaron Smith
8218e4702f Fix diamond graphs 2023-10-25 15:49:35 +01:00
aaron
7128b9a58b Bump version to v0.1.1 2023-09-30 01:32:14 +01:00
Aaron Smith
c03fb05779 Make changed() run initially 2023-09-28 16:46:32 +01:00
Aaron Smith
d07c705b64 Fix switch() not working in strict mode
Fixes #20
2023-09-27 10:02:09 +01:00
Aaron Smith
32fa44f4c5 Cleanup helper for instances
Closes #19
2023-09-26 14:34:27 +01:00
Aaron Smith
d1f86a3f9e Allow untrack() in non-reactive scopes
Closes #17
2023-09-26 14:11:33 +01:00
aaron
c68d0a6c18 Allow creation of nested tracking scopes
It turns out that handling destruction of a nested tracking scope was
not as difficult as I thought and didn't need much changes
2023-09-25 23:37:51 +01:00
aaron
38342b3805 Disallow creation of nested tracking scopes 2023-09-25 11:44:24 +01:00
Aaron Smith
cc4b390d3d Auto strict mode based on optimization level 2023-09-20 12:23:51 +01:00
Aaron Smith
8b4210e66a Add error handling for no properties specified 2023-09-20 12:11:29 +01:00
Aaron Smith
835f4d429b Add check for unstable spring parameters 2023-09-20 11:39:44 +01:00
Richard
a543a24865 Revert "Echo initial value if given a source"
This reverts commit 16e2983c54758cabfb1ddd102090f20083820d03.
2023-09-19 19:21:25 +01:00
Richard
109cca45f3 Echo initial value if given a source 2023-09-19 19:21:25 +01:00
Richard
f733647031 Add read() 2023-09-19 19:21:25 +01:00
Aaron Smith
250c13e7b8 Fix edge case bugs in reactive graph updates 2023-09-19 12:07:49 +01:00
Richard
d1da0b4ea5 Add show() 2023-09-18 16:19:53 -07:00
aaron
c4a0180a2f Improve error messages for derived sources
There seemed to be confusion over reactive-scoping (likely due to
incomplete docs), so I've added more explicit error messages when
deriving in non-reactive scopes to warn the user to use `root()` or
`mount()`.
2023-09-18 09:40:54 +01:00
aaron
6090e0fc87 Fix mount error trace 2023-09-16 00:15:03 +01:00
aaron
efc4798ddb Merge reactive scope refactor 2023-09-15 12:54:42 +01:00
littensy
f111105c5f
Fix actions receiving nil instance
Action callbacks were being called with 'nil' instead of an instance. This commit fixes the action buffer type and passes 'instance' to the action callback.
2023-08-27 19:39:54 -07:00
aaron
4dc12e0157 Update UI layout instance defaults 2023-08-28 02:19:54 +01:00
aaron
e6a6eff821 Fix bug with UDim aggregate init 2023-08-28 02:08:38 +01:00
aaron
f39774082a Add check for recursive capturing 2023-08-28 01:27:31 +01:00
aaron
38f8e8d9c5 Add control over spring solver step 2023-08-26 14:59:19 +01:00
aaron
5ab76a434e Update spring tests 2023-08-26 14:49:46 +01:00
aaron
be59b24851 Fix spring not recognising roblox types 2023-08-25 11:18:13 +01:00
aaron
64d2a1f55c Stop resizing of weak tables 2023-08-25 11:17:48 +01:00
Aaron Smith
8ef2d0b190 Update spring solver 2023-08-24 18:09:40 +01:00
Aaron Smith
6764d34ce1 Fix type error 2023-08-22 16:16:04 +01:00
Aaron Smith
a3f03fd067 Refactor codebase 2023-08-22 15:50:03 +01:00
Aaron Smith
07ae542e28 Add apply() 2023-08-22 13:52:55 +01:00
Aaron Smith
6700e1b1f6 Add untrack() 2023-08-22 12:12:03 +01:00
Aaron Smith
0105e33fac Limit cleanup() calls to once per scope 2023-08-22 11:46:56 +01:00
Aaron Smith
2aebaf5abb Add aggregate initialization 2023-08-22 11:15:27 +01:00