Commit Graph
44 Commits
Author SHA1 Message Date
Leonard 2d1234c3d1 Include README and Dioxus logo in package docs (#1536)
* Include README in docs.rs and add Dioxus logo

* Update README.md
2023-10-10 10:52:48 -05:00
Jonathan Kelley f4b3be1b13 Merge pull request #940 from Demonthos/make-widgets-cross-framework 2023-07-11 20:47:01 -07:00
marc2332 5ea04017e9 renamed the feature 2023-05-20 22:57:17 +02:00
marc2332 02355ddd4c feat: Move layout_attributes behind a feature in native-core 2023-05-20 22:06:35 +02:00
Evan Almloff 43372c7609 Merge branch 'upstream' into make-widgets-cross-framework 2023-04-12 10:06:58 -05:00
Evan Almloff d29514968f fix native core dependancies in a different direction than the pass direction 2023-04-10 11:12:54 -05:00
Evan Almloff 60be849ff0 handle passes entering or avoiding the shadow tree 2023-04-08 18:53:53 -05:00
Evan Almloff b2c87f5c47 create scafolding for the shadow dom 2023-04-06 16:59:25 -05:00
Evan Almloff b255800511 fix TUI and tests building 2023-03-13 18:09:20 -05:00
Evan Almloff daac9f540f document every item in native-core 2023-03-13 17:49:37 -05:00
Evan Almloff ad374a8b9d fix formatting and lints 2023-03-13 10:03:45 -05:00
Evan Almloff ec3e02e4bb finish macro 2023-03-12 08:26:16 -05:00
= bab3c8d584 WIP: derive macro 2023-03-08 09:06:21 -06:00
Evan Almloff b91e010ac7 WIP: use shipyard ecs 2023-02-28 13:26:49 -06:00
Evan Almloff fe3ad8ebe9 document state trait 2023-02-11 17:43:08 -06:00
Evan Almloff db04550fc8 fix widgets in tui 2023-02-10 10:56:24 -06:00
Evan Almloff 0f6eb4fca2 clean up node api 2023-02-08 14:59:47 -06:00
Evan Almloff 4ee8b8b676 create dioxus handler for TUI 2023-02-07 14:51:30 -06:00
Evan Almloff 71e34452da create driven example for tui renderer 2023-02-07 14:14:04 -06:00
Evan Almloff c805bc25af make tui agnostic over framework 2023-02-06 21:28:48 -06:00
Evan Almloff bd07d7754c create node watcher API 2023-02-06 13:40:22 -06:00
Evan Almloff 6fe00c4f78 make dioxus dependancy optional 2023-02-04 17:56:30 -06:00
Evan Almloff 9efff74c0c update TUI renderer to new approach 2023-01-28 14:51:05 -06:00
Evan Almloff 1587b41829 WIP make ECS work with reactive system 2023-01-19 14:40:56 -06:00
Evan Almloff 85fdc77880 fix tui 2023-01-08 15:26:30 -06:00
Evan Almloff ecf4ee275a Merge branch 'upstream' into simplify-native-core 2023-01-08 14:03:44 -06:00
Evan Almloff 6d60c483f8 make it pass miri 2023-01-02 11:01:17 -06:00
Evan Almloff bc2925240e implement macro and update tui 2023-01-01 08:52:59 -06:00
Evan Almloff 9e971fbe11 work on integrating new pass system 2022-12-31 22:34:16 -06:00
Evan Almloff e76cd63ee3 create new state system 2022-12-30 20:29:28 -06:00
Demonthos 67a6fa9eb8 Implement new mutations with native core (#630)
* work on seperating tree struture from realdom

* intial update to new mutations

* handle height

* update to taffy 0.2

* add as_varient functions to OwnedAttributeValue

* make get node parent mut optionally return a parent

* work on upward pass

* add more code for parrellel passes

* make resolve passes public

* more work on parallel passes

* fix deadlock and add more tests

* move height into the tree instead of the realdom

* make passes exicute in parallel instead of executing invidual passes in parellel

* fix some warnings

* add up dependant test

* clean up examples

* work on intigrating state with passes

* update to new mutations

* work on implementing macro

* make the macro compile

* more progress on macro

* mark cloned nodes as dirty

* update persistant_iterator utility

* fix mask generation

* update tui with new mutations

* more progress updating tui

* some basic tui examples working

* don't push template nodes onto the stack

* update hover example

* update benchmark

* update more examples

* fix root node layout

* ignore out of bounds renders

* update color picker example

* update all events example

* update remaining examples

* update tests

* tests passing

* move persistant iterator test

* update examples

* fix gaps in layout

* fix formatting

* fix memory leak
2022-12-06 15:38:04 -08:00
Demonthos 3b7b503333 Refactor Mutations and simplify Templates (#578)
* update mutations to be path based rather than renderer integrated
2022-10-18 14:42:45 -07:00
Demonthos 047ed1e553 Subtree memorization / reactive templates (#488)
This commit adds subtree memoization to Dioxus.

Subtree memoization is basically a compile-time step that drastically 
reduces the amount of work the diffing engine needs to do at runtime by
extracting non-changing nodes out into a static "template." Templates 
are then understood by the various renderers in the ecosystem as a 
faster way of rendering the same items. 

For example, in the web, templates are simply a set of DOM Nodes created 
once and then cloned later. This is the same pattern frameworks like Lithtml
and SolidJS use to achieve near-perfect performance. 

Subtree memoization adds an additional level of complexity to Dioxus. The RSX
macro needs to be much smarter to identify changing/nonchanging nodes and
generate a mapping between the Template and its runtime counterparts.

This commit represents a working starter point for this work, adding support 
for templates for the web, desktop, liveview, ssr, and native-core renderers.
In the future we will try to shrink code generation, generally improve 
performance, and simplify our implementation.
2022-09-30 12:03:06 -07:00
Demonthos 4a5ae758ee Allow Multiple dependencies for states in the RealDom (native core) (#412)
* WIP multable deps

* WIP: refactor and genralize state macro

* add traversable trait

* update tui to use elementid to index dom
2022-07-07 00:50:22 -04:00
Evan Almloff 7a17683447 add persistant iterator to native core 2022-05-03 11:01:49 -05:00
Evan Almloff 436c6a02f7 add node dependancy 2022-04-16 12:27:52 -05:00
Evan Almloff 9eaf7212a3 tests passing, and tui updated 2022-04-12 18:46:16 -05:00
Evan Almloff 92010b0bab WIP update tests 2022-04-12 07:51:57 -05:00
Evan Almloff 92f48169e9 WIP new api 2022-04-08 21:17:37 -05:00
Evan Almloff 5b25500c0b finishing touches and benchmarks 2022-03-30 20:45:41 -05:00
Evan Almloff 7f4e257757 bugfixes, testing and refactoring 2022-03-26 20:32:49 -05:00
Evan Almloff 6adfa8805c moved stretch layout to native-core 2022-03-26 20:28:29 -05:00
Evan Almloff 26d92b6e51 rebase master 2022-03-26 20:27:10 -05:00
Evan Almloff 499971e9b3 wip lazy layout 2022-03-26 20:24:44 -05:00