MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / flatten_with_fns

Method flatten_with_fns

node-graph/graph-craft/src/document.rs:860–958  ·  view source on GitHub ↗

Remove all nodes that contain [`DocumentNodeImplementation::Network`] by moving the nested nodes into the parent network.

(&mut self, node_id: NodeId, map_ids: impl Fn(NodeId, NodeId) -> NodeId + Copy, gen_id: impl Fn() -> NodeId + Copy)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

flattenMethod · 0.80
flatten_addFunction · 0.80
output_duplicateFunction · 0.80

Calls 15

map_idsFunction · 0.85
drainMethod · 0.80
populate_dependantsMethod · 0.80
ProtoNodeClass · 0.70
getMethod · 0.65
insertMethod · 0.45
cloneMethod · 0.45
as_refMethod · 0.45
map_idsMethod · 0.45
keysMethod · 0.45

Tested by 1

flatten_addFunction · 0.64