{"version":3,"file":"overviewNode.js","names":[],"sources":["esm/nodes/overviewNode.js"],"sourcesContent":["import { useResolvedKnobs } from \"@multiplatform.one/theme\";\nimport { YStack } from \"tamagui\";\nimport { graphNodeMinHeight, graphNodeWidth, portSpacing, graphNodeSize } from \"./nodeMeasure\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction OverviewNode({\n  id,\n  ports,\n  intent,\n  selected = false,\n  measure,\n  coarsePointer = false\n}) {\n  const { knobProps } = useResolvedKnobs({ component: \"GraphNode\", intent });\n  const size = graphNodeSize(knobProps.sizeToken);\n  const portSpacingPx = portSpacing({ coarsePointer });\n  return /* @__PURE__ */ jsx(\n    YStack,\n    {\n      \"data-graph-node\": id,\n      \"data-graph-node-render-mode\": \"overview\",\n      \"data-graph-node-overview\": \"\",\n      \"data-graph-node-width\": String(graphNodeWidth({ size, measure })),\n      ...knobProps.surface,\n      ...knobProps.containerRadius,\n      width: graphNodeWidth({ size, measure }),\n      minHeight: graphNodeMinHeight({ size, ports: ports ?? [], portSpacingPx, measure }),\n      position: \"relative\",\n      overflow: \"visible\",\n      opacity: selected ? 1 : 0.9\n    }\n  );\n}\nexport {\n  OverviewNode\n};\n//# sourceMappingURL=overviewNode.js.map\n"],"mappings":";;;;;;AAIA,SAAS,aAAa,EACpB,IACA,OACA,QACA,WAAW,OACX,SACA,gBAAgB,SACf;CACD,MAAM,EAAE,cAAc,iBAAiB;EAAE,WAAW;EAAa;CAAO,CAAC;CACzE,MAAM,OAAO,cAAc,UAAU,SAAS;CAC9C,MAAM,gBAAgB,YAAY,EAAE,cAAc,CAAC;CACnD,OAAuB,oBACrB,QACA;EACE,mBAAmB;EACnB,+BAA+B;EAC/B,4BAA4B;EAC5B,yBAAyB,OAAO,eAAe;GAAE;GAAM;EAAQ,CAAC,CAAC;EACjE,GAAG,UAAU;EACb,GAAG,UAAU;EACb,OAAO,eAAe;GAAE;GAAM;EAAQ,CAAC;EACvC,WAAW,mBAAmB;GAAE;GAAM,OAAO,SAAS,CAAC;GAAG;GAAe;EAAQ,CAAC;EAClF,UAAU;EACV,UAAU;EACV,SAAS,WAAW,IAAI;CAC1B,CACF;AACF"}