Collapse typed levels in To Graphic like the pre-flip list conversion

This commit is contained in:
Dennis Kobert
2026-08-24 01:35:32 +00:00
parent 8c67ad508f
commit aba941e81d
2 changed files with 51 additions and 5 deletions

View File

@@ -110,12 +110,18 @@ fn node_registry() -> HashMap<ProtoNodeIdentifier, Vec<RegistryEntry>> {
.map(|entry| (graphene_std::vector::morph::IDENTIFIER.clone(), entry)),
);
// Element-wise coercion into `Graphic` for single-typed leveled inputs,
// served by the to_graphic rows.
// served by the hidden elementwise rows.
node_types.extend(
graphene_std::graphic::to_graphic_entries()
graphene_std::graphic::to_graphic_element_entries()
.into_iter()
.map(|entry| (ProtoNodeIdentifier::new("graphene_core::ops::IntoNode<Graphic>"), entry)),
);
// The typed-level collapse rows of To Graphic, served under its identifier.
node_types.extend(
graphene_std::graphic::to_graphic_typed_entries()
.into_iter()
.map(|entry| (graphene_std::graphic::to_graphic::IDENTIFIER.clone(), entry)),
);
// The transitional level bridge: a leveled wire materializes into the legacy
// list an unconverted consumer expects. The rows are keyed under the legacy
// convert identifiers and die with the last legacy consumer.