/** * @upsetjs/react * https://github.com/upsetjs/upsetjs * * Copyright (c) 2021 Samuel Gratzl */ import React, { Ref } from 'react'; import { UpSetJSSkeletonProps, prepare } from '../UpSetJSSkeleton'; import { bounds } from './layout'; /** * KV Diagram Skeleton a simple KarnaughMap skeleton * * with React.forwardRef support to specify a reference to the SVG element */ const KarnaughMapSkeleton = /*!#__PURE__*/ React.memo( /*!#__PURE__*/ React.forwardRef(function KarnaughMapSkeleton(props: UpSetJSSkeletonProps, ref: Ref) { const { rest, color, secondary } = prepare(props); // const padding = 10; const { xBefore, yBefore, cell, hCells, vCells } = bounds(2, { width: 270, height: 170, labelHeight: 20, }); const gw = hCells * cell; const gh = vCells * cell; const v1 = 0.9; const v2 = 0.5; const v3 = 0.26; const v4 = 0.75; return ( A A B B ); }) ) as React.FC>; export { KarnaughMapSkeleton };