Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const lineRipple = directive(() => (part: PropertyPart) => {
const lastFoundation = partToFoundationMap.get(part);
if (!lastFoundation) {
const lineElement = part.committer.element as LineRipple;
lineElement.classList.add('mdc-line-ripple');
const adapter = createAdapter(lineElement);
const foundation = new MDCLineRippleFoundation(adapter);
foundation.init();
part.setValue(foundation);
partToFoundationMap.set(part, foundation);
}
});
protected createLineRippleFoundation() {
const adapter = this.getLineRippleAdapter();
this._lineRippleFoundation = new MDCLineRippleFoundation(adapter);
}