/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { RippleInterface } from '@material/mwc-base/utils.js'; /** * Class that encapsulates the events handlers for `mwc-ripple` * * * Example: * ``` * class XFoo extends LitElement { * async getRipple() { * this.renderRipple = true; * await this.updateComplete; * return this.renderRoot.querySelector('mwc-ripple'); * } * rippleHandlers = new RippleHandlers(() => this.getRipple()); * * render() { * return html` *
* ${this.renderRipple ? html`