UNPKG

@tokens-studio/graph-engine-migration

Version:

A package to upgrade old graph engine files to the new format

12 lines 358 B
export const removePositionAnnotations = async (graph) => { if (graph.nodes) { graph.nodes.forEach((node) => { if (node?.annotations) { delete node.annotations.xpos; delete node.annotations.ypos; } }); } return graph; }; //# sourceMappingURL=removePositionAnnotations.js.map