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

    Interface Element

    interface Element {
        awake: boolean;
        children: phina.app.Element[];
        draggable: phina.accessory.Draggable;
        flickable: phina.accessory.Flickable;
        parent: phina.app.Element | null;
        physical: phina.accessory.Physical;
        tweener: phina.accessory.Tweener;
        addChild(child: phina.app.Element): phina.app.Element;
        addChildAt(child: phina.app.Element, index: number): phina.app.Element;
        addChildTo(parent: phina.app.Element): this;
        addEventListener(type: string, listener: Function): this;
        attach(accessory: phina.accessory.Accessory): this;
        clear(type: string): this;
        clearEventListener(type: string): this;
        detach(accessory: phina.accessory.Accessory): this;
        dispatchEvent(e: { type: string }): this;
        dispatchEventByType(type: string, param: object): this;
        fire(e: { type: string }): this;
        flare(type: string, param?: object): this;
        fromJson(json: object): this;
        getChildAt(index: number): phina.app.Element;
        getChildByName(name: string): phina.app.Element;
        getChildIndex(child: phina.app.Element): number;
        getParent(): void | phina.app.Element;
        getRoot(): void | phina.app.Element;
        has(type: string): boolean;
        hasEventListener(type: string): boolean;
        isAwake(): boolean;
        off(type: string, listener: Function): this;
        on(type: string, listener: Function): this;
        one(type: string, listener: Function): this;
        remove(): void | phina.app.Element;
        removeChild(child: phina.app.Element): phina.app.Element;
        removeEventListener(type: string, listener: Function): this;
        sleep(): this;
        toJson(): object;
        update?(app: phina.display.DomApp): void;
        wakeUp(): this;
    }

    Hierarchy (View Summary)

    Index

    Properties

    awake: boolean
    children: phina.app.Element[]
    parent: phina.app.Element | null

    Methods

    • Parameters

      • json: object

      Returns this