{"version":3,"file":"graphChildren.js","names":[],"sources":["esm/native/graphChildren.js"],"sourcesContent":["let warned = false;\nfunction resetGraphChildrenWarning() {\n  warned = false;\n}\nconst graphChildrenWarning = \"[@multiplatform.one/node-graph] <NodeGraph> was given children on native, and they are IGNORED: the canvas renders inside a WebView and a React element cannot cross the bridge. Put the control OUTSIDE the canvas as a native sibling and drive it through `graphRef` (fitView, relayout, zoomTo, centerOn, setSelection, exportViewport, undo, redo, perfStart, perfStop, perfMark), reading state back from the events; or, if it has to be inside the canvas, express it as a serializable option so the DOM bundle renders it. Design 9.1.\";\nfunction warnOnGraphChildren(children) {\n  if (warned) return false;\n  if (children === null || children === void 0 || children === false) return false;\n  if (Array.isArray(children) && children.every((child) => child === null || child === void 0 || child === false)) {\n    return false;\n  }\n  if (process.env.NODE_ENV === \"production\") return false;\n  warned = true;\n  console.warn(graphChildrenWarning);\n  return true;\n}\nexport {\n  graphChildrenWarning,\n  resetGraphChildrenWarning,\n  warnOnGraphChildren\n};\n//# sourceMappingURL=graphChildren.js.map\n"],"mappings":";AAAA,IAAI,SAAS;AACb,SAAS,4BAA4B;CACnC,SAAS;AACX;AACA,MAAM,uBAAuB;AAC7B,SAAS,oBAAoB,UAAU;CACrC,IAAI,QAAQ,OAAO;CACnB,IAAI,aAAa,QAAQ,aAAa,KAAK,KAAK,aAAa,OAAO,OAAO;CAC3E,IAAI,MAAM,QAAQ,QAAQ,KAAK,SAAS,OAAO,UAAU,UAAU,QAAQ,UAAU,KAAK,KAAK,UAAU,KAAK,GAAG;EAC/G,OAAO;CACT;CACA,IAAI,QAAQ,IAAI,aAAa,cAAc,OAAO;CAClD,SAAS;CACT,QAAQ,KAAK,oBAAoB;CACjC,OAAO;AACT"}