填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写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