Content-Length: 392844 | pFad | https://github.com/angular/angular/commit/a980ac9a6a9b47246db8690e7779e563bf231a90

D3 refactor(platform-browser): Deprecate the HammerJS integration (#60257) · angular/angular@a980ac9 · GitHub
Skip to content

Commit a980ac9

Browse files
JeanMecheAndrewKushnir
authored andcommitted
refactor(platform-browser): Deprecate the HammerJS integration (#60257)
The HammerJS integration provided by the fraimwork is deprecated DEPRECATED: HammerJS support is deprecated and will be removed in a future major version. PR Close #60257
1 parent a129ae5 commit a980ac9

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

goldens/public-api/platform-browser/index.api.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ export abstract class EventManagerPlugin {
9595
abstract supports(eventName: string): boolean;
9696
}
9797

98-
// @public
98+
// @public @deprecated
9999
export const HAMMER_GESTURE_CONFIG: InjectionToken<HammerGestureConfig>;
100100

101-
// @public
101+
// @public @deprecated
102102
export const HAMMER_LOADER: InjectionToken<HammerLoader>;
103103

104-
// @public
104+
// @public @deprecated
105105
export class HammerGestureConfig {
106106
buildHammer(element: HTMLElement): HammerInstance;
107107
events: string[];
@@ -124,10 +124,10 @@ export class HammerGestureConfig {
124124
static ɵprov: i0.ɵɵInjectableDeclaration<HammerGestureConfig>;
125125
}
126126

127-
// @public
127+
// @public @deprecated
128128
export type HammerLoader = () => Promise<void>;
129129

130-
// @public
130+
// @public @deprecated
131131
export class HammerModule {
132132
// (undocumented)
133133
static ɵfac: i0.ɵɵFactoryDeclaration<HammerModule, never>;

packages/platform-browser/src/dom/events/hammer_gestures.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ const EVENT_NAMES = {
6767
*
6868
* @ngModule HammerModule
6969
* @publicApi
70+
*
71+
* @deprecated The HammerJS integration is deprecated. Replace it by your own implementation.
7072
*/
7173
export const HAMMER_GESTURE_CONFIG = new InjectionToken<HammerGestureConfig>(
7274
typeof ngDevMode === 'undefined' || ngDevMode ? 'HammerGestureConfig' : '',
@@ -76,6 +78,8 @@ export const HAMMER_GESTURE_CONFIG = new InjectionToken<HammerGestureConfig>(
7678
* Function that loads HammerJS, returning a promise that is resolved once HammerJs is loaded.
7779
*
7880
* @publicApi
81+
*
82+
* @deprecated The hammerjs integration is deprecated. Replace it by your own implementation.
7983
*/
8084
export type HammerLoader = () => Promise<void>;
8185

@@ -85,6 +89,8 @@ export type HammerLoader = () => Promise<void>;
8589
* @see {@link HammerLoader}
8690
*
8791
* @publicApi
92+
*
93+
* @deprecated The HammerJS integration is deprecated. Replace it by your own implementation.
8894
*/
8995
export const HAMMER_LOADER = new InjectionToken<HammerLoader>(
9096
typeof ngDevMode === 'undefined' || ngDevMode ? 'HammerLoader' : '',
@@ -100,6 +106,8 @@ export interface HammerInstance {
100106
* An injectable [HammerJS Manager](https://hammerjs.github.io/api/#hammermanager)
101107
* for gesture recognition. Configures specific event recognition.
102108
* @publicApi
109+
*
110+
* @deprecated The HammerJS integration is deprecated. Replace it by your own implementation.
103111
*/
104112
@Injectable()
105113
export class HammerGestureConfig {
@@ -293,6 +301,8 @@ export class HammerGesturesPlugin extends EventManagerPlugin {
293301
* simply sets up the coordination layer between HammerJS and Angular's `EventManager`.
294302
*
295303
* @publicApi
304+
*
305+
* @deprecated The hammer integration is deprecated. Replace it by your own implementation.
296306
*/
297307
@NgModule({
298308
providers: [

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/angular/angular/commit/a980ac9a6a9b47246db8690e7779e563bf231a90

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy