Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "node_modules/snabbdom/src/modules/hero"

Index

Type aliases

Hero

Hero: { id: string }

Type declaration

  • id: string

Variables

created

created: any

Const heroModule

heroModule: Module = {pre, create, destroy, post} as Module

raf

raf: setTimeout = (typeof window !== 'undefined' && window.requestAnimationFrame) || setTimeout

removed

removed: any

Functions

calcTransformOrigin

  • calcTransformOrigin(isTextNode: boolean, textRect: ClientRect | undefined, boundingRect: ClientRect): string
  • Parameters

    • isTextNode: boolean
    • textRect: ClientRect | undefined
    • boundingRect: ClientRect

    Returns string

create

  • Parameters

    Returns void

destroy

  • destroy(vnode: VNode): void
  • Parameters

    Returns void

getTextDx

  • getTextDx(oldTextRect: ClientRect | undefined, newTextRect: ClientRect | undefined): number
  • Parameters

    • oldTextRect: ClientRect | undefined
    • newTextRect: ClientRect | undefined

    Returns number

getTextDy

  • getTextDy(oldTextRect: ClientRect | undefined, newTextRect: ClientRect | undefined): number
  • Parameters

    • oldTextRect: ClientRect | undefined
    • newTextRect: ClientRect | undefined

    Returns number

getTextNodeRect

  • getTextNodeRect(textNode: Text): ClientRect | undefined
  • Parameters

    • textNode: Text

    Returns ClientRect | undefined

isTextElement

  • isTextElement(elm: Element | Text): elm is Text
  • Parameters

    Returns elm is Text

nextFrame

  • nextFrame(fn: any): void
  • Parameters

    • fn: any

    Returns void

post

  • post(): void
  • Returns void

pre

  • pre(): void
  • Returns void

setNextFrame

  • setNextFrame(obj: any, prop: string, val: any): void
  • Parameters

    • obj: any
    • prop: string
    • val: any

    Returns void

Generated using TypeDoc