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

    Interface Draggable

    interface Draggable {
        target?: phina.app.Element;
        addEventListener(type: string, listener: Function): this;
        attachTo(element: phina.app.Element): this;
        back(
            time?: number,
            easing?:
                | "default"
                | "liner"
                | "swing"
                | "easeInQuad"
                | "easeOutQuad"
                | "easeInOutQuad"
                | "easeInCubic"
                | "easeOutCubic"
                | "easeInOutCubic"
                | "easeOutInCubic"
                | "easeInQuart"
                | "easeOutQuart"
                | "easeInOutQuart"
                | "easeOutInQuart"
                | "easeInQuint"
                | "easeOutQuint"
                | "easeInOutQuint"
                | "easeOutInQuint"
                | "easeInSine"
                | "easeOutSine"
                | "easeInOutSine"
                | "easeOutInSine"
                | "easeInExpo"
                | "easeOutExpo"
                | "easeInOutExpo"
                | "easeOutInExpo"
                | "easeInCirc"
                | "easeOutCirc"
                | "easeInOutCirc"
                | "easeOutInCirc"
                | "easeInElastic"
                | "easeOutElastic"
                | "easeInOutElastic"
                | "easeOutInElastic"
                | "easeInBack"
                | "easeOutBack"
                | "easeInOutBack"
                | "easeOutInBack"
                | "easeInBounce"
                | "easeOutBounce"
                | "easeInOutBounce"
                | "easeOutInBounce",
        ): void;
        clear(type: string): this;
        clearEventListener(type: string): this;
        dispatchEvent(e: { type: string }): this;
        dispatchEventByType(type: string, param: object): this;
        enable(): void;
        fire(e: { type: string }): this;
        flare(type: string, param?: object): this;
        getTarget(): void | phina.app.Element;
        has(type: string): boolean;
        hasEventListener(type: string): boolean;
        isAttached(): boolean;
        off(type: string, listener: Function): this;
        on(type: string, listener: Function): this;
        one(type: string, listener: Function): this;
        remove(): void;
        removeEventListener(type: string, listener: Function): this;
        setTarget(target: phina.app.Element): this;
    }

    Hierarchy (View Summary)

    Index

    Properties

    target?: phina.app.Element

    Methods

    • Parameters

      • Optionaltime: number
      • Optionaleasing:
            | "default"
            | "liner"
            | "swing"
            | "easeInQuad"
            | "easeOutQuad"
            | "easeInOutQuad"
            | "easeInCubic"
            | "easeOutCubic"
            | "easeInOutCubic"
            | "easeOutInCubic"
            | "easeInQuart"
            | "easeOutQuart"
            | "easeInOutQuart"
            | "easeOutInQuart"
            | "easeInQuint"
            | "easeOutQuint"
            | "easeInOutQuint"
            | "easeOutInQuint"
            | "easeInSine"
            | "easeOutSine"
            | "easeInOutSine"
            | "easeOutInSine"
            | "easeInExpo"
            | "easeOutExpo"
            | "easeInOutExpo"
            | "easeOutInExpo"
            | "easeInCirc"
            | "easeOutCirc"
            | "easeInOutCirc"
            | "easeOutInCirc"
            | "easeInElastic"
            | "easeOutElastic"
            | "easeInOutElastic"
            | "easeOutInElastic"
            | "easeInBack"
            | "easeOutBack"
            | "easeInOutBack"
            | "easeOutInBack"
            | "easeInBounce"
            | "easeOutBounce"
            | "easeInOutBounce"
            | "easeOutInBounce"

      Returns void

    • Parameters

      • type: string
      • Optionalparam: object

      Returns this

    • Parameters

      • type: string
      • listener: Function

      Returns this

    • Parameters

      • type: string
      • listener: Function

      Returns this

    • Parameters

      • type: string
      • listener: Function

      Returns this