license /**
 * Computes the ripple client rect for the primary action given the raw client
 * rect and the selected width graphic style property.
 */ export function computePrimaryActionRippleClientRect ( clientRect , graphicSelectedWidthStyleValue ) { const graphicWidth = Number ( graphicSelectedWidthStyleValue . replace ( 'px' , '' ) ) ; if ( Number . isNaN ( graphicWidth ) ) { return clientRect ; } return { width : clientRect . width + graphicWidth , height : clientRect . height , top : clientRect . top , right : clientRect . right , bottom : clientRect . bottom , left : clientRect . left } as any ; } /**
 * Provides the CSS custom property whose value is read by
 * computePrimaryRippleClientRect. The CSS custom property provides the width
 * of the chip graphic when selected. It is only set for the unselected chip
 * variant without a leadinc icon. In all other cases, it will have no value.
 */ export const GRAPHIC_SELECTED_WIDTH_STYLE_PROP = '--mdc-chip-graphic-selected-width' ;