import { Utility } from "@hpcc-js/common"; import * as React from "@hpcc-js/preact-shim"; import { Rectangle } from "./shape"; import { Text } from "./text"; export interface SubgraphProps { id: string; origData?: any; text: string; width?: number; height?: number; fill?: string; stroke?: string; fontHeight?: number; fontFamily?: string; } export const Subgraph: React.FunctionComponent = ({ text, width = 100, height = 100, fill = "transparent", stroke = "black", fontHeight = 12, fontFamily }) => { const tSize = Utility.textSize(text, fontFamily, fontHeight, false); return <> ; };