mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
1a4b489692
The prior approach would consider all existing namespaces from back to front to find the one that's the closest ancestor for a given host element. An expensive `contains` operation was used which needed to traverse all the way up the document root _for each existing namespace_. This commit implements an optimization where the closest namespace is found by traversing up from the host element, avoiding repeated DOM traversal. Closes #45055 PR Close #45113
1.1 KiB
1.1 KiB
API Report File for "@angular/animations_browser"
Do not edit this file. It is a report generated by API Extractor.
// @public (undocumented)
export abstract class AnimationDriver {
// (undocumented)
abstract animate(element: any, keyframes: {
[key: string]: string | number;
}[], duration: number, delay: number, easing?: string | null, previousPlayers?: any[], scrubberAccessRequested?: boolean): any;
// (undocumented)
abstract computeStyle(element: any, prop: string, defaultValue?: string): string;
// (undocumented)
abstract containsElement(elm1: any, elm2: any): boolean;
abstract getParentElement?(element: unknown): unknown;
// @deprecated (undocumented)
abstract matchesElement(element: any, selector: string): boolean;
// (undocumented)
static NOOP: AnimationDriver;
// (undocumented)
abstract query(element: any, selector: string, multi: boolean): any[];
// (undocumented)
abstract validateStyleProperty(prop: string): boolean;
}
// (No @packageDocumentation comment for this package)