Evan Almloff
3279068569
clean up view code
2023-01-22 21:06:59 -06:00
Evan Almloff
4738352955
remove native-core-macro
2023-01-22 16:41:15 -06:00
Evan Almloff
fb0c6c1b62
Merge branch 'upstream' into simplify-native-core
2023-01-21 18:33:52 -06:00
Evan Almloff
0a5499508a
simplify api and pass clippy
2023-01-21 18:30:42 -06:00
Evan Almloff
7294edcd89
Merge branch 'upstream' into add-fuzzing-to-native-core
2023-01-21 07:45:39 -06:00
Evan Almloff
adff97036d
clean up some unused code + clippy
2023-01-21 07:44:38 -06:00
Jon Kelley
e686e42cfe
Merge pull request #790 from Demonthos/make-cursor-agnostic-over-storage
...
Make text editing utilities in native core agnostic over the text storage
2023-01-21 00:40:16 -08:00
Jon Kelley
877268737d
Merge pull request #791 from Demonthos/default-to-medium-border-width-when-style-is-set
...
Apply medium width when the border style is not none to match browsers
2023-01-21 00:37:26 -08:00
Evan Almloff
e81f05fe9d
make native core compile
2023-01-20 20:24:44 -06:00
Evan Almloff
20751327f3
apply medium width when the border style is not none to comply with browser behavior
2023-01-20 17:36:41 -06:00
Evan Almloff
d019ada3da
make delete selection public
2023-01-20 17:16:47 -06:00
Evan Almloff
8030ae5581
make text editing utilites agnostic over the text storage
2023-01-20 17:09:19 -06:00
Evan Almloff
278cac6551
pass clippy
2023-01-20 13:42:50 -06:00
Evan Almloff
dc768fee2f
fix replacing a dynamic text node in native core
2023-01-20 13:31:21 -06:00
Evan Almloff
04bf6c3f91
add fuzzing test to native core
2023-01-20 13:28:49 -06:00
Evan Almloff
ebb6300fc7
clean up the API
2023-01-20 13:23:26 -06:00
Evan Almloff
1587b41829
WIP make ECS work with reactive system
2023-01-19 14:40:56 -06:00
Evan Almloff
e36874d86e
use node id
2023-01-18 12:14:59 -06:00
Evan Almloff
91fc594708
ECS based tree data struture
2023-01-16 14:33:11 -06:00
Evan Almloff
5aa3587ea9
Merge branch 'upstream' into simplify-native-core
2023-01-16 13:05:34 -06:00
Evan Almloff
3f3db39c28
update doc links
2023-01-15 15:18:12 -06:00
Jonathan Kelley
c4a18bc24d
chore: clean up some clippy warnings and add clippy lints to CI
2023-01-11 16:13:41 -08:00
Jon Kelley
e5b39bb61f
Merge pull request #744 from Demonthos/update-readmes
...
Update READMEs and tags for the 0.3 release
2023-01-10 18:21:55 -08:00
Jonathan Kelley
13e58daa20
Merge branch 'master' into jk/add-miri-to-ci
2023-01-10 17:53:25 -08:00
Evan Almloff
52d5c8d4e7
update READMEs and tags for the 0.3 release
2023-01-10 10:16:11 -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
72b2a3ef37
fix tests
2023-01-08 12:02:44 -06:00
Evan Almloff
a934e60fdf
unify dirty nodes
2023-01-08 11:37:54 -06:00
Evan Almloff
3a6d06e205
remove nodes from listener list when the node is removed
2023-01-05 08:21:36 -06:00
Jonathan Kelley
a0961583d1
fix: versions and readme
2023-01-04 14:58:06 -05:00
Evan Almloff
93a95b82a4
bump lightningcss version
2023-01-04 11:18:32 -06:00
Evan Almloff
52a74214da
don't remove realdom nodes when the element id changes
2023-01-04 09:14:58 -06:00
Jon Kelley
3733ce7332
Merge pull request #711 from Demonthos/realdom-generic-over-custom-types
...
make the real dom generic over custom types
2023-01-03 15:30:13 -05:00
Evan Almloff
bf20b66b38
make the real dom generic over custom types
2023-01-03 12:35:48 -06:00
Evan Almloff
ea43b864db
remove attributes with the None value
2023-01-03 08:51:48 -06:00
Jon Kelley
cb2d672105
Merge pull request #690 from Demonthos/lightning-css-taffy-attributes
...
use lightning css to parse Taffy layout attributes
2023-01-03 00:53:19 -05:00
Evan Almloff
c0f9355648
fix any value dropping
2023-01-02 21:26:12 -06:00
Evan Almloff
51dba50c04
use BumpBox<Any> and FromAnyValue instead of sync bounds
2023-01-02 14:40:25 -06:00
Evan Almloff
64db1def9f
make clippy happy
2023-01-02 12:37:16 -06:00
Evan Almloff
613a7ac55b
add comment about multithreading
2023-01-02 11:52:42 -06:00
Evan Almloff
6d60c483f8
make it pass miri
2023-01-02 11:01:17 -06:00
Evan Almloff
56154d90be
clean up unused code
2023-01-01 19:00:52 -06:00
Evan Almloff
6f6f6c258f
add allow
2023-01-01 18:56:39 -06:00
Evan Almloff
359b4e514b
remove some more unnessisary usages of unsafe
2023-01-01 18:44:54 -06:00
Evan Almloff
4db3d8ff40
fix state
2023-01-01 17:21:34 -06:00
Evan Almloff
2d67dabfe5
require Send for S for resolve_passes multithreaded
2023-01-01 15:48:26 -06:00
Evan Almloff
3c507479cb
update the update_state method
2023-01-01 12:10:19 -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
Evan Almloff
c1fc00ed53
remove unsafe sync impl
2022-12-30 15:23:04 -06:00
Evan Almloff
845f2fb7a9
use get2_mut instead of unsafe
2022-12-30 14:19:56 -06:00
Jonathan Kelley
b351345db9
chore: use miri on native-core too
2022-12-30 14:45:45 -05:00
Evan Almloff
5b1d9c5c8d
Merge branch 'upstream' into fix-non-str-attributes
2022-12-30 11:52:55 -06:00
Evan Almloff
2da1d8ab27
clean up implementation
2022-12-29 21:34:17 -06:00
Jonathan Kelley
4fdbce9a70
chore: clean up readmes
2022-12-29 16:17:03 -05:00
Evan Almloff
f6fb6e1d1b
add aspect ratio parsing
2022-12-29 14:14:29 -06:00
Evan Almloff
579d6ce1f9
use lightning css to parse layout attributes for taffy
2022-12-29 13:31:33 -06:00
=
1555500fbd
drop any values correctly
2022-12-26 10:53:25 -06:00
Evan Almloff
738f1b3ce0
Merge branch 'upstream' into fix-non-str-attributes
2022-12-24 12:52:44 -06:00
Evan Almloff
c0d138fc1b
fix persistant iterator test
2022-12-24 11:37:17 -06:00
Evan Almloff
7eac90065a
fix mutations related to keyed lists
2022-12-24 10:58:56 -06:00
Evan Almloff
afd024bcb6
Merge branch 'upstream' into fix-non-str-attributes
2022-12-23 15:53:39 -06:00
Jonathan Kelley
8d7d07db56
chore: make clippy happy in workspace crate
2022-12-19 11:56:44 -08:00
Jonathan Kelley
cc7736302a
Merge branch 'master' into fix-non-str-attributes
2022-12-17 01:51:13 -08:00
Jonathan Kelley
7beb7f0ee4
fix: use and_then
2022-12-13 15:30:40 -08:00
=
53b436c684
remove AnyValueBounds and add some docs
2022-12-11 21:40:40 -06:00
=
73ec4abfdf
Merge remote-tracking branch 'upstream/master' into fix-non-str-attributes
2022-12-11 21:26:38 -06:00
=
74e9d5977a
add sync behind a feature flag
2022-12-11 17:31:15 -06:00
Evan Almloff
0813d531f1
add some utilities around AnyValueRc
2022-12-10 12:50:15 -06:00
Evan Almloff
8a1c96a68c
fix custom attribute value support
2022-12-09 16:18:37 -06:00
Evan Almloff
029255c7ac
widgets
2022-12-07 20:28:01 -06:00
Jonathan Kelley
6184ea500b
chore: also fix native core
2022-12-07 13:20:31 -08:00
Jonathan Kelley
1b14b309e9
chore: clean up desktop
2022-12-06 16:37:28 -08: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
Jonathan Kelley
85657d3906
feat: rip out mutations for templates
2022-12-01 00:46:15 -05:00
Jonathan Kelley
3b166c9edd
wip: clean up some things
2022-11-30 23:54:30 -05:00
David Craven
99dafdb8ee
Build failure on master. ( #627 )
...
* Build failure on master.
* Fix ci failure.
* Fix test.
* Ignore broken tests.
* Fix doctests.
2022-11-22 09:56:15 -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
saicu
e8c48d46cf
replace fxhash crate with rustc-hash ( #588 )
2022-10-12 18:27:26 -07:00
Marc Espín
e98f46bbcc
Remove a Node listeners when it is removed ( #576 )
2022-10-02 14:12:33 -07:00
Demonthos
daeffd4149
pass clippy ( #575 )
2022-10-02 14:12:24 -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
2d08532bad
Improve documentation for the native core and native core macro crates ( #528 )
...
* improve documentation for the native core and native core macro crates
* fix spelling of depenency
2022-09-06 17:25:10 -07:00
Jonathan Kelley
62b9a0593f
chore: use taffy dimension directly
2022-07-15 22:17:00 -04:00
Jon Kelley
d9546d9504
Renderers are now packages, not features. ( #387 )
...
* feat: use synchronous router design
* feat: function to get router out of dom
* chore: restructure workspace to use renderers as packages, not features
2022-07-09 15:15:20 -04: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
Jonathan Kelley
8be66bd34d
fix: apply some clippy lints and rename the liveview methods to not intersect
2022-06-20 02:24:39 -04:00
Evan Almloff
5d323cae78
Merge remote-tracking branch 'upstream/master' into tui_focus
2022-06-13 17:55:18 -05:00
Evan Almloff
ce385965a7
Merge branch 'master' into tui_focus
2022-06-13 17:37:40 -05:00
Demonthos
c1112cfd3a
Merge branch 'master' into stretch2_relative_layout
2022-06-10 17:41:51 -05:00
Evan Almloff
44686e217f
remove empty match
2022-06-10 17:33:19 -05:00
Evan Almloff
dcfe60c164
use taffy instead of stretch2
2022-06-10 17:23:30 -05:00
Evan Almloff
db1866090a
fix broken doc links
2022-05-22 20:44:32 -05:00
Evan Almloff
a5b9200e47
calculate absolute position
2022-05-10 18:13:05 -05:00
Evan Almloff
5d5e7f55fd
pass clippy
2022-05-04 14:37:30 -05:00
Evan Almloff
dd7784d205
clean up and document focus system
2022-05-04 14:28:02 -05:00
Evan Almloff
9ed722ae45
change focus when an element is clicked
2022-05-03 17:19:16 -05:00
Evan Almloff
7a17683447
add persistant iterator to native core
2022-05-03 11:01:49 -05:00
Jonathan Kelley
85a09314a6
chore: fill out cargo meta
2022-05-03 00:02:09 -04:00
Jonathan Kelley
3febd42588
Release dioxus-core v0.2.1, dioxus-core-macro v0.2.1, dioxus-html v0.2.1, dioxus-interpreter-js v0.2.1, dioxus-desktop v0.2.3, dioxus-hooks v0.2.1, dioxus-liveview v0.1.0, dioxus-native-core v0.2.0, dioxus-native-core-macro v0.2.0, dioxus-router v0.2.3, dioxus-ssr v0.2.1, dioxus-tui v0.2.2, dioxus-web v0.2.1, fermi v0.2.1, dioxus v0.2.4
2022-05-02 23:57:20 -04:00
Jonathan Kelley
22a423e2f6
chore: use fixed stretch version
2022-05-02 22:17:01 -04:00
Evan Almloff
7b35566169
allow nodes to depend on the listeners of a node
2022-04-21 15:10:53 -05:00
Evan Almloff
cebf17088b
fixed infinite loop in union_ordered_iter
2022-04-20 12:17:16 -05:00
Evan Almloff
7c30d93a3d
nested state
2022-04-19 20:12:57 -05:00
Evan Almloff
b79a58cc66
pass clippy
2022-04-17 08:43:15 -05:00
Evan Almloff
e9da4c0fb7
add todo
2022-04-17 08:08:40 -05:00
Evan Almloff
b9c2664089
add builder methods to NodeMask
2022-04-16 17:22:03 -05:00
Evan Almloff
436c6a02f7
add node dependancy
2022-04-16 12:27:52 -05:00
Evan Almloff
0fb9aed273
add children on initial build and add sorted slice macro
2022-04-13 12:49:53 -05:00
Evan Almloff
3b06059834
fix rendering
2022-04-13 11:39:38 -05:00
Evan Almloff
2b383bc4f4
fixed test
2022-04-12 18:54:42 -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
demonthos
13a99bce9c
WIP: intigrate exsisting code
2022-04-10 07:00:44 -05:00
demonthos
9e9fc09e6d
WIP macro progress
2022-04-09 16:40:26 -05:00
Evan Almloff
92f48169e9
WIP new api
2022-04-08 21:17:37 -05:00
Evan Almloff
351722d136
update dependancy to stretch2 master and remove refrences to tree
2022-04-04 13:37:04 -05:00
Evan Almloff
06e8785938
add PopRoot
2022-04-04 12:19:21 -05:00
Evan Almloff
32b2e3a135
bugfixes, docs, and pass clippy
2022-04-02 16:46:46 -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