@fluid-topics/ft-ripple 2.2.17 → 2.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-ripple.js +4 -2
- package/build/ft-ripple.min.js +28 -28
- package/package.json +3 -3
package/build/ft-ripple.js
CHANGED
|
@@ -38,7 +38,8 @@ export class FtRipple extends FtLitElement {
|
|
|
38
38
|
};
|
|
39
39
|
this.setupDebouncer = new Debouncer(10);
|
|
40
40
|
this.moveRipple = (e) => {
|
|
41
|
-
var _a
|
|
41
|
+
var _a;
|
|
42
|
+
var _b;
|
|
42
43
|
const { x, y } = this.getCoordinates(e);
|
|
43
44
|
const rect = (_b = (_a = this.ripple) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) !== null && _b !== void 0 ? _b : { x: 0, y: 0, width: 0, height: 0 };
|
|
44
45
|
this.originX = Math.round(x != null ? x - rect.x : rect.width / 2);
|
|
@@ -119,7 +120,8 @@ export class FtRipple extends FtLitElement {
|
|
|
119
120
|
this.setupDebouncer.run(() => this.defaultSetup());
|
|
120
121
|
}
|
|
121
122
|
defaultSetup() {
|
|
122
|
-
var _a
|
|
123
|
+
var _a;
|
|
124
|
+
var _b;
|
|
123
125
|
const parent = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.host.parentElement;
|
|
124
126
|
if (parent) {
|
|
125
127
|
this.setupFor((_b = this.target) !== null && _b !== void 0 ? _b : parent);
|