Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(material/core): deprecate AnimationCurves and AnimationDurations #30538

Merged
merged 1 commit into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions src/material/core/animation/animation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,23 @@
* found in the LICENSE file at https://angular.dev/license
*/

/** @docs-private */
/**
* @deprecated No longer used, will be removed.
* @breaking-change 21.0.0
* @docs-private
*/
export class AnimationCurves {
static STANDARD_CURVE = 'cubic-bezier(0.4,0.0,0.2,1)';
static DECELERATION_CURVE = 'cubic-bezier(0.0,0.0,0.2,1)';
static ACCELERATION_CURVE = 'cubic-bezier(0.4,0.0,1,1)';
static SHARP_CURVE = 'cubic-bezier(0.4,0.0,0.6,1)';
}

/** @docs-private */
/**
* @deprecated No longer used, will be removed.
* @breaking-change 21.0.0
* @docs-private
*/
export class AnimationDurations {
static COMPLEX = '375ms';
static ENTERING = '225ms';
Expand Down
4 changes: 2 additions & 2 deletions tools/public_api_guard/material/core.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { Signal } from '@angular/core';
import { Subject } from 'rxjs';
import { Version } from '@angular/core';

// @public
// @public @deprecated (undocumented)
export class AnimationCurves {
// (undocumented)
static ACCELERATION_CURVE: string;
Expand All @@ -41,7 +41,7 @@ export class AnimationCurves {
static STANDARD_CURVE: string;
}

// @public
// @public @deprecated (undocumented)
export class AnimationDurations {
// (undocumented)
static COMPLEX: string;
Expand Down
Loading