mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-20 03:18:06 +08:00
Restructure node crates (#3384)
* Restructure node-graph folder * Fix wasm compilation * Move node definitions out of *-types crates * Cleanup * Fix warnings * Fix warnings * Start adding migrations * Add migrations and move memo nodes to gcore * Move nodes/gsvg-render -> rendering * Replace some hard coded identifiers and fix automatic conversion * Fix Vec2Value node migration * Fix formatting * Add more migrations * Cleanup features * Fix core_types::raster import * Update demo artwork (to make profile ci work) * Move *-types to node-graph/libraries folder * Add missing node migrations * Migrate more nodes * Remove impure memo node * More fixes and remove warning * Migrate context and add a few missing migrations --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
@@ -804,7 +804,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_basic_node() {
|
||||
let attr = quote!(category("Math: Arithmetic"), path(graphene_core::TestNode), skip_impl);
|
||||
let attr = quote!(category("Math: Arithmetic"), path(core_types::TestNode), skip_impl);
|
||||
let input = quote!(
|
||||
/// Multi
|
||||
/// Line
|
||||
@@ -819,7 +819,7 @@ mod tests {
|
||||
attributes: NodeFnAttributes {
|
||||
category: Some(parse_quote!("Math: Arithmetic")),
|
||||
display_name: None,
|
||||
path: Some(parse_quote!(graphene_core::TestNode)),
|
||||
path: Some(parse_quote!(core_types::TestNode)),
|
||||
skip_impl: true,
|
||||
properties_string: None,
|
||||
cfg: None,
|
||||
@@ -1080,7 +1080,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_number_min_max_range_mode() {
|
||||
let attr = quote!(category("Math: Arithmetic"), path(graphene_core::TestNode));
|
||||
let attr = quote!(category("Math: Arithmetic"), path(core_types::TestNode));
|
||||
let input = quote!(
|
||||
fn add(
|
||||
a: f64,
|
||||
@@ -1100,7 +1100,7 @@ mod tests {
|
||||
attributes: NodeFnAttributes {
|
||||
category: Some(parse_quote!("Math: Arithmetic")),
|
||||
display_name: None,
|
||||
path: Some(parse_quote!(graphene_core::TestNode)),
|
||||
path: Some(parse_quote!(core_types::TestNode)),
|
||||
skip_impl: false,
|
||||
properties_string: None,
|
||||
cfg: None,
|
||||
|
||||
Reference in New Issue
Block a user