MCPcopy
hub / github.com/donmccurdy/glTF-Transform / fromGraph

Method fromGraph

packages/core/src/document.ts:92–94  ·  view source on GitHub ↗

* Returns the Document associated with a given Graph, if any. * @hidden * @experimental

(graph: Graph<Property>)

Source from the content-addressed store, hash-verified

90 * @experimental
91 */
92 public static fromGraph(graph: Graph<Property>): Document | null {
93 return Document._GRAPH_DOCUMENTS.get(graph) || null;
94 }
95
96 /** Creates a new Document, representing an empty glTF asset. */
97 public constructor() {

Callers 12

createInstanceNodesFunction · 0.80
convertPrimitiveToLinesFunction · 0.80
unweldPrimitiveFunction · 0.80
simplifyPrimitiveFunction · 0.80
weldPrimitiveFunction · 0.80
unwrapPrimitivesFunction · 0.80
compactPrimitiveFunction · 0.80
createPrimGroupKeyFunction · 0.80
joinPrimitivesFunction · 0.80
getTextureChannelMaskFunction · 0.80
listTextureSlotsFunction · 0.80

Calls 1

getMethod · 0.80

Tested by

no test coverage detected