phina.js.d.ts
    Preparing search index...

    Interface Touch

    interface Touch {
        cachePositions: phina.geom.Vector2[];
        deltaPosition: phina.geom.Vector2;
        dx: number;
        dy: number;
        flags: number;
        flickVelocity: phina.geom.Vector2;
        fx: number;
        fy: number;
        id: number | null;
        maxCacheNum: number;
        maxDistance: number;
        minDistance: number;
        position: phina.geom.Vector2;
        prevPosition: phina.geom.Vector2;
        startPosition: phina.geom.Vector2;
        x: number;
        y: number;
        addEventListener(type: string, listener: Function): this;
        clear(type: string): this;
        clearEventListener(type: string): this;
        dispatchEvent(e: { type: string }): this;
        dispatchEventByType(type: string, param: object): this;
        fire(e: { type: string }): this;
        flare(type: string, param?: object): this;
        getPointing(): boolean;
        getPointingEnd(): boolean;
        getPointingStart(): boolean;
        getTouch(): boolean;
        getTouchEnd(): boolean;
        getTouchStart(): boolean;
        has(type: string): boolean;
        hasEventListener(type: string): boolean;
        off(type: string, listener: Function): this;
        on(type: string, listener: Function): this;
        one(type: string, listener: Function): this;
        removeEventListener(type: string, listener: Function): this;
        update(): void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    cachePositions: phina.geom.Vector2[]
    deltaPosition: phina.geom.Vector2
    dx: number
    dy: number
    flags: number
    flickVelocity: phina.geom.Vector2
    fx: number
    fy: number
    id: number | null
    maxCacheNum: number
    maxDistance: number
    minDistance: number
    position: phina.geom.Vector2
    prevPosition: phina.geom.Vector2
    startPosition: phina.geom.Vector2
    x: number
    y: number

    Methods

    • Parameters

      • e: { type: string }

      Returns this

    • Parameters

      • type: string
      • Optionalparam: object

      Returns this

    • Parameters

      • type: string

      Returns boolean

    • Parameters

      • type: string
      • listener: Function

      Returns this

    • Parameters

      • type: string
      • listener: Function

      Returns this

    • Parameters

      • type: string
      • listener: Function

      Returns this