/** * @upsetjs/react * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ import React, { Ref } from 'react'; import { UpSetJSSkeletonProps, prepare } from '../UpSetJSSkeleton'; import { layoutImpl } from './layout/vennDiagramLayout'; /** * VennDiagram Skeleton a simple VennDiagram skeleton * * with React.forwardRef support to specify a reference to the SVG element */ const VennDiagramSkeleton = /*!#__PURE__*/ React.memo( /*!#__PURE__*/ React.forwardRef(function VennDiagramSkeleton(props: UpSetJSSkeletonProps, ref: Ref) { const { color, secondary, rest } = prepare(props); const padding = 10; const l = layoutImpl(3, 300 - padding * 2, 3200 - padding * 2); return ( {l.sets.map((set, i) => ( ))} {l.sets.map((set, i) => ( ))} ); }) ) as React.FC>; export { VennDiagramSkeleton };