@material/line-ripple
Advanced tools
Comparing version 15.0.0-canary.11f3d280e.0 to 15.0.0-canary.127a44b28.0
@@ -48,7 +48,7 @@ /** | ||
*/ | ||
registerEventHandler<K extends EventType>(evtType: K, handler: SpecificEventListener<K>): void; | ||
registerEventHandler<K extends EventType>(eventType: K, handler: SpecificEventListener<K>): void; | ||
/** | ||
* Deregisters an event listener on the line ripple element for a given event. | ||
*/ | ||
deregisterEventHandler<K extends EventType>(evtType: K, handler: SpecificEventListener<K>): void; | ||
deregisterEventHandler<K extends EventType>(eventType: K, handler: SpecificEventListener<K>): void; | ||
} |
@@ -6,3 +6,3 @@ # Change Log | ||
# [15.0.0-canary.11f3d280e.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.11f3d280e.0) (2023-03-15) | ||
# [15.0.0-canary.127a44b28.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.127a44b28.0) (2023-10-12) | ||
@@ -9,0 +9,0 @@ |
@@ -71,7 +71,7 @@ /** | ||
}, | ||
registerEventHandler: function (evtType, handler) { | ||
_this.listen(evtType, handler); | ||
registerEventHandler: function (eventType, handler) { | ||
_this.listen(eventType, handler); | ||
}, | ||
deregisterEventHandler: function (evtType, handler) { | ||
_this.unlisten(evtType, handler); | ||
deregisterEventHandler: function (eventType, handler) { | ||
_this.unlisten(eventType, handler); | ||
}, | ||
@@ -78,0 +78,0 @@ }; |
@@ -43,4 +43,4 @@ /** | ||
deactivate(): void; | ||
handleTransitionEnd(evt: TransitionEvent): void; | ||
handleTransitionEnd(event: TransitionEvent): void; | ||
} | ||
export default MDCLineRippleFoundation; |
@@ -31,4 +31,4 @@ /** | ||
var _this = _super.call(this, __assign(__assign({}, MDCLineRippleFoundation.defaultAdapter), adapter)) || this; | ||
_this.transitionEndHandler = function (evt) { | ||
_this.handleTransitionEnd(evt); | ||
_this.transitionEndHandler = function (event) { | ||
_this.handleTransitionEnd(event); | ||
}; | ||
@@ -80,7 +80,7 @@ return _this; | ||
}; | ||
MDCLineRippleFoundation.prototype.handleTransitionEnd = function (evt) { | ||
MDCLineRippleFoundation.prototype.handleTransitionEnd = function (event) { | ||
// Wait for the line ripple to be either transparent or opaque | ||
// before emitting the animation end event | ||
var isDeactivating = this.adapter.hasClass(cssClasses.LINE_RIPPLE_DEACTIVATING); | ||
if (evt.propertyName === 'opacity') { | ||
if (event.propertyName === 'opacity') { | ||
if (isDeactivating) { | ||
@@ -87,0 +87,0 @@ this.adapter.removeClass(cssClasses.LINE_RIPPLE_ACTIVE); |
{ | ||
"name": "@material/line-ripple", | ||
"description": "The Material Components for the web line-ripple component", | ||
"version": "15.0.0-canary.11f3d280e.0", | ||
"version": "15.0.0-canary.127a44b28.0", | ||
"license": "MIT", | ||
@@ -24,9 +24,9 @@ "keywords": [ | ||
"dependencies": { | ||
"@material/animation": "15.0.0-canary.11f3d280e.0", | ||
"@material/base": "15.0.0-canary.11f3d280e.0", | ||
"@material/feature-targeting": "15.0.0-canary.11f3d280e.0", | ||
"@material/theme": "15.0.0-canary.11f3d280e.0", | ||
"@material/animation": "15.0.0-canary.127a44b28.0", | ||
"@material/base": "15.0.0-canary.127a44b28.0", | ||
"@material/feature-targeting": "15.0.0-canary.127a44b28.0", | ||
"@material/theme": "15.0.0-canary.127a44b28.0", | ||
"tslib": "^2.1.0" | ||
}, | ||
"gitHead": "8e5a0971e8b535be016fdfe963b22dbcf1353e53" | ||
"gitHead": "88d1fc2c5354e751ea3ab567d26bb1886ee152d3" | ||
} |
@@ -89,4 +89,4 @@ <!--docs: | ||
`setStyle(propertyName: string, value: string) => void` | Sets the style property with `propertyName` to `value` on the root element. | ||
`registerEventHandler(evtType: EventType, handler: EventListener) => void` | Registers an event listener on the root element for a given event. | ||
`deregisterEventHandler(evtType: EventType, handler: EventListener) => void` | Deregisters an event listener on the root element for a given event. | ||
`registerEventHandler(eventType: EventType, handler: EventListener) => void` | Registers an event listener on the root element for a given event. | ||
`deregisterEventHandler(eventType: EventType, handler: EventListener) => void` | Deregisters an event listener on the root element for a given event. | ||
@@ -100,2 +100,2 @@ ### `MDCLineRippleFoundation` | ||
`setRippleCenter(xCoordinate: number) => void` | Sets the center of the ripple to the `xCoordinate` given. | ||
`handleTransitionEnd(evt: Event) => void` | Handles a `transitionend` event. | ||
`handleTransitionEnd(event: Event) => void` | Handles a `transitionend` event. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
479269
+ Added@material/animation@15.0.0-canary.127a44b28.0(transitive)
+ Added@material/base@15.0.0-canary.127a44b28.0(transitive)
+ Added@material/feature-targeting@15.0.0-canary.127a44b28.0(transitive)
+ Added@material/theme@15.0.0-canary.127a44b28.0(transitive)
- Removed@material/animation@15.0.0-canary.11f3d280e.0(transitive)
- Removed@material/base@15.0.0-canary.11f3d280e.0(transitive)
- Removed@material/feature-targeting@15.0.0-canary.11f3d280e.0(transitive)
- Removed@material/theme@15.0.0-canary.11f3d280e.0(transitive)
Updated@material/feature-targeting@15.0.0-canary.127a44b28.0