import { svgWidth , svgHeight } from "./cubicons/constants" ; const larger = Math . max ( svgWidth , svgHeight ) ; const smaller = Math . min ( svgWidth , svgHeight ) ; const smallerDirSquareNums = 14 ; export const smallerBound = [ Math . floor ( - smallerDirSquareNums / 2 ) , Math . floor ( smallerDirSquareNums / 2 ) , ] ; export const sqrLength = smaller / smallerDirSquareNums ; export const largerDirSquareNums = Math . floor ( larger / 2 / sqrLength ) * 2 ; export const largerBound = [ Math . floor ( - largerDirSquareNums / 2 ) , Math . floor ( largerDirSquareNums / 2 ) , ] ; export const [ xBound , yBound ] = svgWidth >= svgHeight ? [ largerBound , smallerBound ] : [ smallerBound , largerBound ] ;