填寫這份《一分鐘調查》,幫我們(開發組)做得更好!去填寫Home

AnimationDriver

      
      abstract class AnimationDriver {
  static NOOP: AnimationDriver
  abstract validateStyleProperty(prop: string): boolean
  abstract matchesElement(element: any, selector: string): boolean
  abstract containsElement(elm1: any, elm2: any): boolean
  abstract query(element: any, selector: string, multi: boolean): any[]
  abstract computeStyle(element: any, prop: string, defaultValue?: string): string
  abstract animate(element: any, keyframes: { [key: string]: string | number; }[], duration: number, delay: number, easing?: string, previousPlayers?: any[], scrubberAccessRequested?: boolean): any
}
    

靜態屬性

屬性說明
static NOOP: AnimationDriver

方法

      
      abstract validateStyleProperty(prop: string): boolean
    
引數
prop string
返回值

boolean

      
      abstract matchesElement(element: any, selector: string): boolean
    
引數
element any
selector string
返回值

boolean

      
      abstract containsElement(elm1: any, elm2: any): boolean
    
引數
elm1 any
elm2 any
返回值

boolean

      
      abstract query(element: any, selector: string, multi: boolean): any[]
    
引數
element any
selector string
multi boolean
返回值

any[]

      
      abstract computeStyle(element: any, prop: string, defaultValue?: string): string
    
引數
element any
prop string
defaultValue string
可選. 預設值是 `undefined`.
返回值

string

      
      abstract animate(element: any, keyframes: { [key: string]: string | number; }[], duration: number, delay: number, easing?: string, previousPlayers?: any[], scrubberAccessRequested?: boolean): any
    
引數
element any
keyframes { [key: string]: string | number; }[]
duration number
delay number
easing string
可選. 預設值是 `undefined`.
previousPlayers any[]
可選. 預設值是 `undefined`.
scrubberAccessRequested boolean
可選. 預設值是 `undefined`.
返回值

any