Commit Graph

162 Commits

Author SHA1 Message Date
909f09f09b SignalWith now uses GATs for it's Value type. 2024-03-04 20:25:55 +00:00
f9e6a24489 Replaced SignalGet and SignalGetCloned with proper traits. 2024-03-04 19:46:22 +00:00
1952dc01d4 Added dynatos_util::SegVec. 2024-03-04 19:25:45 +00:00
1e6d420a8c Added some benchmarks to Signal. 2024-03-04 17:53:45 +00:00
17fa2d31e8 Added some benchmarks to Trigger. 2024-03-04 17:36:11 +00:00
ca7d175311 Moved RefCell of Trigger into Inner. 2024-03-04 01:29:55 +00:00
412f22d3a6 dynatos_context::CTXS_STACK now uses #[thread_local].
This provides about a 2x improvement on the synthetic benchmarks.
However, even the best case scenario is still ~3x slower than a static access.
2024-02-29 00:51:52 +00:00
8e1a5e8cea Added some benchmarks to dynatos-context. 2024-02-29 00:48:00 +00:00
161140872d Improved signal impls in dynatos. 2024-02-28 18:22:24 +00:00
8b44ae1ec5 Derived now has a type parameter for the effect function. 2024-02-28 17:19:19 +00:00
53f2a26b64 Added Effect::inner_fn. 2024-02-28 17:18:28 +00:00
1d2207da5e ObjectAttachEffect now supports effects with any type parameter. 2024-02-28 16:50:55 +00:00
26a07dde6d IntoSubscriber is now implemented for all effects and weak effects. 2024-02-27 18:49:29 +00:00
b700a1b93a Moved dynatos_reactive::IntoSubscriber to crate root. 2024-02-27 18:44:08 +00:00
e104af7e9a Effect and WeakEffect now carry a generic type for the function. 2024-02-27 18:42:37 +00:00
a76c785063 Renamed effect ignore to suppressed. 2024-02-27 18:37:52 +00:00
857f8687b4 Moved Effect::running to a free function. 2024-02-27 13:11:01 +00:00
7b4ced1a42 Reworked how effect ignoring works for effect::Inner. 2024-02-27 11:50:14 +00:00
12b88120ef Added some documentation to dynatos_reactive::Derived. 2024-02-27 11:40:00 +00:00
476ab89783 Fixed another broken documentation link. 2024-02-27 11:35:04 +00:00
81f40c2ee1 Removed dynatos links on documentation. 2024-02-27 11:34:22 +00:00
68f181b7b3 Added QueryArraySignal. 2024-02-26 14:35:20 +00:00
74db0eac92 Added missing Debug impl for QuerySignal and WithDefault. 2024-02-26 14:12:55 +00:00
62670dbbf7 Added IteratorLoadableExt::scan_loaded. 2024-02-23 14:36:39 +00:00
6d0e5f16e9 FlattenLoaded now derives some traits. 2024-02-23 14:15:05 +00:00
f0570ce1d5 Added IteratorLoadableExt::position_loaded. 2024-02-23 14:00:31 +00:00
c922a0d2d7 Added IteratorLoadableExt. 2024-02-23 13:24:38 +00:00
20e4a740c2 Loadable now implements FromIterator. 2024-02-23 13:04:59 +00:00
43bc3cb029 Added some tests to dynatos_reactive::{effect, trigger}. 2024-02-21 12:37:09 +00:00
b7ef16e391 Swapped type parameter order on ElementDynAttr::set_dyn_attr_if. 2024-02-21 06:15:48 +00:00
63452f4636 Simplified bounds on ElementDynAttr::set_dyn_attr. 2024-02-21 06:15:16 +00:00
25192d6f86 ElementDynAttr::set_dyn_attr_if now accepts anything that implements DynAttrPred. 2024-02-21 06:14:29 +00:00
ad0d784ff0 Added ElementAddClass. 2024-02-21 06:08:11 +00:00
34b0f46659 EventTargetAddListener::add_event_listener no longer uses a type parameter for the function. 2024-02-21 06:08:00 +00:00
ae30fa31ab Added dynatos-builder.
Added `dynatos_builder::builder`.
2024-02-20 14:35:10 +00:00
e775a5bf7a Replaced .with(Clone::clone) with .get_cloned(). 2024-02-20 14:19:55 +00:00
43f9d3bd88 SignalGet is now an extension trait. 2024-02-20 14:12:47 +00:00
293411d0d8 Added dynatos_loadable::LazyLoadable. 2024-02-20 14:07:24 +00:00
f2b30db582 Renamed SignalCloned to SignalGetCloned. 2024-02-20 14:02:57 +00:00
1766db806a Location no longer implements SignalGet. 2024-02-20 13:53:39 +00:00
464968a0f5 Loadable now implements Copy if able. 2024-02-20 13:51:54 +00:00
1e7085a4a1 Added dynatos-loadable.
Added `dynatos_loadable::Loadable`.
2024-02-20 12:42:43 +00:00
24088b11f3 Added pointermove, pointerdown and pointerup events. 2024-02-20 12:06:49 +00:00
cf20473699 ElementDynAttr now receives anything that implements WithDynAttr. 2024-02-20 03:23:01 +00:00
8dcd2dce09 WithDynText is now implemented for QuerySignal and WithDefault. 2024-02-20 03:22:11 +00:00
95d86209a2 Removed ElementDynAttr::set_dyn_attr.
Renamed `Element[With]DynAttr::{set, with}_dyn_attr_value` to `{set, with}_dyn_attr`.
2024-02-20 03:18:29 +00:00
89feb380c5 Simplified bounds on EventTargetAddListener.
This allows removing explicit type annotations for event handlers, which was required before, sometimes.
2024-02-20 03:10:06 +00:00
c3c32f7de5 Added ElementAddListener to be able to easily use an element's type on event listeners. 2024-02-19 08:53:55 +00:00
e26d261069 Improved bounds on EventTargetAddListener. 2024-02-19 08:42:51 +00:00
9751c74501 Added the ability for custom element types in dynatos_html::html. 2024-02-19 08:39:11 +00:00