export const pins = { 'square-square' : 'r r r r' , 'square-clear' : 'r 0 0 r' , 'clear-square' : '0 r r 0' , 'clear-clear' : '0 0 0 0' , 'clear-circle' : '0 h h 0' , 'circle-clear' : 'h 0 0 h' , 'circle-circle' : 'h h h h' , } ; export type Pin = keyof typeof pins ; export interface PinProps { /**
     * Границы компонента
     */ pin : Pin ; } param { string } matrixKey param { string } r param { string } h example example export const convertRoundnessMatrix = ( matrixKey ? , r ? , h ? ) : string | undefined => matrixKey && pins [ matrixKey ] . split ( ' ' ) . map ( ( char ) => { switch ( char ) { case 'r' : return r ; case 'h' : return h ; default : return char ; } } ) . join ( ' ' ) ;