Graphite/editor/src
Dennis Kobert e352c7fa71
Refactor the node macro and simply most of the node implementations (#1942)
* Add support structure for new node macro to gcore

* Fix compile issues and code generation

* Implement new node_fn macro

* Implement property translation

* Fix NodeIO type generation

* Start translating math nodes

* Move node implementation to outer scope to allow usage of local imports

* Add expose attribute to allow controlling the parameter exposure

* Add rust analyzer support for #[implementations] attribute

* Migrate logic nodes

* Handle where clause properly

* Implement argument ident pattern preservation

* Implement adjustment layer mapping

* Fix node registry types

* Fix module paths

* Improve demo artwork comptibility

* Improve macro error reporting

* Fix handling of impl node implementations

* Fix nodeio type computation

* Fix opacity node and graph type resolution

* Fix loading of demo artworks

* Fix eslint

* Fix typo in macro test

* Remove node definitions for Adjustment Nodes

* Fix type alias property generation and make adjustments footprint aware

* Convert vector nodes

* Implement path overrides

* Fix stroke node

* Fix painted dreams

* Implement experimental type level specialization

* Fix poisson disk sampling -> all demo artworks should work again

* Port text node + make node macro more robust by implementing lifetime substitution

* Fix vector node tests

* Fix red dress demo + ci

* Fix clippy warnings

* Code review

* Fix primary input issues

* Improve math nodes and audit others

* Set no_properties when no automatic properties are derived

* Port vector generator nodes (could not derive all definitions yet)

* Various QA changes and add min/max/mode_range to number parameters

* Add min and max for f64 and u32

* Convert gpu nodes and clean up unused nodes

* Partially port transform node

* Allow implementations on call arg

* Port path modify node

* Start porting graphic element nodes

* Transform nodes in graphic_element.rs

* Port brush node

* Port nodes in wasm_executior

* Rename node macro

* Fix formatting

* Fix Mandelbrot node

* Formatting

* Fix Load Image and Load Resource nodes, add scope input to node macro

* Remove unnecessary underscores

* Begin attemping to make nodes resolution-aware

* Infer a generic manual compositon type on generic call arg

* Various fixes and work towards merging

* Final changes for merge!

* Fix tests, probably

* More free line removals!

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
2024-09-20 03:50:30 -07:00
..
messages Refactor the node macro and simply most of the node implementations (#1942) 2024-09-20 03:50:30 -07:00
application.rs Fix a lot of Clippy warnings (#1808) 2024-07-09 05:02:52 -07:00
consts.rs Add shifting of layers in stacks as blocks that collide and bump other layers/nodes (#1940) 2024-08-22 01:56:32 -07:00
dispatcher.rs Add shifting of layers in stacks as blocks that collide and bump other layers/nodes (#1940) 2024-08-22 01:56:32 -07:00
generate_ts_types.rs Reorganize cargo dependencies and upgrade most of them (#1815) 2024-07-09 04:08:28 -07:00
lib.rs Update Imaginate to output bitmap data to the graph via Image Frame node (#1001) 2023-02-11 08:56:31 +00:00
macros.rs Restructure the entire editor codebase to consistently match the message hierarchy 2022-08-05 05:38:11 -07:00
node_graph_executor.rs Refactor the node macro and simply most of the node implementations (#1942) 2024-09-20 03:50:30 -07:00
test_utils.rs Improve layer positioning in graph upon reordering; improve history system; add selection history (#1945) 2024-09-01 02:34:18 -07:00
utility_traits.rs Clean up arg order in process_message() so data is last 2023-01-29 04:07:41 -08:00